From 2fd92931d91eb89237a28df279d3deb4e2d4e1d8 Mon Sep 17 00:00:00 2001 From: NZT48 Date: Wed, 19 Jul 2023 01:32:18 +0000 Subject: [PATCH 1/3] Bump runtime version for Alphanet to 113 --- runtime/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index ff7a159..e61811c 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -250,7 +250,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("origintrail-parachain"), impl_name: create_runtime_str!("origintrail-parachain"), authoring_version: 1, - spec_version: 112, + spec_version: 113, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 1, From 69c0d62410e8f1dcb910f7566e95858d4230966c Mon Sep 17 00:00:00 2001 From: NZT48 Date: Sat, 22 Jul 2023 01:07:27 +0000 Subject: [PATCH 2/3] Disable sudo in chain_spec --- node/src/chain_spec.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/node/src/chain_spec.rs b/node/src/chain_spec.rs index f91d248..ce9552d 100644 --- a/node/src/chain_spec.rs +++ b/node/src/chain_spec.rs @@ -1,6 +1,6 @@ use cumulus_primitives_core::ParaId; use origintrail_parachain_runtime::{AccountId, AuraId, - EVMConfig, EthereumConfig, Signature, SudoConfig, EXISTENTIAL_DEPOSIT}; + EVMConfig, EthereumConfig, Signature, EXISTENTIAL_DEPOSIT}; use sc_chain_spec::{ChainSpecExtension, ChainSpecGroup}; use sc_service::ChainType; use serde::{Deserialize, Serialize}; @@ -181,7 +181,7 @@ pub fn local_testnet_config() -> ChainSpec { fn testnet_genesis( invulnerables: Vec<(AccountId, AuraId)>, - root_key: AccountId, + _root_key: AccountId, endowed_accounts: Vec, id: ParaId, ) -> origintrail_parachain_runtime::GenesisConfig { @@ -220,10 +220,10 @@ fn testnet_genesis( polkadot_xcm: origintrail_parachain_runtime::PolkadotXcmConfig { safe_xcm_version: Some(SAFE_XCM_VERSION), }, - sudo: SudoConfig { - // Assign network admin rights. - key: Some(root_key), - }, + // sudo: SudoConfig { + // // Assign network admin rights. + // key: Some(root_key), + // }, vesting: Default::default(), treasury: Default::default(), evm: EVMConfig { From 5fff57c7f46dab3116ea4ea249841c9323de81d2 Mon Sep 17 00:00:00 2001 From: NZT48 Date: Mon, 24 Jul 2023 16:08:55 +0000 Subject: [PATCH 3/3] Remove sudo pallet --- Cargo.lock | 3 +-- runtime/Cargo.toml | 5 +---- runtime/src/lib.rs | 10 +--------- 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 14e04a9..866e3a6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6015,7 +6015,7 @@ dependencies = [ [[package]] name = "origintrail-parachain-runtime" -version = "1.1.2" +version = "1.2.0" dependencies = [ "cumulus-pallet-aura-ext", "cumulus-pallet-dmp-queue", @@ -6056,7 +6056,6 @@ dependencies = [ "pallet-preimage", "pallet-scheduler", "pallet-session", - "pallet-sudo", "pallet-timestamp", "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index 98cfb22..8acc779 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "origintrail-parachain-runtime" -version = "1.1.2" +version = "1.2.0" authors = ["TraceLabs"] description = "OriginTrail Parachain Runtime - Cumulus FRAME-based Substrate Runtime" license = "GPL-3.0-only" @@ -39,7 +39,6 @@ pallet-authorship = { git = "https://github.com/paritytech/substrate", default-f pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.40" } pallet-scheduler = { git = "https://github.com/paritytech/substrate.git", default-features = false, branch = "polkadot-v0.9.40" } pallet-session = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.40" } -pallet-sudo = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.40" } pallet-timestamp = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.40" } pallet-transaction-payment = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.40" } pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.40" } @@ -136,7 +135,6 @@ std = [ "pallet-preimage/std", "pallet-scheduler/std", "pallet-session/std", - "pallet-sudo/std", "pallet-timestamp/std", "pallet-transaction-payment-rpc-runtime-api/std", "pallet-transaction-payment/std", @@ -211,7 +209,6 @@ try-runtime = [ "pallet-preimage/try-runtime", "pallet-scheduler/try-runtime", "pallet-session/try-runtime", - "pallet-sudo/try-runtime", "pallet-utility/try-runtime", "pallet-vesting/try-runtime", "pallet-timestamp/try-runtime", diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index ff7a159..df0b614 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -250,7 +250,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("origintrail-parachain"), impl_name: create_runtime_str!("origintrail-parachain"), authoring_version: 1, - spec_version: 112, + spec_version: 120, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 1, @@ -620,11 +620,6 @@ impl pallet_scheduler::Config for Runtime { type OriginPrivilegeCmp = EqualPrivilegeOnly; } -impl pallet_sudo::Config for Runtime { - type RuntimeEvent = RuntimeEvent; - type RuntimeCall = RuntimeCall; -} - parameter_types! { pub const MinVestedTransfer: Balance = 15 * OTP; pub UnvestedFundsAllowedWithdrawReasons: WithdrawReasons = @@ -1091,9 +1086,6 @@ construct_runtime!( Council: pallet_collective:: = 62, Democracy: pallet_democracy = 63, Identity: pallet_identity = 64, - - // Temporary. - Sudo: pallet_sudo = 255, } );