Skip to content
ClearClear
Docs
Protocol/EarnTimelock

EarnTimelock

Source: defined outside contracts/

1 min readView source

On this page
Network
Chain id
Address
Base Sepolia
84532

Functions that change state

Function
Who can call
Also
cancel(bytes32 id)
Defined outside contracts/
execute(address target, uint256 value, bytes payload, bytes32 predecessor, bytes32 salt)
Defined outside contracts/
payable
executeBatch(address[] targets, uint256[] values, bytes[] payloads, bytes32 predecessor, bytes32 salt)
Defined outside contracts/
payable
grantRole(bytes32 role, address account)
The role's admin role (DEFAULT_ADMIN_ROLE unless set otherwise)
onERC1155BatchReceived(address, address, uint256[], uint256[], bytes)
Defined outside contracts/
onERC1155Received(address, address, uint256, uint256, bytes)
Defined outside contracts/
onERC721Received(address, address, uint256, bytes)
Defined outside contracts/
renounceRole(bytes32 role, address account)
Only the account renouncing its own role
revokeRole(bytes32 role, address account)
The role's admin role (DEFAULT_ADMIN_ROLE unless set otherwise)
schedule(address target, uint256 value, bytes data, bytes32 predecessor, bytes32 salt, uint256 delay)
Defined outside contracts/
scheduleBatch(address[] targets, uint256[] values, bytes[] payloads, bytes32 predecessor, bytes32 salt, uint256 delay)
Defined outside contracts/
updateDelay(uint256 newDelay)
Defined outside contracts/

Read functions

Anyone can call these; they change nothing.

Function
Returns
CANCELLER_ROLE()
bytes32
DEFAULT_ADMIN_ROLE()
bytes32
EXECUTOR_ROLE()
bytes32
getMinDelay()
uint256
getRoleAdmin(bytes32 role)
bytes32
getTimestamp(bytes32 id)
uint256
hashOperation(address target, uint256 value, bytes data, bytes32 predecessor, bytes32 salt)
bytes32
hashOperationBatch(address[] targets, uint256[] values, bytes[] payloads, bytes32 predecessor, bytes32 salt)
bytes32
hasRole(bytes32 role, address account)
bool
isOperation(bytes32 id)
bool
isOperationDone(bytes32 id)
bool
isOperationPending(bytes32 id)
bool
isOperationReady(bytes32 id)
bool
PROPOSER_ROLE()
bytes32
supportsInterface(bytes4 interfaceId)
bool
TIMELOCK_ADMIN_ROLE()
bytes32

Events

Event
CallExecuted(bytes32 id indexed, uint256 index indexed, address target, uint256 value, bytes data)
CallSalt(bytes32 id indexed, bytes32 salt)
CallScheduled(bytes32 id indexed, uint256 index indexed, address target, uint256 value, bytes data, bytes32 predecessor, uint256 delay)
Cancelled(bytes32 id indexed)
MinDelayChange(uint256 oldDuration, uint256 newDuration)
RoleAdminChanged(bytes32 role indexed, bytes32 previousAdminRole indexed, bytes32 newAdminRole indexed)
RoleGranted(bytes32 role indexed, address account indexed, address sender indexed)
RoleRevoked(bytes32 role indexed, address account indexed, address sender indexed)

Errors

No custom errors; failures revert with a reason string.