File tree Expand file tree Collapse file tree
rialto-parachain/runtime/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -304,6 +304,10 @@ impl pallet_balances::Config for Runtime {
304304 type MaxLocks = ConstU32 < 50 > ;
305305 type MaxReserves = ConstU32 < 50 > ;
306306 type ReserveIdentifier = [ u8 ; 8 ] ;
307+ type HoldIdentifier = ( ) ;
308+ type FreezeIdentifier = ( ) ;
309+ type MaxHolds = ConstU32 < 0 > ;
310+ type MaxFreezes = ConstU32 < 0 > ;
307311}
308312
309313impl pallet_transaction_payment:: Config for Runtime {
@@ -492,6 +496,7 @@ impl pallet_xcm::Config for Runtime {
492496 type WeightInfo = pallet_xcm:: TestWeightInfo ;
493497 #[ cfg( feature = "runtime-benchmarks" ) ]
494498 type ReachableDest = ReachableDest ;
499+ type AdminOrigin = frame_system:: EnsureRoot < AccountId > ;
495500}
496501
497502impl cumulus_pallet_xcm:: Config for Runtime {
@@ -637,6 +642,14 @@ impl_runtime_apis! {
637642 fn metadata( ) -> OpaqueMetadata {
638643 OpaqueMetadata :: new( Runtime :: metadata( ) . into( ) )
639644 }
645+
646+ fn metadata_at_version( version: u32 ) -> Option <OpaqueMetadata > {
647+ Runtime :: metadata_at_version( version)
648+ }
649+
650+ fn metadata_versions( ) -> sp_std:: vec:: Vec <u32 > {
651+ Runtime :: metadata_versions( )
652+ }
640653 }
641654
642655 impl sp_block_builder:: BlockBuilder <Block > for Runtime {
Original file line number Diff line number Diff line change @@ -172,6 +172,10 @@ impl pallet_balances::Config for TestRuntime {
172172 type MaxLocks = ConstU32 < 50 > ;
173173 type MaxReserves = ConstU32 < 50 > ;
174174 type ReserveIdentifier = [ u8 ; 8 ] ;
175+ type HoldIdentifier = ( ) ;
176+ type FreezeIdentifier = ( ) ;
177+ type MaxHolds = ConstU32 < 0 > ;
178+ type MaxFreezes = ConstU32 < 0 > ;
175179}
176180
177181impl pallet_transaction_payment:: Config for TestRuntime {
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ use scale_info::TypeInfo;
4040use sp_core:: H256 ;
4141use sp_runtime:: {
4242 testing:: Header as SubstrateHeader ,
43- traits:: { BlakeTwo256 , IdentityLookup } ,
43+ traits:: { BlakeTwo256 , ConstU32 , IdentityLookup } ,
4444 Perbill ,
4545} ;
4646use std:: {
@@ -133,6 +133,10 @@ impl pallet_balances::Config for TestRuntime {
133133 type WeightInfo = ( ) ;
134134 type MaxReserves = ( ) ;
135135 type ReserveIdentifier = ( ) ;
136+ type HoldIdentifier = ( ) ;
137+ type FreezeIdentifier = ( ) ;
138+ type MaxHolds = ConstU32 < 0 > ;
139+ type MaxFreezes = ConstU32 < 0 > ;
136140}
137141
138142parameter_types ! {
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ use frame_support::{parameter_types, weights::RuntimeDbWeight};
2424use sp_core:: H256 ;
2525use sp_runtime:: {
2626 testing:: Header as SubstrateHeader ,
27- traits:: { BlakeTwo256 , IdentityLookup } ,
27+ traits:: { BlakeTwo256 , ConstU32 , IdentityLookup } ,
2828} ;
2929
3030pub type AccountId = u64 ;
@@ -86,6 +86,10 @@ impl pallet_balances::Config for TestRuntime {
8686 type WeightInfo = ( ) ;
8787 type MaxReserves = ( ) ;
8888 type ReserveIdentifier = ( ) ;
89+ type HoldIdentifier = ( ) ;
90+ type FreezeIdentifier = ( ) ;
91+ type MaxHolds = ConstU32 < 0 > ;
92+ type MaxFreezes = ConstU32 < 0 > ;
8993}
9094
9195impl pallet_bridge_relayers:: Config for TestRuntime {
You can’t perform that action at this time.
0 commit comments