Skip to main content

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
targetaddress
valueuint256
signaturestring
databytes
etauint256

cancelTransaction

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

Parameters

NameTypeDescription
targetaddress
valueuint256
signaturestring
databytes
etauint256

_cancelTransaction

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

Parameters

NameTypeDescription
targetaddress
valueuint256
signaturestring
databytes
etauint256

executeTransaction

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

Parameters

NameTypeDescription
targetaddress
valueuint256
signaturestring
databytes
etauint256

getTxHash

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

Parameters

NameTypeDescription
targetaddress
valueuint256
signaturestring
databytes
etauint256

getBlockTimestamp

function getBlockTimestamp() internal returns (uint256)

Events

NewAdmin

event NewAdmin(
address newAdmin
)

Parameters

NameTypeDescription
newAdminaddress

NewPendingAdmin

event NewPendingAdmin(
address newPendingAdmin
)

Parameters

NameTypeDescription
newPendingAdminaddress

NewDelay

event NewDelay(
uint256 newDelay
)

Parameters

NameTypeDescription
newDelayuint256

CancelTransaction

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

Parameters

NameTypeDescription
txHashbytes32
targetaddress
valueuint256
signaturestring
databytes
etauint256

ExecuteTransaction

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

Parameters

NameTypeDescription
txHashbytes32
targetaddress
valueuint256
signaturestring
databytes
etauint256

QueueTransaction

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

Parameters

NameTypeDescription
txHashbytes32
targetaddress
valueuint256
signaturestring
databytes
etauint256