Skip to content

Commit

Permalink
export chainspecs
Browse files Browse the repository at this point in the history
  • Loading branch information
Szegoo committed Sep 26, 2024
1 parent 31011a1 commit 47e1fc2
Show file tree
Hide file tree
Showing 4 changed files with 240 additions and 5 deletions.
126 changes: 126 additions & 0 deletions node/src/chain_spec/exported/regionx-paseo.json

Large diffs are not rendered by default.

109 changes: 109 additions & 0 deletions node/src/chain_spec/exported/regionx-paseo.raw.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions node/src/chain_spec/paseo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ pub fn development_config(id: u32) -> ChainSpec<paseo_runtime::RuntimeGenesisCon
ChainSpec::builder(
paseo_runtime::WASM_BINARY.expect("WASM binary was not built, please build it!"),
Extensions {
relay_chain: "rococo-local".into(),
relay_chain: "paseo-local".into(),
// You MUST set this to the correct network!
para_id: id,
},
Expand Down Expand Up @@ -119,7 +119,7 @@ pub fn local_testnet_config(id: u32) -> ChainSpec<paseo_runtime::RuntimeGenesisC
ChainSpec::builder(
paseo_runtime::WASM_BINARY.expect("WASM binary was not built, please build it!"),
Extensions {
relay_chain: "rococo-local".into(),
relay_chain: "paseo-local".into(),
// You MUST set this to the correct network!
para_id: id,
},
Expand Down
6 changes: 3 additions & 3 deletions node/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ fn load_spec(id: &str) -> std::result::Result<Box<dyn ChainSpec>, String> {
Ok(match id {
// TODO: Para Id
"regionx-paseo" => Box::new(chain_spec::paseo::paseo_config(2000)),
"regionx-paseo-dev" => Box::new(chain_spec::paseo::development_config(2000)),
"regionx-paseo-dev" | "" => Box::new(chain_spec::paseo::development_config(2000)),
"regionx-paseo-local" => Box::new(chain_spec::paseo::local_testnet_config(2000)),
"cocos" => Box::new(chain_spec::cocos::cocos_config(4479)),
"cocos-dev" | "dev" | "" => Box::new(chain_spec::cocos::development_config(2000)),
"cocos-local" | "local" => Box::new(chain_spec::cocos::local_testnet_config(2000)),
"cocos-dev" => Box::new(chain_spec::cocos::development_config(2000)),
"cocos-local" => Box::new(chain_spec::cocos::local_testnet_config(2000)),
path =>
Box::new(chain_spec::ChainSpec::<cocos_runtime::RuntimeGenesisConfig>::from_json_file(
std::path::PathBuf::from(path),
Expand Down

0 comments on commit 47e1fc2

Please sign in to comment.