Panvala
  • Introduction
  • Getting Started
  • Terminology
  • Contract API Reference
    • TokenCapacitor
      • Calls
      • Transactions
    • Gatekeeper
      • Calls
      • Transactions
  • frontend integration
    • Connect to Panvala
    • Proposals
    • Slates
    • Ballot Voting
  • Templates
    • templates
      • guide
      • api
      • faq
      • changelog
Powered by GitBook
On this page
  • Get Current Batch Number
  • Check if a Voter Committed in a Ballot
  • Get Commit Hash

Was this helpful?

  1. Contract API Reference
  2. Gatekeeper

Calls

free

Get Current Batch Number

function currentBatchNumber() public view returns(uint);

Return value: the number of the current batch, specified by batchNumber.

Check if a Voter Committed in a Ballot

function didCommit(uint ballotID, address voter) public view returns(bool);

Return value: a boolean value indicating if the voter has committed for a given ballot.

Get Commit Hash

function getCommitHash(uint ballotID, address voter) public view returns(bytes32);

Gets the commit hash for a given voter and ballot.

  • reverts if voter has not committed yet.

Return value: the hash of the committed vote.

PreviousGatekeeperNextTransactions

Last updated 6 years ago

Was this helpful?