Panvala
Search…
Introduction
Getting Started
Terminology
Contract API Reference
TokenCapacitor
Gatekeeper
Calls
Transactions
frontend integration
Connect to Panvala
Proposals
Slates
Ballot Voting
Templates
templates
Powered By
GitBook
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.
Contract API Reference - Previous
Gatekeeper
Next
Transactions
Last modified
3yr ago
Copy link
Outline
Get Current Batch Number
Check if a Voter Committed in a Ballot
Get Commit Hash