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
3156f602dd
Fix rebase errors
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
4711ce5532
@0x/contracts-exchange
: Remove _assertValidFill()
.
...
`@0x/contracts-exchange`: Add `_settleOrder()` unit tests.
`@0x/contracts-exchange`: Add explicit tests for
`_calculateFillResults()`.
`@0x/contracts-exchange`: Add overflow tests to `isolated_fill_order`
tests.
`@0x/contracts-exchange`: Add explicit `takerAssetFillAmount = 0` test
to `isolated_fill_order` tests.
2019-08-06 15:30:59 -04:00
Lawrence Forman
293510c087
@0x/contracts-exchange-libs
: Add explicit tests for LibMath
and LibFillResults
functions.
...
`@0x/contracts-exchange-libs`: Add tests for `ReferenceFunctions`.
2019-08-06 15:30:59 -04:00
Lawrence Forman
a179a6892c
@0x/contracts-test-utils
: Add ONE_ETHER
and MAX_UINT256_ROOT
constants.
2019-08-06 15:30:59 -04:00
Lawrence Forman
afb310e90a
@0x/contracts-exchange
: Update changelog.
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
884b1add8e
@0x/contracts-exchange-libs
: Move in revamped LibFillResults
tests from @0x/contracts-exchange
.
2019-08-06 15:30:59 -04:00
Lawrence Forman
8c05a92a1e
Update changelogs
2019-08-06 15:30:59 -04:00
Lawrence Forman
f791cd3a37
@0x/contracts-exchange-libs
: Remove unecessary checks for zero
...
denominator.
`@0x/contracts-exchange-libs`: `LibMath` tests from `@0x/contracts-exchange` into this package.
`@0x/contracts-exchange-libs`: Adjust logic in reference functions to be
closer to solidity implementation.
2019-08-06 15:30:30 -04:00
Lawrence Forman
4600a656d1
@0x/contracts-test-utils
: Update testWithReferenceFunctionAsync()
to
...
support `RevertError`s.
2019-08-06 15:30:30 -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
8d26f58dfa
@0x/contracts-test-utils
: Make testCombinatoriallyWithReferenceFuncAsync
not async.
2019-08-06 15:30:30 -04:00
Lawrence Forman
a3cdb63ae1
@0x/contracts-exchange
: Rename TestIsolatedExchange
to just IsolatedExchange
.
2019-08-06 15:30:30 -04:00
Lawrence Forman
9d5b23acd3
@0x/contracts-exchange
: Update tests in isolated_fill_order.ts
.
2019-08-06 15:30:30 -04:00
Lawrence Forman
41e04c0178
@0x/contracts-exchange
: Add a buttload of tests to
...
`isolated_fill_order.ts`.
2019-08-06 15:30:30 -04:00
Lawrence Forman
abaa0cf3d0
@0x/contracts-test-utils
: Move OrderInfo
to @0x/types
.
2019-08-06 15:30:30 -04:00
Lawrence Forman
898213bb85
@0x/contracts-exchange
: Update tests for moved types.
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
Lawrence Forman
c54d69e5ae
@0x/contracts-exchange
: Create reference functions test util.
...
`@0x/contracts-exchange`: Use reference functions to assert fill results
in `isolated_fill_order` tests.
2019-08-06 15:27:39 -04:00
Lawrence Forman
38a1f08413
@0x/contracts-test-utils
: Add MAX_UINT256 constant.
2019-08-06 15:27:39 -04:00
Lawrence Forman
e2bd80253b
@0x/contracts-exchange
: More TestIsolatedExchange
rework.
2019-08-06 15:27:39 -04:00
Lawrence Forman
039cc6e28b
@0x/contracts-exchange
: Allow fetching of balance of multiple assets
...
in `TestIsolatedExchange` contract.
`@0x/contracts-exchange`: Refactor `IsolatedExchangeWrapper` to be more
extensible.
2019-08-06 15:27:39 -04:00
Lawrence Forman
1030c96eec
@0x/contracts-exchange
: Create IsolatedExchangeWrapper
class.
2019-08-06 15:27:39 -04:00
Lawrence Forman
0851c5ac8e
@0x/contracts-exchange
: Run prettier.
2019-08-06 15:27:39 -04:00
Lawrence Forman
92d112083e
@0x/contracts-test-utils
: Add filterLogs()
and
...
`filterLogsToArguments()` helpers.
2019-08-06 15:27:39 -04:00
Lawrence Forman
1e462f5cc0
@0x/contracts-test-utils
: Add ADDRESS_LENGTH
constant.
2019-08-06 15:27:39 -04:00
Lawrence Forman
d974ee169a
@0x/contracts-exchange
: Rename TestExchangeIsolated.sol
->
...
`TestIsolatedExchange.sol`.
`@0x/contracts-exchange`: Automatically track raw asset balances in
`TestIsolatedExchange` contract.
2019-08-06 15:27:39 -04:00
Lawrence Forman
7fb87d4039
@0x/contracts-exchange
: Update signature and rich error decoder tests
...
to use `hexRandom()` and `blockchainTests()`.
2019-08-06 15:27:39 -04:00
Lawrence Forman
fc5963fa3d
@0x/contracts-test-utils
: Add hexRandom()
to hex_utils.ts
.
2019-08-06 15:27:39 -04:00
Lawrence Forman
cfa362321d
@0x/contracts-exchange
: Switch to TestExchangeIsolated
contract for
...
`isolated_fill_order` tests.
2019-08-06 15:27:39 -04:00
Lawrence Forman
72c7157138
@0x/contracts-exchange
: Start work on isolated fill order tests.
2019-08-06 15:27:39 -04:00
Amir Bandeali
2f91a12f19
Merge pull request #2019 from jalextowle/feature/contracts/3.0/disallow-address-zero
...
Disallow Zero address in MixinAuthorizable and Ownable
2019-08-06 10:13:28 -07:00
Amir Bandeali
e7df9d1754
Update cancelOrder and batchCancelOrders tests
2019-08-05 10:35:25 -07:00
Amir Bandeali
d3ab2b077a
Remove cancelOrderNoThrow tests
2019-08-05 10:33:21 -07:00
Amir Bandeali
467a11f4b4
Remove cancelOrderNoThrow and batchCancelOrdersNoThrow
2019-08-05 10:33:21 -07:00
Amir Bandeali
6cb8c1df42
Noop on cancel if order is already unfillable
2019-08-05 10:33:21 -07:00
Alex Towle
3915c7e8f2
Addressed final review comments
2019-08-04 23:45:02 -07:00
Alex Towle
5ba0e0dc54
Updated the structure of the archive directory
2019-08-03 16:33:28 -07:00
Alex Towle
9a35e2db77
Ran prettier
2019-08-02 13:46:34 -07:00
Alex Towle
e204a6d1d0
Updated Changelog
2019-08-02 13:46:34 -07:00
Alex Towle
47ab2a1b1d
Reverted the asset-proxy back to an older version of Ownable that it was actually deployed with
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