Add raw chainspecs for Westmint and Statemine (#470)

* add raw chainspecs

* rename chain specs

* add statemine to accepted --chain values

* fix up westmint chainspec

* fix up westmint chainspec

* add token symbol and decimals to statemine chain spec

Co-authored-by: Alexander Popiak <alexander.popiak@parity.io>
This commit is contained in:
e.g. magical unicorn
2021-06-04 15:12:06 +02:00
committed by GitHub
parent 5eeb06c583
commit e9a9d6bfd0
3 changed files with 49 additions and 12 deletions
File diff suppressed because one or more lines are too long
+7 -8
View File
@@ -1,21 +1,20 @@
{
"name": "Westmint",
"id": "shell",
"id": "westmint",
"chainType": "Live",
"bootNodes": [
"/ip4/35.204.21.205/tcp/30334/p2p/12D3KooWLjaXWhNTSiRVFbTJCKLRWt9XXHLGVnAFtxvnExKkVPqn",
"/ip4/34.141.171.170/tcp/30334/p2p/12D3KooWBNy2Jdrjv2P7sdfb1mzH1AGzwjip5rW4N2Ft1T3Hdq5c",
"/ip4/34.141.221.252/tcp/30334/p2p/12D3KooWC9YYdjQLwxTNVda6t4nmjAZG37gaRZLNi4Zuhr9xUveW",
"/ip4/34.90.92.174/tcp/30334/p2p/12D3KooWQcXpUyVqwC2zJkwECCC7ttLCUCLTjnbGxTVfhSgmH2sD"
],
"/ip4/35.204.21.205/tcp/30334/p2p/12D3KooWLjaXWhNTSiRVFbTJCKLRWt9XXHLGVnAFtxvnExKkVPqn",
"/ip4/34.141.171.170/tcp/30334/p2p/12D3KooWBNy2Jdrjv2P7sdfb1mzH1AGzwjip5rW4N2Ft1T3Hdq5c",
"/ip4/34.141.221.252/tcp/30334/p2p/12D3KooWC9YYdjQLwxTNVda6t4nmjAZG37gaRZLNi4Zuhr9xUveW",
"/ip4/34.90.92.174/tcp/30334/p2p/12D3KooWQcXpUyVqwC2zJkwECCC7ttLCUCLTjnbGxTVfhSgmH2sD"
],
"telemetryEndpoints": null,
"protocolId": null,
"relay_chain": "westend",
"properties": {
"tokenDecimals": 12,
"tokenSymbol": "WND"
},
"relay_chain": "westend",
"para_id": 1000,
"consensusEngine": null,
"lightSyncState": null,
+3 -4
View File
@@ -99,10 +99,9 @@ fn load_spec(
// the chain spec as used for generating the upgrade genesis values
"statemine-genesis" => Box::new(chain_spec::statemine_config(para_id)),
// the shell-based chain spec as used for syncing
// TODO: enable once the chain spec is ready and available
// "statemine" => Box::new(chain_spec::ChainSpec::from_json_bytes(
// &include_bytes!("../res/statemine.json")[..],
// )?),
"statemine" => Box::new(chain_spec::ChainSpec::from_json_bytes(
&include_bytes!("../res/statemine.json")[..],
)?),
"westmint-dev" => Box::new(chain_spec::westmint_development_config(para_id)),
"westmint-local" => Box::new(chain_spec::westmint_local_config(para_id)),
// the chain spec as used for generating the upgrade genesis values