Module pallet_prelude
Expand description
Prelude to be used alongside pallet macro, for ease of use.
Functions§
- ensure_
authorized - Ensure that the origin
o
represents an extrinsic with authorized call. ReturnsOk
or anErr
otherwise. - ensure_
none - Ensure that the origin
o
represents an unsigned extrinsic. ReturnsOk
or anErr
otherwise. - ensure_
root - Ensure that the origin
o
represents the root. ReturnsOk
or anErr
otherwise. - ensure_
signed - Ensure that the origin
o
represents a signed extrinsic (i.e. transaction). ReturnsOk
with the account that signed the extrinsic or anErr
otherwise. - ensure_
signed_ or_ root - Ensure that the origin
o
represents either a signed extrinsic (i.e. transaction) or the root. ReturnsOk
with the account that signed the extrinsic,None
if it was root, or anErr
otherwise.
Type Aliases§
- Account
IdFor - Type alias for the
AccountId
associated type of system config. - Block
Number For - Type alias for the
BlockNumber
associated type of system config. - Extrinsic
For - Type alias for the
Extrinsic
associated type of system config. - Header
For - Type alias for the
Header
. - Origin
For - Type alias for the
Origin
associated type of system config. - Runtime
Call For - Type alias for the
RuntimeCall
associated type of system config.