Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add hardcoded chain spec: shell_kusama_lease2 #160

Merged
merged 4 commits into from
Sep 6, 2022
Merged
Show file tree
Hide file tree
Changes from all 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
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