@@ -323,7 +323,7 @@ impl frame_system::Config for Runtime {
323
323
/// This is used as an identifier of the chain. 42 is the generic substrate prefix.
324
324
type SS58Prefix = SS58Prefix ;
325
325
/// Weight information for the extrinsics of this pallet.
326
- type SystemWeightInfo = frame_system :: weights :: SubstrateWeight < Runtime > ;
326
+ type SystemWeightInfo = weights :: frame_system :: WeightInfo < Runtime > ;
327
327
/// Runtime version.
328
328
type Version = Version ;
329
329
}
@@ -333,7 +333,7 @@ impl pallet_timestamp::Config for Runtime {
333
333
/// A timestamp: milliseconds since the unix epoch.
334
334
type Moment = u64 ;
335
335
type OnTimestampSet = Aura ;
336
- type WeightInfo = pallet_timestamp :: weights :: SubstrateWeight < Runtime > ;
336
+ type WeightInfo = weights :: pallet_timestamp :: WeightInfo < Runtime > ;
337
337
}
338
338
339
339
impl pallet_authorship:: Config for Runtime {
@@ -364,7 +364,7 @@ impl pallet_balances::Config for Runtime {
364
364
type RuntimeEvent = RuntimeEvent ;
365
365
type RuntimeFreezeReason = RuntimeFreezeReason ;
366
366
type RuntimeHoldReason = RuntimeHoldReason ;
367
- type WeightInfo = pallet_balances :: weights :: SubstrateWeight < Runtime > ;
367
+ type WeightInfo = weights :: pallet_balances :: WeightInfo < Runtime > ;
368
368
}
369
369
370
370
impl pallet_transaction_payment:: Config for Runtime {
@@ -399,7 +399,7 @@ impl pallet_assets::Config<ForeignAssetsInstance> for Runtime {
399
399
type RemoveItemsLimit = frame_support:: traits:: ConstU32 < 1000 > ;
400
400
type RuntimeEvent = RuntimeEvent ;
401
401
type StringLimit = AssetsStringLimit ;
402
- type WeightInfo = pallet_assets :: weights :: SubstrateWeight < Runtime > ;
402
+ type WeightInfo = weights :: pallet_assets :: WeightInfo < Runtime > ;
403
403
}
404
404
405
405
type ConsensusHook = cumulus_pallet_aura_ext:: FixedVelocityConsensusHook <
@@ -418,7 +418,7 @@ impl cumulus_pallet_parachain_system::Config for Runtime {
418
418
type ReservedXcmpWeight = ReservedXcmpWeight ;
419
419
type RuntimeEvent = RuntimeEvent ;
420
420
type SelfParaId = parachain_info:: Pallet < Runtime > ;
421
- type WeightInfo = cumulus_pallet_parachain_system :: weights :: SubstrateWeight < Runtime > ;
421
+ type WeightInfo = weights :: cumulus_pallet_parachain_system :: WeightInfo < Runtime > ;
422
422
type XcmpMessageHandler = XcmpQueue ;
423
423
}
424
424
@@ -438,14 +438,14 @@ impl cumulus_pallet_xcmp_queue::Config for Runtime {
438
438
type PriceForSiblingDelivery = NoPriceForMessageDelivery < ParaId > ;
439
439
type RuntimeEvent = RuntimeEvent ;
440
440
type VersionWrapper = PolkadotXcm ;
441
- type WeightInfo = cumulus_pallet_xcmp_queue :: weights :: SubstrateWeight < Self > ;
441
+ type WeightInfo = weights :: cumulus_pallet_xcmp_queue :: WeightInfo < Runtime > ;
442
442
type XcmpQueue = TransformOrigin < MessageQueue , AggregateMessageOrigin , ParaId , ParaIdToSibling > ;
443
443
}
444
444
445
445
impl cumulus_pallet_dmp_queue:: Config for Runtime {
446
446
type DmpSink = frame_support:: traits:: EnqueueWithOrigin < MessageQueue , RelayOrigin > ;
447
447
type RuntimeEvent = RuntimeEvent ;
448
- type WeightInfo = cumulus_pallet_dmp_queue :: weights :: SubstrateWeight < Self > ;
448
+ type WeightInfo = weights :: cumulus_pallet_dmp_queue :: WeightInfo < Runtime > ;
449
449
}
450
450
451
451
parameter_types ! {
@@ -469,7 +469,7 @@ impl pallet_message_queue::Config for Runtime {
469
469
type RuntimeEvent = RuntimeEvent ;
470
470
type ServiceWeight = MessageQueueServiceWeight ;
471
471
type Size = u32 ;
472
- type WeightInfo = pallet_message_queue :: weights :: SubstrateWeight < Self > ;
472
+ type WeightInfo = weights :: pallet_message_queue :: WeightInfo < Runtime > ;
473
473
}
474
474
475
475
impl pallet_session:: Config for Runtime {
@@ -481,7 +481,7 @@ impl pallet_session::Config for Runtime {
481
481
type ShouldEndSession = ParachainStaking ;
482
482
type ValidatorId = AccountId ;
483
483
type ValidatorIdOf = ConvertInto ;
484
- type WeightInfo = pallet_session :: weights :: SubstrateWeight < Runtime > ;
484
+ type WeightInfo = weights :: pallet_session :: WeightInfo < Runtime > ;
485
485
}
486
486
487
487
impl pallet_aura:: Config for Runtime {
@@ -534,7 +534,7 @@ impl pallet_treasury::Config for Runtime {
534
534
type SpendFunds = ( ) ;
535
535
type SpendOrigin = SpendOrigin ;
536
536
type SpendPeriod = SpendPeriod ;
537
- type WeightInfo = pallet_treasury :: weights :: SubstrateWeight < Runtime > ;
537
+ type WeightInfo = weights :: pallet_treasury :: WeightInfo < Runtime > ;
538
538
}
539
539
540
540
type CouncilCollective = pallet_collective:: Instance1 ;
@@ -548,7 +548,7 @@ impl pallet_collective::Config<CouncilCollective> for Runtime {
548
548
type RuntimeEvent = RuntimeEvent ;
549
549
type RuntimeOrigin = RuntimeOrigin ;
550
550
type SetMembersOrigin = EnsureRoot < AccountId > ;
551
- type WeightInfo = pallet_collective :: weights :: SubstrateWeight < Runtime > ;
551
+ type WeightInfo = weights :: pallet_collective :: WeightInfo < Runtime > ;
552
552
}
553
553
554
554
type TechnicalCollective = pallet_collective:: Instance2 ;
@@ -562,7 +562,7 @@ impl pallet_collective::Config<TechnicalCollective> for Runtime {
562
562
type RuntimeEvent = RuntimeEvent ;
563
563
type RuntimeOrigin = RuntimeOrigin ;
564
564
type SetMembersOrigin = EnsureRoot < AccountId > ;
565
- type WeightInfo = pallet_collective :: weights :: SubstrateWeight < Runtime > ;
565
+ type WeightInfo = weights :: pallet_collective :: WeightInfo < Runtime > ;
566
566
}
567
567
568
568
impl pallet_elections_phragmen:: Config for Runtime {
@@ -649,7 +649,7 @@ impl pallet_democracy::Config for Runtime {
649
649
type VetoOrigin = pallet_collective:: EnsureMember < AccountId , TechnicalCollective > ;
650
650
type VoteLockingPeriod = EnactmentPeriod ;
651
651
type VotingPeriod = VotingPeriod ;
652
- type WeightInfo = pallet_democracy :: weights :: SubstrateWeight < Runtime > ;
652
+ type WeightInfo = weights :: pallet_democracy :: WeightInfo < Runtime > ;
653
653
}
654
654
655
655
pub struct EqualOrGreatestRootCmp ;
@@ -677,7 +677,7 @@ impl pallet_scheduler::Config for Runtime {
677
677
type RuntimeEvent = RuntimeEvent ;
678
678
type RuntimeOrigin = RuntimeOrigin ;
679
679
type ScheduleOrigin = EnsureRoot < AccountId > ;
680
- type WeightInfo = ( ) ;
680
+ type WeightInfo = weights :: pallet_scheduler :: WeightInfo < Runtime > ;
681
681
}
682
682
683
683
parameter_types ! {
@@ -695,7 +695,7 @@ impl pallet_preimage::Config for Runtime {
695
695
type Currency = Balances ;
696
696
type ManagerOrigin = EnsureRoot < AccountId > ;
697
697
type RuntimeEvent = RuntimeEvent ;
698
- type WeightInfo = ( ) ;
698
+ type WeightInfo = weights :: pallet_preimage :: WeightInfo < Runtime > ;
699
699
}
700
700
701
701
impl pallet_parachain_staking:: Config for Runtime {
@@ -723,7 +723,7 @@ impl pallet_parachain_staking::Config for Runtime {
723
723
type RewardPaymentDelay = RewardPaymentDelay ;
724
724
type RuntimeEvent = RuntimeEvent ;
725
725
type RuntimeHoldReason = RuntimeHoldReason ;
726
- type WeightInfo = pallet_parachain_staking :: weights :: SubstrateWeight < Runtime > ;
726
+ type WeightInfo = weights :: pallet_parachain_staking :: WeightInfo < Runtime > ;
727
727
}
728
728
729
729
impl pallet_membership:: Config < pallet_membership:: Instance1 > for Runtime {
@@ -736,6 +736,7 @@ impl pallet_membership::Config<pallet_membership::Instance1> for Runtime {
736
736
type ResetOrigin = EnsureRoot < AccountId > ;
737
737
type RuntimeEvent = RuntimeEvent ;
738
738
type SwapOrigin = EnsureRoot < AccountId > ;
739
+ // TODO: Fix the pallet_membership benchmarks and add the WeightInfo.
739
740
type WeightInfo = ( ) ;
740
741
}
741
742
@@ -838,7 +839,7 @@ impl pallet_vesting::Config for Runtime {
838
839
type MinVestedTransfer = shared_configuration:: vesting:: MinVestedTransfer ;
839
840
type RuntimeEvent = RuntimeEvent ;
840
841
type UnvestedFundsAllowedWithdrawReasons = shared_configuration:: vesting:: UnvestedFundsAllowedWithdrawReasons ;
841
- type WeightInfo = pallet_vesting :: weights :: SubstrateWeight < Runtime > ;
842
+ type WeightInfo = weights :: pallet_vesting :: WeightInfo < Runtime > ;
842
843
843
844
const MAX_VESTING_SCHEDULES : u32 = 12 ;
844
845
}
@@ -847,7 +848,7 @@ impl pallet_utility::Config for Runtime {
847
848
type PalletsOrigin = OriginCaller ;
848
849
type RuntimeCall = RuntimeCall ;
849
850
type RuntimeEvent = RuntimeEvent ;
850
- type WeightInfo = pallet_utility :: weights :: SubstrateWeight < Runtime > ;
851
+ type WeightInfo = weights :: pallet_utility :: WeightInfo < Runtime > ;
851
852
}
852
853
853
854
impl pallet_multisig:: Config for Runtime {
@@ -857,7 +858,7 @@ impl pallet_multisig::Config for Runtime {
857
858
type MaxSignatories = MaxSignatories ;
858
859
type RuntimeCall = RuntimeCall ;
859
860
type RuntimeEvent = RuntimeEvent ;
860
- type WeightInfo = pallet_multisig :: weights :: SubstrateWeight < Runtime > ;
861
+ type WeightInfo = weights :: pallet_multisig :: WeightInfo < Runtime > ;
861
862
}
862
863
863
864
impl pallet_proxy:: Config for Runtime {
@@ -872,7 +873,7 @@ impl pallet_proxy::Config for Runtime {
872
873
type ProxyType = ProxyType ;
873
874
type RuntimeCall = RuntimeCall ;
874
875
type RuntimeEvent = RuntimeEvent ;
875
- type WeightInfo = pallet_proxy :: weights :: SubstrateWeight < Runtime > ;
876
+ type WeightInfo = weights :: pallet_proxy :: WeightInfo < Runtime > ;
876
877
}
877
878
878
879
impl pallet_identity:: Config for Runtime {
@@ -893,7 +894,7 @@ impl pallet_identity::Config for Runtime {
893
894
type Slashed = Treasury ;
894
895
type SubAccountDeposit = SubAccountDeposit ;
895
896
type UsernameAuthorityOrigin = UsernameAuthorityOrigin ;
896
- type WeightInfo = pallet_identity :: weights :: SubstrateWeight < Runtime > ;
897
+ type WeightInfo = weights :: pallet_identity :: WeightInfo < Runtime > ;
897
898
}
898
899
899
900
// Create the runtime by composing the FRAME pallets that were previously configured.
@@ -971,7 +972,7 @@ mod benches {
971
972
972
973
// XCM helpers.
973
974
[ cumulus_pallet_xcmp_queue, XcmpQueue ]
974
- [ pallet_xcm, PalletXcmExtrinsiscsBenchmark :: <Runtime >]
975
+ // [pallet_xcm, PalletXcmExtrinsiscsBenchmark::<Runtime>]
975
976
[ cumulus_pallet_dmp_queue, DmpQueue ]
976
977
[ pallet_message_queue, MessageQueue ]
977
978
@@ -985,7 +986,7 @@ mod benches {
985
986
[ pallet_scheduler, Scheduler ]
986
987
987
988
// Oracle
988
- [ pallet_membership, OracleProvidersMembership ]
989
+ // [pallet_membership, OracleProvidersMembership]
989
990
// [orml_oracle, Oracle]
990
991
) ;
991
992
}
0 commit comments