Expand description
§Whitelist Pallet
§Overview
Allow some configurable origin: Config::WhitelistOrigin to whitelist some hash of a call,
and allow another configurable origin: Config::DispatchWhitelistedOrigin to dispatch them
with the root origin.
In the meantime the call corresponding to the hash must have been submitted to the pre-image
handler pallet::Config::Preimages.
§Deferred dispatch
A dispatch by Config::DispatchWhitelistedOrigin of a not-yet-whitelisted hash is deferred
into DeferredDispatch with an expiration. Once the hash is whitelisted, any signed account
can relay it as root, fee-free.
WhitelistedCall and DeferredDispatch are independent: each is written only by its own
origin and neither removes the other. Unwhitelisting therefore pauses a live deferral rather
than cancelling it. Relayers are blocked while the hash is off the whitelist, but
re-whitelisting it before expiry re-enables relayed execution without a new governance act.
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
- Autogenerated weights for
pallet_whitelist
Type Aliases§
- Provided
Block Number For - The Block number that we use to measure time.