fragosti
f0e0f08e0c
Run linter and prettier
2019-09-25 18:44:19 -07:00
fragosti
8ba38b9b29
Remove the OrderWithoutDomain type
2019-09-25 18:44:19 -07:00
fragosti
9870f55d24
Remove domain from Order type
2019-09-25 18:44:19 -07:00
Amir Bandeali
ae75aed55e
Change verifyingContractAddress -> verifyingContract everywhere
2019-09-23 16:00:37 -07:00
Alex Towle
2c1393fb09
@0x:contracts-exchange
Addressed lingering review comments
2019-08-29 23:50:48 -07:00
Alex Towle
dba0d8469d
@0x:contracts-exchange
Addressed review feedback
2019-08-29 15:20:52 -07:00
Alex Towle
861aebb2e3
@0x:contracts-exchange
Refactored the protocol fee tests and added tests for batchFillOrders
2019-08-28 15:08:40 -07:00
Alex Towle
7f17033ce3
@0x:contracts-exchange
Added protocol fees to fillOrders and matchOrders
2019-08-28 15:05:13 -07:00
Alex Towle
2c970a0466
@0x:contracts-exchange
Added protocol fees to fill order
2019-08-28 15:01:30 -07:00
Michael Zhu
078b1af04e
Binop -> BinOp
2019-08-26 16:06:31 -07:00
Michael Zhu
98e5b26eb7
refactor SafeMath rich errors and use them in staking libs
2019-08-26 15:49:09 -07:00
Alex Towle
22c8a25a26
Merge branch 'development' into 3.0
2019-08-19 11:13:21 -07:00
Amir Bandeali
7ac30c5153
Merge branch '3.0' into feat/3.0/optimizeConstants
2019-08-15 15:20:48 -07:00
Alex Towle
6b4e632101
@0x:contracts-exchange
Refactored internal.ts so that it is more readable
2019-08-14 10:39:36 -07:00
Alex Towle
0134b2874b
@0x:contracts-exchange
Addressed remaining review comments
2019-08-13 17:05:38 -07:00
Alex Towle
e2308aabed
@0x:contracts-exchange
Reduced the code size of internal.ts
2019-08-13 17:04:42 -07:00
Alex Towle
327c6e8ac2
Completed the calculateMatchedFillResultsWithMaximalFill tests
2019-08-13 17:04:25 -07:00
Alex Towle
e9d49d96a6
Changed the testing style to be more assertion based rather than reference based to leverage the fixtures from the integration tests
2019-08-13 17:04:25 -07:00
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
Greg Hysen
df746c5ff4
Decode log arguments in awaitTransactionSuccessAsync
, when ABI is recognized.
2019-07-29 12:04:37 +02: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