0xcfa0388f5ddf905fdc08c45c716c15dc10a14c6f
Solidity v0.8.20+commit.a1b79de6
管理與風險
誰能修改規則?
Detected role based controls from the verified ABI.
概覽
讀取函式
Block #25,989,133 · just nowReturns the bytes32 role identifier for accounts allowed to cancel scheduled operations.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | The bytes32 identifier for the CANCELLER_ROLE used to grant cancellation privileges.✨ AI |
Returns the identifier (bytes32) for the DEFAULT_ADMIN_ROLE used by role-based access control.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | The bytes32 role identifier representing the default admin role for access control checks.✨ AI |
Returns the role identifier used to grant executor permissions.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | The bytes32 identifier for the EXECUTOR_ROLE, used to check or grant executor privileges.✨ AI |
Returns the role identifier that grants permission to propose operations.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | The bytes32 identifier for PROPOSER_ROLE used to check or assign proposer permissions.✨ AI |
Return the current minimum delay required before queued operations can be executed.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | The minimum delay (in seconds) that must elapse before a queued operation can be executed.✨ AI |
Returns the current lifecycle state code of the timelock operation identified by id.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| id | bytes32 | Identifier hash of the timelock operation to query.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint8 | Unsigned 8-bit integer encoding the operation status; consult the contract's OperationState enum for value meanings.✨ AI |
Returns the admin role that controls the specified role.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| role | bytes32 | Identifier of the role to query, provided as a bytes32 role hash.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | Admin role identifier (bytes32) that can grant or revoke the specified role.✨ AI |
Returns the scheduled execution timestamp for the given operation identifier.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| id | bytes32 | The operation id (bytes32) to query.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | The Unix timestamp when the operation becomes executable, or 0 if not scheduled.✨ AI |
Returns whether an account has a specific role in the TimelockController.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| role | bytes32 | Role identifier as a bytes32 value.✨ AI |
| account | address | Address whose membership for the role is being checked.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the account has the role, false otherwise.✨ AI |
Computes the unique operation id for a scheduled transaction.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| target | address | Address that will receive the call when the operation executes.✨ AI |
| value | uint256 | Amount of wei to send with the call.✨ AI |
| data | bytes | Calldata payload to execute on the target.✨ AI |
| predecessor | bytes32 | Operation id that must execute before this one; zero for none.✨ AI |
| salt | bytes32 | User-provided salt to make the operation id unique.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | bytes32 operation id derived from the inputs, used to identify the scheduled operation.✨ AI |
Compute the unique id for a scheduled batch operation from its targets, values, payloads, predecessor, and salt.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| targets | address[] | Array of contract addresses that the batch will call.✨ AI |
| values | uint256[] | Array of ETH values (in wei) to send with each corresponding call.✨ AI |
| payloads | bytes[] | Array of encoded calldata bytes for each corresponding target call.✨ AI |
| predecessor | bytes32 | Operation id (bytes32) that must be executed before this batch; zero for none.✨ AI |
| salt | bytes32 | Arbitrary bytes32 value used to make the operation id unique.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | A bytes32 hash that uniquely identifies the batch operation (the operation id).✨ AI |
Check whether an operation with the given id is known by the timelock.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| id | bytes32 | The operation identifier (bytes32) to query.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the operation exists (pending, ready, or done); false if unknown.✨ AI |
Check whether a queued operation has been executed.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| id | bytes32 | Identifier (bytes32 hash) of the operation to check.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the operation has been executed; false otherwise.✨ AI |
Checks whether a scheduled operation with the given id is currently pending.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| id | bytes32 | Operation identifier (bytes32) to query.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the operation is pending (scheduled and not yet executed or canceled); otherwise false.✨ AI |
Report whether the operation identified by id is ready for execution.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| id | bytes32 | Operation identifier (bytes32) used to look up its scheduled state.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the operation is ready to execute (scheduled time passed and still pending); false otherwise.✨ AI |
Return whether the contract implements the given ERC-165 interface identifier.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| interfaceId | bytes4 | The ERC-165 interface identifier (four-byte) to query.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the contract implements the interface specified by interfaceId, otherwise false.✨ AI |
寫入函式
Cancel a previously scheduled/timed operation identified by id.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| id | bytes32 | Identifier (bytes32) of the scheduled operation to cancel.✨ AI |
Execute a scheduled operation by calling target with the provided value and payload.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| target | address | Destination contract or account to call.✨ AI |
| value | uint256 | Amount of wei to send with the call (forwarded as msg.value).✨ AI |
| payload | bytes | Encoded function call data or empty bytes for a plain ETH transfer.✨ AI |
| predecessor | bytes32 | Operation id that must be executed before this one (use zero for none).✨ AI |
| salt | bytes32 | Unique salt to disambiguate operations with identical params.✨ AI |
Execute a scheduled batch of transactions, performing each call in order after timelock checks.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| targets | address[] | List of addresses to call for each transaction.✨ AI |
| values | uint256[] | Ether values (in wei) to send with each corresponding call.✨ AI |
| payloads | bytes[] | Encoded calldata for each call to the corresponding target.✨ AI |
| predecessor | bytes32 | Operation id that must be executed before this batch; zero if none.✨ AI |
| salt | bytes32 | Unique salt used to derive the operation id for this batch.✨ AI |
Grants a role to an account on the timelock controller.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| role | bytes32 | The bytes32 identifier of the role to grant.✨ AI |
| account | address | The address that will receive the role.✨ AI |
Handles an incoming ERC-1155 batch transfer and signals acceptance or rejection.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | |
| — | address | |
| — | uint256[] | |
| — | uint256[] | |
| — | bytes |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes4 | `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed |
Handles a single ERC1155 token transfer and returns the acceptance selector.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | |
| — | address | |
| — | uint256 | |
| — | uint256 | |
| — | bytes |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes4 | `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed |
Handle an incoming ERC721 token transfer and signal acceptance to the caller.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | |
| — | address | |
| — | uint256 | |
| — | bytes |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes4 | The ERC721 receiver selector 0x150b7a02 indicating the contract accepts the token transfer.✨ AI |
Allows the caller to renounce a role for the specified account when the caller confirms the action.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| role | bytes32 | Role identifier to renounce, as a bytes32 hash.✨ AI |
| callerConfirmation | address | Address that must match msg.sender to confirm renunciation.✨ AI |
Revoke a role from an account, removing its granted permissions.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| role | bytes32 | Role identifier as a bytes32 value.✨ AI |
| account | address | Address of the account to revoke the role from.✨ AI |
Schedules an operation to be executed after a specified delay.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| target | address | Address of the contract or account to call when the operation executes.✨ AI |
| value | uint256 | Amount of wei to send to the target when executing the operation.✨ AI |
| data | bytes | Encoded function call data to execute on the target.✨ AI |
| predecessor | bytes32 | Identifier of a predecessor operation that must execute first, or zero for none.✨ AI |
| salt | bytes32 | Arbitrary salt used to make the operation id unique.✨ AI |
| delay | uint256 | Minimum delay in seconds before the scheduled operation becomes executable.✨ AI |
Schedules a batch of operations to become executable after a timelock delay.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| targets | address[] | Array of target contract addresses for each operation in the batch.✨ AI |
| values | uint256[] | Array of ETH values in wei to send with each call.✨ AI |
| payloads | bytes[] | Array of encoded call data (function selector + args) for each target.✨ AI |
| predecessor | bytes32 | Operation id that must be executed before this batch (bytes32 zero for none).✨ AI |
| salt | bytes32 | User-provided salt to make the operation identifier unique.✨ AI |
| delay | uint256 | Delay in seconds that must pass before the batch is executable.✨ AI |
Set the minimum delay for timelocked operations to newDelay.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| newDelay | uint256 | The new minimum delay (in seconds) that must pass before execution.✨ AI |
事件
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| id | bytes32 | ✓ | |
| index | uint256 | ✓ | |
| target | address | ||
| value | uint256 | ||
| data | bytes |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| id | bytes32 | ✓ | |
| salt | bytes32 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| id | bytes32 | ✓ | |
| index | uint256 | ✓ | |
| target | address | ||
| value | uint256 | ||
| data | bytes | ||
| predecessor | bytes32 | ||
| delay | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| id | bytes32 | ✓ |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| oldDuration | uint256 | ||
| newDuration | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| role | bytes32 | ✓ | |
| previousAdminRole | bytes32 | ✓ | |
| newAdminRole | bytes32 | ✓ |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| role | bytes32 | ✓ | |
| account | address | ✓ | |
| sender | address | ✓ |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| role | bytes32 | ✓ | |
| account | address | ✓ | |
| sender | address | ✓ |