domain_pallet_executive

Trait ExtrinsicStorageFees

source
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§

source

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.

source

fn on_storage_fees_charged( charged_fees: <<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance, tx_size: u32, ) -> Result<(), TransactionValidityError>

Hook to note operator rewards for charged storage fees.

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.

Implementors§