use constant for default networks

This commit is contained in:
Iuri Matias 2020-05-21 15:17:25 -04:00
parent 61b5d6e311
commit a5f5f6f016
1 changed files with 1 additions and 89 deletions

View File

@ -124,95 +124,7 @@ proc setupRandomTestAccount*(): string =
"signing-phrase": "dust gear boss",
"log-level": "INFO",
"latest-derived-path": 0,
"networks/networks": [
{
"id": "testnet_rpc",
"etherscan-link": "https://ropsten.etherscan.io/address/",
"name": "Ropsten with upstream RPC",
"config":
{
"NetworkId": 3,
"DataDir": "/ethereum/testnet_rpc",
"UpstreamConfig":
{
"Enabled": true,
"URL": "https://ropsten.infura.io/v3/f315575765b14720b32382a61a89341a",
},
},
},
{
"id": "rinkeby_rpc",
"etherscan-link": "https://rinkeby.etherscan.io/address/",
"name": "Rinkeby with upstream RPC",
"config":
{
"NetworkId": 4,
"DataDir": "/ethereum/rinkeby_rpc",
"UpstreamConfig":
{
"Enabled": true,
"URL": "https://rinkeby.infura.io/v3/f315575765b14720b32382a61a89341a",
},
},
},
{
"id": "goerli_rpc",
"etherscan-link": "https://goerli.etherscan.io/address/",
"name": "Goerli with upstream RPC",
"config":
{
"NetworkId": 5,
"DataDir": "/ethereum/goerli_rpc",
"UpstreamConfig":
{
"Enabled": true,
"URL": "https://goerli.blockscout.com/",
},
},
},
{
"id": "mainnet_rpc",
"etherscan-link": "https://etherscan.io/address/",
"name": "Mainnet with upstream RPC",
"config":
{
"NetworkId": 1,
"DataDir": "/ethereum/mainnet_rpc",
"UpstreamConfig":
{
"Enabled": true,
"URL": "https://mainnet.infura.io/v3/f315575765b14720b32382a61a89341a",
},
},
},
{
"id": "xdai_rpc",
"name": "xDai Chain",
"config":
{
"NetworkId": 100,
"DataDir": "/ethereum/xdai_rpc",
"UpstreamConfig":
{
"Enabled": true,
"URL": "https://dai.poa.network"
},
},
},
{
"id": "poa_rpc",
"name": "POA Network",
"config":
{
"NetworkId": 99,
"DataDir": "/ethereum/poa_rpc",
"UpstreamConfig":
{
"Enabled": true,
"URL": "https://core.poa.network"
},
},
}],
"networks/networks": $constants.DEFAULT_NETWORKS,
"currency": "usd",
"photo-path": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAmElEQVR4nOzX4QmAIBBA4Yp2aY52aox2ao6mqf+SoajwON73M0J4HBy6TEEYQmMIjSE0htCECVlbDziv+/n6fuzb3OP/UmEmYgiNITRNm+LPqO2UE2YihtAYQlN818ptoZzau1btOakwEzGExhCa5hdi7d2p1zZLhZmIITSG0PhCpDGExhANEmYihtAYQmMIjSE0bwAAAP//kHQdRIWYzToAAAAASUVORK5CYII=",
"waku-enabled": true,