WorldIDRouterImplV1
World Chain0x17b354dd2595411ff79041f930e491a4df39a278
Proxy 实现合约: 0x4055b6d4018e92e4d000865e61e87b57a4e5ab49
Solidity v0.8.21+commit.d9974bed
概览
读取函数
Gets the number of groups in the routing table.
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| count | uint256 | count The number of groups in the table. |
Returns the address of the contract owner.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | The owner address with permission to perform administrative actions on the contract.✨ AI |
Returns the address nominated to become the contract owner.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | The address nominated to become owner, or the zero address if no nomination is pending.✨ AI |
Returns the proxiable UUID that identifies the implementation storage slot for upgradeability.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | bytes32 UUID that identifies the EIP-1822 implementation storage slot used by the proxy.✨ AI |
Ensures that ownership of WorldID implementations cannot be renounced.
Gets the route for the provided group number.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| groupNumber | uint256 | The number of the group to get the route for. |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | target The target address for the group number. |
写入函数
Completes the transfer of contract ownership to the caller after a pending ownership transfer was initiated.✨ AI
Adds a group to the router.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| groupIdentityManager | address | The address of the identity manager instance to be used for the group. If this is set to the null address the group is disabled. |
Disables the target group in the router.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| groupId | uint256 | The identifier for the group to be disabled. |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| oldTarget | address | oldTarget The old target address for the group. |
Initializes the contract.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| initialGroupIdentityManager | address | The address of the identity manager to be used for the initial group (group ID 0) when instantiating the router. |
Transfers contract ownership to the specified new owner address.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| newOwner | address | Address that will become the new contract owner.✨ AI |
Updates the target address for a group in the router.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| groupId | uint256 | The identitifier for the group to have its target address updated. |
| newTargetAddress | address | The new target address for the group in routing. If this is set to the null address the group will be disabled. |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| oldTarget | address | oldTarget The old target address for the group. |
Upgrade the router to a new implementation contract address.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| newImplementation | address | Address of the new implementation contract.✨ AI |
Upgrade the contract implementation to newImplementation and immediately execute an encoded call with data, allowing ETH.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| newImplementation | address | Address of the new implementation contract to upgrade to.✨ AI |
| data | bytes | ABI-encoded call data executed on the new implementation after the upgrade; may be empty.✨ AI |
Verifies a WorldID zero knowledge proof.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| root | uint256 | The of the Merkle tree |
| groupId | uint256 | The group identifier for the group to verify a proof for. |
| signalHash | uint256 | A keccak256 hash of the Semaphore signal |
| nullifierHash | uint256 | The nullifier hash |
| externalNullifierHash | uint256 | A keccak256 hash of the external nullifier |
| proof | uint256[8] | The zero-knowledge proof |
事件
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| previousAdmin | address | ||
| newAdmin | address |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| beacon | address | ✓ |
Emitted when a group is added to the router.
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| groupId | uint256 | ✓ | The identifier for the group. |
| identityManager | address | ✓ | The address of the identity manager associated with the group. |
Emitted when a group is disabled in the router.
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| groupId | uint256 | ✓ | The identifier of the group that has been disabled. |
Emitted when a group is enabled in the router.
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| initialGroupIdentityManager | address | The address of the identity manager to be used for the first group |
Emitted when a group is updated in the router.
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| groupId | uint256 | ✓ | The identitfier for the group. |
| oldIdentityManager | address | ✓ | The address of the previous identity manager associated with the group. |
| newIdentityManager | address | ✓ | The address of the new identity manager associated with the group. |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| version | uint8 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| previousOwner | address | ✓ | |
| newOwner | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| previousOwner | address | ✓ | |
| newOwner | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| implementation | address | ✓ |