From dcad7a34c00a56c839ff83593fbab6d5a109f71c Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Fri, 29 Apr 2022 09:57:49 +0000 Subject: [PATCH] fix: runtimes building --- --- a/runtime/quartz/src/lib.rs +++ b/runtime/quartz/src/lib.rs @@ -52,7 +52,7 @@ EnsureAddressTruncated, HashedAddressMapping, Runner, account::CrossAccountId as _, }; pub use frame_support::{ - construct_runtime, match_type, + construct_runtime, match_types, dispatch::DispatchResult, PalletId, parameter_types, StorageValue, ConsensusEngineId, traits::{ @@ -63,7 +63,7 @@ weights::{ constants::{BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight, WEIGHT_PER_SECOND}, DispatchClass, DispatchInfo, GetDispatchInfo, IdentityFee, Pays, PostDispatchInfo, Weight, - WeightToFeePolynomial, WeightToFeeCoefficient, WeightToFeeCoefficients, + WeightToFeePolynomial, WeightToFeeCoefficient, WeightToFeeCoefficients, ConstantMultiplier, }, }; use up_data_structs::*; @@ -78,7 +78,7 @@ }; use smallvec::smallvec; use codec::{Encode, Decode}; -use pallet_evm::{Account as EVMAccount, FeeCalculator, GasWeightMapping, OnMethodCall}; +use pallet_evm::{Account as EVMAccount, FeeCalculator, GasWeightMapping}; use fp_rpc::TransactionStatus; use sp_runtime::{ traits::{BlockNumberProvider, Dispatchable, PostDispatchInfoOf, Saturating}, @@ -305,7 +305,7 @@ impl pallet_ethereum::Config for Runtime { type Event = Event; - type StateRoot = pallet_ethereum::IntermediateStateRoot; + type StateRoot = pallet_ethereum::IntermediateStateRoot; } impl pallet_randomness_collective_flip::Config for Runtime {} @@ -473,7 +473,7 @@ impl pallet_transaction_payment::Config for Runtime { type OnChargeTransaction = pallet_transaction_payment::CurrencyAdapter; - type TransactionByteFee = TransactionByteFee; + type LengthToFee = ConstantMultiplier; type OperationalFeeMultiplier = OperationalFeeMultiplier; type WeightToFee = LinearFee; type FeeMultiplierUpdate = (); @@ -652,7 +652,7 @@ pub const MaxAuthorities: u32 = 100_000; } -match_type! { +match_types! { pub type ParentOrParentsUnitPlurality: impl Contains = { MultiLocation { parents: 1, interior: Here } | MultiLocation { parents: 1, interior: X1(Plurality { id: BodyId::Unit, .. }) } --- a/runtime/unique/src/lib.rs +++ b/runtime/unique/src/lib.rs @@ -52,7 +52,7 @@ EnsureAddressTruncated, HashedAddressMapping, Runner, account::CrossAccountId as _, }; pub use frame_support::{ - construct_runtime, match_type, + construct_runtime, match_types, dispatch::DispatchResult, PalletId, parameter_types, StorageValue, ConsensusEngineId, traits::{ @@ -63,7 +63,7 @@ weights::{ constants::{BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight, WEIGHT_PER_SECOND}, DispatchClass, DispatchInfo, GetDispatchInfo, IdentityFee, Pays, PostDispatchInfo, Weight, - WeightToFeePolynomial, WeightToFeeCoefficient, WeightToFeeCoefficients, + WeightToFeePolynomial, WeightToFeeCoefficient, WeightToFeeCoefficients, ConstantMultiplier, }, }; use up_data_structs::*; @@ -78,7 +78,7 @@ }; use smallvec::smallvec; use codec::{Encode, Decode}; -use pallet_evm::{Account as EVMAccount, FeeCalculator, GasWeightMapping, OnMethodCall}; +use pallet_evm::{Account as EVMAccount, FeeCalculator, GasWeightMapping}; use fp_rpc::TransactionStatus; use sp_runtime::{ traits::{BlockNumberProvider, Dispatchable, PostDispatchInfoOf, Saturating}, @@ -304,7 +304,7 @@ impl pallet_ethereum::Config for Runtime { type Event = Event; - type StateRoot = pallet_ethereum::IntermediateStateRoot; + type StateRoot = pallet_ethereum::IntermediateStateRoot; } impl pallet_randomness_collective_flip::Config for Runtime {} @@ -472,7 +472,7 @@ impl pallet_transaction_payment::Config for Runtime { type OnChargeTransaction = pallet_transaction_payment::CurrencyAdapter; - type TransactionByteFee = TransactionByteFee; + type LengthToFee = ConstantMultiplier; type OperationalFeeMultiplier = OperationalFeeMultiplier; type WeightToFee = LinearFee; type FeeMultiplierUpdate = (); @@ -651,7 +651,7 @@ pub const MaxAuthorities: u32 = 100_000; } -match_type! { +match_types! { pub type ParentOrParentsUnitPlurality: impl Contains = { MultiLocation { parents: 1, interior: Here } | MultiLocation { parents: 1, interior: X1(Plurality { id: BodyId::Unit, .. }) } -- gitstuff