IAdministrable

Git Source

Author: mortimr @ Kiln

This contract provides all the utilities to handle the administration and its transfer.

Unstructured Storage Friendly

Functions

admin

Retrieve the admin address.

function admin() external view returns (address adminAddress);

Returns

NameTypeDescription
adminAddressaddressThe admin address

pendingAdmin

Retrieve the pending admin address.

function pendingAdmin() external view returns (address pendingAdminAddress);

Returns

NameTypeDescription
pendingAdminAddressaddressThe pending admin address

transferAdmin

Propose a new admin.

Only callable by the admin

function transferAdmin(address _newAdmin) external;

Parameters

NameTypeDescription
_newAdminaddressThe new admin to propose

acceptAdmin

Accept an admin transfer.

Only callable by the pending admin

function acceptAdmin() external;

Events

SetAdmin

The admin address has been changed.

event SetAdmin(address admin);

SetPendingAdmin

The pending admin address has been changed.

event SetPendingAdmin(address pendingAdmin);