Skip to content

Commit

Permalink
Sudo removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauthamastro committed Aug 20, 2024
1 parent 88e3ae5 commit 04ecd1c
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 19 deletions.
2 changes: 0 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion check-all-ci-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

cargo fmt --check --features on-chain-release-build || exit
cargo fmt --check || exit
RUSTFLAGS="-D warnings" cargo build --features on-chain-release-build || exit
RUSTFLAGS="-D warnings" cargo build --features try-runtime || exit
cargo build --features runtime-benchmarks || exit
Expand Down
2 changes: 0 additions & 2 deletions pallets/pdex-migration/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ frame-benchmarking = { workspace = true, default-features = false, optional = tr
frame-system = { workspace = true, default-features = false }

pallet-balances = { workspace = true, default-features = false }
pallet-sudo = { workspace = true, default-features = false }
sp-runtime = { workspace = true, default-features = false }

[dev-dependencies]
Expand All @@ -33,7 +32,6 @@ std = [
"frame-support/std",
"frame-system/std",
"pallet-balances/std",
"pallet-sudo/std",
"sp-runtime/std",
]
runtime-benchmarks = [
Expand Down
2 changes: 1 addition & 1 deletion pallets/pdex-migration/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ pub mod pallet {
/// Configure the pallet by specifying the parameters and types on which it depends.
#[pallet::config]
/// Configure the pallet by specifying the parameters and types on which it depends.
pub trait Config: frame_system::Config + pallet_balances::Config + pallet_sudo::Config {
pub trait Config: frame_system::Config + pallet_balances::Config {
/// Because this pallet emits events, it depends on the runtime's definition of an
/// event.
type RuntimeEvent: From<Event<Self>> + IsType<<Self as frame_system::Config>::RuntimeEvent>;
Expand Down
10 changes: 0 additions & 10 deletions pallets/pdex-migration/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ type Balance = u128;
frame_support::construct_runtime!(
pub enum Test {
System: frame_system,
Sudo: pallet_sudo,
Balances: pallet_balances,
PDEXMigration: pdex_migration,
}
Expand Down Expand Up @@ -96,22 +95,13 @@ impl pdex_migration::Config for Test {
type MaxRelayers = MaxRelayers;
type LockPeriod = LockPeriod;
}
impl pallet_sudo::Config for Test {
type RuntimeEvent = RuntimeEvent;
type RuntimeCall = RuntimeCall;
type WeightInfo = ();
}

// Build genesis storage according to the mock Runtime.
pub fn new_test_ext() -> sp_io::TestExternalities {
let alice = 1u64;
let mut t = frame_system::GenesisConfig::<Test>::default().build_storage().unwrap();
pallet_balances::GenesisConfig::<Test>::default()
.assimilate_storage(&mut t)
.unwrap();
pallet_sudo::GenesisConfig::<Test> { key: Some(alice) }
.assimilate_storage(&mut t)
.unwrap();
pdex_migration::GenesisConfig::<Test>::default()
.assimilate_storage(&mut t)
.unwrap();
Expand Down
3 changes: 0 additions & 3 deletions runtimes/mainnet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ pallet-session = { default-features = false, workspace = true }
pallet-staking = { default-features = false, workspace = true }
pallet-multisig = { default-features = false, workspace = true }
pallet-staking-reward-curve = { workspace = true }
pallet-sudo = { default-features = false, workspace = true }
pallet-utility = { default-features = false, workspace = true }
pallet-timestamp = { default-features = false, workspace = true }
pallet-transaction-payment = { default-features = false, workspace = true }
Expand Down Expand Up @@ -153,7 +152,6 @@ std = [
"pallet-session/std",
"pallet-staking/std",
"pallet-multisig/std",
"pallet-sudo/std",
"pallet-utility/std",
"pallet-timestamp/std",
"pallet-transaction-payment/std",
Expand Down Expand Up @@ -257,7 +255,6 @@ try-runtime = [
"pallet-membership/try-runtime",
"pallet-grandpa/try-runtime",
"pallet-treasury/try-runtime",
"pallet-sudo/try-runtime",
"pallet-im-online/try-runtime",
"pallet-authority-discovery/try-runtime",
"pallet-offences/try-runtime",
Expand Down

0 comments on commit 04ecd1c

Please sign in to comment.