WorldIDAddressBook
World Chain0x57b930d551e677cc36e2fa036ae2fe8fdae0330d
Solidity v0.8.23+commit.f704f362
Overview
Read Functions
Returns a timestamp representing when the address' verification will expire
Parameters
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | timestamp The timestamp when the address' verification will expire |
Returns the World ID group identifier used by this contract.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The numeric group identifier (uint256) associated with the World ID this contract uses.✨ AI |
Return the maximum allowed time window for proofs, expressed in seconds.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | Maximum allowed proof time in seconds; proofs older than this duration are considered expired.✨ AI |
Return the address stored for a given nullifier index.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | address | Address associated with the provided nullifier index.✨ AI |
Returns the contract owner's address.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | address | The owner address with administrative privileges for the contract.✨ AI |
Returns the address that is set to become the new owner but has not accepted ownership yet.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | address | The pending owner address, or the zero address if no ownership transfer is pending.✨ AI |
Indicates that ownership has been renounced.✨ AI
Read the number of verification entries stored in the contract.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The current count of verification records as a uint256.✨ AI |
Returns the address of the World ID router contract.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | address | The World ID router contract address used to route and validate World ID interactions.✨ AI |
Write Functions
Allow the pending owner to finalize and assume ownership of the contract.✨ AI
Update the groupId
Parameters
| Name | Type | Description |
|---|---|---|
| _groupId | uint256 | The new groupId |
Update the amount of time that a verification request can be pending for, in seconds
Parameters
| Name | Type | Description |
|---|---|---|
| _maxProofTime | uint256 | The new maxProofTime |
Update the amount of time that a verification is valid for, in seconds
Parameters
| Name | Type | Description |
|---|---|---|
| _verificationLength | uint256 | The new verificationLength |
Update the World ID router address used by the contract.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| _worldIdRouter | address | The new worldIdRouter |
Transfers contract ownership to the newOwner address.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| newOwner | address | Address to which ownership will be transferred.✨ AI |
Registers a wallet to receive grants
Parameters
| Name | Type | Description |
|---|---|---|
| account | address | The address that will be registered |
| root | uint256 | The root of the Merkle tree (signup-sequencer or world-id-contracts provides this) |
| nullifierHash | uint256 | The nullifier for this proof, preventing double signaling |
| proof | uint256[8] | The zero knowledge proof that demonstrates the claimer has a verified World ID |
| proofTime | uint256 | A timestamp representing when the proof was created |
Events
Emitted when an account is verified
| Name | Type | Indexed | Description |
|---|---|---|---|
| account | address | ✓ | |
| verifiedUntil | uint256 |
Emitted when the `groupId` is changed
| Name | Type | Indexed | Description |
|---|---|---|---|
| groupId | uint256 | The new `groupId` |
Emitted when the amount of time that a verification request can be pending for is changed
| Name | Type | Indexed | Description |
|---|---|---|---|
| maxProofTime | uint256 | The new `maxProofTime` |
| Name | Type | Indexed | Description |
|---|---|---|---|
| previousOwner | address | ✓ | |
| newOwner | address | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| previousOwner | address | ✓ | |
| newOwner | address | ✓ |
Emitted when the amout of time that a verification is valid for is changed
| Name | Type | Indexed | Description |
|---|---|---|---|
| verificationLength | uint256 | The new `verificationLength` |
Emitted when the contract is initialized
| Name | Type | Indexed | Description |
|---|---|---|---|
| worldIdRouter | address | The WorldID router that will manage groups and verify proofs | |
| groupId | uint256 | The group ID of the World ID | |
| externalNullifierHash | uint256 | The nullifier hash that will be used to verify proofs | |
| verificationLength | uint256 | The amount of seconds that a verification is valid for | |
| maxProofTime | uint256 | The maximum amount of time that a verification request can be pending for |
Emitted when the `worldIdRouter` is changed
| Name | Type | Indexed | Description |
|---|---|---|---|
| worldIdRouter | address | The new `worldIdRouter` instance |