Panvala
Search…
Transactions
state-changing

Request Permission

1
function requestPermission(bytes category, bytes metadataHash) public returns(uint);
Copied!
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:
1
event PermissionRequested(uint requestID, bytes metadataHash);
Copied!
Return value: the identifier of the request being made, specified by requestID.

Recommend a Slate

1
function recommendSlate(
2
uint batchNumber,
3
uint category,
4
uint[] memory requestIDs,
5
bytes memory metadataHash
6
) public returns (uint);
Copied!
Creates a new slate with the associated requestIds and metadata hash (stored in IPFS).
Emits the following event:
1
event SlateCreated(uint slateID, address indexed recommender, bytes metadataHash);
Copied!
Return value: the identifier of the created slate, specified by slateID.

Deposit Vote Tokens

1
function depositVoteTokens(uint numTokens) public returns(bool);
Copied!
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:
1
event SlateCreated(uint slateID, address indexed recommender, bytes metadataHash);
Copied!
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

1
function commitBallot(bytes32 commitHash, uint numTokens) public;
Copied!
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:
1
event BallotCommitted(uint ballotID, address indexed voter, uint numTokens, bytes32 commitHash);
Copied!

Stake Tokens

1
function stakeTokens(uint slateID) public payable returns(bool);
Copied!

Accept a Slate

1
function acceptSlate(uint batchNumber, uint contest, uint slateID) public;
Copied!

Reveal a Ballot

1
function revealBallot(uint batchNumber) public;
Copied!

Start Runoff

1
function startRunoff(uint batchNumber, uint contest) public;
Copied!

Finalize Voting Results

1
function finalizeResult(uint batchNumber, uint contest) public;
Copied!

Create a new Category

1
function createCategory(address to, uint tokens, bytes metadataHash) public;
Copied!
Last modified 2yr ago