Hadrien Croubois
036c3cbef2
Replace custom errors with native panic codes in DoubleEndedQueue ( #4872 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com>
1 year ago
Hadrien Croubois
a72c9561b9
Finalize test migration: remove legacy dependencies and test helpers ( #4797 )
1 year ago
Hadrien Croubois
015ef69287
Refactor time helper and remove custom error helper. ( #4803 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com>
1 year ago
Renan Souza
c3cd70811b
Migrate governance tests to ethers.js ( #4728 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com>
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
1 year ago
Francisco
adbb8c9d27
Add Governor module connecting with AccessManager ( #4523 )
...
Co-authored-by: Ernesto García <ernestognw@gmail.com>
1 year ago
Hadrien Croubois
21716722ad
Remove GovernorCompatibilyBravo and add simpler GovernorStorage ( #4360 )
...
Co-authored-by: Ernesto García <ernestognw@gmail.com>
Co-authored-by: Francisco Giordano <fg@frang.io>
2 years ago
Ernesto García
b6c5abbde5
Add `GovernorTimelockControl` address to `TimelockController` salt ( #4432 )
...
Co-authored-by: Francisco Giordano <fg@frang.io>
2 years ago
Renan Souza
e3adf91e50
Add state getter in TimelockController using OperationState enum ( #4358 )
...
Co-authored-by: Francisco <fg@frang.io>
Co-authored-by: Ernesto García <ernestognw@gmail.com>
2 years ago
Claudia Barcelo
cd48b3eab3
Add validation in Governor on ERC-721 or ERC-1155 received ( #4314 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: Francisco <fg@frang.io>
Co-authored-by: Ernesto García <ernestognw@gmail.com>
2 years ago
Hadrien Croubois
7cc2cbfeb5
Cleanup the structure of GovernorTimelockControl.test.js ( #4302 )
2 years ago
Ernesto García
b425a72240
Replace revert strings with custom errors ( #4261 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: Francisco <fg@frang.io>
2 years ago
Hadrien Croubois
790cc5b65a
Add timestamp based governor with EIP-6372 and EIP-5805 ( #3934 )
...
Co-authored-by: Francisco Giordano <fg@frang.io>
Co-authored-by: Ernesto García <ernestognw@gmail.com>
Co-authored-by: Francisco <frangio.1@gmail.com>
2 years ago
Hadrien Croubois
5b027e517e
Add missing `await` in tests ( #4037 )
2 years ago
JulissaDantes
bc6de21fe2
Create ProposalSalt event for TimelockController ( #4001 )
...
Co-authored-by: Francisco <frangio.1@gmail.com>
2 years ago
Hadrien Croubois
5e28952cbd
Add a public Governor.cancel function ( #3983 )
2 years ago
Francisco
a28aafdc85
Use Prettier for JS files ( #3913 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2 years ago
Hadrien Croubois
c1d9da4052
Use hardhat-exposed to reduce the need for mocks ( #3666 )
...
Co-authored-by: Francisco <fg@frang.io>
2 years ago
JulissaDantes
887985413c
Use default admin role in TimelockController ( #3799 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: Francisco <frangio.1@gmail.com>
2 years ago
Hadrien Croubois
ec88e9d6aa
Add support for EOA target in Governor.relay ( #3730 )
...
(cherry picked from commit ed12acfb0a
)
2 years ago
Hadrien Croubois
ed12acfb0a
Add support for EOA target in Governor.relay ( #3730 )
2 years ago
Hadrien Croubois
76273ecd8e
Change admin role allocation in TimelockControler constructor ( #3722 )
...
Co-authored-by: Francisco <frangio.1@gmail.com>
(cherry picked from commit 408055dfab
)
2 years ago
Hadrien Croubois
408055dfab
Change admin role allocation in TimelockControler constructor ( #3722 )
...
Co-authored-by: Francisco <frangio.1@gmail.com>
2 years ago
Hadrien Croubois
6a5bbfc4cb
Refactor governor testing ( #3194 )
...
* starting a governor test refactor
* improve governor tests
* refactor compatibility tests using the governor helper
* improve governor helper
* improve governor helper
* refactor governor tests
* refactor testing
* fix testing (still TODO)
* fix tests
* fix tests
* fix spelling
* use different instances of GovernorHelper
* add vote with params support
* coverage
* simplify ERC165 helper
* remove unused proposal argument
* refactor setProposal
* lint
* refactor setProposal return values
* add a data default value
* improve proposal reconstruction and storage in helper
* proposal object refactoring
* lint
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Hadrien Croubois
8b162e39b5
Add a canceller role to the TimelockController ( #3165 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Ben DiFrancesco
fd07cc6290
Extend Governor with parameterized votes ( #3043 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
3 years ago
Hadrien Croubois
af7ec04b78
Improve security of the onlyGovernance modifier ( #3147 )
...
* add a protection mechanism to prevent relaying transaction that are not
part of an execute operation
* more accurate relay authorization
* force reset the relay authorizations after executions
* refactor of the onlyGovernor modifier
* only whitelist when executor is not governor itself
* fix lint
* add private function for call permission management
* use deque
* fix lint
* remove unecessary dependency
* remove unecessary dependency
* comment rephrasing
* Update contracts/governance/Governor.sol
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
* cache keccak256(_msgData())
* use Context
* lint
* conditionnal clear
* add test to cover queue.clear()
* lint
* write more extended docs for onlyGovernance
* add changelog entry
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Hadrien Croubois
6089f11c2f
Add a relay mechanism in the governor ( #2926 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Hadrien Croubois
a57e638f57
Improve GovernorTimelockControl.state() to detect direct cancel ( #2977 )
3 years ago
Hadrien Croubois
b12af48a7d
Add Governor module for governance-settable parameters ( #2904 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Hadrien Croubois
6c1a634053
Add Governor contracts ( #2672 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
4 years ago