Package governance
This package contains 4 source unit(s) defining 4 class(es) / struct(s). Each unit below lists its fields (the values it stores) and methods (the actions it performs), with a plain explanation of each.
registry-record-vote #sleela 3.0 (lib/governance/examples/registry-record-vote.sleela)
SLRegistryRecordModelVoteDocument class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
proposalId | String proposalId = "registry-record-model-2026-01" | No description in source. |
sourceDigest | String sourceDigest = "sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef" | No description in source. |
voteMethod | String voteMethod = "manual-paper" | No description in source. |
secrecy | String secrecy = "secret" | No description in source. |
SLVoteBallot #sleela 3.0 (lib/governance/SLVoteBallot.sleela)
SLVoteBallot class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
anonymousBallotId | String anonymousBallotId | No description in source. |
choice | String choice | No description in source. |
status | String status | No description in source. |
receivedBeforeClose | boolean receivedBeforeClose | No description in source. |
witnessedByTwoTellers | boolean witnessedByTwoTellers | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
record | void record(String anonymousId, String markedChoice) | No description in source. |
validForTally | boolean validForTally() | No description in source. |
SLVoteProposal #sleela 3.0 (lib/governance/SLVoteProposal.sleela)
SLVoteProposal class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
proposalId | String proposalId | No description in source. |
title | String title | No description in source. |
proposalText | String proposalText | No description in source. |
sourcePath | String sourcePath | No description in source. |
sourceDigest | String sourceDigest | No description in source. |
electorate | String electorate | No description in source. |
eligibilityRule | String eligibilityRule | No description in source. |
opensUtc | String opensUtc | No description in source. |
closesUtc | String closesUtc | No description in source. |
ballotMethod | String ballotMethod | No description in source. |
secrecy | String secrecy | No description in source. |
countingRule | String countingRule | No description in source. |
tieResult | String tieResult | No description in source. |
resultPublication | String resultPublication | No description in source. |
options | SLList options | No description in source. |
quorumMinimum | int quorumMinimum | No description in source. |
quorumParticipationPercent | int quorumParticipationPercent | No description in source. |
tellersRequired | int tellersRequired | No description in source. |
challengeHours | int challengeHours | No description in source. |
abstainCountsForQuorum | boolean abstainCountsForQuorum | No description in source. |
abstainInApprovalDenominator | boolean abstainInApprovalDenominator | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String id, String proposalTitle, String frozenDigest) | No description in source. |
hasFrozenSource | boolean hasFrozenSource() | No description in source. |
hasWindowFields | boolean hasWindowFields() | No description in source. |
hasElectorate | boolean hasElectorate() | No description in source. |
manualSecretProfile | boolean manualSecretProfile() | No description in source. |
SLVoteTally #sleela 3.0 (lib/governance/SLVoteTally.sleela)
SLVoteTally class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
eligibleCount | long eligibleCount | No description in source. |
approveCount | long approveCount | No description in source. |
rejectCount | long rejectCount | No description in source. |
abstainCount | long abstainCount | No description in source. |
invalidCount | long invalidCount | No description in source. |
validBallotCount | long validBallotCount | No description in source. |
quorumRequired | long quorumRequired | No description in source. |
quorumMet | boolean quorumMet | No description in source. |
certified | boolean certified | No description in source. |
adopted | boolean adopted | No description in source. |
method | String method | No description in source. |
certificateReference | String certificateReference | No description in source. |
challengeState | String challengeState | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
reset | void reset() | No description in source. |
calculateQuorum | void calculateQuorum(long absoluteMinimum, int participationPercent, | No description in source. |
strictMajorityPasses | boolean strictMajorityPasses() | No description in source. |
twoThirdsPasses | boolean twoThirdsPasses() | No description in source. |
certify | void certify(String reference) | No description in source. |