From 9c2b6022d038bf512c39eb64e129cc437f4c5b5b Mon Sep 17 00:00:00 2001 From: Joshy Orndorff Date: Thu, 14 Dec 2023 11:18:24 -0500 Subject: [PATCH] remove pallet sudo --- Cargo.lock | 17 ----------------- Cargo.toml | 1 - runtime/Cargo.toml | 2 -- runtime/src/lib.rs | 6 ------ 4 files changed, 26 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index eebe9545..d2fcd093 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -69,7 +69,6 @@ dependencies = [ "pallet-balances", "pallet-contracts", "pallet-insecure-randomness-collective-flip", - "pallet-sudo", "pallet-timestamp", "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", @@ -4638,22 +4637,6 @@ dependencies = [ "sp-std 8.0.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.5.0)", ] -[[package]] -name = "pallet-sudo" -version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.5.0#789ffb66dcfcf3b54a1e6786e928ac91c4fdb465" -dependencies = [ - "docify", - "frame-benchmarking", - "frame-support", - "frame-system", - "parity-scale-codec", - "scale-info", - "sp-io", - "sp-runtime", - "sp-std 8.0.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.5.0)", -] - [[package]] name = "pallet-timestamp" version = "4.0.0-dev" diff --git a/Cargo.toml b/Cargo.toml index e282ce15..8af90909 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -47,7 +47,6 @@ frame-system-rpc-runtime-api = { branch = "release-polkadot-v1.5.0", default-fea pallet-balances = { branch = "release-polkadot-v1.5.0", default-features = false, git = "https://github.com/paritytech/polkadot-sdk" } pallet-contracts = { branch = "release-polkadot-v1.5.0", default-features = false, git = "https://github.com/paritytech/polkadot-sdk" } pallet-insecure-randomness-collective-flip = { branch = "release-polkadot-v1.5.0", default-features = false, git = "https://github.com/paritytech/polkadot-sdk" } -pallet-sudo = { branch = "release-polkadot-v1.5.0", default-features = false, git = "https://github.com/paritytech/polkadot-sdk" } pallet-timestamp = { branch = "release-polkadot-v1.5.0", default-features = false, git = "https://github.com/paritytech/polkadot-sdk" } pallet-transaction-payment = { branch = "release-polkadot-v1.5.0", default-features = false, git = "https://github.com/paritytech/polkadot-sdk" } pallet-transaction-payment-rpc = { branch = "release-polkadot-v1.5.0", git = "https://github.com/paritytech/polkadot-sdk" } diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index cecebab3..e9dd60a9 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -18,7 +18,6 @@ frame-system = { workspace = true } pallet-balances = { workspace = true } pallet-contracts = { workspace = true } pallet-insecure-randomness-collective-flip = { workspace = true } -pallet-sudo = { workspace = true } pallet-timestamp = { workspace = true } pallet-transaction-payment = { workspace = true } sp-api = { workspace = true } @@ -67,7 +66,6 @@ std = [ "sp-std/std", "sp-transaction-pool/std", "sp-version/std", - "pallet-sudo/std", "frame-system/std", "pallet-timestamp/std", "async-trait", diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index d41406a3..60f400d9 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -223,11 +223,6 @@ impl pallet_balances::Config for Runtime { type RuntimeFreezeReason = RuntimeFreezeReason; } -// impl pallet_sudo::Config for Runtime { -// type Event = Event; -// type Call = Call; -// } - parameter_types! { pub const TargetBlockTime: u128 = 5_000; pub const DampFactor: u128 = 3; @@ -351,7 +346,6 @@ construct_runtime!( RandomnessCollectiveFlip: pallet_insecure_randomness_collective_flip, Timestamp: pallet_timestamp, Balances: pallet_balances, - // Sudo: pallet_sudo TransactionPayment: pallet_transaction_payment, DifficultyAdjustment: difficulty, BlockAuthor: block_author,