Hadrien Croubois
c1d9da4052
Use hardhat-exposed to reduce the need for mocks ( #3666 )
...
Co-authored-by: Francisco <fg@frang.io>
2 years ago
Francisco
2336bd3e8e
Simplify ESLint config ( #3903 )
2 years ago
Hagen Hübel
206a239448
Remove unused variables in tests ( #3852 )
2 years ago
Francisco
4e8b2fa659
Add additional conditions when testing ERC4626 roundtrip ( #3839 )
2 years ago
Saeed Dadkhah
99589794db
Add forgotten await to ERC1155URIStorage beforeEach block. ( #3807 )
2 years ago
Daejun Park
c7315e8779
Add ERC4626 standard property tests ( #3792 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2 years ago
Hadrien Croubois
0b3acb286a
Recommended improvement to ERC721Consecutive ( #3712 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
(cherry picked from commit c22db8104e
)
2 years ago
Hadrien Croubois
c22db8104e
Recommended improvement to ERC721Consecutive ( #3712 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
2 years ago
Hadrien Croubois
171fa40bc8
ERC721 extension for efficient batch minting ( #3311 )
...
Co-authored-by: Francisco <frangio.1@gmail.com>
2 years ago
Francisco
e09ccd1449
Optimize votes lookups for recent checkpoints ( #3673 )
2 years ago
Hadrien Croubois
141130db27
Inherit asset decimals in ERC4626 ( #3639 )
2 years ago
Hadrien Croubois
24fc709533
Set up codespell ( #3643 )
2 years ago
Aleksei Magusev
fbf235661e
Improve grammar in transfer error messages ( #3542 )
3 years ago
Nirban Chakraborty
d1b1e17d23
Add internal overrideable _flashFee in ERC20FlashMint ( #3551 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: Francisco <frangio.1@gmail.com>
3 years ago
t11s
e0149921b8
Update solmate repo link ( #3563 )
3 years ago
EthanOK
96163c87e3
Implicitly clear ERC721 approval on burn ( #3538 )
3 years ago
Andrew Parker
e02c378745
Implicitly clear ERC721 approval on transfers ( #3481 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Hadrien Croubois
a55b7d1372
Rename ERC20TokenizedVault to ERC4626 ( #3467 )
3 years ago
Hadrien Croubois
7c75b8aa89
Add a SafeERC20:safePermit function ( #3280 )
3 years ago
Hadrien Croubois
35090c1bf1
Add tests for improved coverage ( #3448 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Hadrien Croubois
5e00787199
ERC4626 ( #3171 )
3 years ago
Francisco Giordano
62f2c0531b
Simplify ERC721 revert reasons ( #3438 )
3 years ago
rotcivegaf
82a63f6389
Remove redundant require in ERC721 ( #3434 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Kata
488dd562fb
Improve error messages for ERC721 and 1155 ( #3254 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Mazen Khalil
3b9381dfb1
Add customizable fee receiver to ERC20FlashMint ( #3327 )
...
Co-authored-by: Mazen Khalil <mazen@immunityledger.org>
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Niccolò Petti
d4e6236b2b
Fix deprecated expectEvent.inLogs #3332 ( #3333 )
3 years ago
Amin Bashiri
742e85be7c
Change zero address revert message in the balanceOf function of ERC721 and ERC1155 ( #3314 )
3 years ago
S E R A Y A
02fcc75bb7
Add ERC1155URIStorage ( #3210 )
...
* Add ERC721URIStorage-like extension for ERC1155
* Add tests for ERC1155URIStorage extension
* add changelog entry for ERC721URIStorage
* Fix linting errors
* Emit URI event in ERC1155URIStorage
* Remove exists check and ERC1155Supply dependency
* Fix lint error
* Overwrite ERC1155 uri method
* Update ERC1155URIStorage specs
* Fix ERC1155URIStorageMock
* Rename _setTokenURI => _setURI in ERC1155URIStorage
* Add baseURI to ERC1155URIStorage
* Move super.uri call in ERC1155URIStorage
* Clearify ERC1155URIStorage description in change log
* reorder changelog & add documentation
* improve documentation
* fix typo
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
3 years ago
Hadrien Croubois
98716177ae
Inherit ERC20Wrapper decimals from the underlying ( #3259 )
3 years ago
Hadrien Croubois
f8bfa560e9
Use _spendAllowance in ERC20FlashMint ( #3226 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Hadrien Croubois
c5a6cae898
Add a _spendAllowance function to ERC20 & ERC777 ( #3170 )
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
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
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
robriks
0c858e2071
Improve revert reason in ERC721 ( #2975 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
William Entriken
d89f2a4ac6
Update ERC721.behavior.js ( #2801 )
4 years ago
William Entriken
f782943099
Move variable declaration to top of test file ( #2806 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
4 years ago
William Entriken
e1c0f3eaef
Update tests for RFC 2606 ( #2802 )
4 years ago
Hadrien Croubois
15b92e4097
Add missing "await" in tests ( #2749 )
...
* add missing await in tests
* fix test description
4 years ago
Hadrien Croubois
6842518b1b
Wrapper extension for ERC20 token ( #2633 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
4 years ago
Hadrien Croubois
8a775cd8d4
Emit DelegateVotesChanged events after Transfer ( #2733 )
4 years ago
Hadrien Croubois
e3661abe84
Split ERC20Votes and ERC20VotesComp ( #2706 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
4 years ago
Francisco Giordano
adc50d465c
Tweak ERC20Votes revert reasons and documentation ( #2696 )
...
* adapt revert reason convention
* add whitespace
* tweak documentation
* fix tests
4 years ago
Hadrien Croubois
f6efd8aced
Add totalSupply checkpoints to ER20Votes ( #2695 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
4 years ago
Hadrien Croubois
406c83649b
Introduce ERC1155 totalSupply() and exists() functions ( #2593 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
4 years ago
Hadrien Croubois
100ca0b8a2
ERC20 extension for governance tokens (vote delegation and snapshots) ( #2632 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
4 years ago
Nader Dabit
3157aff844
Update docs for setting ERC20 decimals ( #2629 )
4 years ago
Hadrien Croubois
5bd798c6e1
Add ERC3156 extension of ERC20 (flash minting and lending) ( #2543 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
4 years ago
Hadrien Croubois
cd443f0d5b
Add tests to extend code coverage ( #2586 )
4 years ago