diff --git a/.github/ISSUE_TEMPLATE/add-new-chain---network-id.md b/.github/ISSUE_TEMPLATE/add-new-chain---network-id.md index e77f04c2..84eee745 100644 --- a/.github/ISSUE_TEMPLATE/add-new-chain---network-id.md +++ b/.github/ISSUE_TEMPLATE/add-new-chain---network-id.md @@ -12,11 +12,14 @@ assignees: '' ``` { "name": "Ethereum Mainnet", - "short_name": "eth", + "shortName": "eth", "chain": "ETH", "network": "mainnet", - "chain_id": 1, - "network_id": 1, - "rpc": ["https://mainnet.infura.io"] + "chainId": 1, + "networkId": 1, + "rpc": ["https://mainnet.infura.io"], + "faucets": [], + "infoURL: "https://ethereum.org", + "nativeCurrency": {"name":"Ether","symbol":"ETH","decimals":18} } ``` diff --git a/README.md b/README.md index 86549e81..9ba36c67 100644 --- a/README.md +++ b/README.md @@ -9,16 +9,17 @@ Data source available on `_data/chains.json` ```json { "name": "Ethereum Mainnet", - "short_name": "eth", + "shortName": "eth", "chain": "ETH", "network": "mainnet", - "chain_id": 1, - "network_id": 1, + "chainId": 1, + "networkId": 1, "rpc": [ "https://mainnet.infura.io/v3/${INFURA_API_KEY}", "https://api.mycryptoapi.com/eth" ], "faucets": [], - "info_url": "https://ethereum.org" + "infoURL": "https://ethereum.org", + "nativeCurrency": {"name":"Ether","symbol":"ETH","decimals":18} } ``` diff --git a/_data/chains/1.json b/_data/chains/1.json index d3520800..5182b493 100644 --- a/_data/chains/1.json +++ b/_data/chains/1.json @@ -1,14 +1,16 @@ { "name": "Ethereum Mainnet", - "short_name": "eth", "chain": "ETH", "network": "mainnet", - "chain_id": 1, - "network_id": 1, - "rpc": [ - "https://mainnet.infura.io/v3/${INFURA_API_KEY}", - "https://api.mycryptoapi.com/eth" - ], + "rpc": ["https://mainnet.infura.io/v3/${INFURA_API_KEY}", "https://api.mycryptoapi.com/eth"], "faucets": [], - "info_url": "https://ethereum.org" -} + "nativeCurrency": { + "name": "Ether", + "symbol": "ETH", + "decimals": 18 + }, + "infoURL": "https://ethereum.org", + "shortName": "eth", + "chainId": 1, + "networkId": 1 +} \ No newline at end of file diff --git a/_data/chains/100.json b/_data/chains/100.json index 9881de49..49ce4f3c 100644 --- a/_data/chains/100.json +++ b/_data/chains/100.json @@ -1,11 +1,16 @@ { "name": "xDAI Chain", - "short_name": "xdai", "chain": "XDAI", "network": "mainnet", - "chain_id": 100, - "network_id": 1, "rpc": ["https://dai.poa.network"], "faucets": [], - "info_url": "https://forum.poa.network/c/xdai-chain" -} + "nativeCurrency": { + "name": "xDAI", + "symbol": "xDAI", + "decimals": 18 + }, + "infoURL": "https://forum.poa.network/c/xdai-chain", + "shortName": "xdai", + "chainId": 100, + "networkId": 1 +} \ No newline at end of file diff --git a/_data/chains/101.json b/_data/chains/101.json index 658f0b17..1cda4018 100644 --- a/_data/chains/101.json +++ b/_data/chains/101.json @@ -1,11 +1,16 @@ { "name": "EtherInc", - "short_name": "eti", "chain": "ETI", "network": "mainnet", - "chain_id": 101, - "network_id": 1, "rpc": ["https://api.einc.io/jsonrpc/mainnet"], "faucets": [], - "info_url": "https://einc.io" -} + "nativeCurrency": { + "name": "EtherInc Ether", + "symbol": "ETI", + "decimals": 18 + }, + "infoURL": "https://einc.io", + "shortName": "eti", + "chainId": 101, + "networkId": 1 +} \ No newline at end of file diff --git a/_data/chains/108.json b/_data/chains/108.json index f69ef3f6..37c4be0e 100644 --- a/_data/chains/108.json +++ b/_data/chains/108.json @@ -1,11 +1,16 @@ { "name": "ThunderCore Mainnet", - "short_name": "TT", "chain": "TT", "network": "mainnet", - "chain_id": 108, - "network_id": 108, "rpc": ["https://mainnet-rpc.thundercore.com"], "faucets": ["https://faucet-testnet.thundercore.com"], - "info_url": "https://thundercore.com" -} + "nativeCurrency": { + "name": "ThunderCore Mainnet Ether", + "symbol": "TT", + "decimals": 18 + }, + "infoURL": "https://thundercore.com", + "shortName": "TT", + "chainId": 108, + "networkId": 108 +} \ No newline at end of file diff --git a/_data/chains/11.json b/_data/chains/11.json index c4001dff..f232e62f 100644 --- a/_data/chains/11.json +++ b/_data/chains/11.json @@ -1,11 +1,16 @@ { "name": "Metadium Mainnet", - "short_name": "meta", "chain": "META", "network": "mainnet", - "chain_id": 11, - "network_id": 11, "rpc": ["https://api.metadium.com/prod"], "faucets": [], - "info_url": "https://metadium.com" -} + "nativeCurrency": { + "name": "Metadium Mainnet Ether", + "symbol": "META", + "decimals": 18 + }, + "infoURL": "https://metadium.com", + "shortName": "meta", + "chainId": 11, + "networkId": 11 +} \ No newline at end of file diff --git a/_data/chains/1122334455.json b/_data/chains/1122334455.json index 52f4d32c..6269244a 100644 --- a/_data/chains/1122334455.json +++ b/_data/chains/1122334455.json @@ -1,11 +1,16 @@ { "name": "IPOS Network", - "short_name": "ipos", "chain": "IPOS", "network": "mainnet", - "chain_id": 1122334455, - "network_id": 1122334455, - "rpc": ["https://rpc.iposlab.com","https://rpc2.iposlab.com"], + "rpc": ["https://rpc.iposlab.com", "https://rpc2.iposlab.com"], "faucets": [], - "info_url": "https://iposlab.com" -} + "nativeCurrency": { + "name": "IPOS Network Ether", + "symbol": "IPOS", + "decimals": 18 + }, + "infoURL": "https://iposlab.com", + "shortName": "ipos", + "chainId": 1122334455, + "networkId": 1122334455 +} \ No newline at end of file diff --git a/_data/chains/12.json b/_data/chains/12.json index 21aa17bf..1ff03bd0 100644 --- a/_data/chains/12.json +++ b/_data/chains/12.json @@ -1,11 +1,16 @@ { "name": "Metadium Testnet", - "short_name": "kal", "chain": "META", "network": "testnet", - "chain_id": 12, - "network_id": 12, "rpc": ["https://api.metadium.com/dev"], "faucets": [], - "info_url": "https://metadium.com" -} + "nativeCurrency": { + "name": "Metadium Testnet Ether", + "symbol": "KAL", + "decimals": 18 + }, + "infoURL": "https://metadium.com", + "shortName": "kal", + "chainId": 12, + "networkId": 12 +} \ No newline at end of file diff --git a/_data/chains/1313114.json b/_data/chains/1313114.json index 0331d59a..79f0eb67 100644 --- a/_data/chains/1313114.json +++ b/_data/chains/1313114.json @@ -1,11 +1,16 @@ { "name": "Ether-1", - "short_name": "etho", "chain": "ETHO", "network": "mainnet", - "chain_id": 1313114, - "network_id": 1313114, "rpc": ["https://rpc.ether1.org"], "faucets": [], - "info_url": "https://ether1.org" -} + "nativeCurrency": { + "name": "Ether-1 Ether", + "symbol": "ETHO", + "decimals": 18 + }, + "infoURL": "https://ether1.org", + "shortName": "etho", + "chainId": 1313114, + "networkId": 1313114 +} \ No newline at end of file diff --git a/_data/chains/13371337.json b/_data/chains/13371337.json index c6df4da0..c6519b36 100644 --- a/_data/chains/13371337.json +++ b/_data/chains/13371337.json @@ -1,11 +1,16 @@ { "name": "PepChain Churchill", - "short_name": "tpep", "chain": "PEP", "network": "testnet", - "chain_id": 13371337, - "network_id": 13371337, "rpc": ["https://churchill-rpc.pepchain.io"], "faucets": [], - "info_url": "https://pepchain.io" -} + "nativeCurrency": { + "name": "PepChain Churchill Ether", + "symbol": "TPEP", + "decimals": 18 + }, + "infoURL": "https://pepchain.io", + "shortName": "tpep", + "chainId": 13371337, + "networkId": 13371337 +} \ No newline at end of file diff --git a/_data/chains/1620.json b/_data/chains/1620.json index bc53e80a..24510647 100644 --- a/_data/chains/1620.json +++ b/_data/chains/1620.json @@ -1,11 +1,16 @@ { "name": "Atheios", - "short_name": "ath", "chain": "ATH", "network": "mainnet", - "chain_id": 1620, - "network_id": 11235813, "rpc": ["https://wallet.atheios.com:8797"], "faucets": [], - "info_url": "https://atheios.com" -} + "nativeCurrency": { + "name": "Atheios Ether", + "symbol": "ATH", + "decimals": 18 + }, + "infoURL": "https://atheios.com", + "shortName": "ath", + "chainId": 1620, + "networkId": 11235813 +} \ No newline at end of file diff --git a/_data/chains/18.json b/_data/chains/18.json index 531d8399..7d1d050f 100644 --- a/_data/chains/18.json +++ b/_data/chains/18.json @@ -1,11 +1,16 @@ { "name": "ThunderCore Testnet", - "short_name": "TST", "chain": "TST", "network": "testnet", - "chain_id": 18, - "network_id": 18, "rpc": ["https://testnet-rpc.thundercore.com:8544"], "faucets": [], - "info_url": "https://thundercore.com" -} + "nativeCurrency": { + "name": "ThunderCore Testnet Ether", + "symbol": "TST", + "decimals": 18 + }, + "infoURL": "https://thundercore.com", + "shortName": "TST", + "chainId": 18, + "networkId": 18 +} \ No newline at end of file diff --git a/_data/chains/18289463.json b/_data/chains/18289463.json index 5fa7ea7b..044f1770 100644 --- a/_data/chains/18289463.json +++ b/_data/chains/18289463.json @@ -1,11 +1,16 @@ { "name": "IOLite", - "short_name": "ilt", "chain": "ILT", "network": "mainnet", - "chain_id": 18289463, - "network_id": 18289463, "rpc": ["https://net.iolite.io"], "faucets": [], - "info_url": "https://iolite.io" -} + "nativeCurrency": { + "name": "IOLite Ether", + "symbol": "ILT", + "decimals": 18 + }, + "infoURL": "https://iolite.io", + "shortName": "ilt", + "chainId": 18289463, + "networkId": 18289463 +} \ No newline at end of file diff --git a/_data/chains/1856.json b/_data/chains/1856.json index c7e7f465..96a2ee64 100644 --- a/_data/chains/1856.json +++ b/_data/chains/1856.json @@ -1,11 +1,16 @@ { "name": "Teslafunds", - "short_name": "tsf", "chain": "TSF", "network": "mainnet", - "chain_id": 1856, - "network_id": 1, "rpc": ["https://tsfapi.europool.me"], "faucets": [], - "info_url": "https://teslafunds.io" -} + "nativeCurrency": { + "name": "Teslafunds Ether", + "symbol": "TSF", + "decimals": 18 + }, + "infoURL": "https://teslafunds.io", + "shortName": "tsf", + "chainId": 1856, + "networkId": 1 +} \ No newline at end of file diff --git a/_data/chains/1987.json b/_data/chains/1987.json index ae52a3e5..96577133 100644 --- a/_data/chains/1987.json +++ b/_data/chains/1987.json @@ -1,11 +1,16 @@ { "name": "EtherGem", - "short_name": "egem", "chain": "EGEM", "network": "mainnet", - "chain_id": 1987, - "network_id": 1987, "rpc": ["https://jsonrpc.egem.io/custom"], "faucets": [], - "info_url": "https://egem.io" -} + "nativeCurrency": { + "name": "EtherGem Ether", + "symbol": "EGEM", + "decimals": 18 + }, + "infoURL": "https://egem.io", + "shortName": "egem", + "chainId": 1987, + "networkId": 1987 +} \ No newline at end of file diff --git a/_data/chains/2.json b/_data/chains/2.json index 2e2e7d6e..5b4cd52e 100644 --- a/_data/chains/2.json +++ b/_data/chains/2.json @@ -1,11 +1,16 @@ { "name": "Expanse Network", - "short_name": "exp", "chain": "EXP", "network": "mainnet", - "chain_id": 2, - "network_id": 1, "rpc": ["https://node.expanse.tech"], "faucets": [], - "info_url": "https://expanse.tech" -} + "nativeCurrency": { + "name": "Expanse Network Ether", + "symbol": "EXP", + "decimals": 18 + }, + "infoURL": "https://expanse.tech", + "shortName": "exp", + "chainId": 2, + "networkId": 1 +} \ No newline at end of file diff --git a/_data/chains/200625.json b/_data/chains/200625.json index 27ccfef8..85dbad09 100644 --- a/_data/chains/200625.json +++ b/_data/chains/200625.json @@ -1,11 +1,16 @@ { "name": "Akaroma", - "short_name": "aka", "chain": "AKA", "network": "mainnet", - "chain_id": 200625, - "network_id": 200625, "rpc": ["https://remote.akroma.io"], "faucets": [], - "info_url": "https://akroma.io" -} + "nativeCurrency": { + "name": "Akaroma Ether", + "symbol": "AKA", + "decimals": 18 + }, + "infoURL": "https://akroma.io", + "shortName": "aka", + "chainId": 200625, + "networkId": 200625 +} \ No newline at end of file diff --git a/_data/chains/24484.json b/_data/chains/24484.json index 8f25fd98..c2058e29 100644 --- a/_data/chains/24484.json +++ b/_data/chains/24484.json @@ -1,11 +1,16 @@ { "name": "Webchain", - "short_name": "web", "chain": "WEB", "network": "mainnet", - "chain_id": 24484, - "network_id": 37129, "rpc": ["https://node1.webchain.network"], "faucets": [], - "info_url": "https://webchain.network" -} + "nativeCurrency": { + "name": "Webchain Ether", + "symbol": "WEB", + "decimals": 18 + }, + "infoURL": "https://webchain.network", + "shortName": "web", + "chainId": 24484, + "networkId": 37129 +} \ No newline at end of file diff --git a/_data/chains/246529.json b/_data/chains/246529.json index 19600f6e..50a2d70b 100644 --- a/_data/chains/246529.json +++ b/_data/chains/246529.json @@ -1,11 +1,16 @@ { "name": "ARTIS sigma1", - "short_name": "ats", "chain": "ARTIS", "network": "sigma1", - "chain_id": 246529, - "network_id": 246529, "rpc": ["https://rpc.sigma1.artis.network"], "faucets": [], - "info_url": "https://artis.eco" -} + "nativeCurrency": { + "name": "ARTIS sigma1 Ether", + "symbol": "ATS", + "decimals": 18 + }, + "infoURL": "https://artis.eco", + "shortName": "ats", + "chainId": 246529, + "networkId": 246529 +} \ No newline at end of file diff --git a/_data/chains/246785.json b/_data/chains/246785.json index f36c9c47..b24544c7 100644 --- a/_data/chains/246785.json +++ b/_data/chains/246785.json @@ -1,11 +1,16 @@ { "name": "ARTIS tau1", - "short_name": "ats", "chain": "ARTIS", "network": "tau1", - "chain_id": 246785, - "network_id": 246785, "rpc": ["https://rpc.tau1.artis.network"], "faucets": [], - "info_url": "https://artis.network" -} + "nativeCurrency": { + "name": "ARTIS tau1 Ether", + "symbol": "ATS", + "decimals": 18 + }, + "infoURL": "https://artis.network", + "shortName": "ats", + "chainId": 246785, + "networkId": 246785 +} \ No newline at end of file diff --git a/_data/chains/269.json b/_data/chains/269.json index 2391c462..ca679d79 100644 --- a/_data/chains/269.json +++ b/_data/chains/269.json @@ -1,11 +1,16 @@ { "name": "High Performance Blockchain", - "short_name": "hpb", "chain": "HPB", "network": "mainnet", - "chain_id": 269, - "network_id": 100, "rpc": ["https://node.hpb.blue"], "faucets": [], - "info_url": "https://hpb.io" -} + "nativeCurrency": { + "name": "High Performance Blockchain Ether", + "symbol": "HPB", + "decimals": 18 + }, + "infoURL": "https://hpb.io", + "shortName": "hpb", + "chainId": 269, + "networkId": 100 +} \ No newline at end of file diff --git a/_data/chains/3.json b/_data/chains/3.json index e84706f4..7904f6a4 100644 --- a/_data/chains/3.json +++ b/_data/chains/3.json @@ -1,11 +1,16 @@ { "name": "Ethereum Testnet Ropsten", - "short_name": "rop", "chain": "ETH", "network": "ropsten", - "chain_id": 3, - "network_id": 3, "rpc": ["https://ropsten.infura.io/v3/${INFURA_API_KEY}"], "faucets": ["https://faucet.ropsten.be?${ADDRESS}"], - "info_url": "https://github.com/ethereum/ropsten" -} + "nativeCurrency": { + "name": "Ropsten Ether", + "symbol": "ROP", + "decimals": 18 + }, + "infoURL": "https://github.com/ethereum/ropsten", + "shortName": "rop", + "chainId": 3, + "networkId": 3 +} \ No newline at end of file diff --git a/_data/chains/30.json b/_data/chains/30.json index ab05eaa8..1bb48cb6 100644 --- a/_data/chains/30.json +++ b/_data/chains/30.json @@ -1,11 +1,16 @@ { "name": "RSK Mainnet", - "short_name": "rsk", "chain": "RSK", "network": "mainnet", - "chain_id": 30, - "network_id": 775, "rpc": ["https://public-node.rsk.co", "https://mycrypto.rsk.co"], "faucets": [], - "info_url": "https://rsk.co" -} + "nativeCurrency": { + "name": "RSK Mainnet Ether", + "symbol": "RSK", + "decimals": 18 + }, + "infoURL": "https://rsk.co", + "shortName": "rsk", + "chainId": 30, + "networkId": 775 +} \ No newline at end of file diff --git a/_data/chains/31.json b/_data/chains/31.json index 84031e90..c1cc22b2 100644 --- a/_data/chains/31.json +++ b/_data/chains/31.json @@ -1,14 +1,16 @@ { "name": "RSK Testnet", - "short_name": "trsk", "chain": "RSK", "network": "testnet", - "chain_id": 31, - "network_id": 8052, - "rpc": [ - "https://public-node.testnet.rsk.co", - "https://mycrypto.testnet.rsk.co" - ], + "rpc": ["https://public-node.testnet.rsk.co", "https://mycrypto.testnet.rsk.co"], "faucets": ["https://faucet.testnet.rsk.co"], - "info_url": "https://rsk.co" -} + "nativeCurrency": { + "name": "RSK Testnet Ether", + "symbol": "TRSK", + "decimals": 18 + }, + "infoURL": "https://rsk.co", + "shortName": "trsk", + "chainId": 31, + "networkId": 8052 +} \ No newline at end of file diff --git a/_data/chains/31102.json b/_data/chains/31102.json index b924a1aa..6e509018 100644 --- a/_data/chains/31102.json +++ b/_data/chains/31102.json @@ -1,12 +1,16 @@ { "name": "Ethersocial Network", - "short_name": "esn", "chain": "ESN", "network": "mainnet", - "chain_id": 31102, - "network_id": 1, "rpc": ["https://api.esn.gonspool.com"], "faucets": [], - "info_url": "https://ethersocial.org" - -} + "nativeCurrency": { + "name": "Ethersocial Network Ether", + "symbol": "ESN", + "decimals": 18 + }, + "infoURL": "https://ethersocial.org", + "shortName": "esn", + "chainId": 31102, + "networkId": 1 +} \ No newline at end of file diff --git a/_data/chains/3125659152.json b/_data/chains/3125659152.json index 99b8cd28..93ce762f 100644 --- a/_data/chains/3125659152.json +++ b/_data/chains/3125659152.json @@ -1,11 +1,16 @@ { "name": "Pirl", - "short_name": "pirl", "chain": "PIRL", "network": "mainnet", - "chain_id": 3125659152, - "network_id": 3125659152, "rpc": ["https://wallrpc.pirl.io"], "faucets": [], - "info_url": "https://pirl.io" -} + "nativeCurrency": { + "name": "Pirl Ether", + "symbol": "PIRL", + "decimals": 18 + }, + "infoURL": "https://pirl.io", + "shortName": "pirl", + "chainId": 3125659152, + "networkId": 3125659152 +} \ No newline at end of file diff --git a/_data/chains/385.json b/_data/chains/385.json index 8ca0d5f3..514bc089 100644 --- a/_data/chains/385.json +++ b/_data/chains/385.json @@ -1,11 +1,16 @@ { "name": "Lisinski", - "short_name": "lisinski", "chain": "CRO", "network": "mainnet", - "chain_id": 385, - "network_id": 385, "rpc": ["https://rpc-bitfalls1.lisinski.online"], "faucets": ["https://pipa.lisinski.online"], - "info_url": "https://lisinski.online" -} + "nativeCurrency": { + "name": "Lisinski Ether", + "symbol": "LISINSKI", + "decimals": 18 + }, + "infoURL": "https://lisinski.online", + "shortName": "lisinski", + "chainId": 385, + "networkId": 385 +} \ No newline at end of file diff --git a/_data/chains/4.json b/_data/chains/4.json index fd7293c2..b94aa4e3 100644 --- a/_data/chains/4.json +++ b/_data/chains/4.json @@ -1,11 +1,16 @@ { "name": "Ethereum Testnet Rinkeby", - "short_name": "rin", "chain": "ETH", "network": "rinkeby", - "chain_id": 4, - "network_id": 4, "rpc": ["https://rinkeby.infura.io/v3/${INFURA_API_KEY}"], "faucets": ["https://faucet.rinkeby.io"], - "info_url": "https://www.rinkeby.io" -} + "nativeCurrency": { + "name": "Rinkeby Ether", + "symbol": "RIN", + "decimals": 18 + }, + "infoURL": "https://www.rinkeby.io", + "shortName": "rin", + "chainId": 4, + "networkId": 4 +} \ No newline at end of file diff --git a/_data/chains/42.json b/_data/chains/42.json index 8280549d..ef317a37 100644 --- a/_data/chains/42.json +++ b/_data/chains/42.json @@ -1,14 +1,16 @@ { "name": "Ethereum Testnet Kovan", - "short_name": "kov", "chain": "ETH", "network": "kovan", - "chain_id": 42, - "network_id": 42, "rpc": ["https://kovan.infura.io/v3/${INFURA_API_KEY}"], - "faucets": [ - "https://faucet.kovan.network", - "https://gitter.im/kovan-testnet/faucet" - ], - "info_url": "https://kovan-testnet.github.io/website" -} + "faucets": ["https://faucet.kovan.network", "https://gitter.im/kovan-testnet/faucet"], + "nativeCurrency": { + "name": "Kovan Ether", + "symbol": "KOV", + "decimals": 18 + }, + "infoURL": "https://kovan-testnet.github.io/website", + "shortName": "kov", + "chainId": 42, + "networkId": 42 +} \ No newline at end of file diff --git a/_data/chains/5.json b/_data/chains/5.json index 0cd501e4..c5664316 100644 --- a/_data/chains/5.json +++ b/_data/chains/5.json @@ -1,18 +1,16 @@ { "name": "Ethereum Testnet Görli", - "short_name": "gor", "chain": "ETH", "network": "goerli", - "chain_id": 5, - "network_id": 5, - "rpc": [ - "https://rpc.goerli.mudit.blog/", - "https://rpc.slock.it/goerli ", - "https://goerli.prylabs.net/" - ], - "faucets": [ - "https://goerli-faucet.slock.it/?address=${ADDRESS}", - "https://faucet.goerli.mudit.blog" - ], - "info_url": "https://goerli.net/#about" -} + "rpc": ["https://rpc.goerli.mudit.blog/", "https://rpc.slock.it/goerli ", "https://goerli.prylabs.net/"], + "faucets": ["https://goerli-faucet.slock.it/?address=${ADDRESS}", "https://faucet.goerli.mudit.blog"], + "nativeCurrency": { + "name": "Görli Ether", + "symbol": "GOR", + "decimals": 18 + }, + "infoURL": "https://goerli.net/#about", + "shortName": "gor", + "chainId": 5, + "networkId": 5 +} \ No newline at end of file diff --git a/_data/chains/6.json b/_data/chains/6.json index 24d11fa9..dea1c25c 100644 --- a/_data/chains/6.json +++ b/_data/chains/6.json @@ -1,11 +1,16 @@ { "name": "Ethereum Classic Testnet Kotti", - "short_name": "kot", "chain": "ETC", "network": "kotti", - "chain_id": 6, - "network_id": 6, "rpc": [], "faucets": [], - "info_url": "https://kottiexplorer.ethernode.io" -} + "nativeCurrency": { + "name": "Kotti Ether", + "symbol": "KOT", + "decimals": 18 + }, + "infoURL": "https://kottiexplorer.ethernode.io", + "shortName": "kot", + "chainId": 6, + "networkId": 6 +} \ No newline at end of file diff --git a/_data/chains/60.json b/_data/chains/60.json index 87d2792f..ccbcf3f7 100644 --- a/_data/chains/60.json +++ b/_data/chains/60.json @@ -1,11 +1,16 @@ { "name": "GoChain", - "short_name": "go", "chain": "GO", "network": "mainnet", - "chain_id": 60, - "network_id": 60, "rpc": ["https://rpc.gochain.io"], "faucets": [], - "info_url": "https://gochain.io" -} + "nativeCurrency": { + "name": "GoChain Ether", + "symbol": "GO", + "decimals": 18 + }, + "infoURL": "https://gochain.io", + "shortName": "go", + "chainId": 60, + "networkId": 60 +} \ No newline at end of file diff --git a/_data/chains/61.json b/_data/chains/61.json index 411c91ff..1da505e4 100644 --- a/_data/chains/61.json +++ b/_data/chains/61.json @@ -1,11 +1,16 @@ { "name": "Ethereum Classic Mainnet", - "short_name": "etc", "chain": "ETC", "network": "mainnet", - "chain_id": 61, - "network_id": 1, "rpc": ["https://ethereumclassic.network"], "faucets": [], - "info_url": "https://ethereumclassic.org" -} + "nativeCurrency": { + "name": "Ethereum Classic Ether", + "symbol": "ETC", + "decimals": 18 + }, + "infoURL": "https://ethereumclassic.org", + "shortName": "etc", + "chainId": 61, + "networkId": 1 +} \ No newline at end of file diff --git a/_data/chains/61717561.json b/_data/chains/61717561.json index d0700850..497c3e9c 100644 --- a/_data/chains/61717561.json +++ b/_data/chains/61717561.json @@ -1,11 +1,16 @@ { "name": "Aquachain", - "short_name": "aqua", "chain": "AQUA", "network": "mainnet", - "chain_id": 61717561, - "network_id": 61717561, "rpc": ["https://c.onical.org", "https://tx.aquacha.in/api"], "faucets": ["https://aquacha.in/faucet"], - "info_url": "https://aquachain.github.io" -} + "nativeCurrency": { + "name": "Aquachain Ether", + "symbol": "AQUA", + "decimals": 18 + }, + "infoURL": "https://aquachain.github.io", + "shortName": "aqua", + "chainId": 61717561, + "networkId": 61717561 +} \ No newline at end of file diff --git a/_data/chains/62.json b/_data/chains/62.json index f60fa010..14ad01ce 100644 --- a/_data/chains/62.json +++ b/_data/chains/62.json @@ -1,11 +1,16 @@ { "name": "Ethereum Classic Testnet", - "short_name": "tetc", "chain": "ETC", "network": "testnet", - "chain_id": 62, - "network_id": 2, "rpc": [], "faucets": [], - "info_url": "https://ethereumclassic.org" -} + "nativeCurrency": { + "name": "Ethereum Classic Testnet Ether", + "symbol": "TETC", + "decimals": 18 + }, + "infoURL": "https://ethereumclassic.org", + "shortName": "tetc", + "chainId": 62, + "networkId": 2 +} \ No newline at end of file diff --git a/_data/chains/64.json b/_data/chains/64.json index ce4f3d6d..f5a62072 100644 --- a/_data/chains/64.json +++ b/_data/chains/64.json @@ -1,11 +1,16 @@ { "name": "Ellaism", - "short_name": "ella", "chain": "ELLA", "network": "mainnet", - "chain_id": 64, - "network_id": 1, "rpc": ["https://jsonrpc.ellaism.org"], "faucets": [], - "info_url": "https://ellaism.org" -} + "nativeCurrency": { + "name": "Ellaism Ether", + "symbol": "ELLA", + "decimals": 18 + }, + "infoURL": "https://ellaism.org", + "shortName": "ella", + "chainId": 64, + "networkId": 1 +} \ No newline at end of file diff --git a/_data/chains/76.json b/_data/chains/76.json index d46b4078..cfe35704 100644 --- a/_data/chains/76.json +++ b/_data/chains/76.json @@ -1,11 +1,16 @@ { "name": "Mix", - "short_name": "mix", "chain": "MIX", "network": "mainnet", - "chain_id": 76, - "network_id": 1, "rpc": ["https://rpc2.mix-blockchain.org:8647"], "faucets": [], - "info_url": "https://mix-blockchain.org" -} + "nativeCurrency": { + "name": "Mix Ether", + "symbol": "MIX", + "decimals": 18 + }, + "infoURL": "https://mix-blockchain.org", + "shortName": "mix", + "chainId": 76, + "networkId": 1 +} \ No newline at end of file diff --git a/_data/chains/77.json b/_data/chains/77.json index 0bbadf3e..f0b93669 100644 --- a/_data/chains/77.json +++ b/_data/chains/77.json @@ -1,11 +1,16 @@ { "name": "POA Network Sokol", - "short_name": "poa", "chain": "POA", "network": "sokol", - "chain_id": 77, - "network_id": 1, "rpc": ["https://sokol.poa.network"], "faucets": ["https://faucet-sokol.herokuapp.com"], - "info_url": "https://poa.network" -} + "nativeCurrency": { + "name": "POA Sokol Ether", + "symbol": "POA", + "decimals": 18 + }, + "infoURL": "https://poa.network", + "shortName": "poa", + "chainId": 77, + "networkId": 1 +} \ No newline at end of file diff --git a/_data/chains/7762959.json b/_data/chains/7762959.json index bf9afd61..359e3de0 100644 --- a/_data/chains/7762959.json +++ b/_data/chains/7762959.json @@ -1,11 +1,16 @@ { "name": "Musicoin", - "short_name": "music", "chain": "MUSIC", "network": "mainnet", - "chain_id": 7762959, - "network_id": 7762959, "rpc": ["https://mewapi.musicoin.tw"], "faucets": [], - "info_url": "https://musicoin.tw" -} + "nativeCurrency": { + "name": "Musicoin", + "symbol": "MUSIC", + "decimals": 18 + }, + "infoURL": "https://musicoin.tw", + "shortName": "music", + "chainId": 7762959, + "networkId": 7762959 +} \ No newline at end of file diff --git a/_data/chains/8.json b/_data/chains/8.json index 4495de66..d4e1d6a9 100644 --- a/_data/chains/8.json +++ b/_data/chains/8.json @@ -1,11 +1,16 @@ { "name": "Ubiq Network Mainnet", - "short_name": "ubq", "chain": "UBQ", "network": "mainnet", - "chain_id": 8, - "network_id": 1, "rpc": ["https://pyrus2.ubiqscan.io"], "faucets": [], - "info_url": "https://ubiqsmart.com" -} + "nativeCurrency": { + "name": "Ubiq Ether", + "symbol": "UBQ", + "decimals": 18 + }, + "infoURL": "https://ubiqsmart.com", + "shortName": "ubq", + "chainId": 8, + "networkId": 1 +} \ No newline at end of file diff --git a/_data/chains/820.json b/_data/chains/820.json index 4cd679d6..f7dc678c 100644 --- a/_data/chains/820.json +++ b/_data/chains/820.json @@ -1,11 +1,16 @@ { "name": "Callisto Mainnet", - "short_name": "clo", "chain": "CLO", "network": "mainnet", - "chain_id": 820, - "network_id": 1, "rpc": ["https://clo-geth.0xinfra.com"], "faucets": [], - "info_url": "https://callisto.network" -} + "nativeCurrency": { + "name": "Callisto Mainnet Ether", + "symbol": "CLO", + "decimals": 18 + }, + "infoURL": "https://callisto.network", + "shortName": "clo", + "chainId": 820, + "networkId": 1 +} \ No newline at end of file diff --git a/_data/chains/821.json b/_data/chains/821.json index a2727d56..4ed39546 100644 --- a/_data/chains/821.json +++ b/_data/chains/821.json @@ -1,11 +1,16 @@ { "name": "Callisto Testnet", - "short_name": "tclo", "chain": "CLO", "network": "testnet", - "chain_id": 821, - "network_id": 2, "rpc": [], "faucets": [], - "info_url": "https://callisto.network" -} + "nativeCurrency": { + "name": "Callisto Testnet Ether", + "symbol": "TCLO", + "decimals": 18 + }, + "infoURL": "https://callisto.network", + "shortName": "tclo", + "chainId": 821, + "networkId": 2 +} \ No newline at end of file diff --git a/_data/chains/88.json b/_data/chains/88.json index 8d477795..06f7639f 100644 --- a/_data/chains/88.json +++ b/_data/chains/88.json @@ -1,11 +1,16 @@ { "name": "TomoChain", - "short_name": "tomo", "chain": "TOMO", "network": "mainnet", - "chain_id": 88, - "network_id": 88, "rpc": ["https://core.tomocoin.io"], "faucets": [], - "info_url": "https://tomocoin.io" -} + "nativeCurrency": { + "name": "TomoChain Ether", + "symbol": "TOMO", + "decimals": 18 + }, + "infoURL": "https://tomocoin.io", + "shortName": "tomo", + "chainId": 88, + "networkId": 88 +} \ No newline at end of file diff --git a/_data/chains/9.json b/_data/chains/9.json index 7c2ca5b4..a8cfd11e 100644 --- a/_data/chains/9.json +++ b/_data/chains/9.json @@ -1,11 +1,16 @@ { "name": "Ubiq Network Testnet", - "short_name": "tubq", "chain": "UBQ", "network": "mainnet", - "chain_id": 9, - "network_id": 2, "rpc": [], "faucets": [], - "info_url": "https://ethersocial.org" -} + "nativeCurrency": { + "name": "Ubiq Testnet Ether", + "symbol": "TUBQ", + "decimals": 18 + }, + "infoURL": "https://ethersocial.org", + "shortName": "tubq", + "chainId": 9, + "networkId": 2 +} \ No newline at end of file diff --git a/_data/chains/977.json b/_data/chains/977.json index fe8773f6..5b3803a4 100644 --- a/_data/chains/977.json +++ b/_data/chains/977.json @@ -1,14 +1,16 @@ { "name": "Nepal Blockchain Network", - "short_name": "yeti", "chain": "YETI", "network": "mainnet", - "chain_id": 977, - "network_id": 977, - "rpc": [ - "https://api.nepalblockchain.dev", - "https://api.nepalblockchain.network" - ], + "rpc": ["https://api.nepalblockchain.dev", "https://api.nepalblockchain.network"], "faucets": ["https://faucet.nepalblockchain.network"], - "info_url": "https://nepalblockchain.network" -} + "nativeCurrency": { + "name": "Nepal Blockchain Network Ether", + "symbol": "YETI", + "decimals": 18 + }, + "infoURL": "https://nepalblockchain.network", + "shortName": "yeti", + "chainId": 977, + "networkId": 977 +} \ No newline at end of file diff --git a/_data/chains/99.json b/_data/chains/99.json index b68b5934..4295cee3 100644 --- a/_data/chains/99.json +++ b/_data/chains/99.json @@ -1,11 +1,16 @@ { "name": "POA Network Core", - "short_name": "skl", "chain": "POA", "network": "core", - "chain_id": 99, - "network_id": 2, "rpc": ["https://core.poa.network"], "faucets": [], - "info_url": "https://poa.network" -} + "nativeCurrency": { + "name": "POA Network Core Ether", + "symbol": "SKL", + "decimals": 18 + }, + "infoURL": "https://poa.network", + "shortName": "skl", + "chainId": 99, + "networkId": 2 +} \ No newline at end of file diff --git a/chains.json b/chains.json index 2f9744b6..d4cf0777 100644 --- a/chains.json +++ b/chains.json @@ -2,16 +2,17 @@ layout: none permalink: chains.json --- -[{% for json in site.data.chains %}{% assign chain = json[1] %} +[{% assign chains = site.data.chains | sort %}{% for json in chains %}{% assign chain = json[1] %} { "name": "{{ chain.name }}", - "chain_id": {{ chain.chain_id }}, - "short_name": "{{ chain.short_name }}", + "chainId": {{ chain.chainId }}, + "shortName": "{{ chain.shortName }}", "chain": "{{ chain.chain }}", "network": "{{ chain.network }}", - "network_id": {{ chain.network_id }}, - "rpc": [{% for rpc in chain.rpc %}"{{ rpc }}"{% unless forloop.last %},{% endunless %}{%endfor%}], + "networkId": {{ chain.networkId }}, + "nativeCurrency": {"name":"{{chain.nativeCurrency["name"]}}","symbol":"{{chain.nativeCurrency["symbol"]}}","decimals":{{chain.nativeCurrency["decimals"]}}}, + "rpc": [{% for rpc in chain.rpc %}"{{ rpc }}"{% unless forloop.last %},{% endunless %}{%endfor%}], "faucets": [{% for faucet in chain.faucets %}"{{ faucet }}"{% unless forloop.last %},{% endunless %}{%endfor%}], - "info_url": "{{ chain.info_url }}" + "infoURL": "{{ chain.infoURL }}" }{% unless forloop.last %},{% endunless %}{% endfor %} ] diff --git a/chains.md b/chains.md index adeec9d8..81cbab4f 100644 --- a/chains.md +++ b/chains.md @@ -15,11 +15,11 @@ List of chains in block format. You can link directly to each section using the

{{ chain.name }} ({{ chain.short_name }})


diff --git a/chains_mini.json b/chains_mini.json new file mode 100644 index 00000000..f76a413e --- /dev/null +++ b/chains_mini.json @@ -0,0 +1,5 @@ +--- +layout: none +permalink: chains_mini.json +--- +[{% assign chains = site.data.chains | sort %}{% for json in chains %}{% assign chain = json[1] %}{"name":"{{chain.name}}","chainId":{{chain.chainId}},"shortName":"{{chain.shortName}}","networkId":{{chain.networkId}},"nativeCurrency":{"name":"{{chain.nativeCurrency["name"]}}","symbol":"{{chain.nativeCurrency["symbol"]}}","decimals":{{chain.nativeCurrency["decimals"]}}},"rpc":[{% for rpc in chain.rpc %}"{{rpc}}"{% unless forloop.last %},{% endunless %}{%endfor%}],"faucets":[{% for faucet in chain.faucets %}"{{faucet}}"{% unless forloop.last %},{% endunless %}{%endfor%}],"infoURL":"{{chain.infoURL}}"}{% unless forloop.last %},{% endunless %}{% endfor %}] diff --git a/index.md b/index.md index e5fd1c90..49271170 100644 --- a/index.md +++ b/index.md @@ -19,15 +19,16 @@ This table is also available as a JSON feed at [chains.json](/chains.json). Network Network ID -{% for json in site.data.chains %} +{% assign chains = site.data.chains | sort %} +{% for json in chains %} {% assign chain = json[1] %} - {{ chain.chain_id }} + {{ chain.chainId }} {{ chain.name }} - {{ chain.short_name }} + {{ chain.shortName }} {{ chain.chain }} {{ chain.network }} - {{ chain.network_id }} + {{ chain.networkId }} {% endfor %} diff --git a/src/main/kotlin/org/ethereum/lists/chains/ChainChecker.kt b/src/main/kotlin/org/ethereum/lists/chains/ChainChecker.kt index 8fbf6541..dc5f2e3e 100644 --- a/src/main/kotlin/org/ethereum/lists/chains/ChainChecker.kt +++ b/src/main/kotlin/org/ethereum/lists/chains/ChainChecker.kt @@ -8,27 +8,28 @@ import java.math.BigInteger val all_fields = listOf( "name", - "short_name", + "shortName", "chain", "network", - "chain_id", - "network_id", + "chainId", + "networkId", "rpc", "faucets", - "info_url" + "infoURL", + "nativeCurrency" ) -class FileNameMustMatchChainId : Exception("chain_id must match the filename") +class FileNameMustMatchChainId : Exception("chainId must match the filename") class ExtensionMustBeJSON : Exception("filename extension must be json") class ShouldHaveNoExtraFields(fields: Set) : Exception("should have no extra field $fields") class ShouldHaveNoMissingFields(fields: Set) : Exception("missing field(s) $fields") class RPCMustBeList : Exception("rpc must be a list") class RPCMustBeListOfStrings : Exception("rpc must be a list of strings") -fun checkChain(it: File) { +fun checkChain(it: File, connectRPC: Boolean) { println("processing $it") val jsonObject = Klaxon().parseJsonObject(it.reader()) - val chainAsLong = getNumber(jsonObject, "chain_id") + val chainAsLong = getNumber(jsonObject, "chainId") if (chainAsLong != it.nameWithoutExtension.toLongOrNull()) { throw(FileNameMustMatchChainId()) @@ -38,7 +39,7 @@ fun checkChain(it: File) { throw(ExtensionMustBeJSON()) } - getNumber(jsonObject, "network_id") + getNumber(jsonObject, "networkId") val extraFields = jsonObject.map.keys.subtract(all_fields) if (extraFields.isNotEmpty()) { @@ -49,22 +50,23 @@ fun checkChain(it: File) { if (missingFields.isNotEmpty()) { throw ShouldHaveNoMissingFields(missingFields) } - - if (jsonObject["rpc"] is List<*>) { - (jsonObject["rpc"] as List<*>).forEach { - if (it !is String) { - throw(RPCMustBeListOfStrings()) - } else { - println("connecting to $it") - val ethereumRPC = EthereumRPC(it) - println("Client:" + ethereumRPC.clientVersion()?.result) - println("BlockNumber:" + ethereumRPC.blockNumber()?.result?.tryBigint()) - println("GasPrice:" + ethereumRPC.gasPrice()?.result?.tryBigint()) + if (connectRPC) { + if (jsonObject["rpc"] is List<*>) { + (jsonObject["rpc"] as List<*>).forEach { + if (it !is String) { + throw(RPCMustBeListOfStrings()) + } else { + println("connecting to $it") + val ethereumRPC = EthereumRPC(it) + println("Client:" + ethereumRPC.clientVersion()?.result) + println("BlockNumber:" + ethereumRPC.blockNumber()?.result?.tryBigint()) + println("GasPrice:" + ethereumRPC.gasPrice()?.result?.tryBigint()) + } } + println() + } else { + throw(RPCMustBeList()) } - println() - } else { - throw(RPCMustBeList()) } } @@ -78,6 +80,7 @@ fun String.tryBigint() = if (startsWith("0x")) { } else { null } + private fun getNumber(jsonObject: JsonObject, field: String): Long { return when (val chainId = jsonObject[field]) { is Int -> chainId.toLong() diff --git a/src/main/kotlin/org/ethereum/lists/chains/Main.kt b/src/main/kotlin/org/ethereum/lists/chains/Main.kt index c88778be..6c77acb9 100644 --- a/src/main/kotlin/org/ethereum/lists/chains/Main.kt +++ b/src/main/kotlin/org/ethereum/lists/chains/Main.kt @@ -6,7 +6,7 @@ import java.io.File fun main() { File("_data/chains").listFiles().forEach { - checkChain(it) + checkChain(it, false) } } diff --git a/src/test/kotlin/TheChainChecker.kt b/src/test/kotlin/TheChainChecker.kt index 54da46e9..7bebe31e 100644 --- a/src/test/kotlin/TheChainChecker.kt +++ b/src/test/kotlin/TheChainChecker.kt @@ -1,4 +1,3 @@ - import org.ethereum.lists.chains.* import org.junit.Test import java.io.File @@ -9,42 +8,42 @@ class TheChainChecker { fun shouldPassForValidChain() { val file = getFile("valid/1.json") - checkChain(file) + checkChain(file, false) } @Test(expected = FileNameMustMatchChainId::class) fun shouldFailForInvalidFilename() { val file = getFile("invalid/invalid_filename.json") - checkChain(file) + checkChain(file, false) } @Test(expected = FileNameMustMatchChainId::class) fun shouldFailForChainNotMatchingFilename() { val file = getFile("invalid/3.json") - checkChain(file) + checkChain(file, false) } @Test(expected = ShouldHaveNoExtraFields::class) fun shouldFailForExtraField() { val file = getFile("invalid/1.json") - checkChain(file) + checkChain(file, false) } @Test(expected = ShouldHaveNoMissingFields::class) fun shouldFailForMissingField() { val file = getFile("invalid/4.json") - checkChain(file) + checkChain(file, false) } @Test(expected = ExtensionMustBeJSON::class) fun shouldFailFoNonJSON() { val file = getFile("invalid/1.nojson") - checkChain(file) + checkChain(file, false) } diff --git a/src/test/resources/test_chains/invalid/1.json b/src/test/resources/test_chains/invalid/1.json index a5403951..d843a6da 100644 --- a/src/test/resources/test_chains/invalid/1.json +++ b/src/test/resources/test_chains/invalid/1.json @@ -1,15 +1,15 @@ { "name": "Ethereum Mainnet", - "short_name": "eth", + "shortName": "eth", "chain": "ETH", "network": "mainnet", - "chain_id": 1, - "network_id": 1, + "chainId": 1, + "networkId": 1, "rpc": [ "https://mainnet.infura.io/v3/${INFURA_API_KEY}", "https://api.mycryptoapi.com/eth" ], "faucets": [], - "info_url": "https://ethereum.org", + "infoURL": "https://ethereum.org", "extra_field": "should_fail" } diff --git a/src/test/resources/test_chains/invalid/1.nojson b/src/test/resources/test_chains/invalid/1.nojson index d3520800..a6483037 100644 --- a/src/test/resources/test_chains/invalid/1.nojson +++ b/src/test/resources/test_chains/invalid/1.nojson @@ -1,14 +1,14 @@ { "name": "Ethereum Mainnet", - "short_name": "eth", + "shortName": "eth", "chain": "ETH", "network": "mainnet", - "chain_id": 1, - "network_id": 1, + "chainId": 1, + "networkId": 1, "rpc": [ "https://mainnet.infura.io/v3/${INFURA_API_KEY}", "https://api.mycryptoapi.com/eth" ], "faucets": [], - "info_url": "https://ethereum.org" + "infoURL": "https://ethereum.org" } diff --git a/src/test/resources/test_chains/invalid/2.json b/src/test/resources/test_chains/invalid/2.json index d3520800..a6483037 100644 --- a/src/test/resources/test_chains/invalid/2.json +++ b/src/test/resources/test_chains/invalid/2.json @@ -1,14 +1,14 @@ { "name": "Ethereum Mainnet", - "short_name": "eth", + "shortName": "eth", "chain": "ETH", "network": "mainnet", - "chain_id": 1, - "network_id": 1, + "chainId": 1, + "networkId": 1, "rpc": [ "https://mainnet.infura.io/v3/${INFURA_API_KEY}", "https://api.mycryptoapi.com/eth" ], "faucets": [], - "info_url": "https://ethereum.org" + "infoURL": "https://ethereum.org" } diff --git a/src/test/resources/test_chains/invalid/3.json b/src/test/resources/test_chains/invalid/3.json index d3520800..a6483037 100644 --- a/src/test/resources/test_chains/invalid/3.json +++ b/src/test/resources/test_chains/invalid/3.json @@ -1,14 +1,14 @@ { "name": "Ethereum Mainnet", - "short_name": "eth", + "shortName": "eth", "chain": "ETH", "network": "mainnet", - "chain_id": 1, - "network_id": 1, + "chainId": 1, + "networkId": 1, "rpc": [ "https://mainnet.infura.io/v3/${INFURA_API_KEY}", "https://api.mycryptoapi.com/eth" ], "faucets": [], - "info_url": "https://ethereum.org" + "infoURL": "https://ethereum.org" } diff --git a/src/test/resources/test_chains/invalid/4.json b/src/test/resources/test_chains/invalid/4.json index 30e6a9c8..921d14bd 100644 --- a/src/test/resources/test_chains/invalid/4.json +++ b/src/test/resources/test_chains/invalid/4.json @@ -1,10 +1,10 @@ { "name": "Ethereum Mainnet", - "short_name": "eth", + "shortName": "eth", "chain": "ETH", "network": "mainnet", - "chain_id": 4, - "network_id": 4, + "chainId": 4, + "networkId": 4, "rpc": [ "https://mainnet.infura.io/v3/${INFURA_API_KEY}", "https://api.mycryptoapi.com/eth" diff --git a/src/test/resources/test_chains/invalid/invalid_filename.json b/src/test/resources/test_chains/invalid/invalid_filename.json index d3520800..a6483037 100644 --- a/src/test/resources/test_chains/invalid/invalid_filename.json +++ b/src/test/resources/test_chains/invalid/invalid_filename.json @@ -1,14 +1,14 @@ { "name": "Ethereum Mainnet", - "short_name": "eth", + "shortName": "eth", "chain": "ETH", "network": "mainnet", - "chain_id": 1, - "network_id": 1, + "chainId": 1, + "networkId": 1, "rpc": [ "https://mainnet.infura.io/v3/${INFURA_API_KEY}", "https://api.mycryptoapi.com/eth" ], "faucets": [], - "info_url": "https://ethereum.org" + "infoURL": "https://ethereum.org" } diff --git a/src/test/resources/test_chains/valid/1.json b/src/test/resources/test_chains/valid/1.json index d3520800..457f8964 100644 --- a/src/test/resources/test_chains/valid/1.json +++ b/src/test/resources/test_chains/valid/1.json @@ -1,14 +1,19 @@ { "name": "Ethereum Mainnet", - "short_name": "eth", + "shortName": "eth", "chain": "ETH", "network": "mainnet", - "chain_id": 1, - "network_id": 1, + "chainId": 1, + "networkId": 1, "rpc": [ "https://mainnet.infura.io/v3/${INFURA_API_KEY}", "https://api.mycryptoapi.com/eth" ], "faucets": [], - "info_url": "https://ethereum.org" + "infoURL": "https://ethereum.org", + "nativeCurrency": { + "name": "Ether", + "symbol": "ETH", + "decimals": 18 + } }