Skip to content

Commit 477c414

Browse files
Merge branch 'release/devnet' into develop
2 parents 5bca3c4 + 0d12dea commit 477c414

File tree

6 files changed

+17
-3
lines changed

6 files changed

+17
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ pallet-proxy = { git = "https://github.com/paritytech/polkadot-sdk", default-fea
111111
pallet-preimage = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-polkadot-v1.11.0" }
112112
pallet-scheduler = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-polkadot-v1.11.0" }
113113
pallet-session = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-polkadot-v1.11.0" }
114+
pallet-sudo = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-polkadot-v1.11.0" }
114115
pallet-timestamp = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-polkadot-v1.11.0" }
115116
pallet-transaction-payment = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-polkadot-v1.11.0" }
116117
pallet-transaction-payment-rpc = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-polkadot-v1.11.0" }

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ To run a full network with multiple NeuroWeb nodes (collators and non-collators)
4747
#### Run A Relay Chain
4848

4949
To start a relay chain we recommend reading and following instructions in [Cumulus Workshop](https://docs.substrate.io/tutorials/build-a-parachain/prepare-a-local-relay-chain/).
50-
5150
NeuroWeb is currently compatible with Polkadot v1.11.0 version.
5251

5352
#### Parachain Nodes (Collators)

node/src/chain_spec.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,10 @@ fn testnet_genesis(
222222
safe_xcm_version: Some(SAFE_XCM_VERSION),
223223
..Default::default()
224224
},
225+
sudo: neuroweb_runtime::SudoConfig {
226+
// Assign network admin rights.
227+
key: Some(get_account_id_from_seed::<sr25519::Public>("Alice")),
228+
},
225229
vesting: Default::default(),
226230
treasury: Default::default(),
227231
evm: EVMConfig {

runtime/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ pallet-multisig = { workspace = true }
3737
pallet-proxy = { workspace = true }
3838
pallet-scheduler = { workspace = true }
3939
pallet-session = { workspace = true }
40+
pallet-sudo = { workspace = true }
4041
pallet-timestamp = { workspace = true }
4142
pallet-transaction-payment = { workspace = true }
4243
pallet-transaction-payment-rpc-runtime-api = { workspace = true }
@@ -125,6 +126,7 @@ std = [
125126
"frame-support/std",
126127
"frame-system-rpc-runtime-api/std",
127128
"frame-system/std",
129+
"pallet-sudo/std",
128130
"pallet-assets/std",
129131
"pallet-aura/std",
130132
"pallet-authorship/std",

runtime/src/lib.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ impl<F: FindAuthor<u32>> FindAuthor<H160> for FindAuthorTruncated<F> {
770770
}
771771

772772
parameter_types! {
773-
pub const ChainId: u64 = 2043;
773+
pub const ChainId: u64 = 2160;
774774
pub BlockGasLimit: U256 = U256::from(NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT.ref_time() / WEIGHT_PER_GAS);
775775
pub PrecompilesValue: FrontierPrecompiles<Runtime> = FrontierPrecompiles::<_>::new();
776776
pub WeightPerGas: Weight = Weight::from_parts(WEIGHT_PER_GAS, 0);
@@ -1183,6 +1183,11 @@ impl pallet_parachain_staking::Config for Runtime {
11831183
type WeightInfo = weights::pallet_parachain_staking::WeightInfo<Runtime>;
11841184
}
11851185

1186+
impl pallet_sudo::Config for Runtime {
1187+
type RuntimeEvent = RuntimeEvent;
1188+
type RuntimeCall = RuntimeCall;
1189+
type WeightInfo = pallet_sudo::weights::SubstrateWeight<Runtime>;
1190+
}
11861191

11871192
// Create the runtime by composing the FRAME pallets that were previously configured.
11881193
construct_runtime!(
@@ -1235,6 +1240,9 @@ construct_runtime!(
12351240
Council: pallet_collective::<Instance1> = 62,
12361241
Democracy: pallet_democracy = 63,
12371242
Identity: pallet_identity = 64,
1243+
1244+
// Temporary.
1245+
Sudo: pallet_sudo = 255,
12381246
}
12391247
);
12401248

@@ -1812,7 +1820,6 @@ impl_runtime_apis! {
18121820
fn get_preset(id: &Option<sp_genesis_builder::PresetId>) -> Option<Vec<u8>> {
18131821
get_preset::<RuntimeGenesisConfig>(id, |_| None)
18141822
}
1815-
18161823
fn preset_names() -> Vec<sp_genesis_builder::PresetId> {
18171824
vec![]
18181825
}

0 commit comments

Comments
 (0)