-
Notifications
You must be signed in to change notification settings - Fork 12.1k
Remove GovernorCompatibilyBravo and add simpler GovernorStorage #4360
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
Changes from 15 commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
ef52cdc
Remove the GovernorCompatibilyBravo module in favor of the simpler Go…
Amxx 37f33a8
Update contracts/governance/README.adoc
Amxx 0eb90ca
Apply suggestions from code review
Amxx fb35e92
wip
Amxx 841c80d
Merge remote-tracking branch 'upstream' into feature/Governor-storage
Amxx 4b97eb4
refactor state checking
Amxx 0f89b6a
update docs
Amxx 1d7e28c
fix lint
Amxx 79ad539
_queue returns bool
Amxx c1a6eee
add changeset
Amxx 51b37ec
bool → eta
Amxx f527b69
minimize change
Amxx 1d60a50
split propose into public + internal
Amxx 67f808a
split internals function
Amxx 9b76c86
Update contracts/governance/extensions/GovernorStorage.sol
Amxx caf1fe8
wip
Amxx 30eb76c
Merge remote-tracking branch 'upstream' into feature/Governor-storage
Amxx 44e23cc
fix lint
Amxx 18c1e35
test GovernorStorage
Amxx 35d6359
coverage
Amxx aeae17e
lint
Amxx d4f858e
Merge remote-tracking branch 'upstream' into feature/Governor-storage
Amxx ce87721
move proposalEta to core
Amxx 57cad90
Merge branch 'master' into feature/Governor-storage
Amxx 8b7788b
fix lint
Amxx e7d2123
Merge remote-tracking branch 'upstream' into feature/Governor-storage
Amxx f2d55b0
Merge branch 'master' into feature/Governor-storage
ernestognw a67ce0e
remove proposalId from the internal function. It is now computed inte…
Amxx c8717b6
Merge branch 'master' into feature/Governor-storage
Amxx 1b7a395
improve docs
frangio b97a4b7
rename implemented -> queued
frangio b828ced
rename _{queue,execute}Calls to _do{Queue,Execute}
frangio 899b14b
typo
frangio edd9c35
edit docs section on GovStorage
frangio 869836f
fix timelock id
frangio 0091b82
remove proposalId and add descriptionHash to return values
frangio 331f8e1
revert on unknown proposalId
frangio d44e090
lint
frangio ef1c20f
remove GovernorCompatibilityBravo.test.js
frangio 11ca422
rename getters
frangio 977083a
update changeset
frangio 8084aa3
update changeset
frangio 5645ec8
fix test helpers & remove clock from the governor interface id
Amxx 9d2ac8b
_doQueue returns eta only
Amxx ccd0d47
Update docs/modules/ROOT/pages/governance.adoc
Amxx d3d2396
merge _proposals and _proposalsExtra mappings
Amxx 440cedc
Apply suggestions from code review
frangio bdddeda
switch to custom error and add tests
frangio b2445f8
Batch GovernorStorage transactions setup
ernestognw 2a8dfb3
improve _cancel docs
frangio 02e43ff
add proposalThreshold in IGovernor
frangio 92589ff
improve definition of ETA
frangio e313b71
remove redundant docs
frangio caf04b2
edit docs for queue
frangio b01dad5
add note on possible revert in _queue
frangio ec55fe1
Merge remote-tracking branch 'upstream/master' into feature/Governor-…
frangio 6b352c4
add missing await
frangio 6f99bc9
fix variable
frangio 62f6fd6
Revert "add missing await"
frangio 037831e
rename _do{Queue,Execute} to _{queue,execute}Operations
frangio 5e74069
lint
frangio 8cb38ed
remove internal _queue and _execute
frangio d861ec1
make governor into interface
frangio f9240de
turn IGovernor into interface
frangio 9e7f04e
lint
frangio d1d8e83
lint
frangio ae58b64
fix docs
frangio d2e54af
Remove clock and CLOCK_Mode from IGovernor
Amxx 1853702
document memory/storage insonsistency has beeing the result of gas co…
Amxx 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'openzeppelin-solidity': major | ||
--- | ||
|
||
`Governor`: Add a public `queue` and an internal `_queue` function in the governor core. Module that implement queuing are expected to override the internal one. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'openzeppelin-solidity': major | ||
--- | ||
|
||
`GovernorStorage`: new governor extensions that stores the proposal details onchain. This replaces the old GovernorCompatibilityBravo module for proposal enumerability. |
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.