0xe8dc0fab349ea169283c48ccfd09d797e6db7c94
Solidity v0.8.26+commit.8a97fa7a
管理与风险
谁能修改规则?
Detected role based controls from the verified ABI.
概览
读取函数
Block #25,831,893 · just nowReturns the role identifier that grants permission to cancel scheduled timelock operations.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | bytes32 role identifier representing the CANCELLER_ROLE used for access control.✨ AI |
Returns the bytes32 identifier for the contract's default admin role.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | bytes32 role identifier representing the DEFAULT_ADMIN_ROLE used for access control.✨ AI |
Returns the bytes32 identifier of the executor role used for access control.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | The bytes32 role identifier that represents executor privileges within the timelock controller.✨ AI |
Returns the bytes32 identifier used for the contract's proposer role.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | The bytes32 role identifier representing accounts allowed to propose operations.✨ AI |
Return the bytes32 role identifier for whitelisted executors.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | bytes32 role identifier for the WHITELISTED_EXECUTOR_ROLE used in access control checks.✨ AI |
Returns the current minimum delay required for executing queued operations.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | The configured minimum delay, in seconds, that must elapse before execution.✨ AI |
Return the current state code for the operation identified by id.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| id | bytes32 | Operation id (bytes32) to query.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint8 | uint8 code for operation state: 0=Unknown,1=Pending,2=Ready,3=Executed,4=Cancelled✨ AI |
Returns the admin role that controls the given role.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| role | bytes32 | Role identifier to query, provided as a bytes32 role hash.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | The admin role (bytes32) that can grant or revoke the specified role.✨ AI |
Returns the timestamp at which the operation identified by id becomes executable.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| id | bytes32 | Operation id (bytes32) whose scheduled timestamp to look up.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | The Unix timestamp (seconds) when the operation becomes executable; 0 if the operation is not scheduled.✨ AI |
Returns whether the account holds the specified role.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| role | bytes32 | Role identifier to check (bytes32 hash).✨ AI |
| account | address | Address of the account to verify role membership for.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the account has the specified role, otherwise false.✨ AI |
Compute the unique id for a timelock operation from its parameters.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| target | address | Address of the contract or account called when executing the operation.✨ AI |
| value | uint256 | Wei value to send with the call.✨ AI |
| data | bytes | Encoded function selector and arguments for the call.✨ AI |
| predecessor | bytes32 | Operation id that must be executed before this one (zero for none).✨ AI |
| salt | bytes32 | Unique salt to differentiate otherwise-identical operations.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | The bytes32 hash serving as the operation's unique identifier.✨ AI |
Compute the unique id for a batch of scheduled transactions.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| targets | address[] | List of destination contract addresses for each transaction.✨ AI |
| values | uint256[] | List of wei values to send with each call.✨ AI |
| payloads | bytes[] | List of encoded function call data for each target.✨ AI |
| predecessor | bytes32 | Operation id that must be executed before this batch, or zero if none.✨ AI |
| salt | bytes32 | User-provided salt to ensure uniqueness of the operation id.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | bytes32: keccak256 hash of the encoded batch inputs, used as the operation id.✨ AI |
Return true if the timelock recognizes the given operation identifier.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| id | bytes32 | Operation identifier (bytes32) to check for presence in the timelock.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the operation exists in the timelock (scheduled or already executed), false otherwise.✨ AI |
Checks whether the timelocked operation with the given id is marked as done.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| id | bytes32 | Identifier of the operation to check.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the operation is marked done (executed).✨ AI |
Check whether the specified operation is pending.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| id | bytes32 | Operation identifier hash (bytes32) to query.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the operation exists and is pending (scheduled but not executed or canceled).✨ AI |
Indicates whether the timelock operation with the given id is ready for execution.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| id | bytes32 | Operation identifier (bytes32 hash) to check readiness.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the operation is ready for execution (delay elapsed and not executed/canceled).✨ AI |
Check whether a given target address and function selector are allowed by the contract's whitelist.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| target | address | The address of the contract. |
| selector | bytes4 | The function selector to check. |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the function selector is whitelisted, false otherwise. |
Roles cannot be renounced, only revoked thru timelock mechanism.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| role | bytes32 | The role to renounce. |
| callerConfirmation | address | The address that is renouncing the role. |
Return whether the contract implements the interface specified by interfaceId.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| interfaceId | bytes4 | The 4-byte interface identifier (bytes4) to query, per ERC-165.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the contract supports the interface identified by interfaceId, otherwise false.✨ AI |
写入函数
Adds a function selector for a target address to the contract whitelist.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| target | address | The address of the contract. |
| selector | bytes4 | The function selector to whitelist. |
Cancel a scheduled timelock operation identified by id.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| id | bytes32 | Identifier of the timelocked operation to cancel.✨ AI |
Execute a queued, ready operation by calling target with value and data after verifying predecessor and salt.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| target | address | The address of the contract to call. |
| value | uint256 | The amount of ETH to send along with the call. |
| data | bytes | The calldata to send. |
| predecessor | bytes32 | The operation that must be executed before this one. |
| salt | bytes32 | A random value used to differentiate the operation from others. |
Execute a scheduled batch of transactions through the timelock, honoring predecessor and salt constraints.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| targets | address[] | The addresses of the contracts to call. |
| values | uint256[] | The amounts of ETH to send along with the calls. |
| payloads | bytes[] | The calldata to send. |
| predecessor | bytes32 | The operation that must be executed before this one. |
| salt | bytes32 | A random value used to differentiate the operation from others. |
Execute a whitelisted transaction by calling target with the specified ether value and calldata.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| target | address | The address of the contract to call. |
| value | uint256 | The amount of ETH to send along with the call. |
| data | bytes | The calldata to send. |
Execute a batch of whitelisted calls, sending optional ETH and calldata in a single transaction.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| targets | address[] | The addresses of the contracts to call. |
| values | uint256[] | The amounts of ETH to send along with the calls. |
| payloads | bytes[] | The calldata to send. |
Grants a role to an account, allowing the account to perform role-restricted actions.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| role | bytes32 | Role identifier (bytes32) to grant.✨ AI |
| account | address | Address to receive the role.✨ AI |
Handle an incoming ERC-1155 batch transfer and confirm receipt to the sender.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | |
| — | address | |
| — | uint256[] | |
| — | uint256[] | |
| — | bytes |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes4 | `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed |
Handles receipt of a single ERC1155 token transfer.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | |
| — | address | |
| — | uint256 | |
| — | uint256 | |
| — | bytes |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes4 | `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed |
Handles receipt of an ERC-721 token and returns the required selector to accept the transfer.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | |
| — | address | |
| — | uint256 | |
| — | bytes |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes4 | Selector equal to bytes4(keccak256("onERC721Received(address,address,uint256,bytes)")) confirming acceptance of the token.✨ AI |
Remove a function selector for a target contract from the controller's whitelist.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| target | address | The address of the contract. |
| selector | bytes4 | The function selector to remove from the whitelist. |
Revokes a role from an account, removing the account's granted permissions.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| role | bytes32 | Role identifier (bytes32) to revoke.✨ AI |
| account | address | Address of the account from which to revoke the role.✨ AI |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| target | address | |
| value | uint256 | |
| data | bytes | |
| predecessor | bytes32 | |
| salt | bytes32 | |
| delay | uint256 |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| targets | address[] | |
| values | uint256[] | |
| payloads | bytes[] | |
| predecessor | bytes32 | |
| salt | bytes32 | |
| delay | uint256 |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| newDelay | uint256 |
事件
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| 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 | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| target | address | ✓ | |
| selector | bytes4 | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| target | address | ✓ | |
| selector | bytes4 | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| oldDuration | uint256 | ||
| newDuration | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| role | bytes32 | ✓ | |
| previousAdminRole | bytes32 | ✓ | |
| newAdminRole | bytes32 | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| role | bytes32 | ✓ | |
| account | address | ✓ | |
| sender | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| role | bytes32 | ✓ | |
| account | address | ✓ | |
| sender | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| target | address | ✓ | |
| selector | bytes4 | ✓ | |
| value | uint256 | ||
| data | bytes |