EAS

World Chain

0x4200000000000000000000000000000000000021

Proxy 实现合约: 0xc0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d30021

Solidity v0.8.19+commit.7dd6d404

🤖
通过你的 AI 查询此合约
引用: 0x4200000000000000000000000000000000000021
示例提示词: "Tell me the current state of world/0x4200000000000000000000000000000000000021"
还没有接入 AI?→ mcp.smarts.md
World Chain 在 Smarts 上是仅文档链:源代码和 ABI 已索引,但当前不提供实时链上数据(状态、最新事件、管理员画像)。AI 代理仍可通过 MCP 调用 get_contract_info 和 get_contract_source。

概览

读取函数
11
写入函数
13
事件
5

读取函数

getAttestTypeHash() pure

Returns the EIP712 type hash for the attest function.

返回值

名称 类型 描述
bytes32 The EIP712 type hash for the attest function.
getAttestation(uid: bytes32) view

Returns an existing attestation by UID.

参数

名称 类型 描述
uid bytes32 The UID of the attestation to retrieve.

返回值

名称 类型 描述
tuple The attestation data members.
getDomainSeparator() view

Returns the domain separator used in the encoding of the signatures for attest, and revoke.

返回值

名称 类型 描述
bytes32 The domain separator used in the encoding of the signatures for attest, and revoke.
getName() view

Returns the name of the predeploy at the given address.

返回值

名称 类型 描述
string
getNonce(account: address) view

Returns the current nonce per-account.

参数

名称 类型 描述
account address The requested account.

返回值

名称 类型 描述
uint256 The current nonce.
getRevokeOffchain(revoker: address, data: bytes32) view

Returns the timestamp that the specified data was timestamped with.

参数

名称 类型 描述
revoker address
data bytes32 The data to query.

返回值

名称 类型 描述
uint64 The timestamp the data was timestamped with.
getRevokeTypeHash() pure

Returns the EIP712 type hash for the revoke function.

返回值

名称 类型 描述
bytes32 The EIP712 type hash for the revoke function.
getSchemaRegistry() pure

Returns the address of the global schema registry.

返回值

名称 类型 描述
address The address of the global schema registry.
getTimestamp(data: bytes32) view

Returns the timestamp that the specified data was timestamped with.

参数

名称 类型 描述
data bytes32 The data to query.

返回值

名称 类型 描述
uint64 The timestamp the data was timestamped with.
isAttestationValid(uid: bytes32) view

Checks whether an attestation exists.

参数

名称 类型 描述
uid bytes32 The UID of the attestation to retrieve.

返回值

名称 类型 描述
bool Whether an attestation exists.
version() view

Getter for the semantic version of the contract. This is not meant to be used onchain but instead meant to be used by offchain tooling.

返回值

名称 类型 描述
string Semver contract version as a string.

写入函数

attest(request: tuple) payable

Processes an attestation and verifies whether it's valid.

参数

名称 类型 描述
request tuple

返回值

名称 类型 描述
bytes32 Whether the attestation is valid.
attestByDelegation(delegatedRequest: tuple) payable

