Proposals
Proposals
Governance
ethanTODO: what are governance proposals and how to vote
StevenTODO: find methods
Community Proposals
ethanTODO: what are community proposals and how to vote
StevenTODO: find methods
Challenges
ethanTODO: what are challenges and how to vote, claim winnings
Event Challenges
Create a challenge for the specified event, locks a deposit and starts voting process, can be called by anyone
challengeEvent
Method: Note: Requires a deposit to be made. See
getExistingEventDeposit
Method Parameter Descriptions
Parameter | Type | Description |
---|---|---|
eventId | uint | A unique identifier for the event on the Protocol |
LogEventChallenged
Response: Log Parameter Descriptions
Parameter | Type | Description |
---|---|---|
eventId | uint | A unique identifier for the event on the Protocol |
proposalId | uint | A unique identifier for the challenge on the Protocol |
lobbyingStart | uint | UNIX epoch timestamp for the start of the vote lobbying period |
votingStart | uint | UNIX epoch timestamp for the start of the voting period |
revealingStart | uint | UNIX epoch timestamp for the start of the vote revealing period |
revealingEnd | uint | UNIX epoch timestamp for the end of the vote revealing period |
endEventChallenge
Method: Ends a challenge on the specified event
Method Parameter Descriptions
Parameter | Type | Description |
---|---|---|
eventId | uint | A unique identifier for the event on the Protocol |
LogEventChallengeEnded
Response: Log Parameter Descriptions
Parameter | Type | Description |
---|---|---|
eventId | uint | A unique identifier for the event on the Protocol |
proposalId | uint | A unique identifier for the challenge on the Protocol |
votesFor | uint | Total number of votes for a challenge |
votesAgainst | uint | Total number of votes against a challenge |
claimVoterWinnings
Method: Claim winnings from a proposal if caller voted on the winning side. Results in the caller's share of any proposal winnings being put into their AVT account.
Method Parameter Descriptions
Parameter | Type | Description |
---|---|---|
proposalId | uint | A unique identifier for the challenge on the Protocol |
LogVoterWinningsClaimed
Response: Log Parameter Descriptions
Parameter | Type | Description |
---|---|---|
proposalId | uint | A unique identifier for the challenge on the Protocol |
Member Challenges
challengeMember
Method: Create a challenge for the specified member
Method Parameter Descriptions
Parameter | Type | Description |
---|---|---|
memberAddress | address | address of member to be challenged |
memberType | string calldata | type of member to be challenged |
LogMemberChallenged
Response: Log Parameter Descriptions
Parameter | Type | Indexed | Description |
---|---|---|---|
memberAddress | address | ✔ | Address of the new member to be registered |
memberType | string | ✘ | Stipulate if the member is to be registered as a Primary or Secondary |
proposalId | uint | ✔ | |
lobbyingStart | uint | ✘ | |
votingStart | uint | ✘ | |
revealingStart | uint | ✘ | |
revealingEnd | uint | ✘ |
endMemberChallenge
Method: Ends a challenge on the specified member
Method Parameter Descriptions
Parameter | Type | Description |
---|---|---|
memberAddress | address | address of member to be challenged |
memberType | string calldata | type of member to be challenged |
LogMemberChallengeEnded
Response: Log Parameter Descriptions
Parameter | Type | Indexed | Description |
---|---|---|---|
memberAddress | address | ✔ | Address of the new member to be registered |
memberType | string | ✘ | Stipulate if the member is to be registered as a Primary or Secondary |
proposalId | uint | ✔ | |
votesFor | uint | ✘ | |
votesAgainst | uint | ✘ |
memberIsActive
Method: Returns true if the given member is allowed to use the Aventus Protocol (ie. registered AND not fraudulent)
Method Parameter Descriptions
Parameter | Type | Description |
---|---|---|
memberAddress | address | address of member to be challenged |
memberType | string calldata | type of member to be challenged |
StevenTODO what's this called?
Response: Log Parameter Descriptions
Parameter | Type | Indexed | Description |
---|---|---|---|
isActive | bool | ✘ |
getExistingMemberDeposit
Method: Gets the deposit paid for the specified member
Method Parameter Descriptions
Parameter | Type | Description |
---|---|---|
memberAddress | address | address of member to be challenged |
memberType | string calldata | type of member to be challenged |
StevenTODO what's this called?
Response: Log Parameter Descriptions
Parameter | Type | Indexed | Description |
---|---|---|---|
memberDepositInAVT | uint | ✘ |
Voting
StevenTODO: find methods