-
Notifications
You must be signed in to change notification settings - Fork 45
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
treasury: Delta Governor v1 #615
Commits on Jul 7, 2023
-
package.json: Update @OpenZeppelin libraries
Will be required for new checkpoints code and later governor implementation.
Configuration menu - View commit details
-
Copy full SHA for cc315d1 - Browse repository at this point
Copy the full SHA cc315d1View commit details -
bonding: Create SortedArrays library
Used for checkpointing logic in bonding state checkpoints
Configuration menu - View commit details
-
Copy full SHA for d42e92c - Browse repository at this point
Copy the full SHA d42e92cView commit details -
bonding: Create BondingCheckpoints contract
Handles historic checkpointing ("snapshotting") and lookup of the bonding state.
Configuration menu - View commit details
-
Copy full SHA for 2abf207 - Browse repository at this point
Copy the full SHA 2abf207View commit details -
Configuration menu - View commit details
-
Copy full SHA for a9dde9d - Browse repository at this point
Copy the full SHA a9dde9dView commit details
Commits on Jul 14, 2023
-
test/bonding: Test BondingManager and Checkpoints
- unit tests - integration tests - gas-report - fork test for upgrade
Configuration menu - View commit details
-
Copy full SHA for 078f348 - Browse repository at this point
Copy the full SHA 078f348View commit details
Commits on Jul 17, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 22ee2db - Browse repository at this point
Copy the full SHA 22ee2dbView commit details -
bonding: Allow querying unbonded+uncheckpointed accounts
This will provide a cleaner experience using governance tools, since users that don't have any stake won't get errors when querying their voting power. For users that do have stake, we will make sure to checkpoint them on first deploy.
Configuration menu - View commit details
-
Copy full SHA for 2e4157b - Browse repository at this point
Copy the full SHA 2e4157bView commit details
Commits on Jul 19, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 06b7100 - Browse repository at this point
Copy the full SHA 06b7100View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0aa6cd0 - Browse repository at this point
Copy the full SHA 0aa6cd0View commit details
Commits on Jul 20, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 9f007ba - Browse repository at this point
Copy the full SHA 9f007baView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2fd7abb - Browse repository at this point
Copy the full SHA 2fd7abbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 34cb455 - Browse repository at this point
Copy the full SHA 34cb455View commit details -
test/treasury: Rename Counting unit test mock
"Harness" seems to make more sense, I could only think of that now.
Configuration menu - View commit details
-
Copy full SHA for e970472 - Browse repository at this point
Copy the full SHA e970472View commit details
Commits on Jul 26, 2023
-
Apply suggestions from code review
Co-authored-by: Chase Adams <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a6db562 - Browse repository at this point
Copy the full SHA a6db562View commit details
Commits on Jul 27, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 0ad3a8f - Browse repository at this point
Copy the full SHA 0ad3a8fView commit details
Commits on Aug 4, 2023
-
Configuration menu - View commit details
-
Copy full SHA for bb9ff45 - Browse repository at this point
Copy the full SHA bb9ff45View commit details
Commits on Aug 15, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 0c41f78 - Browse repository at this point
Copy the full SHA 0c41f78View commit details -
Configuration menu - View commit details
-
Copy full SHA for d518cd6 - Browse repository at this point
Copy the full SHA d518cd6View commit details
Commits on Aug 17, 2023
-
bonding: Read votes from the end of the round
Meaning the start of next round instead of the current round. This is more compatible with the way OZ expects the timepoints to work in the clock and snapshots on the Governor framework.
Configuration menu - View commit details
-
Copy full SHA for ccc3ddf - Browse repository at this point
Copy the full SHA ccc3ddfView commit details -
bonding: Make checkpoint reading revert-free
This changes the BondingVotes implementation to stop having so many reverts on supposedly invalid states. Instead, redefine the voting power (and checkpointed stake) as being zero before the first round to be checkpointed. This had other implications in the code like removing changes in BondingManager to make the state complete (always having an earnings pool on lastClaimRound). Instead, the BondingVotes implementaiton is resilient to that as well and just assumes reward() had never been called. This also fixed the redundant reverts between BondingVotes and SortedArrays, as now there are almost no reverts.
Configuration menu - View commit details
-
Copy full SHA for d5062fe - Browse repository at this point
Copy the full SHA d5062feView commit details -
Configuration menu - View commit details
-
Copy full SHA for 292f954 - Browse repository at this point
Copy the full SHA 292f954View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f12ce9 - Browse repository at this point
Copy the full SHA 4f12ce9View commit details -
Configuration menu - View commit details
-
Copy full SHA for e9d3339 - Browse repository at this point
Copy the full SHA e9d3339View commit details -
Configuration menu - View commit details
-
Copy full SHA for f0fb8ee - Browse repository at this point
Copy the full SHA f0fb8eeView commit details -
bonding: Move constructor to after modifiers
Just for consistency with other contracts. Some docs as a bonus
Configuration menu - View commit details
-
Copy full SHA for 9dbb0ae - Browse repository at this point
Copy the full SHA 9dbb0aeView commit details
Commits on Aug 18, 2023
-
Configuration menu - View commit details
-
Copy full SHA for b59a538 - Browse repository at this point
Copy the full SHA b59a538View commit details
Commits on Aug 21, 2023
-
bonding: Implement ERC20 metadata on votes
This is to increase compatibility with some tools out there like Tally, which require only these functions from the ERC20 spec, not the full implementation. So we can have these from the get-go to make things easier if we want to make something with them.
Configuration menu - View commit details
-
Copy full SHA for 1692ec1 - Browse repository at this point
Copy the full SHA 1692ec1View commit details
Commits on Aug 22, 2023
-
Configuration menu - View commit details
-
Copy full SHA for fecf5a2 - Browse repository at this point
Copy the full SHA fecf5a2View commit details
Commits on Aug 23, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 4246474 - Browse repository at this point
Copy the full SHA 4246474View commit details -
Configuration menu - View commit details
-
Copy full SHA for 63d1d19 - Browse repository at this point
Copy the full SHA 63d1d19View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8c57a4d - Browse repository at this point
Copy the full SHA 8c57a4dView commit details
Commits on Aug 25, 2023
-
Configuration menu - View commit details
-
Copy full SHA for ddaf2bd - Browse repository at this point
Copy the full SHA ddaf2bdView commit details