pub trait ExtrinsicStorageFees<T: Config> {
// Required methods
fn extract_signer(
xt: <<T as Config>::Block as BlockT>::Extrinsic,
) -> (Option<<T as Config>::AccountId>, DispatchInfo);
fn on_storage_fees_charged(
charged_fees: <<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance,
tx_size: u32,
) -> Result<(), TransactionValidityError>;
}
Expand description
Trait trait used to charge the extrinsic storage.
Required Methods§
sourcefn extract_signer(
xt: <<T as Config>::Block as BlockT>::Extrinsic,
) -> (Option<<T as Config>::AccountId>, DispatchInfo)
fn extract_signer( xt: <<T as Config>::Block as BlockT>::Extrinsic, ) -> (Option<<T as Config>::AccountId>, DispatchInfo)
Extracts signer from given extrinsic and its dispatch info.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.