difftreelog
fix runtimes building
in: master
2 files changed
runtime/quartz/src/lib.rsdiffbeforeafterboth--- 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<Self>;
}
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<Balances, DealWithFees>;
- type TransactionByteFee = TransactionByteFee;
+ type LengthToFee = ConstantMultiplier<Balance, TransactionByteFee>;
type OperationalFeeMultiplier = OperationalFeeMultiplier;
type WeightToFee = LinearFee<Balance>;
type FeeMultiplierUpdate = ();
@@ -652,7 +652,7 @@
pub const MaxAuthorities: u32 = 100_000;
}
-match_type! {
+match_types! {
pub type ParentOrParentsUnitPlurality: impl Contains<MultiLocation> = {
MultiLocation { parents: 1, interior: Here } |
MultiLocation { parents: 1, interior: X1(Plurality { id: BodyId::Unit, .. }) }
runtime/unique/src/lib.rsdiffbeforeafterboth52 EnsureAddressTruncated, HashedAddressMapping, Runner, account::CrossAccountId as _,52 EnsureAddressTruncated, HashedAddressMapping, Runner, account::CrossAccountId as _,53};53};54pub use frame_support::{54pub use frame_support::{55 construct_runtime, match_type,55 construct_runtime, match_types,56 dispatch::DispatchResult,56 dispatch::DispatchResult,57 PalletId, parameter_types, StorageValue, ConsensusEngineId,57 PalletId, parameter_types, StorageValue, ConsensusEngineId,58 traits::{58 traits::{63 weights::{63 weights::{64 constants::{BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight, WEIGHT_PER_SECOND},64 constants::{BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight, WEIGHT_PER_SECOND},65 DispatchClass, DispatchInfo, GetDispatchInfo, IdentityFee, Pays, PostDispatchInfo, Weight,65 DispatchClass, DispatchInfo, GetDispatchInfo, IdentityFee, Pays, PostDispatchInfo, Weight,66 WeightToFeePolynomial, WeightToFeeCoefficient, WeightToFeeCoefficients,66 WeightToFeePolynomial, WeightToFeeCoefficient, WeightToFeeCoefficients, ConstantMultiplier,67 },67 },68};68};69use up_data_structs::*;69use up_data_structs::*;78};78};79use smallvec::smallvec;79use smallvec::smallvec;80use codec::{Encode, Decode};80use codec::{Encode, Decode};81use pallet_evm::{Account as EVMAccount, FeeCalculator, GasWeightMapping, OnMethodCall};81use pallet_evm::{Account as EVMAccount, FeeCalculator, GasWeightMapping};82use fp_rpc::TransactionStatus;82use fp_rpc::TransactionStatus;83use sp_runtime::{83use sp_runtime::{84 traits::{BlockNumberProvider, Dispatchable, PostDispatchInfoOf, Saturating},84 traits::{BlockNumberProvider, Dispatchable, PostDispatchInfoOf, Saturating},304304305impl pallet_ethereum::Config for Runtime {305impl pallet_ethereum::Config for Runtime {306 type Event = Event;306 type Event = Event;307 type StateRoot = pallet_ethereum::IntermediateStateRoot;307 type StateRoot = pallet_ethereum::IntermediateStateRoot<Self>;308}308}309309310impl pallet_randomness_collective_flip::Config for Runtime {}310impl pallet_randomness_collective_flip::Config for Runtime {}472472473impl pallet_transaction_payment::Config for Runtime {473impl pallet_transaction_payment::Config for Runtime {474 type OnChargeTransaction = pallet_transaction_payment::CurrencyAdapter<Balances, DealWithFees>;474 type OnChargeTransaction = pallet_transaction_payment::CurrencyAdapter<Balances, DealWithFees>;475 type TransactionByteFee = TransactionByteFee;475 type LengthToFee = ConstantMultiplier<Balance, TransactionByteFee>;476 type OperationalFeeMultiplier = OperationalFeeMultiplier;476 type OperationalFeeMultiplier = OperationalFeeMultiplier;477 type WeightToFee = LinearFee<Balance>;477 type WeightToFee = LinearFee<Balance>;478 type FeeMultiplierUpdate = ();478 type FeeMultiplierUpdate = ();651 pub const MaxAuthorities: u32 = 100_000;651 pub const MaxAuthorities: u32 = 100_000;652}652}653653654match_type! {654match_types! {655 pub type ParentOrParentsUnitPlurality: impl Contains<MultiLocation> = {655 pub type ParentOrParentsUnitPlurality: impl Contains<MultiLocation> = {656 MultiLocation { parents: 1, interior: Here } |656 MultiLocation { parents: 1, interior: Here } |657 MultiLocation { parents: 1, interior: X1(Plurality { id: BodyId::Unit, .. }) }657 MultiLocation { parents: 1, interior: X1(Plurality { id: BodyId::Unit, .. }) }