Mise à jour de GitLab prévue ce samedi 23 octobre 2021 à partir de 9h00 CET

Commit b59eacda authored by Pascal Engélibert's avatar Pascal Engélibert 🚴
Browse files

feat: add multisig pallet

parent 2feb399b
Pipeline #13489 passed with stages
in 41 minutes and 49 seconds
......@@ -2008,6 +2008,7 @@ dependencies = [
"pallet-certification",
"pallet-grandpa",
"pallet-identity",
"pallet-multisig",
"pallet-randomness-collective-flip",
"pallet-sudo",
"pallet-transaction-payment",
......@@ -4079,6 +4080,20 @@ dependencies = [
"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]]
name = "pallet-randomness-collective-flip"
version = "4.0.0-dev"
......
......@@ -38,6 +38,7 @@ std = [
'pallet-certification/std',
'pallet-identity/std',
'pallet-grandpa/std',
'pallet-multisig/std',
'pallet-randomness-collective-flip/std',
'pallet-sudo/std',
'pallet-universal-dividend/std',
......@@ -123,6 +124,11 @@ default-features = false
git = 'https://github.com/paritytech/substrate.git'
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]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
......
......@@ -132,6 +132,16 @@ common_runtime::pallets_config! {
type Event = Event;
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.
......@@ -145,6 +155,7 @@ construct_runtime!(
RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage},
Grandpa: pallet_grandpa::{Pallet, Call, Storage, Config, Event},
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
Multisig: pallet_multisig::{Pallet, Call, Storage, Event<T>},
TransactionPayment: pallet_transaction_payment::{Pallet, Storage},
Sudo: pallet_sudo::{Pallet, Call, Config<T>, Storage, Event<T>},
UdAccountsStorage: pallet_ud_accounts_storage::{Pallet, Config<T>, Storage},
......
......@@ -30,6 +30,13 @@ frame_support::parameter_types! {
pub const TransactionByteFee: Balance = 0;
}
// Multisig
parameter_types! {
pub const DepositBase: Balance = 1000;
pub const DepositFactor: Balance = 10;
pub const MaxSignatories: u16 = 5;
}
// Identity
pub const IDTY_CREATE_PERIOD: BlockNumber = 100;
frame_support::parameter_types! {
......
Markdown is supported
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