Moved all chains to individual json, updated loops

This commit is contained in:
Boris Mann 2019-04-10 22:37:43 -07:00
parent 84af1f7ac5
commit 0a4549f86c
40 changed files with 306 additions and 294 deletions

View File

@ -1,290 +0,0 @@
[
{
"name": "Ethereum Mainnet",
"short_name": "eth",
"chain": "ETH",
"network": "mainnet",
"chain_id": 1,
"network_id": 1
},
{
"name": "Expanse Network",
"short_name": "exp",
"chain": "EXP",
"network": "mainnet",
"chain_id": 2,
"network_id": 1
},
{
"name": "Ethereum Testnet Ropsten",
"short_name": "rop",
"chain": "ETH",
"network": "ropsten",
"chain_id": 3,
"network_id": 3
},
{
"name": "Ethereum Testnet Rinkeby",
"short_name": "rin",
"chain": "ETH",
"network": "rinkeby",
"chain_id": 4,
"network_id": 4
},
{
"name": "Ethereum Testnet Görli",
"short_name": "gor",
"chain": "ETH",
"network": "goerli",
"chain_id": 5,
"network_id": 5
},
{
"name": "Ethereum Classic Testnet Kotti",
"short_name": "kot",
"chain": "ETC",
"network": "kotti",
"chain_id": 6,
"network_id": 6
},
{
"name": "Ubiq Network Mainnet",
"short_name": "ubq",
"chain": "UBQ",
"network": "mainnet",
"chain_id": 8,
"network_id": 1
},
{
"name": "Ubiq Network Testnet",
"short_name": "tubq",
"chain": "UBQ",
"network": "mainnet",
"chain_id": 9,
"network_id": 2
},
{
"name": "Ethereum Social",
"short_name": "etsc",
"chain": "ETSC",
"network": "mainnet",
"chain_id": 28,
"network_id": 1
},
{
"name": "Rootstock Mainnet",
"short_name": "rsk",
"chain": "RSK",
"network": "mainnet",
"chain_id": 30,
"network_id": 1
},
{
"name": "Rootstock Testnet",
"short_name": "trsk",
"chain": "RSK",
"network": "testnet",
"chain_id": 30,
"network_id": 2
},
{
"name": "GoChain",
"short_name": "go",
"chain": "GO",
"network": "mainnet",
"chain_id": 60,
"network_id": 60
},
{
"name": "Ethereum Classic Mainnet",
"short_name": "etc",
"chain": "ETC",
"network": "mainnet",
"chain_id": 61,
"network_id": 1
},
{
"name": "Ethereum Classic Testnet",
"short_name": "tetc",
"chain": "ETC",
"network": "testnet",
"chain_id": 62,
"network_id": 2
},
{
"name": "Ellaism",
"short_name": "ella",
"chain": "ELLA",
"network": "mainnet",
"chain_id": 64,
"network_id": 64
},
{
"name": "Mix",
"short_name": "mix",
"chain": "MIX",
"network": "mainnet",
"chain_id": 76,
"network_id": 76
},
{
"name": "POA Network Sokol",
"short_name": "poa",
"chain": "POA",
"network": "sokol",
"chain_id": 77,
"network_id": 1
},
{
"name": "POA Network Core",
"short_name": "skl",
"chain": "POA",
"network": "core",
"chain_id": 99,
"network_id": 2
},
{
"name": "xDAI Chain",
"short_name": "dai",
"chain": "DAI",
"network": "mainnet",
"chain_id": 100,
"network_id": 1
},
{
"name": "Callisto Mainnet",
"short_name": "clo",
"chain": "CLO",
"network": "mainnet",
"chain_id": 820,
"network_id": 1
},
{
"name": "Callisto Testnet",
"short_name": "tclo",
"chain": "CLO",
"network": "testnet",
"chain_id": 821,
"network_id": 2
},
{
"name": "Atheios",
"short_name": "ath",
"chain": "ATH",
"network": "mainnet",
"chain_id": 1620,
"network_id": 11235813
},
{
"name": "EtherGem",
"short_name": "egem",
"chain": "EGEM",
"network": "mainnet",
"chain_id": 1987,
"network_id": 1987
},
{
"name": "EOS Classic",
"short_name": "eosc",
"chain": "EOSC",
"network": "mainnet",
"chain_id": 2018,
"network_id": 1
},
{
"name": "ARTIS sigma1",
"short_name": "ats",
"chain": "ARTIS",
"network": "sigma1",
"chain_id": 246529,
"network_id": 246529
},
{
"name": "ARTIS tau1",
"short_name": "ats",
"chain": "ARTIS",
"network": "tau1",
"chain_id": 246785,
"network_id": 246785
},
{
"name": "TomoChain",
"short_name": "tomo",
"chain": "TOMO",
"network": "mainnet",
"chain_id": 88,
"network_id": 88
},
{
"name": "Webchain",
"short_name": "web",
"chain": "WEB",
"network": "mainnet",
"chain_id": 101,
"network_id": 37129
},
{
"name": "EtherInc",
"short_name": "web",
"chain": "WEB",
"network": "mainnet",
"chain_id": 101,
"network_id": 1
},
{
"name": "Ethersocial Network",
"short_name": "esn",
"chain": "ESN",
"network": "mainnet",
"chain_id": 31102,
"network_id": 1
},
{
"name": "Akaroma",
"short_name": "aka",
"chain": "AKA",
"network": "mainnet",
"chain_id": 200625,
"network_id": 200625
},
{
"name": "Ether-1",
"short_name": "etho",
"chain": "ETHO",
"network": "mainnet",
"chain_id": 1313114,
"network_id": 1313114
},
{
"name": "Musicoin",
"short_name": "music",
"chain": "MUSIC",
"network": "mainnet",
"chain_id": 7762959,
"network_id": 7762959
},
{
"name": "IOLite",
"short_name": "ilt",
"chain": "ILT",
"network": "mainnet",
"chain_id": 18289463,
"network_id": 18289463
},
{
"name": "Pirl",
"short_name": "pirl",
"chain": "PIRL",
"network": "mainnet",
"chain_id": 3125659152,
"network_id": 3125659152
},
{
"name": "Teslafunds",
"short_name": "tsf",
"chain": "TSF",
"network": "mainnet",
"chain_id": 1856,
"network_id": 1856
}
]

View File

@ -0,0 +1,8 @@
{
"name": "Akaroma",
"short_name": "aka",
"chain": "AKA",
"network": "mainnet",
"chain_id": 200625,
"network_id": 200625
}

View File

@ -0,0 +1,8 @@
{
"name": "ARTIS sigma1",
"short_name": "ats",
"chain": "ARTIS",
"network": "sigma1",
"chain_id": 246529,
"network_id": 246529
}

View File

@ -0,0 +1,8 @@
{
"name": "ARTIS tau1",
"short_name": "ats",
"chain": "ARTIS",
"network": "tau1",
"chain_id": 246785,
"network_id": 246785
}

View File

@ -0,0 +1,8 @@
{
"name": "Atheios",
"short_name": "ath",
"chain": "ATH",
"network": "mainnet",
"chain_id": 1620,
"network_id": 11235813
}

View File

@ -0,0 +1,8 @@
{
"name": "Callisto Mainnet",
"short_name": "clo",
"chain": "CLO",
"network": "mainnet",
"chain_id": 820,
"network_id": 1
}

View File

@ -0,0 +1,8 @@
{
"name": "Callisto Testnet",
"short_name": "tclo",
"chain": "CLO",
"network": "testnet",
"chain_id": 821,
"network_id": 2
}

View File

@ -0,0 +1,8 @@
{
"name": "Ellaism",
"short_name": "ella",
"chain": "ELLA",
"network": "mainnet",
"chain_id": 64,
"network_id": 64
}

View File

@ -0,0 +1,8 @@
{
"name": "EOS Classic",
"short_name": "eosc",
"chain": "EOSC",
"network": "mainnet",
"chain_id": 2018,
"network_id": 1
}

View File

@ -0,0 +1,8 @@
{
"name": "Ethereum Classic Mainnet",
"short_name": "etc",
"chain": "ETC",
"network": "mainnet",
"chain_id": 61,
"network_id": 1
}

View File

