DaoStakeLocking
inputs | 0 | address | _resolver | |
1 | address | _dgdToken | ||
2 | address | _dgdBadgeToken | ||
3 | address | _carbonVoting1 | ||
4 | address | _carbonVoting2 |
LockDGD
31234eaf
inputs | 0 | address | _user | |
1 | uint256 | _amount | ||
2 | uint256 | _currentLockedDGDStake |
RedeemBadge
212ab1ff
inputs | 0 | address | _user |
WithdrawDGD
854445a9
inputs | 0 | address | _user | |
1 | uint256 | _amount | ||
2 | uint256 | _currentLockedDGDStake |
CONTRACT_ADDRESS
db4ecbc1
carbonVoting1
9bd71354
carbonVoting2
fbc28462
confirmContinuedParticipation
74cd7f6d
Function to be called by someone who doesnt change their DGDStake for the next quarter to confirm that they're participating
This can be done in the middle of the quarter as well. If someone just lets their DGDs sit in the DAO, and don't call this function, they are not counted as a participant in the quarter.
currentQuarterNumber
7f6a26b6
Get the current quarter index
Quarter indexes starts from 1
outputs | 0 | uint256 | _quarterNumber | the current quarter index |
currentTimeInQuarter
560a25ea
Get 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 |
dgdBadgeToken
1b1e53ef
dgdToken
be6999c4
getAddressConfig
1d8ccd04
inputs | 0 | bytes32 | _configKey |
getBytesConfig
93ddad08
inputs | 0 | bytes32 | _configKey |
getUintConfig
b1e2b9dd
inputs | 0 | bytes32 | _configKey |
get_contract
3f83acff
Get 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
d70d9358
Check 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
7d6fed80
Check 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
68533060
Check 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
fa6f3936
Check if a user is a moderator in the current quarter
inputs | 0 | address | _user |
isParticipant
929066f5
Check if a user is a participant in the current quarter
inputs | 0 | address | _user |
isProposalPaused
f94f0f33
Check 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
3943380c
lockDGD
14efcd3c
inputs | 0 | uint256 | _amount |
redeemBadge
dda249f5
Function to convert a DGD Badge to Reputation Points
The Badge holder can redeem the Badge anytime in the first quarter, or Otherwise, the participant must either lock/withdraw/continue in the current quarter first, before he can redeem a badge Only 1 DGD Badge is accepted from an address, so holders with multiple badges should either sell their other badges or redeem reputation to another address
resolver
04f3bcec
withdrawDGD
963cdbfd
Function to withdraw DGD tokens from this contract (can only be withdrawn in the locking phase of quarter)
inputs | 0 | uint256 | _amount | Number of DGD tokens to withdraw |