Commit Graph

22 Commits (8a7a9c585706503f5250f09b033c94cf7ee37db2)

Author SHA1 Message Date
Hadrien Croubois 96e5c0830a
Deduplicate code in `scripts/helpers` and `test/helpers/iterate` (#4895) 12 months ago
Ernesto García 4e7e6e54da
Add `bytes memory` version of `Math.modExp` (#4893) 12 months ago
Hadrien Croubois f8b1ddf591
Add variants of Array.sort for address[] and bytes32[] (#4883) 12 months ago
Mihir Wadekar 192e873fcb
Add `Math.modExp` and a `Panic` library (#3298) 1 year ago
Hadrien Croubois e86bb45477
Add a Math.inv function that inverse a number in Z/nZ (#4839) 1 year ago
Hadrien Croubois a72c9561b9
Finalize test migration: remove legacy dependencies and test helpers (#4797) 1 year ago
Hadrien Croubois 015ef69287
Refactor time helper and remove custom error helper. (#4803) 1 year ago
Hadrien Croubois cffb2f1ddc
Migrate math tests to ethers.js v6 (#4769) 1 year ago
Francisco 84db204a41
Rename rounding modes and complete with fourth (#4455) 2 years ago
Ernesto García 2477534260
Change behavior of ceilDiv(0, 0) and improve test coverage (#4348) 2 years ago
Hadrien Croubois 0f10efe232
Remove code in preparation for v5.0 (#4258) 2 years ago
Francisco a28aafdc85
Use Prettier for JS files (#3913) 2 years ago
Hadrien Croubois c1d9da4052
Use hardhat-exposed to reduce the need for mocks (#3666) 2 years ago
Francisco 2336bd3e8e
Simplify ESLint config (#3903) 2 years ago
Hadrien Croubois c1d6e39aab
Add log2, log10 and log256 functions (#3670) 2 years ago
jjz 3ac4add548
Add sqrt for math (#3242) 3 years ago
Hadrien Croubois 5e00787199
ERC4626 (#3171) 3 years ago
Hadrien Croubois 3eb2d43b06
Move abs(int256) from Math to SafeMath (#3110) 3 years ago
barakman f6db5c1f30
A function which returns the absolute value of a signed value (#2984) 3 years ago
rotcivegaf 6d97f09195
Gas optimization on average function of Math.sol (#2757) 4 years ago
Nicholas Rodrigues Lordello 7c754d0665
Add ceiling division operation to the `Math.sol` library (#2681) 4 years ago
Hadrien Croubois 24a0bc23cf
Reorganize the repo structure (#2503) 4 years ago
Francisco Giordano f06738828b
Migrate to Hardhat (#2397) 4 years ago
Nicolás Venturo 5f92adc2e7 Migrate from truffle to test-environment (#2007) 5 years ago
Nicolás Venturo 3274d9db00
Upgrade to @openzeppelin/test-helpers@0.5.1 (#1942) 5 years ago
Yohann Pereira 489d2e85f1 Replace chai.should with chai.expect (#1780) 6 years ago
Nicolás Venturo 3e82db2f6f
Migration to truffle 5 (and web3 1.0 (and BN)) (#1601) 6 years ago
Aniket 350aae09d2 BigNumber comparison improved (#1581) 6 years ago
Aniket 70fd243e3b Test setup helper added (#1482) 6 years ago
Nicolás Venturo 26f9cc8e74 Moved some test files around to better reflect the directory layout. (#1428) 6 years ago
Nicolás Venturo d8ab8a00f2
Moved some test files around to better reflect the directory layout. (#1428) 6 years ago
Nicolás Venturo 20cf885430
No longer assigning awaits to temporary variables. (#1216) 7 years ago
Nicolás Venturo d51e38758e
Math.average (#1170) 7 years ago
Nicolás Venturo ac91af9a6a Replace all asserts with chai.should (#1183) 7 years ago
Francisco Giordano bf34911857 Remove Math.min64 and Math.max64 (#1156) 7 years ago
Nicolás Venturo 4544df47da
All tests now use account names, and dont use accounts[0] (except ERC… (#1137) 7 years ago
Nicolás Venturo 567b773242
Prefer const in test files (#1117) 7 years ago
Nicolás Venturo 67b67b791e
Changed before for beforeAll, refactored Bouncer tests. (#1094) 7 years ago
Federico Gimenez f4bdaf49a1 Increase test coverage to 93% #549 (#768) 7 years ago
Matt Condon f4228f1b49 fix: reference contract name rather than filepath (#698) 7 years ago
AugustoL 4fbd44fd40 Reorganize tests and add library folder 7 years ago
Leo Arias fdfd90e6a4 fix the eslint static check 7 years ago
Leo Arias f162638cde test: add tests for max64 and min64 from Math 7 years ago