Skip to content

Commit

Permalink
add zombienet config for rococo+integritee+assethub (#242)
Browse files Browse the repository at this point in the history
* add zombienet config for rococo+integritee+assethub

* working setup to run worker

* demo works
  • Loading branch information
brenzi authored Dec 3, 2023
1 parent dd4609e commit c6af494
Show file tree
Hide file tree
Showing 4 changed files with 142 additions and 4 deletions.
8 changes: 5 additions & 3 deletions polkadot-parachains/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
#![allow(clippy::inconsistent_digit_grouping)]

use cumulus_primitives_core::ParaId;
use parachain_runtime::{CouncilConfig, DemocracyConfig, TechnicalCommitteeConfig, TeerexConfig};
use parachain_runtime::{
CouncilConfig, DemocracyConfig, TechnicalCommitteeConfig, TeerexConfig, TEER,
};
use parachains_common::{AccountId, AuraId};
use sc_chain_spec::{ChainSpecExtension, ChainSpecGroup};
use sc_service::{ChainType, GenericChainSpec};
Expand Down Expand Up @@ -222,7 +224,7 @@ fn integritee_genesis_config(
.to_vec(),
},
balances: parachain_runtime::BalancesConfig {
balances: endowed_accounts.iter().cloned().map(|k| (k, 10__000_000_000_000)).collect(),
balances: endowed_accounts.iter().cloned().map(|k| (k, 1_000 * TEER)).collect(),
},
democracy: DemocracyConfig::default(),
council: CouncilConfig { phantom: Default::default(), members: vec![root_key.clone()] },
Expand Down Expand Up @@ -255,7 +257,7 @@ fn shell_genesis_config(
.to_vec(),
},
balances: shell_runtime::BalancesConfig {
balances: endowed_accounts.iter().cloned().map(|k| (k, 10__000_000_000_000)).collect(),
balances: endowed_accounts.iter().cloned().map(|k| (k, 10 * TEER)).collect(),
},
sudo: shell_runtime::SudoConfig { key: Some(root_key) },
vesting: Default::default(),
Expand Down
68 changes: 68 additions & 0 deletions zombienet/rococo-local-with-integritee-and-asset-hub.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
[settings]
timeout = 10000

[relaychain]
default_command = "~/bin/polkadot-v0.9.42"
default_args = [ "-lparachain=debug" ]
chain = "rococo-local"

[[relaychain.nodes]]
name = "alice"
validator = true
ws_port = 9999

[[relaychain.nodes]]
name = "bob"
validator = true
ws_port = 9988

[[relaychain.nodes]]
name = "charlie"
validator = true
ws_port = 9977

[[parachains]]
id = 2015
addToGenesis = true
cumulus_based = true
chain = "integritee-rococo-local-dev"

[[parachains.collators]]
name = "integritee-collator-1"
command = "./target/release/integritee-collator"
ws_port = 9944

[[parachains.collators]]
name = "integritee-collator-2"
command = "./target/release/integritee-collator"
ws_port = 9945

[[parachains]]
id = 1000
addToGenesis = true
cumulus_based = true
chain = "statemine-local"

[[parachains.collators]]
name = "asset-hub-collator-1"
validator = true
command = "~/bin/polkadot-parachain-v0.9.42"
ws_port = 9954

[[parachains.collators]]
name = "asset-hub-collator-2"
validator = true
command = "~/bin/polkadot-parachain-v0.9.42"
ws_port = 9955

[[hrmp_channels]]
sender = 2015
recipient = 1000
max_capacity = 8
max_message_size = 512

[[hrmp_channels]]
sender = 1000
recipient = 2015
max_capacity = 8
max_message_size = 512
2 changes: 1 addition & 1 deletion zombienet/rococo-local-with-integritee-and-shell.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ timeout = 10000

[relaychain]
chain = "rococo-local"
default_command = "~/bin/polkadot-v0.9.43"
default_command = "~/bin/polkadot-v0.9.42"
default_args = [ "-lparachain=debug" ]

[[relaychain.nodes]]
Expand Down
68 changes: 68 additions & 0 deletions zombienet/rococo-local-with-privacy-sidechain-demo-setup.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
[settings]
timeout = 10000

[relaychain]
default_command = "~/bin/polkadot-v0.9.42"
default_args = [ "-lparachain=debug" ]
chain = "rococo-local"

[[relaychain.nodes]]
name = "alice"
validator = true
ws_port = 9999

[[relaychain.nodes]]
name = "bob"
validator = true
ws_port = 9988

[[relaychain.nodes]]
name = "charlie"
validator = true
ws_port = 9977

[[parachains]]
id = 2015
addToGenesis = true
cumulus_based = true
chain = "integritee-rococo-local-dev"

[[parachains.collators]]
name = "integritee-collator-1"
command = "./target/release/integritee-collator"
ws_port = 9944

[[parachains.collators]]
name = "integritee-collator-2"
command = "./target/release/integritee-collator"
ws_port = 9945

[[parachains]]
id = 1000
addToGenesis = true
cumulus_based = true
chain = "integritee-rococo-local-dev"

[[parachains.collators]]
name = "asset-hub-collator-1"
validator = true
command = "./target/release/integritee-collator"
ws_port = 9954

[[parachains.collators]]
name = "asset-hub-collator-2"
validator = true
command = "./target/release/integritee-collator"
ws_port = 9955

[[hrmp_channels]]
sender = 2015
recipient = 1000
max_capacity = 8
max_message_size = 512

[[hrmp_channels]]
sender = 1000
recipient = 2015
max_capacity = 8
max_message_size = 512

0 comments on commit c6af494

Please sign in to comment.