Skip to content

Latest commit

 

History

History
404 lines (342 loc) · 11.6 KB

Administered.md

File metadata and controls

404 lines (342 loc) · 11.6 KB

Administered.sol

View Source: contracts/mockup/TimelockHarness.sol

↗ Extends: Timelock

Administered contract

Functions


_acceptAdmin

function _acceptAdmin() external nonpayable
returns(uint256)
Source Code
function _acceptAdmin() external returns (uint256);

constructor

function (address admin_, uint256 delay_) public nonpayable Timelock 

Arguments

Name Type Description
admin_ address
delay_ uint256
Source Code
constructor(address admin_, uint256 delay_) public Timelock(admin_, delay_) {}

setDelayWithoutChecking

function setDelayWithoutChecking(uint256 delay_) public nonpayable

Arguments

Name Type Description
delay_ uint256
Source Code
function setDelayWithoutChecking(uint256 delay_) public {
        delay = delay_;

        emit NewDelay(delay);
    }

harnessSetPendingAdmin

function harnessSetPendingAdmin(address pendingAdmin_) public nonpayable

Arguments

Name Type Description
pendingAdmin_ address
Source Code
function harnessSetPendingAdmin(address pendingAdmin_) public {
        pendingAdmin = pendingAdmin_;
    }

harnessSetAdmin

function harnessSetAdmin(address admin_) public nonpayable

Arguments

Name Type Description
admin_ address
Source Code
function harnessSetAdmin(address admin_) public {
        admin = admin_;
    }

constructor

function (address admin_, uint256 delay_) public nonpayable Timelock 

Arguments

Name Type Description
admin_ address
delay_ uint256
Source Code
constructor(address admin_, uint256 delay_) public Timelock(admin_, 2 days) {
        delay = delay_;
    }

harnessSetAdmin

function harnessSetAdmin(address admin_) public nonpayable

Arguments

Name Type Description
admin_ address
Source Code
function harnessSetAdmin(address admin_) public {
        require(msg.sender == admin);
        admin = admin_;
    }

harnessAcceptAdmin

function harnessAcceptAdmin(Administered administered) public nonpayable

Arguments

Name Type Description
administered Administered
Source Code
function harnessAcceptAdmin(Administered administered) public {
        administered._acceptAdmin();
    }

Contracts