Transactions

state-changing

Request Permission

function requestPermission(bytes category, bytes metadataHash) public returns(uint);

Requests permission to perform the action described in the metadataHash.

  • starts a poll.

  • called for each proposal that is associated with the slate.

Emits the following event:

event PermissionRequested(uint requestID, bytes metadataHash);

Return value: the identifier of the request being made, specified by requestID.

Recommend a Slate

function recommendSlate(
    uint batchNumber,
    uint category,
    uint[] memory requestIDs,
    bytes memory metadataHash
) public returns (uint);

Creates a new slate with the associated requestIds and metadata hash (stored in IPFS).

Emits the following event:

Return value: the identifier of the created slate, specified by slateID.

Deposit Vote Tokens

Deposits tokens into the Gatekeeper to use in voting, specified as voteTokenBalance[msg.sender].

  • assumes that msg.sender has approved the Gatekeeper to spend on their behalf.

Emits the following event:

Return value: a boolean value indicating if the tokens were successfully transferred from the msg.sender to the Gatekeeper contract.

Submit a Commitment for a Ballot

Submits a commitment for the current ballot.

  • commit period must be active for the given epoch.

  • if the voter doesn't have enough tokens for voting, deposit more and vote with a greater number of tokens.

Emits the following event:

Stake Tokens

Accept a Slate

Reveal a Ballot

Start Runoff

Finalize Voting Results

Create a new Category

Last updated

Was this helpful?