Skip to main content

Solidity API

Contract: IPOP

External Functions

voteOnAttestation

Allows users to vote on an attestation to increase its popularity

Parameters

requestVoteWithdrawal

Allows users to request withdrawal of their votes

Parameters

withdrawVotes

Allows users to withdraw their tokens after timelock period

Parameters

getPopularityScore

Returns the popularity score of an attestation

Parameters

Return Values

getUserVotedAmount

Returns the amount of tokens voted by a user for an attestation

Parameters

Return Values

getTotalVotedAmount

Returns the total amount of tokens voted for an attestation

Parameters

Return Values

getTopAttestations

Get top N most popular attestations

Parameters

Return Values

getTopAttestationsWithScores

Get the top 3 attestations and their scores

Return Values