Amir Bandeali
2e97cfa5e5
Remove LibAssetProxyIds and TestLibConstants
2019-08-13 16:04:33 -07:00
Amir Bandeali
2251e5e418
Optimize LibEIP712
2019-08-13 16:00:19 -07:00
Lawrence Forman
7eedfc201a
@0x/contracts-utils
: Add testing against reference functions in SafeMath
unit tests.
2019-08-06 15:31:30 -04:00
Lawrence Forman
ac38390241
@0x/contracts-utils
: Fix failing test due to rebase.
2019-08-06 15:31:30 -04:00
Lawrence Forman
fddbfc2d32
Update CHANGELOGs
2019-08-06 15:31:30 -04:00
Lawrence Forman
8c9bdadf66
@0x/contracts-utils
: Add unit tests for ReferenceFunctions
.
2019-08-06 15:30:59 -04:00
Lawrence Forman
6345faa4a9
`@0x/contracts-exchange-libs: Appease the linter and prettier gods.
2019-08-06 15:30:59 -04:00
Lawrence Forman
51391b7f0e
@0x/contracts-exchange-libs
: Correct internal variable naming in src/index.ts
.
...
`@0x/contracts-utils`: Correct internal variable naming in `src/index.ts`.
`@0x/contracts-exchange`: Remove functions from `TestExchangeInternals.sol` that are now in other packages.
`@0x/contracts-exchange`: Remove `TestExchangeMath.sol`. Exchange math functions are now tested in `@0x/contracts-exchange-libs`.
`@0x/contracts-exchange`: Move `ReferenceFunctions` to default package export.
`@0x/contracts-exchange`: Update `match_order.ts` tests to use reference math functions instead of `TestExchangeMath`.
`@0x/contracts-exchange`: Remove `_updateFilledState()` combinatorial tests in favor of normal unit testing. Combinatorial testing was overkill.
`@0x/contracts-exchange`: Update/refactor `calculateFillResults()` combinatorial tests to use the reference functions and hide them behind `TEST_ALL`.
2019-08-06 15:30:59 -04:00
Lawrence Forman
8c05a92a1e
Update changelogs
2019-08-06 15:30:59 -04:00
Lawrence Forman
d03f13a729
@0x/contracts-utils
: LibMath._safeDiv()
now throws a rich revert when dividing by zero.
2019-08-06 15:30:30 -04:00
Lawrence Forman
c30d59d5d3
@0x/types
: Add FillResults
, MatchedFillResults
, and
...
`BatchMatchedFillResults` types.
`@0x/contracts-utils`: Add reference functions for `SafeMath`.
`@0x/contracts-exchange-libs`: Add reference functions for `LibMath` and
`LibFillResults`.
`@0x/contracts-test-utils`: Move `*FillResults` types to `@0x/types`.
`@0x/contracts-test-utils`: Add `log_utils.ts`.
`@0x/contracts-test-utils`: Add `hexRandom()` to `hex_utils.ts`.
`@0x/contracts-test-utils`: Add the contstants: `MAX_UINT256`,
`ADDRESS_LENGTH`.
2019-08-06 15:30:30 -04:00
Alex Towle
3915c7e8f2
Addressed final review comments
2019-08-04 23:45:02 -07:00
Alex Towle
9a35e2db77
Ran prettier
2019-08-02 13:46:34 -07:00
Alex Towle
6fc38292f2
Add RichErrors for Authorizable
2019-08-02 13:45:41 -07:00
Alex Towle
89d8df3385
Moved MixinAuthorizable to Authorizable and fixed imports
2019-08-02 13:45:41 -07:00
Alex Towle
9c7df2b41e
Reverted MixinAuthorizable to old version and moved the new version to utils
2019-08-02 13:45:41 -07:00
Alex Towle
46f6816511
Updated changelogs and ran prettier
2019-08-02 13:45:12 -07:00
Alex Towle
b4a3218b13
Disallow address zero in Ownable
2019-08-02 13:44:18 -07:00
Alex Towle
e1796a9f0f
Changed toBN to toBigNumber
2019-08-01 15:39:00 -07:00
Alex Towle
8c5c81fe70
Change all instances of throw to revert in it tests
2019-08-01 15:13:16 -07:00
Alex Towle
77feaec444
Fixed lingering review comments
2019-07-31 13:59:33 -07:00
Alex Towle
e5b6921de9
Updated Changelog
2019-07-30 15:56:31 -07:00
Alex Towle
3ca3a2820d
Fixed review comments
2019-07-30 15:53:01 -07:00
James Towle
8cf4fb9adc
Update contracts/utils/test/safe_math.ts
...
Co-Authored-By: Lawrence Forman <lawrence@0xproject.com>
2019-07-30 12:08:35 -07:00
James Towle
f044f364cb
Update contracts/utils/test/reentrancy_guard.ts
...
Co-Authored-By: Lawrence Forman <lawrence@0xproject.com>
2019-07-30 12:08:35 -07:00
James Towle
4d39892a11
Update contracts/utils/test/ownable.ts
...
Co-Authored-By: Lawrence Forman <lawrence@0xproject.com>
2019-07-30 12:08:35 -07:00
James Towle
bf1ebe8e53
Update contracts/utils/test/ownable.ts
...
Co-Authored-By: Lawrence Forman <lawrence@0xproject.com>
2019-07-30 12:08:35 -07:00
James Towle
77b4f32274
Update contracts/utils/test/ownable.ts
...
Co-Authored-By: Lawrence Forman <lawrence@0xproject.com>
2019-07-30 12:06:35 -07:00
Alex Towle
b2ada13a21
Ran prettier
2019-07-30 12:06:35 -07:00
Alex Towle
03fced81f5
Added unit tests for LibRichErrors
2019-07-30 12:06:35 -07:00
Alex Towle
f9292a8fb8
Added unit tests for LibEIP712
2019-07-30 12:06:35 -07:00
Alex Towle
065f46a020
Added unit tests for LibAddress
2019-07-30 12:06:35 -07:00
Alex Towle
6efb7027b5
Added unit tests for ReentrancyGuard
2019-07-30 12:06:35 -07:00
Alex Towle
f4f922acb5
Added unit tests for Ownable
2019-07-30 12:06:35 -07:00
Alex Towle
4a4d2e7079
Added unit tests for SafeMath
2019-07-30 12:06:35 -07:00
James Towle
c61df50167
Updated Changelogs
2019-07-23 15:53:25 -07:00
James Towle
df5ec33330
@0x:contracts-utils
Address remaining review comments
2019-07-23 15:53:25 -07:00
James Towle
96ab74dea4
@0x:contracts-utils
Refactored utils to exclusively use library RichErrors
2019-07-23 15:53:25 -07:00
James Towle
f937a0b038
@0x:contracts-utils
Added RichErrors to ReentrancyGuard
2019-07-23 15:53:25 -07:00
James Towle
da38285046
@0x:contracts-utils
Added RichErrors to LibAddressArray
2019-07-23 15:53:25 -07:00
James Towle
d3db2dcfbb
@0x:contracts-utils
Added RichErrors to LibBytes
2019-07-23 15:53:25 -07:00
Lawrence Forman
ddbe2acbf5
@0x/contracts-utils
: Add LibEIP1271.sol
2019-07-23 15:53:24 -07:00
James Towle
e229d2d59f
Updated tests to work with LibMathRichErrors
2019-07-23 15:52:20 -07:00
James Towle
a46b13967a
Refactored the SafeMath errors
2019-07-23 15:51:43 -07:00
James Towle
6e4b6929d2
Added RichErrors to SafeMath
2019-07-23 15:51:43 -07:00
James Towle
a0602c8863
Added RichErrors to Ownable
2019-07-23 15:51:43 -07:00
James Towle
fc96df63fd
Fixed most of the nits
2019-07-23 15:51:43 -07:00
James Towle
9ef55023f2
Removed all mixins/ directories from the repository
2019-07-23 15:51:43 -07:00
James Towle
5813bb9ca8
Updated any remaining contracts using 0.5.5 to 0.5.9
2019-07-23 15:46:16 -07:00
Amir Bandeali
18979f3f30
Fix linting error
2019-07-23 15:21:14 -07:00