Skip to content
Snippets Groups Projects
Commit b59eacda authored by Pascal Engélibert's avatar Pascal Engélibert :bicyclist:
Browse files

feat: add multisig pallet

parent 2feb399b
No related branches found
No related tags found
1 merge request!4feat: add multisig pallet
...@@ -2008,6 +2008,7 @@ dependencies = [ ...@@ -2008,6 +2008,7 @@ dependencies = [
"pallet-certification", "pallet-certification",
"pallet-grandpa", "pallet-grandpa",
"pallet-identity", "pallet-identity",
"pallet-multisig",
"pallet-randomness-collective-flip", "pallet-randomness-collective-flip",
"pallet-sudo", "pallet-sudo",
"pallet-transaction-payment", "pallet-transaction-payment",
...@@ -4079,6 +4080,20 @@ dependencies = [ ...@@ -4079,6 +4080,20 @@ dependencies = [
"sp-std", "sp-std",
] ]
[[package]]
name = "pallet-multisig"
version = "4.0.0-dev"
source = "git+https://github.com/paritytech/substrate.git?tag=monthly-2021-08#4d28ebeb8b027ca0227fe7779c5beb70a7b56467"
dependencies = [
"frame-support",
"frame-system",
"parity-scale-codec",
"sp-core",
"sp-io",
"sp-runtime",
"sp-std",
]
[[package]] [[package]]
name = "pallet-randomness-collective-flip" name = "pallet-randomness-collective-flip"
version = "4.0.0-dev" version = "4.0.0-dev"
......
...@@ -38,6 +38,7 @@ std = [ ...@@ -38,6 +38,7 @@ std = [
'pallet-certification/std', 'pallet-certification/std',
'pallet-identity/std', 'pallet-identity/std',
'pallet-grandpa/std', 'pallet-grandpa/std',
'pallet-multisig/std',
'pallet-randomness-collective-flip/std', 'pallet-randomness-collective-flip/std',
'pallet-sudo/std', 'pallet-sudo/std',
'pallet-universal-dividend/std', 'pallet-universal-dividend/std',
...@@ -123,6 +124,11 @@ default-features = false ...@@ -123,6 +124,11 @@ default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-08' tag = 'monthly-2021-08'
[dependencies.pallet-multisig]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-08'
[dependencies.pallet-randomness-collective-flip] [dependencies.pallet-randomness-collective-flip]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
......
...@@ -132,6 +132,16 @@ common_runtime::pallets_config! { ...@@ -132,6 +132,16 @@ common_runtime::pallets_config! {
type Event = Event; type Event = Event;
type Call = Call; type Call = Call;
} }
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 = pallet_multisig::weights::SubstrateWeight<Self>;
}
} }
// Create the runtime by composing the FRAME pallets that were previously configured. // Create the runtime by composing the FRAME pallets that were previously configured.
...@@ -145,6 +155,7 @@ construct_runtime!( ...@@ -145,6 +155,7 @@ construct_runtime!(
RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage}, RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage},
Grandpa: pallet_grandpa::{Pallet, Call, Storage, Config, Event}, Grandpa: pallet_grandpa::{Pallet, Call, Storage, Config, Event},
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>}, Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
Multisig: pallet_multisig::{Pallet, Call, Storage, Event<T>},
TransactionPayment: pallet_transaction_payment::{Pallet, Storage}, TransactionPayment: pallet_transaction_payment::{Pallet, Storage},
Sudo: pallet_sudo::{Pallet, Call, Config<T>, Storage, Event<T>}, Sudo: pallet_sudo::{Pallet, Call, Config<T>, Storage, Event<T>},
UdAccountsStorage: pallet_ud_accounts_storage::{Pallet, Config<T>, Storage}, UdAccountsStorage: pallet_ud_accounts_storage::{Pallet, Config<T>, Storage},
......
...@@ -30,6 +30,13 @@ frame_support::parameter_types! { ...@@ -30,6 +30,13 @@ frame_support::parameter_types! {
pub const TransactionByteFee: Balance = 0; pub const TransactionByteFee: Balance = 0;
} }
// Multisig
parameter_types! {
pub const DepositBase: Balance = 1000;
pub const DepositFactor: Balance = 10;
pub const MaxSignatories: u16 = 5;
}
// Identity // Identity
pub const IDTY_CREATE_PERIOD: BlockNumber = 100; pub const IDTY_CREATE_PERIOD: BlockNumber = 100;
frame_support::parameter_types! { frame_support::parameter_types! {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment