Skip to content
Snippets Groups Projects

upgrade substrate to monthly-2022-01

Merged Éloïs requested to merge elois-upgrade-substrate into master
11 files
+ 115
34
Compare changes
  • Side-by-side
  • Inline
Files
11
@@ -114,7 +114,35 @@ macro_rules! pallets_config {
@@ -114,7 +114,35 @@ macro_rules! pallets_config {
type FeeMultiplierUpdate = ();
type FeeMultiplierUpdate = ();
}
}
impl pallet_identity::Config for Runtime {
// UTILITY //
 
 
impl pallet_utility::Config for Runtime {
 
type Event = Event;
 
type Call = Call;
 
type PalletsOrigin = OriginCaller;
 
type WeightInfo = pallet_utility::weights::SubstrateWeight<Self>;
 
}
 
 
// MONEY CREATION //
 
 
impl pallet_universal_dividend::Config for Runtime {
 
type Currency = pallet_balances::Pallet<Runtime>;
 
type Event = Event;
 
type MembersCount = common_runtime::providers::UdAccountsProvider<Runtime>;
 
type MembersIds = common_runtime::providers::UdAccountsProvider<Runtime>;
 
type SquareMoneyGrowthRate = SquareMoneyGrowthRate;
 
type UdCreationPeriod = UdCreationPeriod;
 
type UdFirstReeval = UdFirstReeval;
 
type UdReevalPeriod = UdReevalPeriod;
 
type UdReevalPeriodInBlocks = UdReevalPeriodInBlocks;
 
type UnitsPerUd = frame_support::traits::ConstU64<1_000>;
 
}
 
 
impl pallet_ud_accounts_storage::Config for Runtime {}
 
 
// WEB OF TRUST //
 
 
impl pallet_identity::Config for Runtime {
type ConfirmPeriod = ConfirmPeriod;
type ConfirmPeriod = ConfirmPeriod;
type Event = Event;
type Event = Event;
type AddRightOrigin = EnsureRoot<Self::AccountId>;
type AddRightOrigin = EnsureRoot<Self::AccountId>;
@@ -148,19 +176,16 @@ macro_rules! pallets_config {
@@ -148,19 +176,16 @@ macro_rules! pallets_config {
type ValidityPeriod = ValidityPeriod;
type ValidityPeriod = ValidityPeriod;
}
}
impl pallet_universal_dividend::Config for Runtime {
// MUNTISIG //
type Currency = pallet_balances::Pallet<Runtime>;
type Event = Event;
type MembersCount = common_runtime::providers::UdAccountsProvider<Runtime>;
type MembersIds = common_runtime::providers::UdAccountsProvider<Runtime>;
type SquareMoneyGrowthRate = SquareMoneyGrowthRate;
type UdCreationPeriod = UdCreationPeriod;
type UdFirstReeval = UdFirstReeval;
type UdReevalPeriod = UdReevalPeriod;
type UdReevalPeriodInBlocks = UdReevalPeriodInBlocks;
type UnitsPerUd = frame_support::traits::ConstU64<1_000>;
}
impl pallet_ud_accounts_storage::Config for Runtime {}
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>;
 
}
};
};
}
}
Loading