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
Francisco Giordano
1b37c21da5
reserve unchecked for when guarded by explicit require ( #2685 )
4 years ago
Iskander
7144ec8db4
Fix whitespace in ERC777 ( #2667 )
4 years ago
Hadrien Croubois
f31bb101ad
Move ERC20Votes and ERC20FlashMint out of draft ( #2673 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
4 years ago
Vladislav
5f7eda1f98
Tokens: wrap safe substractions in uchecked block ( #2669 )
...
* Tokens: wrap definitely safe subs in unchecked
* Add change in changelog
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
4 years ago
Santiago Palladino
8ad458e955
Explain how baseURI is used for building the tokenURI ( #2679 )
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
Motoko Kusanagi
8669481309
Fix typo in comment ( #2660 )
4 years ago
William Chargin
08ba72afa2
Fix `ERC721._beforeTokenTransfer` docs ( #2653 )
4 years ago
Iskander
319afebdc0
Fix typo in ERC20._mint docs ( #2648 )
4 years ago
Francisco Giordano
cfd6e7eab9
Fix documentation typos
...
(cherry picked from commit a98814b930
)
4 years ago
Francisco Giordano
a98814b930
Fix documentation typos
4 years ago
Hadrien Croubois
440b65bf77
Refactor ERC1155 transfers to use internal functions ( #2636 )
...
* Refactor ERC1155 transfers to use internal functions #2622
* apply length check to all internal calls
Co-authored-by: Robert Kaiser <kairo@kairo.at>
4 years ago
Hadrien Croubois
df7996b671
add Available since 4.1 comments
...
(cherry picked from commit 9a698e6b7b
)
4 years ago
Hadrien Croubois
9a698e6b7b
add Available since 4.1 comments
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
243adff49c
fix typo in ERC20's documentation
4 years ago
Julian M. Rodriguez
74e03de760
removes unused dependency ( #2603 )
4 years ago
Hadrien Croubois
3dc374ddcf
Make overide of ERC721.isApprovedForAll affect the ERC721 logic ( #2597 )
4 years ago
Francisco Giordano
90a72f9acd
Fix ERC721URIStorage in documentation
...
(cherry picked from commit 7c1625b0e0
)
4 years ago
Francisco Giordano
7c1625b0e0
Fix ERC721URIStorage in documentation
4 years ago
Evert0x
682def9f89
Typo in ERC20 constructor docstring ( #2581 )
4 years ago
Ross Campbell
96aece07f3
Fix docs formatting in IERC20Permit ( #2579 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
4 years ago
Hadrien Croubois
5171e46c47
Add an internal _useNonce(address) function in ERC20Permit ( #2565 )
4 years ago
Hadrien Croubois
27fc833550
Make ERC1155.uri public ( #2576 )
...
(cherry picked from commit 5dbbda5435
)
4 years ago
Hadrien Croubois
b8ab763581
Add IERC20Metadata with name, symbol and decimals ( #2561 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
4 years ago
Hadrien Croubois
78a9821129
Mint ERC777 without reception ack ( #2552 )
4 years ago
Hadrien Croubois
5dbbda5435
Make ERC1155.uri public ( #2576 )
4 years ago
Julian M. Rodriguez
6505e28c40
removes invalid character in comments ( #2571 )
...
(cherry picked from commit fc004c0ad2
)
4 years ago
Julian M. Rodriguez
fc004c0ad2
removes invalid character in comments ( #2571 )
4 years ago
Francisco Giordano
f07c39be8a
Add ERC165 interface detection to AccessControl ( #2562 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
(cherry picked from commit 29ffe6f426
)
4 years ago
Francisco Giordano
29ffe6f426
Add ERC165 interface detection to AccessControl ( #2562 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
4 years ago
Hadrien Croubois
4390b8df12
Add ERC721URIStorage extension ( #2555 )
...
(cherry picked from commit 1705067e65
)
4 years ago
Hadrien Croubois
1705067e65
Add ERC721URIStorage extension ( #2555 )
4 years ago
Francisco Giordano
93d990c653
Optimize constructor of ERC777 ( #2551 )
...
(cherry picked from commit 62af16b9f2
)
4 years ago
Francisco Giordano
62af16b9f2
Optimize constructor of ERC777 ( #2551 )
4 years ago
Hadrien Croubois
15214a53ce
Optimize implementation of ERC20Capped ( #2524 )
...
(cherry picked from commit 36b855972b
)
4 years ago
Hadrien Croubois
36b855972b
Optimize implementation of ERC20Capped ( #2524 )
4 years ago
Hadrien Croubois
24a0bc23cf
Reorganize the repo structure ( #2503 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
4 years ago
Hadrien Croubois
09734e8028
Remove enumerable from ERC721 and add an ERC721Enumerable extension ( #2511 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
4 years ago
Francisco Giordano
7d20d0e2d2
Use immutable variables where possible ( #2528 )
...
Co-authored-by: rotciv <victorfage@gmail.com>
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
4 years ago
Hadrien Croubois
e733b24dfe
Refactor ERC165 to use function overriding instead of storage ( #2505 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
4 years ago
Hadrien Croubois
a44303c373
Remove double sload when doing math checks in tokens ( #2506 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
4 years ago
Hadrien Croubois
b840341a77
Remove the storage associated with decimals ( #2502 )
...
* Removing the storage associated with decimals
* changelog entry
* changelog link to new issue number
* Update contracts/token/ERC20/ERC20.sol
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
* Update contracts/token/ERC20/ERC20.sol
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
* Update CHANGELOG.md
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
4 years ago
Hadrien Croubois
5db7413827
re-enabling safemath revert reasons in ERC20, ERC777 and ERC1155 ( #2491 )
...
* re-enabling safemath revert reasons in ERC20 and ERC1155
* adding revert messages to ERC777
* removing uncheck block
4 years ago
Hadrien Croubois
60205944bb
Adopt new Solidity features interfaceId, try/catch, keccak constants ( #2487 )
...
* Clean code
- using type().interfaceId to improve readeability of ERC165 registration
- hardcoding some keccak256 that are otherwise computed at construction.
* hardcode keccak256 result
* Improve code readeability using try/catch
* Remove hardcoded hash
tests show that solc 0.8.0 does the optimization as expected
* Use try/catch to improve readability
* ERC165Checker: Do not revert when returndata is empty + new test
* Address PR comments
* improve testing of ERC721Receiver errors
* put back comment about invalid interface id
* coverage does not support 0.8.1. Reverting back to 0.8.0
* bubble all data with length > 0 if onERC721Receive fails.
* Fix test: revert without message trigger is bubble with the default message
* using enum object to improve readability
4 years ago
Francisco Giordano
5609cd4c74
Fix merge errors
4 years ago