Martín Triay
828fe365ee
Normalize return variable names in IERC721Enumerable ( #3079 )
...
* Name missing return variable in IERC721Enumerable
For consistency among all functions.
* remove return variable names
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
1e815f3308
Restructure intro to ERC721 contract docs
3 years ago
GitHubPang
d74605641c
Fix typos ( #3075 )
...
Correct a couple of misspellings.
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
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
Francisco Giordano
a0a8bbb57f
Remove note about enabling self-delegation
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
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
6bd6b76d11
4.4.1
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
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
04109f8bee
Address: explain dangers of isContract ( #2994 )
...
Co-authored-by: Ivo Georgiev <ivo@strem.io>
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
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
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
Bogdan A
52d42d6e03
Improve docs wording on constructors and proxies ( #2935 )
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
Francisco Giordano
a94cf0509f
Make quorum behavior match GovernorBravo ( #2974 )
...
* Make quorum inclusive minimum in GovernorCompatibilityBravo
* add PR link
3 years ago
Wittawat Patcharinsak
cf6e32fc54
Fix Timelock Controller description typo ( #2960 )
...
(cherry picked from commit e63b09c9ad
)
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
Wittawat Patcharinsak
e63b09c9ad
Fix Timelock Controller description typo ( #2960 )
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
09e5888ca8
fix typos in GovernorSettings ( #2957 )
...
(cherry picked from commit ce51655c81
)
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
3 years ago
Hadrien Croubois
ce51655c81
fix typos in GovernorSettings ( #2957 )
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
fbfe19d6db
Improve documentation around ERC1155
3 years ago
Francisco Giordano
0a87a4e75b
4.4.0-rc.0
3 years ago
soulofmischief
9e13852135
Fix typo ( #2919 )
3 years ago
Francisco Giordano
c9bdb1f0ae
Add a comment documenting the package version being used ( #2918 )
3 years ago