Skip to content

Commit

Permalink
fix(wallet): use default wallet config for login to avoid duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanBelyakoff committed Feb 29, 2024
1 parent 95eb5fe commit 9faa5a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
1 change: 1 addition & 0 deletions src/app_service/common/network_constants.nim
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ var NODE_CONFIG* = %* {
"EnableFilterFullNode": true,
"UseShardAsDefaultTopic": true,
},
# Don't add properties to the login node config that can be changed from within the app
"WalletConfig": {
"Enabled": true,
"OpenseaAPIKey": OPENSEA_API_KEY_RESOLVED,
Expand Down
20 changes: 1 addition & 19 deletions src/app_service/service/accounts/service.nim
Original file line number Diff line number Diff line change
Expand Up @@ -379,25 +379,7 @@ QtObject:
"UDPPort": WAKU_V2_PORT
}

result["WalletConfig"] = %* {
"LoadAllTransfers": true,
"OpenseaAPIKey": OPENSEA_API_KEY_RESOLVED,
"RaribleMainnetAPIKey": RARIBLE_MAINNET_API_KEY_RESOLVED,
"RaribleTestnetAPIKey": RARIBLE_TESTNET_API_KEY_RESOLVED,
"InfuraAPIKey": INFURA_TOKEN_RESOLVED,
"InfuraAPIKeySecret": INFURA_TOKEN_SECRET_RESOLVED,
"AlchemyAPIKeys": %* {
"1": ALCHEMY_ETHEREUM_MAINNET_TOKEN_RESOLVED,
"5": ALCHEMY_ETHEREUM_GOERLI_TOKEN_RESOLVED,
"11155111": ALCHEMY_ETHEREUM_SEPOLIA_TOKEN_RESOLVED,
"42161": ALCHEMY_ARBITRUM_MAINNET_TOKEN_RESOLVED,
"421613": ALCHEMY_ARBITRUM_GOERLI_TOKEN_RESOLVED,
"421614": ALCHEMY_ARBITRUM_SEPOLIA_TOKEN_RESOLVED,
"10": ALCHEMY_OPTIMISM_MAINNET_TOKEN_RESOLVED,
"420": ALCHEMY_OPTIMISM_GOERLI_TOKEN_RESOLVED,
"11155420": ALCHEMY_OPTIMISM_SEPOLIA_TOKEN_RESOLVED
}
}
result["WalletConfig"] = NODE_CONFIG["WalletConfig"]

result["TorrentConfig"] = %* {
"Port": TORRENT_CONFIG_PORT,
Expand Down

0 comments on commit 9faa5a5

Please sign in to comment.