Add comments
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 34s Details

This commit is contained in:
Ladd Hoffman 2024-03-27 14:11:53 -05:00
parent 34306e78aa
commit 1ae1a336f5
1 changed files with 6 additions and 0 deletions

View File

@ -69,6 +69,8 @@ contract Proposals is DAOContract {
emit NewProposal(proposalIndex);
}
/// External function for reputation holders to attest toward a given proposal;
/// This is non-binding and non-encumbering, so it does not transfer any reputation.
function attest(uint proposalIndex, uint amount) external {
// Since this is non-binding, non-encumbering, we only need to verify that
// the sender actually has the rep they claim to stake.
@ -85,6 +87,8 @@ contract Proposals is DAOContract {
attestation.amount = amount;
}
/// Internal convenience function to wrap our call to dao.initiateValidationPool
/// and to emit an event
function initiateValidationPool(
uint proposalIndex,
uint referendumIndex
@ -166,6 +170,8 @@ contract Proposals is DAOContract {
}
}
/// External function that will advance a proposal to the referendum process
/// if attestation threshold has been reached
function evaluateAttestation(uint proposalIndex) external returns (bool) {
Proposal storage proposal = proposals[proposalIndex];
require(