mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 18:07:58 +00:00
Use the balance trait as we have one (#13136)
This commit is contained in:
@@ -1,15 +1,11 @@
|
||||
/// ! Traits and default implementation for paying transaction fees.
|
||||
use crate::Config;
|
||||
|
||||
use codec::FullCodec;
|
||||
use sp_runtime::{
|
||||
traits::{
|
||||
AtLeast32BitUnsigned, DispatchInfoOf, MaybeSerializeDeserialize, PostDispatchInfoOf,
|
||||
Saturating, Zero,
|
||||
},
|
||||
traits::{DispatchInfoOf, PostDispatchInfoOf, Saturating, Zero},
|
||||
transaction_validity::InvalidTransaction,
|
||||
};
|
||||
use sp_std::{fmt::Debug, marker::PhantomData};
|
||||
use sp_std::marker::PhantomData;
|
||||
|
||||
use frame_support::{
|
||||
traits::{Currency, ExistenceRequirement, Imbalance, OnUnbalanced, WithdrawReasons},
|
||||
@@ -22,13 +18,8 @@ type NegativeImbalanceOf<C, T> =
|
||||
/// Handle withdrawing, refunding and depositing of transaction fees.
|
||||
pub trait OnChargeTransaction<T: Config> {
|
||||
/// The underlying integer type in which fees are calculated.
|
||||
type Balance: AtLeast32BitUnsigned
|
||||
+ FullCodec
|
||||
+ Copy
|
||||
+ MaybeSerializeDeserialize
|
||||
+ Debug
|
||||
+ Default
|
||||
+ scale_info::TypeInfo;
|
||||
type Balance: frame_support::traits::tokens::Balance;
|
||||
|
||||
type LiquidityInfo: Default;
|
||||
|
||||
/// Before the transaction is executed the payment of the transaction fees
|
||||
|
||||
Reference in New Issue
Block a user