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 >
2021-12-31 09:17:12 +00:00
a0a8bbb57f
Remove note about enabling self-delegation
2021-12-27 12:24:37 -03:00
4a9cc8b491
Merge branch 'release-v4.4'
2021-12-14 13:34:03 -03:00
6bd6b76d11
4.4.1
2021-12-14 13:14:39 -03:00
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 >
2021-12-10 18:58:45 -03:00
7d17acfb2f
Merge branch 'release-v4.4'
2021-11-25 16:56:07 -03:00
4961a51cc7
4.4.0
2021-11-25 16:35:37 -03:00
2f2604d673
Deprecate presets in favor of Wizard ( #2986 )
2021-11-24 10:14:14 +01:00
65ef662a2b
4.4.0-rc.1
2021-11-16 10:23:53 -03:00
0a87a4e75b
4.4.0-rc.0
2021-10-20 17:21:04 -03:00
c9bdb1f0ae
Add a comment documenting the package version being used ( #2918 )
2021-10-19 19:18:19 -03:00
e2fa301bfb
Improve parameters naming and remove unecessary returns ( #2891 )
2021-10-06 10:34:27 -03:00
0500c9e53e
Use "OpenZeppelin Contracts" where appropriate ( #2778 )
2021-07-20 10:35:58 -03:00
7e41bf2259
Remove ERC20FlashMint from drafts section in docs
2021-07-16 19:44:40 -03:00
6c1a634053
Add Governor contracts ( #2672 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-07-16 12:44:01 -03:00
973b0f883a
fix typo in erc20 docs ( #2764 )
2021-07-12 16:45:39 +02:00
9eba3ef29a
fix two minor typos ( #2755 )
2021-07-08 17:23:13 +02:00
922058dbc8
Change comma to decimal point in comment ( #2742 )
2021-07-05 12:20:27 -03:00
1db3037808
Fix misleading comments ( #2737 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-06-24 10:37:20 -03:00
6842518b1b
Wrapper extension for ERC20 token ( #2633 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-06-22 19:27:33 -03:00
8a775cd8d4
Emit DelegateVotesChanged events after Transfer ( #2733 )
2021-06-22 19:14:40 -03:00
f710bafae8
Fix typos ( #2723 )
2021-06-14 18:51:56 -03:00
b0cf6fbb7a
Add Prettier for linting and fix Solhint config ( #2697 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-06-07 12:33:03 -03:00
e3661abe84
Split ERC20Votes and ERC20VotesComp ( #2706 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-06-04 12:52:19 -03:00
adc50d465c
Tweak ERC20Votes revert reasons and documentation ( #2696 )
...
* adapt revert reason convention
* add whitespace
* tweak documentation
* fix tests
2021-05-27 18:16:37 +02:00
f6efd8aced
Add totalSupply checkpoints to ER20Votes ( #2695 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-05-27 15:13:18 +00:00
1b37c21da5
reserve unchecked for when guarded by explicit require ( #2685 )
2021-05-20 16:40:18 +02:00
f31bb101ad
Move ERC20Votes and ERC20FlashMint out of draft ( #2673 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-05-20 11:00:22 -03:00
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 >
2021-05-20 10:33:28 +02:00
100ca0b8a2
ERC20 extension for governance tokens (vote delegation and snapshots) ( #2632 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-05-12 10:13:59 -03:00
8669481309
Fix typo in comment ( #2660 )
2021-05-05 10:41:46 -03:00
319afebdc0
Fix typo in ERC20._mint docs ( #2648 )
2021-05-03 16:54:23 -03:00
9a698e6b7b
add Available since 4.1 comments
2021-04-19 20:55:16 +02:00
5bd798c6e1
Add ERC3156 extension of ERC20 (flash minting and lending) ( #2543 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-04-06 03:13:10 +00:00
243adff49c
fix typo in ERC20's documentation
2021-03-26 14:06:58 +01:00
682def9f89
Typo in ERC20 constructor docstring ( #2581 )
2021-03-11 17:28:26 +01:00
96aece07f3
Fix docs formatting in IERC20Permit ( #2579 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-03-10 19:48:22 -03:00
5171e46c47
Add an internal _useNonce(address) function in ERC20Permit ( #2565 )
2021-03-10 12:24:12 -03:00
b8ab763581
Add IERC20Metadata with name, symbol and decimals ( #2561 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-03-08 19:53:01 +00:00
36b855972b
Optimize implementation of ERC20Capped ( #2524 )
2021-02-24 22:07:03 +00:00
24a0bc23cf
Reorganize the repo structure ( #2503 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-02-22 16:44:16 +00:00
7d20d0e2d2
Use immutable variables where possible ( #2528 )
...
Co-authored-by: rotciv <victorfage@gmail.com >
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
2021-02-19 11:11:54 -03:00
a44303c373
Remove double sload when doing math checks in tokens ( #2506 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-02-09 12:58:23 -03:00
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 >
2021-02-04 20:06:00 +01:00
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
2021-02-01 11:00:16 +01:00
5609cd4c74
Fix merge errors
2021-01-27 18:04:52 -03:00
0db76e98f9
Merge branch 'solc-0.7' into solc-0.8
2021-01-27 11:28:23 +01:00
6d202894b6
Merge branch 'master'
2021-01-26 18:58:15 +01:00
18c7efe800
Make view and pure functions virtual ( #2473 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-01-26 13:23:23 -03:00
974c534210
Update contracts to support Solidity 0.8.x ( #2442 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-01-14 19:38:53 -03:00