0x47ebfac3353314c788b96cdcbf41daadfe03629c
Solidity v0.8.34+commit.80d5c536
管理与风险
谁能修改规则?
Detected role based controls from the verified ABI.
概览
读取函数
Block #89,922,107 · 18s agoReturn the uint256 identifier for the contract's ADMIN role.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | uint256 identifier representing the ADMIN role used for access control checks.✨ AI |
Returns the uint256 identifier for the canceller role used to authorize cancellation actions.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | The uint256 identifier representing the canceller role for access control checks and authorization.✨ AI |
Return the numeric identifier for the executor role used to grant execution permissions.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Numeric role identifier (uint256) that represents the executor role used by the timelock for access control.✨ AI |
Return the highest numeric role identifier supported by the contract.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | The maximum role identifier (uint256) used as the upper bound for role values.✨ AI |
Returns the address that holds the OPEN_ROLE.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | The address that currently holds the OPEN_ROLE and can execute OPEN_ROLE-restricted functions.✨ AI |
Return the numeric identifier used to represent the proposer role for access control.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Numeric identifier (uint256) representing the proposer role used to authorize proposals.✨ AI |
Checks whether an address holds a specific role.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| holder | address | Address to check for the role.✨ AI |
| role | uint256 | Numeric identifier of the role (uint256).✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| result | bool | True if the holder has the specified role, false otherwise.✨ AI |
Returns the current minimum delay, in seconds, required before executing queued transactions.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| result | uint256 | The minimum delay, in seconds, that must elapse before a queued transaction can be executed.✨ AI |
Return the numeric state code of the timelock operation identified by id.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| id | bytes32 | Operation identifier (bytes32) to query.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| result | uint8 | uint8 code for the operation state (numeric enum value); consult contract source for the code-to-state mapping.✨ AI |
Return the UNIX timestamp when a queued transaction becomes executable.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| id | bytes32 | Identifier of the queued timelock transaction (bytes32).✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| result | uint256 | UNIX timestamp when the transaction is ready to execute, or zero if not queued.✨ AI |
Return the address of the i-th holder for the specified role.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| role | uint256 | Numeric identifier of the role.✨ AI |
| i | uint256 | Zero-based index of the holder in the role's holder list.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| result | address | Address of the i-th account that holds the role.✨ AI |
Return the number of accounts assigned to the specified role.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| role | uint256 | Numeric identifier of the role to query.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| result | uint256 | Total count of accounts that currently hold the specified role.✨ AI |
Return the addresses that currently hold the specified role.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| role | uint256 | Numeric role identifier used to look up holders.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| result | address[] | List of addresses assigned to the role; returns an empty array if no holders.✨ AI |
Checks whether the specified execution mode is supported by the timelock.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| mode | bytes32 | Execution mode identifier (bytes32) to check for support.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| result | bool | True if the execution mode is supported; false otherwise.✨ AI |
写入函数
Cancel a scheduled operation with the given id, removing it from the timelock queue.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| id | bytes32 | Hash identifier of the queued operation to cancel.✨ AI |
Execute a queued or immediate operation using the given mode and execution data.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| mode | bytes32 | Execution mode selector (e.g., call, delegatecall, create).✨ AI |
| executionData | bytes | ABI-encoded calldata or contract creation bytecode for the operation.✨ AI |
Initialize the timelock with a minimum delay, initial admin, and sets of proposers, executors, and cancellers.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| initialMinDelay | uint256 | Minimum delay in seconds before queued operations become executable.✨ AI |
| initialAdmin | address | Address granted initial administrative privileges for the timelock.✨ AI |
| proposers | address[] | Array of addresses allowed to propose or schedule operations.✨ AI |
| executors | address[] | Array of addresses authorized to execute queued operations; address(0) can indicate public execution.✨ AI |
| cancellers | address[] | Array of addresses permitted to cancel queued operations.✨ AI |
Proposes a new timelock action using the provided mode, execution data, and delay and returns its id.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| mode | bytes32 | Execution mode selector that determines how the proposal is handled.✨ AI |
| executionData | bytes | ABI-encoded calldata or payload to run when the timelock executes.✨ AI |
| delay | uint256 | Minimum delay in seconds before the proposal can be executed.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| id | bytes32 | A bytes32 unique identifier for the proposal, typically derived deterministically from the inputs.✨ AI |
Set the minimum delay required before queued operations become executable.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| newMinDelay | uint256 | New minimum delay, in seconds, for timelocked operations.✨ AI |
Assign or revoke the specified role for the given holder address.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| holder | address | Address to grant or revoke the role.✨ AI |
| role | uint256 | Numeric identifier of the role to set.✨ AI |
| active | bool | True to grant the role, false to revoke it.✨ AI |
事件
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| id | bytes32 | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| id | bytes32 | ✓ | |
| mode | bytes32 | ||
| executionData | bytes |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| newMinDelay | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| id | bytes32 | ✓ | |
| mode | bytes32 | ||
| executionData | bytes | ||
| readyTimestamp | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| holder | address | ✓ | |
| role | uint256 | ✓ | |
| active | bool | ✓ |