mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-25 10:35:48 +00:00
update Substrate and Polkadot (to include new transaction priority) (#645)
* update Substrate and Polkadot * Update parachain-template/runtime/src/lib.rs Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
Generated
+238
-238
File diff suppressed because it is too large
Load Diff
@@ -363,6 +363,7 @@ impl pallet_balances::Config for Runtime {
|
|||||||
parameter_types! {
|
parameter_types! {
|
||||||
/// Relay Chain `TransactionByteFee` / 10
|
/// Relay Chain `TransactionByteFee` / 10
|
||||||
pub const TransactionByteFee: Balance = 10 * MICROUNIT;
|
pub const TransactionByteFee: Balance = 10 * MICROUNIT;
|
||||||
|
pub const OperationalFeeMultiplier: u8 = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl pallet_transaction_payment::Config for Runtime {
|
impl pallet_transaction_payment::Config for Runtime {
|
||||||
@@ -370,6 +371,7 @@ impl pallet_transaction_payment::Config for Runtime {
|
|||||||
type TransactionByteFee = TransactionByteFee;
|
type TransactionByteFee = TransactionByteFee;
|
||||||
type WeightToFee = WeightToFee;
|
type WeightToFee = WeightToFee;
|
||||||
type FeeMultiplierUpdate = SlowAdjustingFeeUpdate<Self>;
|
type FeeMultiplierUpdate = SlowAdjustingFeeUpdate<Self>;
|
||||||
|
type OperationalFeeMultiplier = OperationalFeeMultiplier;
|
||||||
}
|
}
|
||||||
|
|
||||||
parameter_types! {
|
parameter_types! {
|
||||||
|
|||||||
@@ -231,11 +231,16 @@ impl pallet_balances::Config for Runtime {
|
|||||||
|
|
||||||
impl pallet_randomness_collective_flip::Config for Runtime {}
|
impl pallet_randomness_collective_flip::Config for Runtime {}
|
||||||
|
|
||||||
|
parameter_types! {
|
||||||
|
pub const OperationalFeeMultiplier: u8 = 5;
|
||||||
|
}
|
||||||
|
|
||||||
impl pallet_transaction_payment::Config for Runtime {
|
impl pallet_transaction_payment::Config for Runtime {
|
||||||
type OnChargeTransaction = pallet_transaction_payment::CurrencyAdapter<Balances, ()>;
|
type OnChargeTransaction = pallet_transaction_payment::CurrencyAdapter<Balances, ()>;
|
||||||
type TransactionByteFee = TransactionByteFee;
|
type TransactionByteFee = TransactionByteFee;
|
||||||
type WeightToFee = IdentityFee<Balance>;
|
type WeightToFee = IdentityFee<Balance>;
|
||||||
type FeeMultiplierUpdate = ();
|
type FeeMultiplierUpdate = ();
|
||||||
|
type OperationalFeeMultiplier = OperationalFeeMultiplier;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl pallet_sudo::Config for Runtime {
|
impl pallet_sudo::Config for Runtime {
|
||||||
|
|||||||
@@ -207,6 +207,7 @@ impl pallet_balances::Config for Runtime {
|
|||||||
parameter_types! {
|
parameter_types! {
|
||||||
/// Relay Chain `TransactionByteFee` / 10
|
/// Relay Chain `TransactionByteFee` / 10
|
||||||
pub const TransactionByteFee: Balance = 1 * MILLICENTS;
|
pub const TransactionByteFee: Balance = 1 * MILLICENTS;
|
||||||
|
pub const OperationalFeeMultiplier: u8 = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl pallet_transaction_payment::Config for Runtime {
|
impl pallet_transaction_payment::Config for Runtime {
|
||||||
@@ -215,6 +216,7 @@ impl pallet_transaction_payment::Config for Runtime {
|
|||||||
type TransactionByteFee = TransactionByteFee;
|
type TransactionByteFee = TransactionByteFee;
|
||||||
type WeightToFee = WeightToFee;
|
type WeightToFee = WeightToFee;
|
||||||
type FeeMultiplierUpdate = SlowAdjustingFeeUpdate<Self>;
|
type FeeMultiplierUpdate = SlowAdjustingFeeUpdate<Self>;
|
||||||
|
type OperationalFeeMultiplier = OperationalFeeMultiplier;
|
||||||
}
|
}
|
||||||
|
|
||||||
parameter_types! {
|
parameter_types! {
|
||||||
|
|||||||
@@ -200,6 +200,7 @@ impl pallet_balances::Config for Runtime {
|
|||||||
parameter_types! {
|
parameter_types! {
|
||||||
/// Relay Chain `TransactionByteFee` / 10
|
/// Relay Chain `TransactionByteFee` / 10
|
||||||
pub const TransactionByteFee: Balance = 1 * MILLICENTS;
|
pub const TransactionByteFee: Balance = 1 * MILLICENTS;
|
||||||
|
pub const OperationalFeeMultiplier: u8 = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl pallet_transaction_payment::Config for Runtime {
|
impl pallet_transaction_payment::Config for Runtime {
|
||||||
@@ -208,6 +209,7 @@ impl pallet_transaction_payment::Config for Runtime {
|
|||||||
type TransactionByteFee = TransactionByteFee;
|
type TransactionByteFee = TransactionByteFee;
|
||||||
type WeightToFee = WeightToFee;
|
type WeightToFee = WeightToFee;
|
||||||
type FeeMultiplierUpdate = SlowAdjustingFeeUpdate<Self>;
|
type FeeMultiplierUpdate = SlowAdjustingFeeUpdate<Self>;
|
||||||
|
type OperationalFeeMultiplier = OperationalFeeMultiplier;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl pallet_randomness_collective_flip::Config for Runtime {}
|
impl pallet_randomness_collective_flip::Config for Runtime {}
|
||||||
|
|||||||
@@ -200,6 +200,7 @@ impl pallet_balances::Config for Runtime {
|
|||||||
parameter_types! {
|
parameter_types! {
|
||||||
/// Relay Chain `TransactionByteFee` / 10
|
/// Relay Chain `TransactionByteFee` / 10
|
||||||
pub const TransactionByteFee: Balance = 1 * MILLICENTS;
|
pub const TransactionByteFee: Balance = 1 * MILLICENTS;
|
||||||
|
pub const OperationalFeeMultiplier: u8 = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl pallet_transaction_payment::Config for Runtime {
|
impl pallet_transaction_payment::Config for Runtime {
|
||||||
@@ -208,6 +209,7 @@ impl pallet_transaction_payment::Config for Runtime {
|
|||||||
type TransactionByteFee = TransactionByteFee;
|
type TransactionByteFee = TransactionByteFee;
|
||||||
type WeightToFee = WeightToFee;
|
type WeightToFee = WeightToFee;
|
||||||
type FeeMultiplierUpdate = SlowAdjustingFeeUpdate<Self>;
|
type FeeMultiplierUpdate = SlowAdjustingFeeUpdate<Self>;
|
||||||
|
type OperationalFeeMultiplier = OperationalFeeMultiplier;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl pallet_randomness_collective_flip::Config for Runtime {}
|
impl pallet_randomness_collective_flip::Config for Runtime {}
|
||||||
|
|||||||
@@ -223,11 +223,16 @@ impl pallet_balances::Config for Runtime {
|
|||||||
type ReserveIdentifier = [u8; 8];
|
type ReserveIdentifier = [u8; 8];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
parameter_types! {
|
||||||
|
pub const OperationalFeeMultiplier: u8 = 5;
|
||||||
|
}
|
||||||
|
|
||||||
impl pallet_transaction_payment::Config for Runtime {
|
impl pallet_transaction_payment::Config for Runtime {
|
||||||
type OnChargeTransaction = pallet_transaction_payment::CurrencyAdapter<Balances, ()>;
|
type OnChargeTransaction = pallet_transaction_payment::CurrencyAdapter<Balances, ()>;
|
||||||
type TransactionByteFee = TransactionByteFee;
|
type TransactionByteFee = TransactionByteFee;
|
||||||
type WeightToFee = IdentityFee<Balance>;
|
type WeightToFee = IdentityFee<Balance>;
|
||||||
type FeeMultiplierUpdate = ();
|
type FeeMultiplierUpdate = ();
|
||||||
|
type OperationalFeeMultiplier = OperationalFeeMultiplier;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl pallet_randomness_collective_flip::Config for Runtime {}
|
impl pallet_randomness_collective_flip::Config for Runtime {}
|
||||||
|
|||||||
Reference in New Issue
Block a user