WyvernDAO
inputs | 0 | address | sharesAddress |
ChangeOfRules
68259880
inputs | 0 | uint256 | newMinimumQuorum | |
1 | uint256 | newDebatingPeriodInMinutes | ||
2 | address | newSharesTokenAddress |
ProposalAdded
06d6b095
inputs | 0 | uint256 | proposalID | |
1 | address | recipient | ||
2 | uint256 | amount | ||
3 | bytes | metadataHash |
ProposalTallied
748f0810
inputs | 0 | uint256 | proposalID | |
1 | uint256 | yea | ||
2 | uint256 | nay | ||
3 | uint256 | quorum | ||
4 | bool | active |
ReceivedEther
a419615b
inputs | 0 | address | sender | |
1 | uint256 | amount |
ReceivedTokens
d65b48fd
inputs | 0 | address | from | |
1 | uint256 | value | ||
2 | address | token | ||
3 | bytes | extraData |
TokensDelegated
57593c23
inputs | 0 | address | delegator | |
1 | uint256 | numberOfTokens | ||
2 | address | delegate |
TokensUndelegated
ccc924ef
inputs | 0 | address | delegator | |
1 | uint256 | numberOfTokens | ||
2 | address | delegate |
Voted
86abfce9
inputs | 0 | uint256 | proposalID | |
1 | bool | position | ||
2 | address | voter |
DEBATE_PERIOD_MINUTES
ecc46d1b
MINIMUM_QUORUM
b159beac
REQUIRED_SHARES_TO_BE_BOARD_MEMBER
06fde169
TOKEN_DECIMALS
5b7f415c
changeVotingRules
6e676b69
Change voting rules * Make so that proposals need tobe discussed for at least minutesForDebate/60
hours and all voters combined must own more than minimumSharesToPassAVote
shares of token sharesAddress
to be executed and a shareholder needs sharesToBeBoardMember
shares to create a transaction proposal
inputs | 0 | uint256 | minimumSharesToPassAVote | proposal can vote only if the sum of shares held by all voters exceed this number |
1 | uint256 | minutesForDebate | the minimum amount of delay between when a proposal is made and when it can be executed | |
2 | uint256 | sharesToBeBoardMember | the minimum number of shares required to create proposals |
checkProposalCode
eceb2945
Check if a proposal code matches
inputs | 0 | uint256 | proposalNumber | ID number of the proposal to query |
1 | address | beneficiary | who to send the ether to | |
2 | uint256 | weiAmount | amount of ether to send | |
3 | bytes | transactionBytecode | bytecode of transaction |
clearDelegateAndUnlockTokens
645bd436
Undelegate all delegated tokens Clear the delegate address for all tokens delegated by the sending address, unlocking the locked tokens.
Can only be called by a sending address currently delegating tokens, will transfer all locked tokens back to the sender
outputs | 0 | uint256 | lockedTokens |
countVotes
1840f0ca
Count the votes, including delegated votes, in support of, against, and in total for a particular proposal
inputs | 0 | uint256 | proposalNumber | proposal number |
outputs | 0 | uint256 | yea | votes, nay votes, quorum (total votes) |
1 | uint256 | nay | ||
2 | uint256 | quorum |
debatingPeriodInMinutes
69bd3436
delegatedAmountsByDelegate
3fb3ec28
inputs | 0 | address |
delegatesByDelegator
064cc7a7
inputs | 0 | address |
executeProposal
237e9492
Finish vote * Count the votes proposal #proposalNumber
and execute it if approved
inputs | 0 | uint256 | proposalNumber | proposal number |
1 | bytes | transactionBytecode | optional: if the transaction contained a bytecode, you need to send it |
hasVoted
43859632
Return whether a particular shareholder has voted on a particular proposal (convenience function)
inputs | 0 | uint256 | proposalNumber | proposal number |
1 | address | shareholder | address to query | |
outputs | 0 | bool |
lockedDelegatingTokens
13f47f24
inputs | 0 | address |
minimumQuorum
8160f0b5
name
06fdde03
newProposal
dbc45228
Add Proposal * Propose to send weiAmount / 1e18
ether to beneficiary
for jobMetadataHash
. transactionBytecode ? Contains : Does not contain
code.
Submit proposal for the DAO to execute a particular transaction. Submitter should check that the beneficiary
account exists, unless the intent is to burn Ether.
inputs | 0 | address | beneficiary | who to send the ether to |
1 | uint256 | weiAmount | amount of ether to send, in wei | |
2 | bytes | jobMetadataHash | Hash of job metadata (IPFS) | |
3 | bytes | transactionBytecode | bytecode of transaction |
numProposals
400e3949
proposals
013cf08b
inputs | 0 | uint256 |
receiveApproval
8f4ffcb1
Receive tokens and generate a log event
inputs | 0 | address | from | Address from which to transfer tokens |
1 | uint256 | value | Amount of tokens to transfer | |
2 | address | token | Address of token | |
3 | bytes | extraData | Additional data to log |
requiredSharesToBeBoardMember
b94fa03f
setDelegateAndLockTokens
5fa7df6b
Delegate an amount of tokens Set the delegate address for a specified number of tokens belonging to the sending address, locking the tokens.
An address holding tokens (shares) may only delegate some portion of their vote to one delegate at any one time
inputs | 0 | uint256 | tokensToLock | number of tokens to be locked (sending address must have at least this many tokens) |
1 | address | delegate | the address to which votes equal to the number of tokens locked will be delegated |
sharesTokenAddress
27ebcf0e
tokenLocker
a80bf3e6
totalLockedTokens
f5c476f9
vote
c9d27afe
Log a vote for a proposal * Vote supportsProposal? in support of : against
proposal #proposalNumber
Vote in favor or against an existing proposal. Voter should check that the proposal destination account exists, unless the intent is to burn Ether.
inputs | 0 | uint256 | proposalNumber | number of proposal |
1 | bool | supportsProposal | either in favor or against it |