597654db00
Fixed typos in Math: sqrt function. ( #3522 )
2022-07-04 15:19:17 -03:00
3dac7bbed7
Merge v4.7 back into master ( #3516 )
2022-06-29 12:34:30 +02:00
3ac4add548
Add sqrt for math ( #3242 )
2022-06-07 08:26:45 +02:00
5e00787199
ERC4626 ( #3171 )
2022-06-02 10:03:03 +02:00
b61faf8368
Procedural SafeCast.sol generation ( #3245 )
2022-05-21 14:38:31 +02:00
a035b235b4
Release v4.6 ( #3358 )
...
* 4.6.0-rc.0
* Fix release script to only release @openzeppelin/contracts
(cherry picked from commit 2bd75a44bb )
* make ERC2981:royaltyInfo public (#3305 )
(cherry picked from commit d2832ca7a9 )
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com >
* add transpilation guards to the crosschain mocks (#3306 )
(cherry picked from commit 9af5af8fff )
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com >
* Fix tests on upgradeable contracts after transpilation
(cherry picked from commit 0762479dd5 )
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com >
* Remove unused constructor argument
(cherry picked from commit 69c3781043 )
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com >
* Bump minimum Solidity version for Initializable.sol to 0.8.2 (#3328 )
(cherry picked from commit cb14ea3c5c )
* Fix update-comment script to ignore invalid tags
(cherry picked from commit 848fef5b6c )
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com >
* 4.6.0
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2022-04-27 09:34:09 +02:00
faf5820f03
Fix many spelling errors ( #3274 )
2022-03-22 18:16:20 -03:00
afb20119b3
Release v4.5
2022-02-09 18:16:53 -03:00
3eb2d43b06
Move abs(int256) from Math to SafeMath ( #3110 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2022-01-14 22:27:04 +00:00
3458c1e854
Add SignedMath with math utilities for signed integers ( #2686 )
...
* add contract and tests
* avoid implicit cast
* add test cases
* fix test names
* modify avarage and add tests
* improve signed average formula
* fix lint
* better average formula
* refactor signed average testing
* add doc and changelog entry
* Update contracts/utils/math/SignedMath.sol
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
* remove ceilDiv
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2022-01-12 20:08:59 +01: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
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
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 >
2021-11-24 14:09:05 +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
6f23efa970
Review wording of SafeMath need in Solidity 0.8 ( #2898 )
2021-10-05 16:12:51 +02:00
6d97f09195
Gas optimization on average function of Math.sol ( #2757 )
...
* change implementation to save gas
* add average test with two max uni256 number
2021-07-10 21:28:12 +02: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
7c754d0665
Add ceiling division operation to the Math.sol library ( #2681 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-05-20 13:53:31 +00: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
f1e92dd184
Fix code comments ( #2658 )
2021-05-03 16:50:07 -03:00
24a0bc23cf
Reorganize the repo structure ( #2503 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-02-22 16:44:16 +00:00