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
Anton Bukov
da3a9ae18b
Avoid assembly in signature V and S decomposition ( #3060 )
...
* Avoid assembly in signature V and S decomposition
* Update ECDSA.sol
3 years ago
Drew Beller
e3391cd65f
Fix typo ( #3058 )
3 years ago
Francisco Giordano
e9e177f53b
Fix ERC2771ContextMock for upgradeable contracts
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
Michael D. George
915ca181ba
Add Certora's Governance verification rules ( #2997 )
...
Co-authored-by: Shelly Grossman <shelly@certora.com>
Co-authored-by: Aleksander Kryukov <58052996+RedLikeRosesss@users.noreply.github.com>
Co-authored-by: Michael M <91594326+MichaelMorami@users.noreply.github.com>
Co-authored-by: Aleksander Kryukov <firealexkryukov@gmail.com>
3 years ago
Francisco Giordano
a0a8bbb57f
Remove note about enabling self-delegation
3 years ago
Hadrien Croubois
1ffcb10bd2
Change release script to only update version comment for changed files ( #3033 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Hadrien Croubois
10c8fcd3b8
Use invalid opcode to consume all gas in MinimalForwarder ( #3035 )
3 years ago
Hadrien Croubois
cafd900ad6
Fix memory leak in merkle verification ( #3039 )
3 years ago
JulissaDantes
e667ec9533
Add Governor Timelock Control Warning ( #3032 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
JulissaDantes
5ac4d93ae3
Add missing letter ( #3034 )
3 years ago
Francisco Giordano
0550d13aee
Add ERC721 import in tutorial
3 years ago
Anton Bukov
d95cdaae8e
Replace excodesize assembly with address.code.length ( https://github.com/ethereum/solidity/releases/tag/v0.8.1 ) ( #3025 )
3 years ago
Francisco Giordano
4a9cc8b491
Merge branch 'release-v4.4'
3 years ago
Francisco Giordano
6bd6b76d11
4.4.1
3 years ago
Francisco Giordano
13a6ec753a
Remove bad date from changelog
3 years ago
Tom Lehman
bda61cd5e5
Fix typo ( #3016 )
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
renovate[bot]
2a09e50d09
Update lockfile ( #2993 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
3 years ago
Francisco Giordano
04109f8bee
Address: explain dangers of isContract ( #2994 )
...
Co-authored-by: Ivo Georgiev <ivo@strem.io>
3 years ago
Dmitriy Fishman
8ef7655e7b
Fix a typo in erc20-supply.adoc ( #3005 )
...
Fix a typo
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
David Brailovsky
3536587665
Fix typo ( #2992 )
3 years ago
Francisco Giordano
7d17acfb2f
Merge branch 'release-v4.4'
3 years ago
Francisco Giordano
4961a51cc7
4.4.0
3 years ago
Francisco Giordano
94a0b8f573
Make VestingWallet token event argument indexed ( #2988 )
...
(cherry picked from commit 0859c70936
)
3 years ago
Francisco Giordano
0859c70936
Make VestingWallet token event argument indexed ( #2988 )
3 years ago
Francisco Giordano
6481b05e4f
Add changelog entry for deprecation of presets
3 years ago
Francisco Giordano
c739d1976b
Update security email domain and Immunefi text
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
Francisco Giordano
2f2604d673
Deprecate presets in favor of Wizard ( #2986 )
3 years ago
Hadrien Croubois
0413d58860
add bug bounty info
...
(cherry picked from commit 86bd4d7389
)
3 years ago
Hadrien Croubois
86bd4d7389
add bug bounty info
3 years ago
Bogdan A
52d42d6e03
Improve docs wording on constructors and proxies ( #2935 )
3 years ago
renovate[bot]
4c8642b70a
Update lockfile ( #2932 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
3 years ago
Hadrien Croubois
a57e638f57
Improve GovernorTimelockControl.state() to detect direct cancel ( #2977 )
3 years ago
Hadrien Croubois
a4cee9ed37
make setters in GovernorSettings virtual
...
(cherry picked from commit 6e5bf05211
)
3 years ago
Hadrien Croubois
6e5bf05211
make setters in GovernorSettings virtual
3 years ago
Francisco Giordano
65ef662a2b
4.4.0-rc.1
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