Attestations
Celo0xdc553892cdeeed9f575aa0fba099e5847fd88d20
Proxy 實作合約: 0xf65903343712820ef19090c15051687b9363758c
Solidity v0.5.13+commit.5b0b510c
概覽
讀取函式
Returns the number of blocks after which attestations expire.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | The attestation expiry expressed as a block count (number of blocks until an attestation is considered expired).✨ AI |
Returns the current attestation request fee for the specified address.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | The fee amount (uint256) required to submit an attestation request for the address.✨ AI |
Batch lookup function to determine attestation stats for a list of identifiers.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| identifiersToLookup | bytes32[] | Array of n identifiers. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256[] | [0] Array of number of matching accounts per identifier. |
| — | address[] | [1] Array of sum([0]) matching walletAddresses. |
| — | uint64[] | [2] Array of sum([0]) numbers indicating the completions for each account. |
| — | uint64[] | [3] Array of sum([0]) numbers indicating the total number of requested attestations for each account. |
Returns selected attestation issuers for a identifier/account pair.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| identifier | bytes32 | Hash of the identifier. |
| account | address | Address of the account. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address[] | Addresses of the selected attestation issuers. |
Returns the fee set for a particular token.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| token | address | Address of the attestationRequestFeeToken. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | The fee. |
Returns the state of a specific attestation.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| identifier | bytes32 | Hash of the identifier. |
| account | address | Address of the account. |
| issuer | address | Address of the issuer. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint8 | status Status of the attestation. |
| — | uint32 | block Block number of request/completion the attestation. |
| — | address | address Address of the token with which this attestation request was paid for. |
Returns attestation stats for a identifier/account pair.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| identifier | bytes32 | Hash of the identifier. |
| account | address | Address of the account. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint32 | completed Number of completed attestations. |
| — | uint32 | requested Number of total requested attestations. |
Returns the state of all attestations that are completable
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| identifier | bytes32 | Hash of the identifier. |
| account | address | Address of the account. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint32[] | Block number of request/completion the attestation. |
| — | address[] | Address of the issuer. |
| — | uint256[] | The length of each metadataURL string for each issuer. |
| — | bytes | All strings concatenated. |
Query 'maxAttestations'
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Maximum number of attestations that can be requested. |
Returns the unselected attestation request for an identifier/account pair, if any.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| identifier | bytes32 | Hash of the identifier. |
| account | address | Address of the account. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint32 | block Block number at which was requested. |
| — | uint32 | number Number of unselected requests. |
| — | address | address Address of the token with which this attestation request was paid for. |
Returns the storage, major, minor, and patch version of the contract.
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Storage version of the contract. |
| — | uint256 | Major version of the contract. |
| — | uint256 | Minor version of the contract. |
| — | uint256 | Patch version of the contract. |
Returns true if the contract has been initialized.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the contract has been initialized, false otherwise.✨ AI |
Checks whether the caller is the contract owner.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the caller (msg.sender) is the contract owner, otherwise false.✨ AI |
Returns all account addresses associated with the given identifier.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| identifier | bytes32 | Identifier hash used to look up linked account addresses.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address[] | Array of account addresses associated with the identifier; empty if none are linked.✨ AI |
Get the current maximum number of attestations allowed.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | The maximum number of attestations permitted, as a uint256.✨ AI |
Get the current contract owner's address.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The address of the account that currently owns and can administer the contract.✨ AI |
Return the pending withdrawal amount for a given account and asset.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | |
| — | address |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Pending withdrawal amount as a uint256 (denominated in the asset's smallest unit).✨ AI |
Returns the address of the registry contract associated with this Attestations contract.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | Address of the registry contract that this Attestations contract references.✨ AI |
Require that a given identifier/address pair has requested a specific number of attestations.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| identifier | bytes32 | Hash of the identifier. |
| account | address | Address of the account. |
| expected | uint32 | Number of expected attestations |
Returns the configured number of blocks to wait before selecting issuers.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Number of blocks to wait before running the issuer selection process.✨ AI |
Returns whether an account has approved transfers for the specified schema identifier.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | |
| — | bytes32 |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the account has approved transfers for the given schemaId, false otherwise.✨ AI |
Validates the given attestation code.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| identifier | bytes32 | The hash of the identifier to be attested. |
| account | address | Address of the account. |
| v | uint8 | The recovery id of the incoming ECDSA signature. |
| r | bytes32 | Output value r of the ECDSA signature. |
| s | bytes32 | Output value s of the ECDSA signature. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The issuer of the corresponding attestation. |
寫入函式
Used in place of the constructor to allow the contract to be upgradable via proxy.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| registryAddress | address | The address of the registry core smart contract. |
| _attestationExpiryBlocks | uint256 | The new limit on blocks allowed to come between requesting an attestation and completing it. |
| _selectIssuersWaitBlocks | uint256 | The wait period in blocks to call selectIssuers on attestation requests. |
| _maxAttestations | uint256 | |
| attestationRequestFeeTokens | address[] | The address of tokens that fees should be payable in. |
| attestationRequestFeeValues | uint256[] | The corresponding fee values. |
Renounces ownership, setting the owner to the zero address and leaving the contract without an owner.✨ AI
Revokes an account for an identifier.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| identifier | bytes32 | The identifier for which to revoke. |
| index | uint256 | The index of the account in the accounts array. |
Updates 'attestationExpiryBlocks'.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _attestationExpiryBlocks | uint256 | The new limit on blocks allowed to come between requesting an attestation and completing it. |
Updates the fee for a particular token.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| token | address | The address of the attestationRequestFeeToken. |
| fee | uint256 | The fee in 'token' that is required for each attestation. |
Updates 'maxAttestations'.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _maxAttestations | uint256 | Maximum number of attestations that can be requested. |
Updates the address pointing to a Registry contract.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| registryAddress | address | The address of a registry contract for routing to other contracts. |
Updates 'selectIssuersWaitBlocks'.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _selectIssuersWaitBlocks | uint256 | The wait period in blocks to call selectIssuers on attestation requests. |
Transfer ownership of the contract to a new owner address.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| newOwner | address | Address to set as the new owner.✨ AI |
Allows issuers to withdraw accumulated attestation rewards.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| token | address | The address of the token that will be withdrawn. |
事件
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| identifier | bytes32 | ✓ | |
| account | address | ✓ | |
| issuer | address | ✓ |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| value | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| identifier | bytes32 | ✓ | |
| account | address | ✓ | |
| issuer | address | ✓ | |
| attestationRequestFeeToken | address |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| token | address | ✓ | |
| value | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| identifier | bytes32 | ✓ | |
| account | address | ✓ | |
| attestationsRequested | uint256 | ||
| attestationRequestFeeToken | address |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| identifier | bytes32 | ✓ | |
| fromAccount | address | ✓ | |
| toAccount | address | ✓ |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| value | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| previousOwner | address | ✓ | |
| newOwner | address | ✓ |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| registryAddress | address | ✓ |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| value | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| approver | address | ✓ | |
| indentifier | bytes32 | ✓ | |
| from | address | ||
| to | address | ||
| approved | bool |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| account | address | ✓ | |
| token | address | ✓ | |
| amount | uint256 |