-
Notifications
You must be signed in to change notification settings - Fork 113
Reputation Voting #644
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Reputation Voting #644
Changes from all commits
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
7c2bc22
Create VotingBase and VotingReputation
kronosapiens 5bd6de6
Add support for vote actions
kronosapiens c99f70a
Add VotingReputationFactory
kronosapiens a90996f
Make polls binary
kronosapiens df4189f
Add ability to create root and domain polls
kronosapiens 6374b71
Delete VotingBase and add support for staking
kronosapiens 8b8da00
Set voting window to 2 days, clean up tests
kronosapiens d422dc2
Add support for tracking prior votes on variables
kronosapiens ef4f3d8
Rename userVotes to voteSecrets
kronosapiens c61979f
Add staking flow!
kronosapiens 60cccd9
Add events and support for claiming voter comp by colony
kronosapiens 2a610ee
Conform to new linting rules
kronosapiens cd0e11a
Add escalation flow
kronosapiens 472472f
Add loser penalty, remove leads
kronosapiens 6d0f9b2
Create activePolls to track ongoing polls
kronosapiens d0b589a
Extend claimDelay for expenditure state polls
kronosapiens 679137c
Add fold & call
kronosapiens 8346a6f
Add target
kronosapiens 0aa118f
Add initialise and deprecate functionality
kronosapiens ed1c4b1
Add crowdfunding option
kronosapiens 7ff395d
Respond to review comments
kronosapiens e1d77ae
Convert votes from bool to uint256
kronosapiens 3bbddcf
Respond to review comments II
kronosapiens 0a4a2a0
Respond to review comments III
kronosapiens 0631f90
Remove stake responses
kronosapiens 2f2be73
Remove activePoll, add unstakePoll logic
kronosapiens aadcbb3
Add stake withdraw restriction
kronosapiens 22d8cb0
Limit locking to expenditure state changes
kronosapiens 8338d85
Disallow staking after commit cutoff unless other side is staked
kronosapiens b8398e3
Improve timestamp handling
kronosapiens f4c68a7
Respond to review comments IV
kronosapiens 9a0f739
Rename executed to finalized
kronosapiens 687d89c
Updates to comments, and one rename of a variable
area 292b039
Respond to review comments V
kronosapiens 8a8b738
Respond to reviewer feedback VI
kronosapiens 1cbbf5f
Update reward accounting for escalations
kronosapiens 0680d88
Correctly hash expenditure slots
kronosapiens 209b753
Rename poll to motion
kronosapiens 15d50c4
Make ties a non-executing outcome
kronosapiens c06f414
Response to review comments VII
kronosapiens 6ae3341
Allow setExpenditureState to edit globalClaimDelay
area ae184a0
Make globalClaimDelay relevant
kronosapiens ffdbe57
Add check for valid motionId in Voting
kronosapiens e7a99b5
Respond to reviewer comments VIII
kronosapiens 7f475f1
Update setExpenditureState to explicitly check offsets
kronosapiens 565caf9
Update expenditure locking and add an interaction test
kronosapiens 9be918c
Adjust remaining tests for new delay value
area a171b89
Respond to reviewer comments IX
kronosapiens 9ae28ef
Update voting tests for new mining requirements
area 6fb170a
Rename target to altTarget
kronosapiens a0166dd
Respond to reviewer comments X
kronosapiens ecc833c
No escalation from root domain, add both domains to MotionEscalated
kronosapiens 37a9133
Respond to review comments XI
kronosapiens 46a80b4
Add test demonstrating escalation with no stake
kronosapiens 3b954cb
Remove expenditure locking for alternative targets
kronosapiens 835848e
Cannot create domain motions with non-permissioned functions
kronosapiens fcf80fe
Prevent domain motions for non- or root-permissioned functions
kronosapiens 83b278b
Refactor conditional logic in setExpenditureState
kronosapiens 6ab7cb8
Fix eslint issues
kronosapiens dc95acc
Update smoke test expected stateRoot
area 0d0a788
Respond to review comments XII
kronosapiens File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.