@ -0,0 +1,8 @@
{
"name": "Ethereum Classic Testnet",
"short_name": "tetc",
"chain": "ETC",
"network": "testnet",
"chain_id": 62,
"network_id": 2
}

8
_data/chains/ether1.json Normal file
View File

@ -0,0 +1,8 @@
{
"name": "Ether-1",
"short_name": "etho",
"chain": "ETHO",
"network": "mainnet",
"chain_id": 1313114,
"network_id": 1313114
}

View File

@ -0,0 +1,8 @@
{
"name": "Ethereum Mainnet",
"short_name": "eth",
"chain": "ETH",
"network": "mainnet",
"chain_id": 1,
"network_id": 1
}

View File

@ -0,0 +1,8 @@
{
"name": "EtherGem",
"short_name": "egem",
"chain": "EGEM",
"network": "mainnet",
"chain_id": 1987,
"network_id": 1987
}

View File

@ -0,0 +1,8 @@
{
"name": "EtherInc",
"short_name": "web",
"chain": "WEB",
"network": "mainnet",
"chain_id": 101,
"network_id": 1
}

View File

@ -0,0 +1,8 @@
{
"name": "Ethersocial Network",
"short_name": "esn",
"chain": "ESN",
"network": "mainnet",
"chain_id": 31102,
"network_id": 1
}

View File

@ -0,0 +1,8 @@
{
"name": "Ethereum Social",
"short_name": "etsc",
"chain": "ETSC",
"network": "mainnet",
"chain_id": 28,
"network_id": 1
}

View File

@ -0,0 +1,8 @@
{
"name": "Expanse Network",
"short_name": "exp",
"chain": "EXP",
"network": "mainnet",
"chain_id": 2,
"network_id": 1
}

View File

@ -0,0 +1,8 @@
{
"name": "GoChain",
"short_name": "go",
"chain": "GO",
"network": "mainnet",
"chain_id": 60,
"network_id": 60
}

8
_data/chains/goerli.json Normal file
View File

@ -0,0 +1,8 @@
{
"name": "Ethereum Testnet Görli",
"short_name": "gor",
"chain": "ETH",
"network": "goerli",
"chain_id": 5,
"network_id": 5
}

8
_data/chains/iolite.json Normal file
View File

@ -0,0 +1,8 @@
{
"name": "IOLite",
"short_name": "ilt",
"chain": "ILT",
"network": "mainnet",
"chain_id": 18289463,
"network_id": 18289463
}

8
_data/chains/kotti.json Normal file
View File

@ -0,0 +1,8 @@
{
"name": "Ethereum Classic Testnet Kotti",
"short_name": "kot",
"chain": "ETC",
"network": "kotti",
"chain_id": 6,
"network_id": 6
}

8
_data/chains/mix.json Normal file
View File

@ -0,0 +1,8 @@
{
"name": "Mix",
"short_name": "mix",
"chain": "MIX",
"network": "mainnet",
"chain_id": 76,
"network_id": 76
}

View File

@ -0,0 +1,8 @@
{
"name": "Musicoin",
"short_name": "music",
"chain": "MUSIC",
"network": "mainnet",
"chain_id": 7762959,
"network_id": 7762959
}

9
_data/chains/pirl.json Normal file
View File

@ -0,0 +1,9 @@
{
"name": "Pirl",
"short_name": "pirl",
"chain": "PIRL",
"network": "mainnet",
"chain_id": 3125659152,
"network_id": 3125659152
}

8
_data/chains/poa.json Normal file
View File

@ -0,0 +1,8 @@
{
"name": "POA Network Core",
"short_name": "skl",
"chain": "POA",
"network": "core",
"chain_id": 99,
"network_id": 2
}

View File

@ -0,0 +1,8 @@
{
"name": "POA Network Sokol",
"short_name": "poa",
"chain": "POA",
"network": "sokol",
"chain_id": 77,
"network_id": 1
}

View File

@ -0,0 +1,8 @@
{
"name": "Ethereum Testnet Rinkeby",
"short_name": "rin",
"chain": "ETH",
"network": "rinkeby",
"chain_id": 4,
"network_id": 4
}

View File

