DaoVoting | inputs | 0 | address | _resolver |
CONTRACT_ADDRESS db4ecbc1commitVoteOnProposal 5e8254eaFunction to commit a vote on proposal (Voting Round)
| inputs | 0 | bytes32 | _proposalId | ID of the proposal |
| 1 | uint8 | _index | Index of the Voting Round | |
| 2 | bytes32 | _commitHash | Hash of the vote to commit (hash = SHA3(address(pub_address), bool(vote), bytes32(random string))) |
commitVoteOnSpecialProposal be29783fFunction to commit a vote on special proposal
| inputs | 0 | bytes32 | _proposalId | ID of the proposal |
| 1 | bytes32 | _commitHash | Hash of the vote to commit (hash = SHA3(address(pub_address), bool(vote), bytes(random string))) |
currentQuarterNumber 7f6a26b6Get the current quarter index
Quarter indexes starts from 1
| outputs | 0 | uint256 | _quarterNumber | the current quarter index |
currentTimeInQuarter 560a25eaGet the current relative time in the quarter
For example: the currentTimeInQuarter of the first second of any quarter is 1
| outputs | 0 | uint256 | _currentT | the current relative time in the quarter |
getAddressConfig 1d8ccd04| inputs | 0 | bytes32 | _configKey |
getBytesConfig 93ddad08| inputs | 0 | bytes32 | _configKey |
getUintConfig b1e2b9dd| inputs | 0 | bytes32 | _configKey |
get_contract 3f83acffGet the address of a contract
| inputs | 0 | bytes32 | _key | the resolver key to look up |
| outputs | 0 | address | _contract | the address of the contract |
isDaoNotReplaced d70d9358Check if the DAO contracts have been replaced by a new set of contracts
| outputs | 0 | bool | _isNotReplaced | true if it is not replaced, false if it has already been replaced |
isLockingPhase 7d6fed80Check if it is currently in the locking phase
No governance activities can happen in the locking phase. The locking phase is from t=0 to t=CONFIG_LOCKING_PHASE_DURATION-1
| outputs | 0 | bool | _isLockingPhase | true if it is in the locking phase |
isMainPhase 68533060Check if it is currently in a main phase.
The main phase is where all the governance activities could take plase. If the DAO is replaced, there can never be any more main phase.
| outputs | 0 | bool | _isMainPhase | true if it is in a main phase |
isModerator fa6f3936Check if a user is a moderator in the current quarter
| inputs | 0 | address | _user |
isParticipant 929066f5Check if a user is a participant in the current quarter
| inputs | 0 | address | _user |
isProposalPaused f94f0f33Check if a proposal is currently paused/stopped
If a proposal is paused/stopped (by the PRLs): proposer cannot call for voting, a current on-going voting round can still pass, but no funding can be withdrawn.A paused proposal can still be unpausedIf a proposal is stopped, this function also returns true
| inputs | 0 | bytes32 | _proposalId | |
| outputs | 0 | bool | _isPausedOrStopped | true if the proposal is paused(or stopped) |
key 3943380cresolver 04f3bcecrevealVoteOnProposal 2b051b50Function to reveal a committed vote on proposal (Voting Round)
The lockedDGDStake that would be counted behind a participant's vote is his lockedDGDStake when this function is called
| inputs | 0 | bytes32 | _proposalId | ID of the proposal |
| 1 | uint8 | _index | Index of the Voting Round | |
| 2 | bool | _vote | Boolean, true if voted for, false if voted against | |
| 3 | bytes32 | _salt | Random bytes used to commit vote |
revealVoteOnSpecialProposal d9db3c73Function to reveal a committed vote on special proposal
The lockedDGDStake that would be counted behind a participant's vote is his lockedDGDStake when this function is called
| inputs | 0 | bytes32 | _proposalId | ID of the proposal |
| 1 | bool | _vote | Boolean, true if voted for, false if voted against | |
| 2 | bytes32 | _salt | Random bytes used to commit vote |
voteOnDraft 610af570Function to vote on draft proposal (only Moderators can vote)
| inputs | 0 | bytes32 | _proposalId | ID of the proposal |
| 1 | bool | _vote | Boolean, true if voting for, false if voting against |