Expand description
Prelude to be used alongside pallet macro, for ease of use.
Functions§
- ensure_
authorized - Ensure that the origin
orepresents an extrinsic with authorized call. ReturnsOkor anErrotherwise. - ensure_
none - Ensure that the origin
orepresents an unsigned extrinsic. ReturnsOkor anErrotherwise. - ensure_
root - Ensure that the origin
orepresents the root. ReturnsOkor anErrotherwise. - ensure_
signed - Ensure that the origin
orepresents a signed extrinsic (i.e. transaction). ReturnsOkwith the account that signed the extrinsic or anErrotherwise. - ensure_
signed_ or_ root - Ensure that the origin
orepresents either a signed extrinsic (i.e. transaction) or the root. ReturnsOkwith the account that signed the extrinsic,Noneif it was root, or anErrotherwise.
Type Aliases§
- Account
IdFor - Type alias for the
AccountIdassociated type of system config. - Block
Number For - Type alias for the
BlockNumberassociated type of system config. - Extrinsic
For - Type alias for the
Extrinsicassociated type of system config. - Header
For - Type alias for the
Header. - Origin
For - Type alias for the
Originassociated type of system config. - Runtime
Call For - Type alias for the
RuntimeCallassociated type of system config.