@ -0,0 +1,8 @@
{
"name": "Rootstock Mainnet",
"short_name": "rsk",
"chain": "RSK",
"network": "mainnet",
"chain_id": 30,
"network_id": 1
}

View File

@ -0,0 +1,8 @@
{
"name": "Rootstock Testnet",
"short_name": "trsk",
"chain": "RSK",
"network": "testnet",
"chain_id": 30,
"network_id": 2
}

View File

@ -0,0 +1,8 @@
{
"name": "Ethereum Testnet Ropsten",
"short_name": "rop",
"chain": "ETH",
"network": "ropsten",
"chain_id": 3,
"network_id": 3
}

View File

@ -0,0 +1,8 @@
{
"name": "Teslafunds",
"short_name": "tsf",
"chain": "TSF",
"network": "mainnet",
"chain_id": 1856,
"network_id": 1856
}

View File

@ -0,0 +1,8 @@
{
"name": "TomoChain",
"short_name": "tomo",
"chain": "TOMO",
"network": "mainnet",
"chain_id": 88,
"network_id": 88
}

8
_data/chains/ubiq.json Normal file
View File

@ -0,0 +1,8 @@
{
"name": "Ubiq Network Mainnet",
"short_name": "ubq",
"chain": "UBQ",
"network": "mainnet",
"chain_id": 8,
"network_id": 1
}

View File

@ -0,0 +1,8 @@
{
"name": "Ubiq Network Testnet",
"short_name": "tubq",
"chain": "UBQ",
"network": "mainnet",
"chain_id": 9,
"network_id": 2
}

View File

@ -0,0 +1,8 @@
{
"name": "Webchain",
"short_name": "web",
"chain": "WEB",
"network": "mainnet",
"chain_id": 101,
"network_id": 37129
}

8
_data/chains/xdai.json Normal file
View File

@ -0,0 +1,8 @@
{
"name": "xDAI Chain",
"short_name": "dai",
"chain": "DAI",
"network": "mainnet",
"chain_id": 100,
"network_id": 1
}

View File

@ -2,4 +2,13 @@
layout: none
permalink: chains.json
---
{% include_relative _data/chains.json %}
[{% for json in site.data.chains %}{% assign chain = json[1] %}
{
"name": "{{ chain.name }}",
"chain_id": "{{ chain.chain_id }}",
"short_name": "{{ chain.short_name }}",
"chain": "{{ chain.chain }}",
"network": "{{ chain.network }}",
"network_id": "{{ chain.network_id }}"
}{% unless forloop.last %},{% endunless %}{% endfor %}
]

View File

@ -7,7 +7,9 @@ nav_order: 10
List of chains in block format. You can link directly to each section using the header name:
{% for chain in site.data.chains %}
{% for json in site.data.chains %}
{% assign chain = json[1] %}
{% assign chainlink = chain.name | downcase | replace: " ", "-" | append: "-" | append: chain.short_name | append: "-" | append: chain.network_id %}
<a name="{{ chainlink }}"/>
<h2><a href="#{{ chainlink }}">{{ chain.name }} ({{ chain.short_name }})</a></h2>
@ -17,6 +19,7 @@ List of chains in block format. You can link directly to each section using the
<li>Chain ID: {{ chain.chain_id }}</li>
<li>Network: {{ chain.network }}</li>
<li>Network ID: {{ chain.network_id }}</li>
<li>File: <pre style="display: inline">{{ json[0] }}.json</pre> </li>
</ul>
<hr />
{% endfor %}

View File

@ -6,7 +6,7 @@ nav_order: 1
# EVM Networks
A list of EVM networks.
A list of EVM networks. Wallets and Web3 middleware providers should be able to use the appropriate Chain ID and Network ID to connect to the correct chain.
This table is also available as a JSON feed at [chains.json](/chains.json).
@ -19,7 +19,8 @@ This table is also available as a JSON feed at [chains.json](/chains.json).
<th>Network</th>
<th>Network ID</th>
</tr>
{% for chain in site.data.chains %}
{% for json in site.data.chains %}
{% assign chain = json[1] %}
<tr>
<td>{{ chain.chain_id }}</td>
<td>{{ chain.name }}</td>