Skip to content
LogoLogo

IMakinaXGovernable

Git Source

Functions

safe

Address of the Safe.

function safe() external view returns (address);

Returns

NameTypeDescription
<none>address

provider

Address of the MakinaX service account.

function provider() external view returns (address);

Returns

NameTypeDescription
<none>address

isOperator

Account => Whether the account is an operator.

function isOperator(address account) external view returns (bool);

Parameters

NameTypeDescription
accountaddress

Returns

NameTypeDescription
<none>bool

isGuardian

Account => Whether the account is a guardian.

function isGuardian(address account) external view returns (bool);

Parameters

NameTypeDescription
accountaddress

Returns

NameTypeDescription
<none>bool

operatingMode

Current operating mode of the contract.

function operatingMode() external view returns (OperatingMode);

Returns

NameTypeDescription
<none>OperatingMode

suspendedByProvider

True if the contract is suspended by the provider, false otherwise.

function suspendedByProvider() external view returns (bool);

Returns

NameTypeDescription
<none>bool

paused

True if the contract is paused by a guardian, false otherwise.

function paused() external view returns (bool);

Returns

NameTypeDescription
<none>bool

setProvider

Sets the provider address.

function setProvider(address newProvider) external;

Parameters

NameTypeDescription
newProvideraddressThe address of the new provider.

addOperator

Adds a new operator.

function addOperator(address newOperator) external;

Parameters

NameTypeDescription
newOperatoraddressThe address of the new operator.

removeOperator

Removes an operator.

function removeOperator(address operator) external;

Parameters

NameTypeDescription
operatoraddressThe address of the operator to remove.

addGuardian

Adds a new guardian.

function addGuardian(address newGuardian) external;

Parameters

NameTypeDescription
newGuardianaddressThe address of the new guardian.

removeGuardian

Removes a guardian.

function removeGuardian(address guardian) external;

Parameters

NameTypeDescription
guardianaddressThe address of the guardian to remove.

setOperatingMode

Sets the operating mode.

function setOperatingMode(OperatingMode newMode) external;

Parameters

NameTypeDescription
newModeOperatingModeThe operating mode to set.

suspend

Suspends operations. Used by the provider to enforce service restrictions.

function suspend() external;

unsuspend

Restores operations after a provider suspension.

function unsuspend() external;

pause

Pauses operations. Used by a guardian in case of emergency.

function pause() external;

unpause

Unpauses operations after an emergency pause.

function unpause() external;

Events

GuardianAdded

event GuardianAdded(address indexed newGuardian);

Parameters

NameTypeDescription
newGuardianaddress

GuardianRemoved

event GuardianRemoved(address indexed guardian);

Parameters

NameTypeDescription
guardianaddress

OperatingModeChanged

event OperatingModeChanged(OperatingMode indexed mode);

Parameters

NameTypeDescription
modeOperatingMode

OperatorAdded

event OperatorAdded(address indexed newOperator);

Parameters

NameTypeDescription
newOperatoraddress

OperatorRemoved

event OperatorRemoved(address indexed operator);

Parameters

NameTypeDescription
operatoraddress

Paused

event Paused(address indexed guardian);

Parameters

NameTypeDescription
guardianaddress

Unpaused

event Unpaused(address indexed guardian);

Parameters

NameTypeDescription
guardianaddress

ProviderChanged

event ProviderChanged(address indexed oldProvider, address indexed newProvider);

Parameters

NameTypeDescription
oldProvideraddress
newProvideraddress

Suspended

event Suspended();

Unsuspended

event Unsuspended();

Enums

OperatingMode

Operating modes of a module, ordered by increasing restriction.

enum OperatingMode {
        OPEN,
        FENCED,
        WALLED
    }

Variants

NameDescription
OPEN
FENCED
WALLED