Timelock

Functions

constructor

function constructor(
    address admin_,
    uint256 delay_,
    uint256 minDelay_
) public

Parameters

NameTypeDescription

admin_

address

delay_

uint256

minDelay_

uint256

receive

function receive() external

setDelay

function setDelay(
    uint256 delay_
) public

Parameters

NameTypeDescription

delay_

uint256

acceptAdmin

function acceptAdmin() public

setPendingAdmin

function setPendingAdmin(
    address pendingAdmin_
) public

Parameters

NameTypeDescription

pendingAdmin_

address

queueTransaction

function queueTransaction(
    address target,
    uint256 value,
    string signature,
    bytes data,
    uint256 eta
) public returns (bytes32)

Parameters

NameTypeDescription

target

address

value

uint256

signature

string

data

bytes

eta

uint256

cancelTransaction

function cancelTransaction(
    address target,
    uint256 value,
    string signature,
    bytes data,
    uint256 eta
) public

Parameters

NameTypeDescription

target

address

value

uint256

signature

string

data

bytes

eta

uint256

_cancelTransaction

function _cancelTransaction(
    address target,
    uint256 value,
    string signature,
    bytes data,
    uint256 eta
) internal

Parameters

NameTypeDescription

target

address

value

uint256

signature

string

data

bytes

eta

uint256

executeTransaction

function executeTransaction(
    address target,
    uint256 value,
    string signature,
    bytes data,
    uint256 eta
) public returns (bytes)

Parameters

NameTypeDescription

target

address

value

uint256

signature

string

data

bytes

eta

uint256

getTxHash

function getTxHash(
    address target,
    uint256 value,
    string signature,
    bytes data,
    uint256 eta
) public returns (bytes32)

Parameters

NameTypeDescription

target

address

value

uint256

signature

string

data

bytes

eta

uint256

getBlockTimestamp

function getBlockTimestamp() internal returns (uint256)

Events

NewAdmin

event NewAdmin(
    address newAdmin
)

Parameters

NameTypeDescription

newAdmin

address

### NewPendingAdmin

event NewPendingAdmin(
    address newPendingAdmin
)

Parameters

NameTypeDescription

newPendingAdmin

address

### NewDelay

event NewDelay(
    uint256 newDelay
)

Parameters

NameTypeDescription

newDelay

uint256

### CancelTransaction

event CancelTransaction(
    bytes32 txHash,
    address target,
    uint256 value,
    string signature,
    bytes data,
    uint256 eta
)

Parameters

NameTypeDescription

txHash

bytes32

target

address

value

uint256

signature

string

data

bytes

eta

uint256

### ExecuteTransaction

event ExecuteTransaction(
    bytes32 txHash,
    address target,
    uint256 value,
    string signature,
    bytes data,
    uint256 eta
)

Parameters

NameTypeDescription

txHash

bytes32

target

address

value

uint256

signature

string

data

bytes

eta

uint256

### QueueTransaction

event QueueTransaction(
    bytes32 txHash,
    address target,
    uint256 value,
    string signature,
    bytes data,
    uint256 eta
)

Parameters

NameTypeDescription

txHash

bytes32

target

address

value

uint256

signature

string

data

bytes

eta

uint256

Last updated