IDisableable

Git Source

Inherits: IAuthorizable

Functions

contractEnabled

Check if the contract is enabled

function contractEnabled() external view returns (bool _contractEnabled);

Returns

NameTypeDescription
_contractEnabledboolTrue if the contract is enabled

disableContract

External method to trigger the contract disablement

Triggers an internal call to _onContractDisable virtual method

function disableContract() external;

Events

DisableContract

Emitted when the inheriting contract is disabled

event DisableContract();

Errors

ContractIsEnabled

Throws when trying to call a whenDisabled method when the contract is enabled

error ContractIsEnabled();

ContractIsDisabled

Throws when trying to call a whenEnabled method when the contract is disabled

error ContractIsDisabled();

NonDisableable

Throws when trying to disable a contract that cannot be disabled

error NonDisableable();