Amir Bandeali
5016d50c2b
Move calculateFillResults tests to exchange-libs package
2019-08-13 16:11:09 -07: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
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
898213bb85
@0x/contracts-exchange
: Update tests for moved types.
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
James Towle
073976de10
Split up TestExchangeInternals into two contracts
2019-07-23 15:53:26 -07:00
James Towle
a1a6c3e40c
Updated the DivisionByZeroError to not use assembly
2019-07-23 15:52:20 -07:00
James Towle
b75aa02b0d
Update contracts/exchange/test/internal.ts
...
Co-Authored-By: Lawrence Forman <lawrence@0xproject.com>
2019-07-23 15:52:20 -07:00
James Towle
a39f93bcff
Update contracts/exchange/test/internal.ts
...
Co-Authored-By: Lawrence Forman <lawrence@0xproject.com>
2019-07-23 15:52:20 -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
e916daf5fd
Ran yarn prettier
2019-07-23 15:51:43 -07:00
James Towle
fad9dae9bb
Fixed the exchange unit tests
2019-07-23 15:51:43 -07:00
James Towle
03ea97734c
Ran yarn prettier
2019-07-23 15:51:43 -07:00
James Towle
b7adf59ed5
Fixed any lingering style issues
2019-07-23 15:51:43 -07:00
James Towle
56d5e9c889
Fixed the build issues in exchange
2019-07-23 15:51:43 -07:00
James Towle
de60123ec7
Updated the combanatorial tests to use RichErrors
2019-07-23 15:51:43 -07:00
James Towle
cf3790c2f8
Updated the erc1155 tests in asset-proxy to use RichErrors
2019-07-23 15:51:43 -07:00
James Towle
f4551dd1e5
Updated the exchange tests to use RichErrors
2019-07-23 15:51:43 -07:00
Lawrence Forman
53ff248176
@0x/contracts-exchange
: Revert internal tests.
2019-07-23 15:43:23 -07:00
Lawrence Forman
aebb923c2d
@0x/contracts-exchange
: Major rework of fill_order_combinatorial_utils
.
...
`@0x/contracts-exchange`: Add more arbitrary fee token tests.
`@0x/contracts-exchange`: Fix broken tests.
2019-07-23 15:43:23 -07:00
Lawrence Forman
8aa3b535f0
@0x/contracts-exchange
: Update fill order tests for arbitrary fee tokens. (Still more to do)
2019-07-23 15:23:40 -07:00
Amir Bandeali
3e461ac2e5
Rename internal and private functions
2019-07-23 15:21:14 -07:00
Lawrence Forman
b8f056b82f
Update coordinator
, exchange-forwarder
, exchange-libs
, exchange
, and extensions
contract tests to use new order and transaction structure
2019-07-23 15:08:00 -07:00
Lawrence Forman
2d28fde24d
Migrate all contract-related tooling and tests to accept a chain ID in domain separators.
2019-07-23 14:58:00 -07:00
Amir Bandeali
0758f231e2
Split tokens package into erc20 and erc721
2019-01-21 21:41:21 -08:00
Amir Bandeali
4a4c26a2e3
Split protocol package into exchange, asset-proxy, and multisig
2019-01-21 21:41:21 -08:00