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
palletmodule 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 extensionS.
Enums§
Traits§
- Benchmark
Helper Trait - Trait used by runtimes to mint PGAS to the benchmark caller.