Skip to content

Commit

Permalink
Add caladan chain spec and command (#43)
Browse files Browse the repository at this point in the history
* Add calladan chain spec and command

* Add source spec

* Update evm and para ids

* Set alex identity (#46)

* set aura identity·

* set ethereum identity

* new raw chain_specs

* paranchainId is 2900

* removed invalid boot node

* para_is to 2900

* removed dev prefunded account

---------

Co-authored-by: Alessandro Siniscalchi <[email protected]>
  • Loading branch information
dastan and asiniscalchi authored Oct 10, 2023
1 parent 89a262f commit 50dfed5
Show file tree
Hide file tree
Showing 4 changed files with 234 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ownership-chain/node/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ pub fn development_config() -> ChainSpec {
endowed_accounts(),
// Give Alice root privileges
Some(hex!("f24FF3a9CF04c71Dbc94D0b566f7A27B94566cac").into()),
1000.into(),
2001.into(),
)
},
Vec::new(),
Expand All @@ -104,7 +104,7 @@ pub fn development_config() -> ChainSpec {
None,
Extensions {
relay_chain: "rococo-local".into(), // You MUST set this to the correct network!
para_id: 1000,
para_id: 2001,
},
)
}
Expand Down Expand Up @@ -132,7 +132,7 @@ pub fn local_testnet_config() -> ChainSpec {
endowed_accounts(),
// Give Alice root privileges
Some(hex!("f24FF3a9CF04c71Dbc94D0b566f7A27B94566cac").into()),
1000.into(),
2001.into(),
)
},
// Bootnodes
Expand All @@ -148,7 +148,7 @@ pub fn local_testnet_config() -> ChainSpec {
// Extensions
Extensions {
relay_chain: "rococo-local".into(), // You MUST set this to the correct network!
para_id: 1000,
para_id: 2001,
},
)
}
Expand Down Expand Up @@ -209,7 +209,7 @@ fn testnet_genesis(
transaction_payment: Default::default(),
// EVM compatibility
evm_chain_id: laos_ownership_runtime::EVMChainIdConfig {
chain_id: 1000,
chain_id: 667,
..Default::default()
},
evm: laos_ownership_runtime::EVMConfig {
Expand Down
3 changes: 3 additions & 0 deletions ownership-chain/node/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ fn load_spec(id: &str) -> std::result::Result<Box<dyn ChainSpec>, String> {
"arrakis" => Box::new(chain_spec::ChainSpec::from_json_bytes(
&include_bytes!("../../specs/arrakis-frontier.json")[..],
)?),
"caladan" => Box::new(chain_spec::ChainSpec::from_json_bytes(
&include_bytes!("../../specs/caladan-raw.json")[..],
)?),
"dev" => Box::new(chain_spec::development_config()),
"template-rococo" => Box::new(chain_spec::local_testnet_config()),
"" | "local" | "local-v" => Box::new(chain_spec::local_testnet_config()),
Expand Down
102 changes: 102 additions & 0 deletions ownership-chain/specs/caladan-raw.json

Large diffs are not rendered by default.

124 changes: 124 additions & 0 deletions ownership-chain/specs/caladan-spec.json

Large diffs are not rendered by default.

0 comments on commit 50dfed5

Please sign in to comment.