2a83a217af
GovernorCountingOverridable testing with timestamp ( #5269 )
2024-10-18 14:45:36 +02:00
378914ceab
Delegate override vote ( #5192 )
...
Co-authored-by: Arr00 <13561405+arr00@users.noreply.github.com >
2024-10-18 14:17:20 +02:00
c1d6ad5a30
Add GovernorCountingFractional ( #5045 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com >
Co-authored-by: Francisco <fg@frang.io >
2024-05-30 13:49:36 -06:00
d947fb056d
Fix typo in GovernorVotesQuorumFraction.test.js ( #5041 )
2024-05-17 15:24:06 +02:00
d6ad9db0a0
Add transient storage slot support in StorageSlot.sol ( #4980 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com >
2024-04-04 01:15:30 +02:00
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 >
2024-03-14 17:35:08 +01:00
036c3cbef2
Replace custom errors with native panic codes in DoubleEndedQueue ( #4872 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com >
2024-02-06 21:02:01 +01:00
a72c9561b9
Finalize test migration: remove legacy dependencies and test helpers ( #4797 )
2023-12-26 23:46:06 +01:00
015ef69287
Refactor time helper and remove custom error helper. ( #4803 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com >
2023-12-22 19:50:25 +00:00
c3cd70811b
Migrate governance tests to ethers.js ( #4728 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com >
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
2023-12-18 21:09:23 +01:00
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 >
2023-12-13 22:31:56 +00:00
6a56b3b08d
Migrate EIP712 to ethersjs ( #4750 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
Co-authored-by: ernestognw <ernestognw@gmail.com >
2023-11-22 22:40:12 -06:00
7c8b7a2728
Migrate MerkleProof tests among other testing utilities ( #4689 )
2023-10-23 12:24:46 -06:00
6383299d71
AccessManager tests consolidation ( #4655 )
2023-10-12 11:32:30 -06:00
655bd58487
Improve GovernorTimelockAccess tests ( #4642 )
...
Co-authored-by: Francisco <fg@frang.io >
2023-10-04 21:29:25 -03:00
57865f8b20
Add named return parameters and _checkSelector function to AccessManager ( #4624 )
2023-09-28 16:52:42 -03:00
80b2d1df38
Improve GovernorTimelockAccess ( #4591 )
...
Co-authored-by: Francisco <fg@frang.io >
2023-09-13 20:25:35 -03:00
d54f4ac4b7
Rename AccessManager groups to roles ( #4580 )
2023-09-07 20:58:50 -03:00
33cab7cd25
AccessManager: Remove classes ( #4562 )
2023-09-05 11:49:54 -03:00
adbb8c9d27
Add Governor module connecting with AccessManager ( #4523 )
...
Co-authored-by: Ernesto García <ernestognw@gmail.com >
2023-08-16 02:33:49 -03:00
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 >
2023-08-03 12:51:07 -03:00
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 >
2023-07-13 19:25:22 -03:00
b6c5abbde5
Add GovernorTimelockControl address to TimelockController salt ( #4432 )
...
Co-authored-by: Francisco Giordano <fg@frang.io >
2023-07-12 19:36:10 -03:00
921ac49ccb
Fix typos in the tests ( #4452 )
2023-07-12 17:05:21 -03:00
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 >
2023-07-05 15:11:29 +02:00
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 >
2023-07-04 15:23:44 -03:00
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 >
2023-07-03 22:29:30 +02:00
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 >
2023-06-15 21:43:17 -03:00
7cc2cbfeb5
Cleanup the structure of GovernorTimelockControl.test.js ( #4302 )
2023-06-14 16:00:38 +02:00
b425a72240
Replace revert strings with custom errors ( #4261 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
Co-authored-by: Francisco <fg@frang.io >
2023-06-12 23:41:52 +00:00
15c5c71795
Remove TokenTimelock, PaymentSplitter, ERC20Snapshot, ERC20VotesComp, GovernorVotesComp ( #4276 )
2023-05-26 23:30:00 +01:00
8de6eba8a3
Merge branch 'master' into next-v5.0
2023-05-16 00:07:07 -03:00
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 >
2023-02-09 22:33:55 +01:00
5b027e517e
Add missing await in tests ( #4037 )
2023-02-08 21:03:27 +00:00
d625cb45ea
Include EIP-5267 discovery in EIP-712 ( #3969 )
...
Co-authored-by: Francisco <frangio.1@gmail.com >
Co-authored-by: Francisco <fg@frang.io >
2023-02-08 15:53:57 +01:00
bc6de21fe2
Create ProposalSalt event for TimelockController ( #4001 )
...
Co-authored-by: Francisco <frangio.1@gmail.com >
2023-01-27 15:47:43 -03:00
5e28952cbd
Add a public Governor.cancel function ( #3983 )
2023-01-26 20:46:11 +01:00
147dc89054
Merge branch 'master' into next-v5.0
2023-01-14 18:51:03 -03:00
a28aafdc85
Use Prettier for JS files ( #3913 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
2023-01-04 15:03:40 +01:00
c1d9da4052
Use hardhat-exposed to reduce the need for mocks ( #3666 )
...
Co-authored-by: Francisco <fg@frang.io >
2023-01-03 14:38:13 +00:00
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 >
2022-11-09 13:18:27 -03:00
ed12acfb0a
Add support for EOA target in Governor.relay ( #3730 )
2022-09-26 15:27:33 -03:00
408055dfab
Change admin role allocation in TimelockControler constructor ( #3722 )
...
Co-authored-by: Francisco <frangio.1@gmail.com >
2022-09-23 16:58:56 +02:00
8ea1fc87c9
Keep track of historical quorum values ( #3561 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2022-07-27 13:23:10 -03:00
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 >
2022-03-11 09:30:30 +01:00
8b162e39b5
Add a canceller role to the TimelockController ( #3165 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2022-03-08 18:28:20 -03:00
fd07cc6290
Extend Governor with parameterized votes ( #3043 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
2022-03-01 17:55:20 -03:00
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 >
2022-02-18 21:03:03 +01:00
b42b05311b
Add ERC721Votes for NFT-based governance ( #2944 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
Co-authored-by: Hadrien Croubois <hadrien@openzeppelin.com >
2021-12-10 18:58:45 -03:00
abf6024faf
Add a governor module to protect against late quorum ( #2973 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-12-01 13:56:31 -03:00