Interfaces
IPOP
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
function voteOnAttestationfunction voteOnAttestation(bytes32 attestationUID, uint256 amount) external
| Name | Description |
|---|---|
attestationUID | The unique identifier of the attestation |
amount | The amount of tokens to vote with |
function requestVoteWithdrawalfunction requestVoteWithdrawal(bytes32 attestationUID, uint256 amount) external
| Name | Description |
|---|---|
attestationUID | The unique identifier of the attestation |
amount | The amount of tokens to withdraw |
function withdrawVotesfunction withdrawVotes(bytes32 attestationUID) external
| Name | Description |
|---|---|
attestationUID | The unique identifier of the attestation |
function getPopularityScorefunction getPopularityScore(bytes32 attestationUID) external view returns (uint256)
| Name | Description |
|---|---|
attestationUID | The unique identifier of the attestation |
| Description |
|---|
| The popularity score |
function getUserVotedAmountfunction getUserVotedAmount(bytes32 attestationUID, address user) external view returns (uint256)
| Name | Description |
|---|---|
attestationUID | The unique identifier of the attestation |
user | The address of the user |
| Description |
|---|
| The amount of tokens voted |
function getTotalVotedAmountfunction getTotalVotedAmount(bytes32 attestationUID) external view returns (uint256)
| Name | Description |
|---|---|
attestationUID | The unique identifier of the attestation |
| Description |
|---|
| The total amount of tokens voted |
function getTopAttestationsfunction getTopAttestations(uint256 count) external view returns (bytes32[])
| Name | Description |
|---|---|
count | The number of attestations to return |
| Description |
|---|
| An array of attestation UIDs sorted by popularity |
function getTopAttestationsWithScoresfunction getTopAttestationsWithScores() external view returns (bytes32[3] attestations, uint256[3] scores)
| Description |
|---|
| Array of the top 3 attestation UIDs |
| Array of the scores for the top 3 attestations |
Was this page helpful?
