Module-level declarations
Types
Link copied to clipboard
struct module_args
The configs used by the admin module
Functions
Link copied to clipboard
Retrieves the admin pubkey that was configured in module args. Used by external.admin
to access this information, since a module cannot access a different module's moduleArgs
.
Not intended to be used by developers.
Link copied to clipboard
Utility function that checks if the signer is admin. Not intended for use in production. If you need admin functionality, e.g. for authorizing certain operations that the users should never be allowed to call, building a different framework for that is strongly recommended, as it will allow multisigs and rotating the admin key.
Can only be called from an operation.
Throws "ADMIN REQUIRED"
if the signer is not admin