Unverified Commit 0d7ebdd1 authored by Ayush Mishra's avatar Ayush Mishra Committed by GitHub
Browse files

Added multisig in Rococo (#3873)

* Added multisig in Rococo

* removed formatting error

Co-authored-by: Ayush <>
parent f5b1a454
Pipeline #159378 passed with stages
in 35 minutes and 53 seconds
...@@ -7919,6 +7919,7 @@ dependencies = [ ...@@ -7919,6 +7919,7 @@ dependencies = [
"pallet-membership", "pallet-membership",
"pallet-mmr", "pallet-mmr",
"pallet-mmr-primitives", "pallet-mmr-primitives",
"pallet-multisig",
"pallet-offences", "pallet-offences",
"pallet-proxy", "pallet-proxy",
"pallet-session", "pallet-session",
......
...@@ -44,6 +44,7 @@ pallet-indices = { git = "https://github.com/paritytech/substrate", branch = "ma ...@@ -44,6 +44,7 @@ pallet-indices = { git = "https://github.com/paritytech/substrate", branch = "ma
pallet-membership = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } pallet-membership = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
pallet-mmr = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } pallet-mmr = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
pallet-mmr-primitives = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } pallet-mmr-primitives = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
pallet-multisig = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
pallet-transaction-payment = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } pallet-transaction-payment = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
pallet-session = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } pallet-session = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
...@@ -150,6 +151,7 @@ std = [ ...@@ -150,6 +151,7 @@ std = [
"xcm-builder/std", "xcm-builder/std",
"pallet-xcm/std", "pallet-xcm/std",
"log/std", "log/std",
"pallet-multisig/std",
] ]
# When enabled, the runtime API will not be build. # When enabled, the runtime API will not be build.
# #
...@@ -173,6 +175,7 @@ runtime-benchmarks = [ ...@@ -173,6 +175,7 @@ runtime-benchmarks = [
"pallet-timestamp/runtime-benchmarks", "pallet-timestamp/runtime-benchmarks",
"pallet-xcm/runtime-benchmarks", "pallet-xcm/runtime-benchmarks",
"xcm-builder/runtime-benchmarks", "xcm-builder/runtime-benchmarks",
"pallet-multisig/runtime-benchmarks",
"frame-benchmarking", "frame-benchmarking",
"hex-literal" "hex-literal"
] ]
...@@ -197,4 +200,5 @@ try-runtime = [ ...@@ -197,4 +200,5 @@ try-runtime = [
"pallet-timestamp/try-runtime", "pallet-timestamp/try-runtime",
"pallet-transaction-payment/try-runtime", "pallet-transaction-payment/try-runtime",
"runtime-common/try-runtime", "runtime-common/try-runtime",
"pallet-multisig/try-runtime",
] ]
...@@ -251,9 +251,11 @@ construct_runtime! { ...@@ -251,9 +251,11 @@ construct_runtime! {
Utility: pallet_utility::{Pallet, Call, Event} = 90, Utility: pallet_utility::{Pallet, Call, Event} = 90,
Proxy: pallet_proxy::{Pallet, Call, Storage, Event<T>} = 91, Proxy: pallet_proxy::{Pallet, Call, Storage, Event<T>} = 91,
Multisig: pallet_multisig::{Pallet, Call, Storage, Event<T>},
// Pallet for sending XCM. // Pallet for sending XCM.
XcmPallet: pallet_xcm::{Pallet, Call, Storage, Event<T>, Origin} = 99, XcmPallet: pallet_xcm::{Pallet, Call, Storage, Event<T>, Origin} = 99,
} }
} }
...@@ -1082,7 +1084,7 @@ impl InstanceFilter<Call> for ProxyType { ...@@ -1082,7 +1084,7 @@ impl InstanceFilter<Call> for ProxyType {
Call::Auctions { .. } | Call::Auctions { .. } |
Call::Crowdloan { .. } | Call::Crowdloan { .. } |
Call::Registrar { .. } | Call::Registrar { .. } |
Call::Slots { .. } Call::Multisig(..) | Call::Slots { .. }
), ),
} }
} }
...@@ -1139,6 +1141,24 @@ impl pallet_membership::Config for Runtime { ...@@ -1139,6 +1141,24 @@ impl pallet_membership::Config for Runtime {
type WeightInfo = (); type WeightInfo = ();
} }
parameter_types! {
// One storage item; key size is 32; value is size 4+4+16+32 bytes = 56 bytes.
pub const DepositBase: Balance = deposit(1, 88);
// Additional storage item size of 32 bytes.
pub const DepositFactor: Balance = deposit(0, 32);
pub const MaxSignatories: u16 = 100;
}
impl pallet_multisig::Config for Runtime {
type Event = Event;
type Call = Call;
type Currency = Balances;
type DepositBase = DepositBase;
type DepositFactor = DepositFactor;
type MaxSignatories = MaxSignatories;
type WeightInfo = ();
}
#[cfg(not(feature = "disable-runtime-api"))] #[cfg(not(feature = "disable-runtime-api"))]
sp_api::impl_runtime_apis! { sp_api::impl_runtime_apis! {
impl sp_api::Core<Block> for Runtime { impl sp_api::Core<Block> for Runtime {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment