referrerpolicy=no-referrer-when-downgrade

Crate pallet_pgas_allowance

Crate pallet_pgas_allowance 

Source
Expand description

§Gas Allowance Pallet

Provides the ChargePGAS transaction extension. When a signed transaction dispatching a call that passes Config::CallFilter is submitted by an account holding at least the required fee in the PGAS asset, the fee is withdrawn as a [fungibles::Credit] held in the extension’s Pre. Any unused portion is refunded from that credit in post_dispatch; the remainder is dropped, which burns the consumed fee via OnDropCredit. A Event::PGASFeePaid event is emitted mirroring [pallet_transaction_payment::Event::TransactionFeePaid] so PGAS fee payments are observable.

Re-exports§

pub use weights::WeightInfo;
pub use pallet::*;

Modules§

pallet
The pallet module in each FRAME pallet hosts the most important items needed to construct this pallet.
weights
Weights for pallet_pgas_allowance.

Structs§

ChargePGAS
Transaction extension that charges transaction fees in PGAS when the caller holds enough and the dispatched call passes Config::CallFilter. Otherwise it delegates to the wrapped extension S.

Enums§

Pre
Info passed from prepare to post_dispatch.
Val
Info passed from validate to prepare.

Traits§

BenchmarkHelperTrait
Trait used by runtimes to mint PGAS to the benchmark caller.