Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ jobs:
fail-fast: false
matrix:
chain: [integritee]
config: [rococo, westend, kusama, polkadot, moonbase]
config: [rococo, westend, kusama, polkadot, moonbase, shell-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.

4 changes: 4 additions & 0 deletions polkadot-parachains/src/chain_spec.rs
Original file line number Diff line number Diff line change
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