Hadrien Croubois
c366de3626
Fix encoding of signature+calldata in GovernorCompatibilityBravo ( #3100 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
0xclaudeshannon
80d8da0564
Do not reduce approval on transferFrom if current allowance is type(uint256).max ( #3085 )
...
* add feature request #3084
* Update contracts/token/ERC20/ERC20.sol
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
* Add changelog note
* add documentation
* test unlimitted allowance and add ERC777 unlimitted allowance
* reference PR in changelog
* documentation IERC20 -> ERC20
* use asciidoc note syntax
* use asciidoc note syntax
* typo
* typos
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Hadrien Croubois
fd7c4ba8f0
Update pragma in utils/Address.sol to 0.8.1 ( #3098 )
3 years ago
Hadrien Croubois
8dd744fc18
Add missing reference to PR in changelog
3 years ago
JulissaDantes
a65c03bc0d
Implement Non Fungible Token Royalty (EIP2981) ( #3012 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
3 years ago
Francisco Giordano
a9f994f063
Reduce ERC20 allowance before triggering transfer ( #3056 )
...
* Reduce ERC20 allowance before triggering transfer
* adapt ERC777 to reduce allowance before transfer
* fix test for ERC777
* use smaller number to reduce balance
* simplify test description
* don't use deprecated expectEvents.inLogs
* fix test
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
3 years ago
Ernesto García
ef0273fde1
Add Base64 library to utils ( #2884 )
...
* Add Base64 library to utils
* Fix typo on Base64 padding
* Added documentation for Base64 and references from ERC1155 and ERC721
* Updated Changelog
* Fix typo in utilities doc
* use mstore8 to improve memory accesses
* use shorter strings with encodePacked
* do not use using-for syntax, for clarity
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Hadrien Croubois
fe38eae6cd
Re-enable immutable forwarder in ERC2771Context ( #2917 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Francisco Giordano
6bd6b76d11
4.4.1
3 years ago
Francisco Giordano
13a6ec753a
Remove bad date from changelog
3 years ago
JulissaDantes
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>
3 years ago
Francisco Giordano
553c8fdec7
Update initializer modifier to prevent reentrancy during initialization ( #3006 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
(cherry picked from commit 08840b9f8c
)
3 years ago
Francisco Giordano
9a7e4a0112
Remove trailing whitespace
3 years ago
Francisco Giordano
e141d8917a
Create v4.4.1 section in changelog
3 years ago
Hadrien Croubois
08840b9f8c
Update initializer modifier to prevent reentrancy during initialization ( #3006 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
robriks
0c858e2071
Improve revert reason in ERC721 ( #2975 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Francisco Giordano
4625192940
Fix changelog entry for GovernorPreventLateQuorum
3 years ago
Hadrien Croubois
a05312f1b7
fix changelog structure
3 years ago
Hadrien Croubois
abf6024faf
Add a governor module to protect against late quorum ( #2973 )
...
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
Francisco Giordano
4961a51cc7
4.4.0
3 years ago
Francisco Giordano
6481b05e4f
Add changelog entry for deprecation of presets
3 years ago
barakman
f6db5c1f30
A function which returns the absolute value of a signed value ( #2984 )
...
* Add a function which returns the absolute (and obviously unsigned) value of a signed value.
* add changelog entry and fix lint
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
3 years ago
Hadrien Croubois
a57e638f57
Improve GovernorTimelockControl.state() to detect direct cancel ( #2977 )
3 years ago
Francisco Giordano
8b8ee57a1a
Make quorum behavior match GovernorBravo ( #2974 )
...
* Make quorum inclusive minimum in GovernorCompatibilityBravo
* add PR link
(cherry picked from commit a94cf0509f
)
3 years ago
Francisco Giordano
a94cf0509f
Make quorum behavior match GovernorBravo ( #2974 )
...
* Make quorum inclusive minimum in GovernorCompatibilityBravo
* add PR link
3 years ago
Hadrien Croubois
70138680cf
Fix ERC1155 supply tracking ( #2956 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
(cherry picked from commit 4088540aef
)
3 years ago
Francisco Giordano
3db4393b58
Fix link to #2849 in changelog
...
(cherry picked from commit 57630d2a64
)
3 years ago
Francisco Giordano
57630d2a64
Fix link to #2849 in changelog
3 years ago
Hadrien Croubois
4088540aef
Fix ERC1155 supply tracking ( #2956 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Hadrien Croubois
6dab43c3a9
AccessControlEnumerable: Hook into the internal function ( #2946 )
...
* AccessControlEnumerable: Hook into the internal function
* add changelog entry
(cherry picked from commit 7579828180
)
3 years ago
Hadrien Croubois
7579828180
AccessControlEnumerable: Hook into the internal function ( #2946 )
...
* AccessControlEnumerable: Hook into the internal function
* add changelog entry
3 years ago
Francisco Giordano
db58acead1
Fix changelog links
...
(cherry picked from commit 2b046d79e1
)
3 years ago
Francisco Giordano
2b046d79e1
Fix changelog links
3 years ago
Francisco Giordano
0a87a4e75b
4.4.0-rc.0
3 years ago
Francisco Giordano
7fe5326c2d
Add changelog entries for #2849
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
88e4b69bfb
Add a VestingWallet ( #2748 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Hadrien Croubois
d244b81972
Add a MerkleProof.processProof utility function ( #2841 )
...
* Add a MerkleProof.processProof utility function
* Add changelog entry
* fix lint
* return index when processingProof
* fix lint
* fix test
* Apply suggestions from code review
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
* improve documentation
* Apply suggestions from code review
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
* remove index - see discussion in the PR
* update changelog
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
td-bn
5b28259dac
#890 : Add ECDSA.toEthSignedMessageHash(bytes) for abritrary length message hashing ( #2865 )
...
* #890 : Add ECDSA#toEthSignedMessage for bytes type
* refactor
* add test, refactor
* select overloaded function explicitly
* use short test message string
* add changelog entry
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
3 years ago
Hadrien Croubois
efb5b0a28f
Extend PaymentSplitter to support ERC20 tokens ( #2858 )
...
* Add MultiPaymentSplitter
with ERC20 support on top of the existing PaymentSplitter
* consistency and linting
* Add MultiPaymentSplitter tests
* fix lint
* add changelog entry
* add MultiPaymentSplitter to documentation
* rework PaymentSplitter to include ERC20 support by default
* remove test file for MultiPaymentSplitter
* fix lint
* completelly split erc20 and token tracking
* address some PR comments
* add notice about rebasing tokens
* fix minor error in tests
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Hadrien Croubois
abeb0fbf5c
Delay the Pending state until strictly after proposal.voteStart ( #2892 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Hadrien Croubois
caba6b93ef
Add an internal _setApprovalForAll function (721 & 1155) ( #2834 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Anton Bukov
29eeb2828e
Fix EIP712 for delegatecalls ( #2852 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Francisco Giordano
0c4de6721d
4.3.2
3 years ago
Hadrien Croubois
024cc50df4
Restrict upgrade to proxy context in UUPSUpgradeable
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
(cherry picked from commit 6241995ad3
)
3 years ago
Hadrien Croubois
6241995ad3
Restrict upgrade to proxy context in UUPSUpgradeable
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Hadrien Croubois
7237b1672e
Make some private functions internal to allow the developpement of "withSignature" functions (like permit) ( #2568 )
...
* add internal _setOwner in Ownable
* address issues raised in #2567
* updte changelog entry
* improve changelog and documentation
* rephrasing doc
* add cahngelog improvement lost in merge
* notify deprecation of _setupRole in changelog
* Demote caution to note
* Update CHANGELOG.md
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Francisco Giordano
6edb6dd1ca
4.3.1
3 years ago
Francisco Giordano
0ec7f4c25d
Add additional isOperationReady check in TimelockController
...
(cherry picked from commit cec4f2ef57
)
3 years ago