Expand description
Transaction authentication by pre-configured admin address.
Modules
Admin functionality where a new admin can be set by sending a single message by the current admin.
Use this when the admin can be another contract.
Admin functionality where a new admin is set using a two-step process. First the current admin
initiates the change by nominating a new admin. Then the nominated address must accept the admin role.
Use this when the admin is always a wallet address and not a contract.
Structs
Constants
Functions
Asserts that the message sender is the admin. Otherwise returns an
Err
.Initializes the admin module. Sets the messages sender as the admin
if
address
is None
. You must call this in your instantiate message.