feat: prepare token service for multichain
This commit is contained in:
parent
8e6ae3c047
commit
b2579230a9
|
@ -71,6 +71,11 @@ method getNetwork*(self: Service, chainId: int): NetworkDto =
|
|||
if chainId == network.chainId:
|
||||
return network
|
||||
|
||||
method getNetwork*(self: Service, chainId: int): NetworkDto =
|
||||
for network in self.getNetworks():
|
||||
if chainId == network.chainId:
|
||||
return network
|
||||
|
||||
method getNetwork*(self: Service, networkType: NetworkType): NetworkDto =
|
||||
for network in self.getNetworks():
|
||||
if networkType.toChainId() == network.chainId:
|
||||
|
|
|
@ -106,7 +106,7 @@ type
|
|||
telemetryServerUrl*: string
|
||||
fleet*: string
|
||||
currentUserStatus*: CurrentUserStatus
|
||||
walletVisibleTokens*: Table[int, seq[string]] # [chainId, seq[tokenIds]]
|
||||
walletVisibleTokens*: Table[int, seq[string]]
|
||||
nodeConfig*: JsonNode
|
||||
wakuBloomFilterMode*: bool
|
||||
recentStickerHashes*: seq[string]
|
||||
|
|
Loading…
Reference in New Issue