Module killswitch

Source
Expand description

Emergency pause and termination of contracts. You MUST implement admin in your contract if you want to use this module. This is enforced when using Fadroma DSL. See the examples on how to implement it.

Structs§

DefaultImpl
KillswitchNs

Enums§

ContractStatus
Possible states of a contract.
ExecuteMsg
QueryMsg

Constants§

STORE

Traits§

Killswitch
Requires the admin component in order to check for admin.

Functions§

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