Module fadroma::killswitch

source ·
Expand description

Emergency pause and termination of contracts. You MUST implement admin in your contract if you want to use this module.

Structs

Current state of a contract w/ optional description and pointer to new version.

Enums

Possible states of a contract.

Constants

Traits

Requires the admin component in order to check for admin.

Functions

Fail if trying to return from ContractStatusLevel::Migrating status.
Fail if the current contract status level is other than ContractStatusLevel::Operational.
Returns false if the current contract status level is other than ContractStatusLevel::Operational.
Store a new contract status. Requires the admin component in order to check for admin.