aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/test/exchange/fill_order.ts
Commit message (Collapse)AuthorAgeFilesLines
* Add tests for ERC20 token with no return valuesAmir Bandeali2018-08-171-1/+1
|
* [Order-utils] Order is valid when maker amount is very smallJacob Evans2018-08-151-0/+11
| | | | | | | Previously our min fillable calculation would throw a rounding error when encountering a valid order (with a small maker amount). This was inconsistent with the on-chain logic which allowed this order to be filled.
* Add combinatorial tests for internal Exchange functions (#807)Alex Browne2018-07-271-24/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * WIP add combinatorial tests for internal Exchange functions * Change combinitorial testing strategy based on feedback * Check value of filled[orderHash] in updateFilledState tests * Add combinatorial tests for addFillResults * Add combinatorial tests for getPartialAmount * Implement generic `testWithReferenceFuncAsync` * Implement generic `testCombinatoriallyWithReferenceFuncAsync` * Add combinatorial tests for isRoundingError * Add combinatorial tests for calculateFillResults * Add support for Geth in internal contract tests * Fix contract artifacts * Change DECIMAL_PLACES to 78 and add a note. * Document new functions in utils * Optimize tests by only reseting state when needed * Rename/move some files * Print parameter names on failure in testWithReferenceFuncAsync * Add to changelog for utils package * Appease various linters * Rename some more things related to FillOrderCombinatorialUtils * Remove .only from test/exchange/internal.ts * Remove old test for isRoundingError and getPartialAmount * Appease linters again * Remove old todos * Fix typos, add comments, rename some things * Re-add some LibMath tests * Update contract internal tests to use new SafeMath revert reasons * Apply PR feedback from Amir * Apply PR feedback from Remco * Re-add networks to ZRXToken artifact * Remove duplicate Whitelist in compiler.json
* Remove unused variableFabio Berger2018-07-021-1/+0
|
* Merge branch 'v2-prototype' into fix/five_decimal_scenarioFabio Berger2018-07-021-5/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * v2-prototype: (75 commits) Update relayer grid tiles to use Text Fix build Update file structure Update 2.0.0 artifacts Move ledgerhq module declarations to typescript-typings Export LedgerEthereumClient type in subproviders Update artifacts Add logging and updated artifacts Fix migrations Run prettier Add Kovan artifacts Use ledger subprovider Add Kovan migrations Remove state variable from Link component in Portal Make registerAssetProxy append only Update staging api link Change getTransactionReceipt to awaitTransactionMined Move /docs route to the end Remove extra call to scrollIntoView for wallet in onboarding Update expectRevertReasonOrAlwaysFailingTransactionAsync to check status codes ...
| * Fix buildAmir Bandeali2018-06-301-5/+4
| |
* | Print out entire orderFill scenarioFabio Berger2018-07-021-7/+1
|/
* Move combinatorial fillOrder tests into the `fill_ordere` test fileFabio Berger2018-06-271-0/+21
|
* Fix inconsistency between contract and reference implementation of order ↵Fabio Berger2018-06-261-0/+2
| | | | validation logic
* Fix tslint issuesFabio Berger2018-06-261-2/+0
|
* Add support for approveAll in assetWrapper and fillOrderScenariosFabio Berger2018-06-211-1/+39
|
* Split balance and allowance amount types in prep of adding the "unlimited" ↵Fabio Berger2018-06-201-13/+14
| | | | allowance enum value
* Add ability to tweak the relevant balances/allowances for the maker and ↵Fabio Berger2018-06-151-0/+57
| | | | taker for a fillScenario. Convert more of the core tests to the declarative form.
* Rename OrderAmountScenario to OrderAssetAmountScenario and convert ↵Fabio Berger2018-06-141-10/+10
| | | | generateOrderCombinations to generateFillOrderCombinations
* Use a defaultFillScenario in fillOrder testsFabio Berger2018-06-141-36/+39
|
* Replace initial set of legacy manually written fillOrder tests with ↵Fabio Berger2018-06-141-0/+186
declarative FillScenario tests