Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Added multisig in Rococo #3873

Merged
3 commits merged into from
Sep 27, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

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

4 changes: 4 additions & 0 deletions runtime/rococo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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-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-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-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 }
Expand Down Expand Up @@ -146,6 +147,7 @@ std = [
"xcm-builder/std",
"pallet-xcm/std",
"log/std",
"pallet-multisig/std",
]
# When enabled, the runtime API will not be build.
#
Expand All @@ -169,6 +171,7 @@ runtime-benchmarks = [
"pallet-timestamp/runtime-benchmarks",
"pallet-xcm/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
"pallet-multisig/runtime-benchmarks",
]
try-runtime = [
"frame-executive/try-runtime",
Expand All @@ -191,4 +194,5 @@ try-runtime = [
"pallet-timestamp/try-runtime",
"pallet-transaction-payment/try-runtime",
"runtime-common/try-runtime",
"pallet-multisig/try-runtime",
]
20 changes: 20 additions & 0 deletions runtime/rococo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ construct_runtime! {

// Pallet for sending XCM.
XcmPallet: pallet_xcm::{Pallet, Call, Storage, Event<T>, Origin} = 99,
Multisig: pallet_multisig::{Pallet, Call, Storage, Event<T>},
ayushmishra2005 marked this conversation as resolved.
Show resolved Hide resolved
}
}

Expand Down Expand Up @@ -1068,6 +1069,7 @@ impl InstanceFilter<Call> for ProxyType {
Call::Auctions { .. } |
Call::Crowdloan { .. } |
Call::Registrar { .. } |
Call::Multisig(..) |
Call::Slots { .. }
),
}
Expand Down Expand Up @@ -1125,6 +1127,24 @@ impl pallet_membership::Config for Runtime {
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"))]
sp_api::impl_runtime_apis! {
impl sp_api::Core<Block> for Runtime {
Expand Down