@@ -40,7 +40,7 @@ use frame_system::{
4040 EnsureRoot , EnsureOneOf ,
4141 limits:: { BlockWeights , BlockLength }
4242} ;
43- use frame_support:: traits:: InstanceFilter ;
43+ use frame_support:: { traits:: InstanceFilter , PalletId } ;
4444use codec:: { Encode , Decode } ;
4545use sp_core:: {
4646 crypto:: KeyTypeId ,
@@ -52,7 +52,7 @@ use node_primitives::{AccountIndex, Balance, BlockNumber, Hash, Index, Moment};
5252use sp_api:: impl_runtime_apis;
5353use sp_runtime:: {
5454 Permill , Perbill , Perquintill , Percent , ApplyExtrinsicResult , impl_opaque_keys, generic,
55- create_runtime_str, ModuleId , FixedPointNumber ,
55+ create_runtime_str, FixedPointNumber ,
5656} ;
5757use sp_runtime:: curve:: PiecewiseLinear ;
5858use sp_runtime:: transaction_validity:: { TransactionValidity , TransactionSource , TransactionPriority } ;
@@ -634,15 +634,15 @@ parameter_types! {
634634 pub const TermDuration : BlockNumber = 7 * DAYS ;
635635 pub const DesiredMembers : u32 = 13 ;
636636 pub const DesiredRunnersUp : u32 = 7 ;
637- pub const ElectionsPhragmenModuleId : LockIdentifier = * b"phrelect" ;
637+ pub const ElectionsPhragmenPalletId : LockIdentifier = * b"phrelect" ;
638638}
639639
640640// Make sure that there are no more than `MaxMembers` members elected via elections-phragmen.
641641const_assert ! ( DesiredMembers :: get( ) <= CouncilMaxMembers :: get( ) ) ;
642642
643643impl pallet_elections_phragmen:: Config for Runtime {
644644 type Event = Event ;
645- type ModuleId = ElectionsPhragmenModuleId ;
645+ type PalletId = ElectionsPhragmenPalletId ;
646646 type Currency = Balances ;
647647 type ChangeMembers = Council ;
648648 // NOTE: this implies that council's genesis members cannot be set directly and must come from
@@ -705,15 +705,15 @@ parameter_types! {
705705 pub const DataDepositPerByte : Balance = 1 * CENTS ;
706706 pub const BountyDepositBase : Balance = 1 * DOLLARS ;
707707 pub const BountyDepositPayoutDelay : BlockNumber = 1 * DAYS ;
708- pub const TreasuryModuleId : ModuleId = ModuleId ( * b"py/trsry" ) ;
708+ pub const TreasuryPalletId : PalletId = PalletId ( * b"py/trsry" ) ;
709709 pub const BountyUpdatePeriod : BlockNumber = 14 * DAYS ;
710710 pub const MaximumReasonLength : u32 = 16384 ;
711711 pub const BountyCuratorDeposit : Permill = Permill :: from_percent( 50 ) ;
712712 pub const BountyValueMinimum : Balance = 5 * DOLLARS ;
713713}
714714
715715impl pallet_treasury:: Config for Runtime {
716- type ModuleId = TreasuryModuleId ;
716+ type PalletId = TreasuryPalletId ;
717717 type Currency = Balances ;
718718 type ApproveOrigin = EnsureOneOf <
719719 AccountId ,
@@ -970,12 +970,13 @@ parameter_types! {
970970 pub const PeriodSpend : Balance = 500 * DOLLARS ;
971971 pub const MaxLockDuration : BlockNumber = 36 * 30 * DAYS ;
972972 pub const ChallengePeriod : BlockNumber = 7 * DAYS ;
973- pub const SocietyModuleId : ModuleId = ModuleId ( * b"py/socie" ) ;
973+ pub const MaxCandidateIntake : u32 = 10 ;
974+ pub const SocietyPalletId : PalletId = PalletId ( * b"py/socie" ) ;
974975}
975976
976977impl pallet_society:: Config for Runtime {
977978 type Event = Event ;
978- type ModuleId = SocietyModuleId ;
979+ type PalletId = SocietyPalletId ;
979980 type Currency = Balances ;
980981 type Randomness = RandomnessCollectiveFlip ;
981982 type CandidateDeposit = CandidateDeposit ;
@@ -1012,13 +1013,13 @@ impl pallet_mmr::Config for Runtime {
10121013}
10131014
10141015parameter_types ! {
1015- pub const LotteryModuleId : ModuleId = ModuleId ( * b"py/lotto" ) ;
1016+ pub const LotteryPalletId : PalletId = PalletId ( * b"py/lotto" ) ;
10161017 pub const MaxCalls : usize = 10 ;
10171018 pub const MaxGenerateRandom : u32 = 10 ;
10181019}
10191020
10201021impl pallet_lottery:: Config for Runtime {
1021- type ModuleId = LotteryModuleId ;
1022+ type PalletId = LotteryPalletId ;
10221023 type Call = Call ;
10231024 type Event = Event ;
10241025 type Currency = Balances ;
0 commit comments