Trait fadroma::killswitch::Killswitch
source · pub trait Killswitch: Admin {
type Error: Display;
// Required methods
fn set_status(
deps: DepsMut<'_>,
env: Env,
info: MessageInfo,
status: ContractStatus<Addr>
) -> Result<Response, <Self as Killswitch>::Error>;
fn status(
deps: Deps<'_>,
env: Env
) -> Result<ContractStatus<Addr>, <Self as Killswitch>::Error>;
}
Expand description
Requires the admin component in order to check for admin.