Attests to a specific schema via the provided EIP712 signature. Example: attestByDelegation({ schema: '0x8e72f5bc0a8d4be6aa98360baa889040c50a0e51f32dbf0baa5199bd93472ebc', data: { recipient: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266', expirationTime: 1673891048, revocable: true, refUID: '0x0000000000000000000000000000000000000000000000000000000000000000', data: '0x1234', value: 0 }, signature: { v: 28, r: '0x148c...b25b', s: '0x5a72...be22' }, attester: '0xc5E8740aD971409492b1A63Db8d83025e0Fc427e', deadline: 1673891048 })

参数

名称 类型 描述
delegatedRequest tuple The arguments of the delegated attestation request.

返回值

名称 类型 描述
bytes32 The UID of the new attestation.
increaseNonce(newNonce: uint256) nonpayable

Provides users an option to invalidate nonces by increasing their nonces to (higher) new values.

参数

名称 类型 描述
newNonce uint256 The (higher) new value.
multiAttest(multiRequests: tuple[]) payable

Processes multiple attestations and verifies whether they are valid.

参数

名称 类型 描述
multiRequests tuple[]

返回值

名称 类型 描述
bytes32[] Whether all the attestations are valid.
multiAttestByDelegation(multiDelegatedRequests: tuple[]) payable

Attests to multiple schemas using via provided EIP712 signatures. Example: multiAttestByDelegation([{ schema: '0x8e72f5bc0a8d4be6aa98360baa889040c50a0e51f32dbf0baa5199bd93472ebc', data: [{ recipient: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266', expirationTime: 1673891048, revocable: true, refUID: '0x0000000000000000000000000000000000000000000000000000000000000000', data: '0x1234', value: 0 }, { recipient: '0xdEADBeAFdeAdbEafdeadbeafDeAdbEAFdeadbeaf', expirationTime: 0, revocable: false, refUID: '0x0000000000000000000000000000000000000000000000000000000000000000', data: '0x00', value: 0 }], signatures: [{ v: 28, r: '0x148c...b25b', s: '0x5a72...be22' }, { v: 28, r: '0x487s...67bb', s: '0x12ad...2366' }], attester: '0x1D86495b2A7B524D747d2839b3C645Bed32e8CF4', deadline: 1673891048 }])

参数

名称 类型 描述
multiDelegatedRequests tuple[] The arguments of the delegated multi attestation requests. The requests should be grouped by distinct schema ids to benefit from the best batching optimization.

返回值

名称 类型 描述
bytes32[] The UIDs of the new attestations.
multiRevoke(multiRequests: tuple[]) payable

Processes revocation of multiple attestation and verifies they can be revoked.

参数

名称 类型 描述
multiRequests tuple[]
multiRevokeByDelegation(multiDelegatedRequests: tuple[]) payable

Revokes existing attestations to multiple schemas via provided EIP712 signatures. Example: multiRevokeByDelegation([{ schema: '0x8e72f5bc0a8d4be6aa98360baa889040c50a0e51f32dbf0baa5199bd93472ebc', data: [{ uid: '0x211296a1ca0d7f9f2cfebf0daaa575bea9b20e968d81aef4e743d699c6ac4b25', value: 1000 }, { uid: '0xe160ac1bd3606a287b4d53d5d1d6da5895f65b4b4bab6d93aaf5046e48167ade', value: 0 }], signatures: [{ v: 28, r: '0x148c...b25b', s: '0x5a72...be22' }, { v: 28, r: '0x487s...67bb', s: '0x12ad...2366' }], revoker: '0x244934dd3e31bE2c81f84ECf0b3E6329F5381992', deadline: 1673891048 }])

参数

名称 类型 描述
multiDelegatedRequests tuple[] The arguments of the delegated multi revocation attestation requests. The requests should be grouped by distinct schema ids to benefit from the best batching optimization.
multiRevokeOffchain(data: bytes32[]) nonpayable

Revokes the specified multiple bytes32 data.

参数

名称 类型 描述
data bytes32[] The data to timestamp.

返回值

名称 类型 描述
uint64 The timestamp the data was revoked with.
multiTimestamp(data: bytes32[]) nonpayable

Timestamps the specified multiple bytes32 data.

参数

名称 类型 描述
data bytes32[] The data to timestamp.

返回值

名称 类型 描述
uint64 The timestamp the data was timestamped with.
revoke(request: tuple) payable

Processes an attestation revocation and verifies if it can be revoked.

参数

名称 类型 描述
request tuple
revokeByDelegation(delegatedRequest: tuple) payable

Revokes an existing attestation to a specific schema via the provided EIP712 signature. Example: revokeByDelegation({ schema: '0x8e72f5bc0a8d4be6aa98360baa889040c50a0e51f32dbf0baa5199bd93472ebc', data: { uid: '0xcbbc12102578c642a0f7b34fe7111e41afa25683b6cd7b5a14caf90fa14d24ba', value: 0 }, signature: { v: 27, r: '0xb593...7142', s: '0x0f5b...2cce' }, revoker: '0x244934dd3e31bE2c81f84ECf0b3E6329F5381992', deadline: 1673891048 })

参数

名称 类型 描述
delegatedRequest tuple The arguments of the delegated revocation request.
revokeOffchain(data: bytes32) nonpayable

Revokes the specified bytes32 data.

参数

名称 类型 描述
data bytes32 The data to timestamp.

返回值

名称 类型 描述
uint64 The timestamp the data was revoked with.
timestamp(data: bytes32) nonpayable

Timestamps the specified bytes32 data.

参数

名称 类型 描述
data bytes32 The data to timestamp.

返回值

名称 类型 描述
uint64 The timestamp the data was timestamped with.

事件

Attested(recipient: address, attester: address, uid: bytes32, schemaUID: bytes32)
名称 类型 已索引 描述
recipient address The recipient of the attestation.
attester address The attesting account.
uid bytes32 The UID the revoked attestation.
schemaUID bytes32 The UID of the schema.
NonceIncreased(oldNonce: uint256, newNonce: uint256)
名称 类型 已索引 描述
oldNonce uint256 The previous nonce.
newNonce uint256 The new value.
Revoked(recipient: address, attester: address, uid: bytes32, schemaUID: bytes32)
名称 类型 已索引 描述
recipient address The recipient of the attestation.
attester address The attesting account.
uid bytes32 The UID the revoked attestation.
schemaUID bytes32 The UID of the schema.
RevokedOffchain(revoker: address, data: bytes32, timestamp: uint64)
名称 类型 已索引 描述
revoker address The address of the revoker.
data bytes32 The data.
timestamp uint64 The timestamp.
Timestamped(data: bytes32, timestamp: uint64)
名称 类型 已索引 描述
data bytes32 The data.
timestamp uint64 The timestamp.