Skip to content

Commit

Permalink
add hardcoded chain spec: shell_kusama_lease2 (#160)
Browse files Browse the repository at this point in the history
* add hardcoded chain_spec.rs for registration of the new parathread

* fix parachainID

* [GA] fix matrix for new shell chain spec

* [ChainSpec] new sudo key
  • Loading branch information
clangenb authored Sep 6, 2022
1 parent 43b74f6 commit 026861c
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,9 @@ jobs:
matrix:
chain: [integritee]
config: [rococo, westend, kusama, polkadot, moonbase]
include:
- chain: shell
config: kusama-lease2
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
51 changes: 51 additions & 0 deletions polkadot-parachains/chain-specs/shell-kusama-lease2.json

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion polkadot-parachains/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ struct IntegriteeKeys;

impl IntegriteeKeys {
fn root() -> AccountId {
public_from_ss58::<sr25519::Public>("2K7GtWP55g3rETCDGLBuxbWBSaXQyCswbvEdcHFXG6fkt9RP")
public_from_ss58::<sr25519::Public>("2JcYbKMfEGidntYP1LpPWsCMxFvUbjaPyipRViat4Sn5nuqm")
.into()
}
fn authorities() -> Vec<AuraId> {
Expand Down Expand Up @@ -298,6 +298,10 @@ pub fn shell_kusama_config() -> Result<ShellChainSpec, String> {
ShellChainSpec::from_json_bytes(&include_bytes!("../chain-specs/integritee-kusama.json")[..])
}

pub fn shell_kusama_lease2_config() -> Result<ShellChainSpec, String> {
ShellChainSpec::from_json_bytes(&include_bytes!("../chain-specs/shell-kusama-lease2.json")[..])
}

pub fn shell_polkadot_config() -> Result<ShellChainSpec, String> {
ShellChainSpec::from_json_bytes(&include_bytes!("../chain-specs/integritee-polkadot.json")[..])
}
Expand Down
6 changes: 4 additions & 2 deletions polkadot-parachains/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ use crate::{
chain_spec,
chain_spec::{
integritee_chain_spec, integritee_moonbase_config, shell_chain_spec, shell_kusama_config,
shell_polkadot_config, shell_rococo_config, shell_westend_config, GenesisKeys, RelayChain,
ShellChainSpec,
shell_kusama_lease2_config, shell_polkadot_config, shell_rococo_config,
shell_westend_config, GenesisKeys, RelayChain, ShellChainSpec,
},
cli::{Cli, RelayChainCli, Subcommand},
service::{
Expand Down Expand Up @@ -77,6 +77,8 @@ fn load_spec(
"integritee-kusama" => Box::new(shell_kusama_config()?),
"integritee-polkadot" => Box::new(shell_polkadot_config()?),
"integritee-moonbase" => Box::new(integritee_moonbase_config()?),
// chain-spec that has been registered for the next kusama slot lease
"shell-kusama-lease2" => Box::new(shell_kusama_lease2_config()?),

// live config initialize
"integritee-rococo-fresh" => Box::new(shell_chain_spec(ROCOCO_PARA_ID.into(), GenesisKeys::Integritee, RelayChain::Rococo)),
Expand Down
1 change: 1 addition & 0 deletions scripts/update_hardcoded_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"integritee-kusama",
"integritee-polkadot",
"integritee-moonbase",
# "shell-kusama-lease2", # enable if you want to change the data for registration.
]
COLLATOR = "target/release/integritee-collator"
RES_DIR = "polkadot-parachains/chain-specs"
Expand Down

0 comments on commit 026861c

Please sign in to comment.