Skip to main content

Emergency

Methods

MINTR

function MINTR() external view returns (contract MINTRv1)

Returns

NameTypeDescription
_0contract MINTRv1undefined

ROLES

function ROLES() external view returns (contract ROLESv1)

Returns

NameTypeDescription
_0contract ROLESv1undefined

TRSRY

function TRSRY() external view returns (contract TRSRYv1)

Returns

NameTypeDescription
_0contract TRSRYv1undefined

changeKernel

function changeKernel(contract Kernel newKernel_) external nonpayable

Function used by kernel when migrating to a new kernel.

Parameters

NameTypeDescription
newKernel_contract Kernelundefined

configureDependencies

function configureDependencies() external nonpayable returns (Keycode[] dependencies)

Define module dependencies for this policy.

Returns

NameTypeDescription
dependenciesKeycode[]- Keycode array of module dependencies.

isActive

function isActive() external view returns (bool)

Easily accessible indicator for if a policy is activated or not.

Returns

NameTypeDescription
_0boolundefined

kernel

function kernel() external view returns (contract Kernel)

Returns

NameTypeDescription
_0contract Kernelundefined

requestPermissions

function requestPermissions() external view returns (struct Permissions[] requests)

Function called by kernel to set module function permissions.

Returns

NameTypeDescription
requestsPermissions[]- Array of keycodes and function selectors for requested permissions.

restart

function restart() external nonpayable

Restart treasury withdrawals and minting after shutdown

restartMinting

function restartMinting() external nonpayable

Restart minting after shutdown

restartWithdrawals

function restartWithdrawals() external nonpayable

Restart treasury withdrawals after shutdown

shutdown

function shutdown() external nonpayable

Emergency shutdown of treasury withdrawals and minting

shutdownMinting

function shutdownMinting() external nonpayable

Emergency shutdown of minting

shutdownWithdrawals

function shutdownWithdrawals() external nonpayable

Emergency shutdown of treasury withdrawals

Events

Status

event Status(bool treasury_, bool minter_)

Parameters

NameTypeDescription
treasury_boolundefined
minter_boolundefined

Errors

KernelAdapter_OnlyKernel

error KernelAdapter_OnlyKernel(address caller_)

Parameters

NameTypeDescription
caller_addressundefined

Policy_ModuleDoesNotExist

error Policy_ModuleDoesNotExist(Keycode keycode_)

Parameters

NameTypeDescription
keycode_Keycodeundefined