Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions Adamant/Helpers/NodeGroup+Constants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -129,20 +129,20 @@ extension NodeGroup {
var name: String {
switch self {
case .btc:
return BtcWalletService.tokenNetworkSymbol
return BtcWalletService.nodeDisplayName ?? BtcWalletService.tokenNetworkSymbol
case .eth:
return EthWalletService.tokenNetworkSymbol
return EthWalletService.nodeDisplayName ?? EthWalletService.tokenNetworkSymbol
case .klyNode:
return KlyWalletService.tokenNetworkSymbol
return KlyWalletService.nodeDisplayName ?? KlyWalletService.tokenNetworkSymbol
case .klyService:
return KlyWalletService.tokenNetworkSymbol
return KlyWalletService.indexerDisplayName ?? KlyWalletService.tokenNetworkSymbol
+ " " + .adamant.coinsNodesList.serviceNode
case .doge:
return DogeWalletService.tokenNetworkSymbol
return DogeWalletService.nodeDisplayName ?? DogeWalletService.tokenNetworkSymbol
case .dash:
return DashWalletService.tokenNetworkSymbol
return DashWalletService.nodeDisplayName ?? DashWalletService.tokenNetworkSymbol
case .adm:
return AdmWalletService.tokenNetworkSymbol
return AdmWalletService.nodeDisplayName ?? AdmWalletService.tokenNetworkSymbol
case .ipfs:
return IPFSApiService.symbol
case .infoService:
Expand Down
8 changes: 4 additions & 4 deletions Adamant/Modules/CoinsNodesList/CoinsNodesListFactory.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ struct CoinsNodesListFactory {
let view = CoinsNodesListView(viewModel: viewModel)

switch context {
case .login:
return SelfRemovableHostingController(rootView: view)
case .menu:
return UIHostingController(rootView: view)
case .login:
return SelfRemovableHostingController(rootView: view)
case .menu:
return UIHostingController(rootView: view)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ final class KlyWalletService: WalletCoreProtocol, WalletStaticCoreProtocol, @unc
var balanceValidInterval: Int? {
Self.balanceValidInterval
}

static var indexerDisplayName: String? {
coinInfo?.services?.klyService?.displayName
}

@MainActor
var hasEnabledNode: Bool {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,8 @@ extension WalletStaticCoreProtocol {
)
} ?? []
}

static var nodeDisplayName: String? {
coinInfo?.nodes?.displayName
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public struct CoinInfoDTO: Codable {
}

public struct Service: Codable {
public let displayName: String?
let description: Description
public let list: [Node]
public let healthCheck: NodeHealthCheck?
Expand All @@ -79,6 +80,7 @@ public struct CoinInfoDTO: Codable {
}

public struct Nodes: Codable {
public let displayName: String?
public let list: [Node]
public let healthCheck: NodeHealthCheck
public let minVersion: String?
Expand Down