dependabot[bot]
0643d17e8d
Bump ws, ethers and hardhat-gas-reporter ( #5345 )
2 months ago
Arr00
779c27ad36
Cherry-pick "Fix v5.2 testing" from the release-v5.2 branch ( #5342 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2 months ago
Hadrien Croubois
2a83a217af
GovernorCountingOverridable testing with timestamp ( #5269 )
4 months ago
Hadrien Croubois
378914ceab
Delegate override vote ( #5192 )
...
Co-authored-by: Arr00 <13561405+arr00@users.noreply.github.com>
4 months ago
Hadrien Croubois
c1d6ad5a30
Add GovernorCountingFractional ( #5045 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com>
Co-authored-by: Francisco <fg@frang.io>
8 months ago
alex
d947fb056d
Fix typo in GovernorVotesQuorumFraction.test.js ( #5041 )
9 months ago
Hadrien Croubois
d6ad9db0a0
Add transient storage slot support in StorageSlot.sol ( #4980 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com>
10 months ago
Franco Victorio
c03952acbe
Remove `async` from `describe` blocks and add missing `await` in tests ( #4942 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com>
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
11 months ago
Hadrien Croubois
036c3cbef2
Replace custom errors with native panic codes in DoubleEndedQueue ( #4872 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com>
12 months 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
Renan Souza
88512b23d2
Migrate ERC20 extensions tests to ethers v6 ( #4773 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: ernestognw <ernestognw@gmail.com>
1 year ago
Renan Souza
6a56b3b08d
Migrate EIP712 to ethersjs ( #4750 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: ernestognw <ernestognw@gmail.com>
1 year ago
Hadrien Croubois
7c8b7a2728
Migrate `MerkleProof` tests among other testing utilities ( #4689 )
1 year ago
Ernesto García
6383299d71
AccessManager tests consolidation ( #4655 )
1 year ago
Ernesto García
655bd58487
Improve `GovernorTimelockAccess` tests ( #4642 )
...
Co-authored-by: Francisco <fg@frang.io>
1 year ago
Ernesto García
57865f8b20
Add named return parameters and `_checkSelector` function to AccessManager ( #4624 )
1 year ago
Hadrien Croubois
80b2d1df38
Improve GovernorTimelockAccess ( #4591 )
...
Co-authored-by: Francisco <fg@frang.io>
1 year ago
Hadrien Croubois
d54f4ac4b7
Rename AccessManager groups to roles ( #4580 )
1 year ago
Hadrien Croubois
33cab7cd25
AccessManager: Remove classes ( #4562 )
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
121be5dd09
Make `TransparentUpgradeableProxy` deploy its `ProxyAdmin` and optimize proxy interfaces ( #4382 )
...
Co-authored-by: Francisco <fg@frang.io>
Co-authored-by: Eric Lau <ericglau@outlook.com>
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
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
Pierre Grimaud
921ac49ccb
Fix typos in the tests ( #4452 )
2 years ago
Ernesto García
63bfab1a0c
Enable ERC-1271 signature checks in Governor `castVoteBySig` ( #4418 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: Francisco <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
Ernesto García
6e21422737
Add Governor signature nonces ( #4378 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: Francisco <fg@frang.io>
Co-authored-by: Sergei Tikhomirov <sergey.s.tikhomirov@gmail.com>
Co-authored-by: Renan Souza <renan.rodrigues.souza1@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
15c5c71795
Remove TokenTimelock, PaymentSplitter, ERC20Snapshot, ERC20VotesComp, GovernorVotesComp ( #4276 )
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
Hadrien Croubois
d625cb45ea
Include EIP-5267 discovery in EIP-712 ( #3969 )
...
Co-authored-by: Francisco <frangio.1@gmail.com>
Co-authored-by: Francisco <fg@frang.io>
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
8ea1fc87c9
Keep track of historical quorum values ( #3561 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 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