diff --git a/Cargo.lock b/Cargo.lock index 1019278d15..7ce1c1c903 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5815,6 +5815,7 @@ dependencies = [ "pallet-maintenance-mode", "pallet-migrations", "pallet-moonbeam-orbiters", + "pallet-multisig", "pallet-parachain-staking", "pallet-preimage", "pallet-proxy", @@ -6157,6 +6158,7 @@ dependencies = [ "pallet-maintenance-mode", "pallet-migrations", "pallet-moonbeam-orbiters", + "pallet-multisig", "pallet-parachain-staking", "pallet-preimage", "pallet-proxy", diff --git a/runtime/moonbase/src/lib.rs b/runtime/moonbase/src/lib.rs index defa91c984..7358e9fe2d 100644 --- a/runtime/moonbase/src/lib.rs +++ b/runtime/moonbase/src/lib.rs @@ -1253,9 +1253,9 @@ impl pallet_randomness::Config for Runtime { impl pallet_root_testing::Config for Runtime {} parameter_types! { - // One storage item; key size is 32; value is size 4+4+16+20 bytes = 44 bytes. - pub const DepositBase: Balance = currency::deposit(1, 76); - // Additional storage item size of 32 bytes. + // One storage item; key size is 32 + 20; value is size 4+4+16+20 bytes = 44 bytes. + pub const DepositBase: Balance = currency::deposit(1, 96); + // Additional storage item size of 20 bytes. pub const DepositFactor: Balance = currency::deposit(0, 20); pub const MaxSignatories: u32 = 100; } diff --git a/runtime/moonbeam/Cargo.toml b/runtime/moonbeam/Cargo.toml index 7ccd25bda9..178290a0d8 100644 --- a/runtime/moonbeam/Cargo.toml +++ b/runtime/moonbeam/Cargo.toml @@ -75,6 +75,7 @@ pallet-balances = { workspace = true } pallet-collective = { workspace = true } pallet-democracy = { workspace = true } pallet-identity = { workspace = true } +pallet-multisig = { workspace = true } pallet-preimage = { workspace = true } pallet-proxy = { workspace = true } pallet-root-testing = { workspace = true } @@ -216,6 +217,7 @@ std = [ "pallet-maintenance-mode/std", "pallet-migrations/std", "pallet-moonbeam-orbiters/std", + "pallet-multisig/std", "pallet-parachain-staking/std", "pallet-preimage/std", "pallet-proxy-genesis-companion/std", diff --git a/runtime/moonbeam/src/lib.rs b/runtime/moonbeam/src/lib.rs index df8de10840..cc4bf60a1d 100644 --- a/runtime/moonbeam/src/lib.rs +++ b/runtime/moonbeam/src/lib.rs @@ -1316,6 +1316,24 @@ impl pallet_randomness::Config for Runtime { impl pallet_root_testing::Config for Runtime {} +parameter_types! { + // One storage item; key size is 32 + 20; value is size 4+4+16+20 bytes = 44 bytes. + pub const DepositBase: Balance = currency::deposit(1, 96); + // Additional storage item size of 20 bytes. + pub const DepositFactor: Balance = currency::deposit(0, 20); + pub const MaxSignatories: u32 = 100; +} + +impl pallet_multisig::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type RuntimeCall = RuntimeCall; + type Currency = Balances; + type DepositBase = DepositBase; + type DepositFactor = DepositFactor; + type MaxSignatories = MaxSignatories; + type WeightInfo = pallet_multisig::weights::SubstrateWeight; +} + construct_runtime! { pub enum Runtime where Block = Block, @@ -1348,6 +1366,7 @@ construct_runtime! { Identity: pallet_identity::{Pallet, Call, Storage, Event} = 33, Migrations: pallet_migrations::{Pallet, Call, Storage, Config, Event} = 34, ProxyGenesisCompanion: pallet_proxy_genesis_companion::{Pallet, Config} = 35, + Multisig: pallet_multisig::{Pallet, Call, Storage, Event} = 36, // Has been permanently removed for safety reasons. // Sudo: pallet_sudo::{Pallet, Call, Config, Storage, Event} = 40, diff --git a/runtime/moonriver/Cargo.toml b/runtime/moonriver/Cargo.toml index c658d70b80..68a7e22354 100644 --- a/runtime/moonriver/Cargo.toml +++ b/runtime/moonriver/Cargo.toml @@ -80,6 +80,7 @@ pallet-collective = { workspace = true } pallet-conviction-voting = { workspace = true } pallet-democracy = { workspace = true } pallet-identity = { workspace = true } +pallet-multisig = { workspace = true } pallet-preimage = { workspace = true } pallet-proxy = { workspace = true } pallet-referenda = { workspace = true } @@ -226,6 +227,7 @@ std = [ "pallet-maintenance-mode/std", "pallet-migrations/std", "pallet-moonbeam-orbiters/std", + "pallet-multisig/std", "pallet-parachain-staking/std", "pallet-preimage/std", "pallet-proxy-genesis-companion/std", diff --git a/runtime/moonriver/src/lib.rs b/runtime/moonriver/src/lib.rs index 47fcea763c..f82a191802 100644 --- a/runtime/moonriver/src/lib.rs +++ b/runtime/moonriver/src/lib.rs @@ -1239,6 +1239,24 @@ impl pallet_randomness::Config for Runtime { impl pallet_root_testing::Config for Runtime {} +parameter_types! { + // One storage item; key size is 32 + 20; value is size 4+4+16+20 bytes = 44 bytes. + pub const DepositBase: Balance = currency::deposit(1, 96); + // Additional storage item size of 20 bytes. + pub const DepositFactor: Balance = currency::deposit(0, 20); + pub const MaxSignatories: u32 = 100; +} + +impl pallet_multisig::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type RuntimeCall = RuntimeCall; + type Currency = Balances; + type DepositBase = DepositBase; + type DepositFactor = DepositFactor; + type MaxSignatories = MaxSignatories; + type WeightInfo = pallet_multisig::weights::SubstrateWeight; +} + construct_runtime! { pub enum Runtime where Block = Block, @@ -1271,6 +1289,7 @@ construct_runtime! { Identity: pallet_identity::{Pallet, Call, Storage, Event} = 33, Migrations: pallet_migrations::{Pallet, Call, Storage, Config, Event} = 34, ProxyGenesisCompanion: pallet_proxy_genesis_companion::{Pallet, Config} = 35, + Multisig: pallet_multisig::{Pallet, Call, Storage, Event} = 36, // Sudo was previously index 40