0xcf57572261c7c2bcf21ffd220ea7d1a27d40a827
Proxy 實作合約: 0x3d745b8815f9be5bf053858165f8ab1f58c77932
Solidity v0.8.16+commit.07a7930e
管理與風險
誰能修改規則?
Detected upgradeable and role based controls from the verified ABI.
當前控制
- Implementation
- 0x3d745b8815f9be5bf053858165f8ab1f58c77932 ↗ Arbiscan → smarts proxy
概覽
讀取函式
Block #25,287,892 · 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 |