Solidity API
Contract: IPOP
External Functions
voteOnAttestation
Parameters
| Name | Description |
|---|---|
attestationUID | The unique identifier of the attestation |
amount | The amount of tokens to vote with |
requestVoteWithdrawal
Parameters
| Name | Description |
|---|---|
attestationUID | The unique identifier of the attestation |
amount | The amount of tokens to withdraw |
withdrawVotes
Parameters
| Name | Description |
|---|---|
attestationUID | The unique identifier of the attestation |
getPopularityScore
Parameters
| Name | Description |
|---|---|
attestationUID | The unique identifier of the attestation |
Return Values
| Description |
|---|
| The popularity score |
getUserVotedAmount
Parameters
| Name | Description |
|---|---|
attestationUID | The unique identifier of the attestation |
user | The address of the user |
Return Values
| Description |
|---|
| The amount of tokens voted |
getTotalVotedAmount
Parameters
| Name | Description |
|---|---|
attestationUID | The unique identifier of the attestation |
Return Values
| Description |
|---|
| The total amount of tokens voted |
getTopAttestations
Parameters
| Name | Description |
|---|---|
count | The number of attestations to return |
Return Values
| Description |
|---|
| An array of attestation UIDs sorted by popularity |
getTopAttestationsWithScores
Return Values
| Description |
|---|
| Array of the top 3 attestation UIDs |
| Array of the scores for the top 3 attestations |

