0x3d745b8815f9be5bf053858165f8ab1f58c77932
Solidity v0.8.16+commit.07a7930e
管理与风险
谁能修改规则?
Detected role based controls from the verified ABI.
概览
读取函数
Block #25,288,210 · just nowGet the bytes32 identifier for the contract's admin role.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | The bytes32 identifier used to represent the ADMIN_ROLE.✨ AI |
Returns the bytes32 identifier for the contract's default admin role.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | The bytes32 role identifier representing the contract's DEFAULT_ADMIN_ROLE.✨ AI |
Returns the bytes32 identifier for the contract's executor role.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | Bytes32 role identifier used by the access-control system to represent the executor role.✨ AI |
Returns the admin role that controls the given role.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| role | bytes32 | Role identifier to query, provided as a bytes32 value.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | Admin role identifier (bytes32) that controls the specified role.✨ AI |
Checks whether an account holds a specific role in the UpgradeExecutor contract.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| role | bytes32 | Role identifier (bytes32) to check.✨ AI |
| account | address | Address of the account to query.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the account has the specified role; otherwise false.✨ AI |
Checks whether the contract implements the interface identified by interfaceId.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| interfaceId | bytes4 | The ERC-165 interface identifier to query.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the contract implements the specified interfaceId according to ERC-165; otherwise false.✨ AI |
写入函数
Execute an upgrade by delegate calling an upgrade contract
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| upgrade | address | |
| upgradeCallData | bytes |
Execute an upgrade by directly calling target contract
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| target | address | |
| targetCallData | bytes |
Grants the specified role to the given account, enabling it to perform role-restricted operations.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| role | bytes32 | Role identifier to assign (bytes32 role hash).✨ AI |
| account | address | Account address that will receive the role.✨ AI |
Initialise the upgrade executor
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| admin | address | The admin who can update other roles, and itself - ADMIN_ROLE |
| executors | address[] | Can call the execute function - EXECUTOR_ROLE |
Renounce a previously granted role for a specific account.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| role | bytes32 | The role identifier to renounce (bytes32).✨ AI |
| account | address | The account address that will lose the role.✨ AI |
Revokes a role from an account.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| role | bytes32 | Role identifier to revoke, provided as a bytes32 value.✨ AI |
| account | address | Address of the account that will lose the role.✨ AI |
事件
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| version | uint8 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| role | bytes32 | ✓ | |
| previousAdminRole | bytes32 | ✓ | |
| newAdminRole | bytes32 | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| role | bytes32 | ✓ | |
| account | address | ✓ | |
| sender | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| role | bytes32 | ✓ | |
| account | address | ✓ | |
| sender | address | ✓ |
Emitted when target call occurs
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| target | address | ✓ | |
| value | uint256 | ||
| data | bytes |
Emitted when an upgrade execution occurs
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| upgrade | address | ✓ | |
| value | uint256 | ||
| data | bytes |