aboutsummaryrefslogtreecommitdiffstats
path: root/test/exchange_wrapper_test.ts
Commit message (Expand)AuthorAgeFilesLines
* Merge branch 'development' into orderWatcherFabio Berger2017-11-131-5/+8
|\
| * Fix unhandled promise rejection error on subscriptionsFabio Berger2017-11-111-10/+13
* | Remove unused importFabio Berger2017-11-091-1/+0
* | Fix typoFabio Berger2017-11-091-1/+1
* | Add initial mempool watching implememtationLeonid Logvinov2017-10-311-10/+14
|/
* Upgrade bignumber to the version with native typings and remove typingsLeonid Logvinov2017-10-261-4/+4
* Revert "Reduce final bundle size by 11% (82kB)"Leonid2017-10-241-8/+5
* Fix linter errorsLeonid Logvinov2017-10-191-5/+8
* Merge branch 'development' into setFillOrKillToUseRequestInterfaceLeonid2017-10-161-12/+10
|\
| * Remove unused codeLeonid Logvinov2017-10-131-4/+0
| * Make logs fetching and sunscriptions more type-safeLeonid Logvinov2017-10-131-7/+9
* | Use OrderFillRequest interface for batchFillOrKillAssaf2017-10-111-33/+32
|/
* Use BlockParamLiteral typesLeonid Logvinov2017-10-061-3/+3
* Remove TODOsLeonid Logvinov2017-10-051-1/+0
* Add missing commentsLeonid Logvinov2017-10-051-1/+2
* Implement subscriptions based on ethereumjs-blockstreamLeonid Logvinov2017-10-051-61/+34
* Add filtering by topicLeonid Logvinov2017-10-041-4/+36
* Add tests for zeroEx.exchange.getLogsAsyncLeonid Logvinov2017-10-041-0/+42
* Fixed nitsBrandon Millman2017-09-281-66/+41
* Add testsBrandon Millman2017-09-281-18/+216
* Add a test for getZRXTokenAddressAsyncLeonid Logvinov2017-09-261-0/+7
* Decode logs args in awaitTransactionMinedAsyncLeonid Logvinov2017-09-061-2/+4
* Change non-exhange contracts to also return txHashLeonid Logvinov2017-09-051-4/+4
* Implement zeroEx.awaitTransactionMinedLeonid Logvinov2017-09-051-4/+4
* Make the functions immidiately return txHash instead of awaiting for a transa...Leonid Logvinov2017-09-051-48/+16
* Use zeroEx.getAvailableAddressesAsync instead of web3.eth.getAccountsLeonid Logvinov2017-08-301-1/+1
* Separate order validation errors tests from exchange testsLeonid Logvinov2017-08-241-83/+0
* Rename shouldCheckTransfer to shouldThrowOnInsufficientBalanceOrAllowance in ...Leonid Logvinov2017-08-221-21/+25
* Rename internally Proxy to TokenTransferProxyLeonid Logvinov2017-08-221-1/+1
* Remove unused importsLeonid Logvinov2017-07-261-1/+0
* Factor out order validation testsLeonid Logvinov2017-07-261-147/+0
* Cover all possible branches of order validation errors with testsLeonid Logvinov2017-07-261-14/+59
* Add a test: should throw when maker has balance to cover fees or transfer but...Leonid Logvinov2017-07-261-0/+15
* Use PascalCase names as string enum keysLeonid Logvinov2017-07-121-17/+17
* Make getOrderHashHex staticLeonid Logvinov2017-07-121-9/+9
* Migrate to using a single Exchange contractLeonid Logvinov2017-07-121-49/+18
* Migrate eventsLeonid Logvinov2017-07-111-4/+4
* Merge pull request #98 from 0xProject/typosLeonid2017-07-081-6/+6
|\
| * Rename batchCancelOrderAsync to batchCancelOrdersAsyncLeonid Logvinov2017-07-081-3/+3
| * Rename batchFillOrderAsync to batchFillOrdersAsyncLeonid Logvinov2017-07-081-3/+3
* | Remove space after `it` keywork in testsFabio Berger2017-07-081-10/+10
|/
* Move zeroEx.exchange.getAvailableContractAddressesAsync to zeroEx.getAvailabl...Leonid Logvinov2017-07-061-19/+1
* Handle errors from pseudo-async subscription testsLeonid Logvinov2017-07-041-5/+5
* Merge pull request #89 from 0xProject/proxyLeonid2017-07-041-2/+1
|\
| * Make proxy wrapper public on zeroEx instanceLeonid Logvinov2017-07-041-2/+1
* | Fix merge problemsLeonid Logvinov2017-07-041-2/+3
* | Merge branch 'master' into wrap-log-bignumberLeonid2017-07-041-38/+93
|\|
| * Merge branch 'master' into add-exchange-address-to-order-structLeonid2017-07-041-0/+3
| |\
| | * Assert correct event names in subscribeAsync testsLeonid Logvinov2017-07-011-0/+3
| * | Fix commentLeonid Logvinov2017-07-011-1/+1
| * | Add tests for getProxyAuthorizedContractAddressesAsyncLeonid Logvinov2017-06-301-0/+12
| * | Make zeroEx.getOrderHashHex non-asyncLeonid Logvinov2017-06-301-9/+9
| * | Fix typo in getAvailableContractAddressesAsyncLeonid Logvinov2017-06-301-2/+2
| * | Allow multiple exchange versions t be functional at the same timeLeonid Logvinov2017-06-271-29/+69
| |/
* / Wrap all event args in a newer version of BigNumber and test itLeonid Logvinov2017-07-021-21/+24
|/
* Add test for return amount from fillOrdersUpToAsyncLeonid Logvinov2017-06-221-0/+6
* Add test for cancelOrderAsync return valueLeonid Logvinov2017-06-221-0/+4
* Add simple test checking that fillOrderAsync return filled amountLeonid Logvinov2017-06-221-0/+10
* Return filledAmount from fillOrderAsyncLeonid Logvinov2017-06-211-0/+18
* Make ZeroEx constructor accept Web3Provider instead of Web3 instanceLeonid Logvinov2017-06-151-1/+1
* Remove types that are not used in public interface from export and rename Eve...Leonid Logvinov2017-06-141-2/+1
* Address feedbackLeonid Logvinov2017-06-141-2/+2
* Add tests for stopWatchingAsyncLeonid Logvinov2017-06-131-0/+20
* Refactor subscription to return zeroExSignature objectLeonid Logvinov2017-06-131-10/+16
* Add getContractAddressAsync and testsLeonid Logvinov2017-06-131-0/+7
* Fix testLeonid Logvinov2017-06-131-1/+1
* Introduce index.ts file which defines public interfaceLeonid Logvinov2017-06-131-1/+1
* Change main file name from 0x.js.ts to 0x.tsLeonid Logvinov2017-06-121-1/+1
* Prefix private vars with _Leonid Logvinov2017-06-101-2/+2
* Merge branch 'master' into subscribe-async-testsLeonid2017-06-101-3/+8
|\
| * Add test for zeroEx.exchange.getCanceledTakerAmountAsyncLeonid Logvinov2017-06-101-3/+8
* | Fix testsLeonid Logvinov2017-06-101-4/+4
* | Remove onlyLeonid Logvinov2017-06-091-1/+1
* | Add LogCancel test to subscribeAsyncLeonid Logvinov2017-06-091-2/+18
|/
* Address feedbackLeonid Logvinov2017-06-091-1/+1
* Merge branch 'master' into fillOrderUpToAsyncLeonid2017-06-091-51/+76
|\
| * Merge branch 'master' into batchFillOrKillFabio Berger2017-06-091-251/+197
| |\
| * \ Merge branch 'master' into batchFillOrKillFabio Berger2017-06-081-0/+22
| |\ \
| * \ \ Merge branch 'master' into batchFillOrKillFabio Berger2017-06-081-23/+72
| |\ \ \
| * | | | Implement batchFillOrKill and testsFabio Berger2017-06-081-51/+76
* | | | | Add tests for fillOrdersUpToLeonid Logvinov2017-06-091-0/+34
| |_|_|/ |/| | |
* | | | Merge pull request #47 from 0xProject/is-valid-signature-contractLeonid2017-06-081-70/+0
|\ \ \ \
| * \ \ \ Merge branch 'master' into is-valid-signature-contractLeonid2017-06-081-0/+22
| |\ \ \ \ | | | |_|/ | | |/| |
| * | | | Remove tests for isValidSignatureUsingContractCallAsyncLeonid Logvinov2017-06-081-78/+0
| * | | | Refactor isValidSignatureLeonid Logvinov2017-06-081-13/+21
| | |_|/ | |/| |
* | | | Merge branch 'master' into batchFillAsyncLeonid2017-06-081-0/+22
|\ \ \ \ | | |/ / | |/| |
| * | | Add getOrderHashHexUsingContractCallAsyncLeonid Logvinov2017-06-081-0/+22
| |/ /
* | | Address feedbackLeonid Logvinov2017-06-081-3/+3
* | | Merge branch 'master' into batchFillAsyncLeonid Logvinov2017-06-081-6/+78
|\| |
| * | Format inputsLeonid Logvinov2017-06-081-1/+2
| * | Merge branch 'master' into batchCancelAsyncLeonid2017-06-081-1/+99
| |\|
| | * Fix tests with removed shouldCheckTransferFabio Berger2017-06-071-6/+3
| | * merge masterFabio Berger2017-06-071-2/+51
| | |\
| | * | Implement fillOrKill & testsFabio Berger2017-06-071-1/+102
| * | | Address feedbackLeonid Logvinov2017-06-071-8/+4
* | | | Add no-op testLeonid Logvinov2017-06-081-3/+3
* | | | Add success testLeonid Logvinov2017-06-081-3/+27
* | | | Remove onlyLeonid Logvinov2017-06-071-1/+1
* | | | Merge branch 'batchCancelAsync' into batchFillAsyncLeonid Logvinov2017-06-071-12/+22
|\| | |
| * | | Refactor to use OrderCancellationRequestLeonid Logvinov2017-06-071-11/+21
| * | | Add tests for batchCancelAsyncLeonid Logvinov2017-06-071-23/+65
| | |/ | |/|
| * | Add comments for datesLeonid Logvinov2017-06-071-2/+2
* | | Move fillableAmount to initialization sectionLeonid Logvinov2017-06-071-8/+17
* | | Move initialization upLeonid Logvinov2017-06-071-15/+15
* | | Move fillOrderAsync to fill order describe blockLeonid Logvinov2017-06-071-179/+185
* | | Add tests for batchCancelAsyncLeonid Logvinov2017-06-071-23/+65
* | | Add comments for datesLeonid Logvinov2017-06-071-2/+2
|/ /
* | Address feedbackLeonid Logvinov2017-06-071-2/+2
* | Fix testsLeonid Logvinov2017-06-061-1/+1
* | Remove onlyLeonid Logvinov2017-06-061-1/+1
* | Add test when the order was already cancelled or filledLeonid Logvinov2017-06-061-0/+5
* | Add checks and tests for expired order and zero fill amountLeonid Logvinov2017-06-061-1/+17
* | Merge branch 'master' into cancelAsyncLeonid Logvinov2017-06-061-1/+2
|\|
| * Pass nonExistentSenderAddress so that we get the proper rejectionFabio Berger2017-06-061-1/+2
* | Add initial implementation with success testLeonid Logvinov2017-06-061-1/+29
|/
* Merge pull request #39 from 0xProject/senderAccountLeonid2017-06-061-33/+21
|\
| * Make methods accept senderAccountLeonid Logvinov2017-06-051-33/+21
* | Merge branch 'master' into chai-setupLeonid2017-06-061-4/+5
|\ \
| * | Add chai-as-promisedLeonid Logvinov2017-06-051-0/+2
| * | Add a couple of awaits and returns for async testsLeonid Logvinov2017-06-051-4/+4
| |/
* | Address feedbackLeonid Logvinov2017-06-061-2/+2
* | Add chai_setupLeonid Logvinov2017-06-051-5/+2
|/
* remove spaceFabio Berger2017-06-031-1/+1
* Merge branch 'master' into addEventSubscriptionsFabio Berger2017-06-031-2/+2
|\
| * Merge pull request #31 from 0xProject/unavailableFilledCancelledLeonid2017-06-031-8/+78
| |\
| | * Merge branch 'master' into unavailableFilledCancelledFabio Berger2017-06-031-67/+143
| | |\
| | * \ Merge branch 'fillOrderAsync' into unavailableFilledCancelledFabio Berger2017-06-021-24/+94
| | |\ \
* | | | | Merge branch 'master' into addEventSubscriptionsFabio Berger2017-06-031-0/+1
|\| | | |
| * | | | Add includeStack config to chai setup so that we get stackTracesFabio Berger2017-06-031-0/+1
| | |_|/ | |/| |
* | | | Merge branch 'master' into addEventSubscriptionsFabio Berger2017-06-031-70/+146
|\| | |
| * | | Fix undefined web3 issueFabio Berger2017-06-031-2/+2
| * | | Fix linter errorsLeonid Logvinov2017-06-031-4/+12
| * | | Merge branch 'fillOrderAsync' of github.com:0xProject/0x.js into fillOrderAsyncFabio Berger2017-06-031-30/+28
| |\ \ \
| | * | | Address feedbackLeonid Logvinov2017-06-031-8/+8
| | * | | Address feedbackLeonid Logvinov2017-06-031-5/+5
| | * | | Fix test nameLeonid Logvinov2017-06-031-1/+1
| | * | | Remove spacesLeonid Logvinov2017-06-031-3/+1
| | * | | Address feedbackLeonid Logvinov2017-06-031-8/+8
| | * | | Move FillOrderValidatinErrs to ExchangeContractErrsLeonid Logvinov2017-06-031-13/+13
| | * | | Rename EXPIRED to FILL_ORDER_EXPIREDLeonid Logvinov2017-06-021-1/+1
| | * | | Rename NOT_A_TAKER to TRANSACTION_SENDER_IS_NOT_FILL_ORDER_TAKERLeonid Logvinov2017-06-021-1/+1
| * | | | Fix orderingFabio Berger2017-06-031-1/+1
| |/ / /
| * | | rename fillTakerAmountInBaseUnits to fillTakerAmountFabio Berger2017-06-021-21/+21
| * | | Rename coinBase to coinbaseLeonid Logvinov2017-06-021-6/+6
| * | | Refactor balance & allowance testsLeonid Logvinov2017-06-021-47/+42
| * | | Add tests and checks for fees balances and allowancesLeonid Logvinov2017-06-021-1/+44
| * | | Add success test for fill with feesLeonid Logvinov2017-06-021-4/+21
| * | | Add check for ROUNDING_ERROR and test for itLeonid Logvinov2017-06-021-9/+22
| | |/ | |/|
* | | Merge branch 'fillOrderAsync' into addEventSubscriptionsFabio Berger2017-06-021-0/+25
|\| |
| * | Validate maker balance and allowance & testsLeonid Logvinov2017-06-021-0/+25
* | | Add tests for subscribeAsync, making sure events are caught and that subscrip...Fabio Berger2017-06-021-1/+83
* | | Merge branch 'fillOrderAsync' into addEventSubscriptionsFabio Berger2017-06-021-24/+69
|\| | | |/ |/|
| * Add test for valid partial fillLeonid Logvinov2017-06-021-0/+17
| * Add test for insufficient balance and make all async tests asyncLeonid Logvinov2017-06-021-15/+32
| * Introduce coinBase accountLeonid Logvinov2017-06-021-13/+20
* | Simplify testsFabio Berger2017-06-021-16/+11
* | Write tests for getUnavailableTakerAmountAsync, getFilledTakerAmountAsync and...Fabio Berger2017-06-021-8/+77
|/
* Fix testsLeonid Logvinov2017-06-021-2/+2
* WorkLeonid Logvinov2017-06-021-9/+24
* Create a FillsScenario utils module and use it in the fillOrder testsFabio Berger2017-06-021-37/+27
* Change test nameLeonid Logvinov2017-06-021-3/+2
* Make validateFillOrder asyncronousLeonid Logvinov2017-06-021-1/+2
* Add not enough taker balance testsLeonid Logvinov2017-06-021-7/+17
* Revert "Add test to check the balance"Leonid Logvinov2017-06-021-10/+0
* Add test to check the balanceLeonid Logvinov2017-06-011-0/+10
* Follow constants conventionLeonid Logvinov2017-06-011-2/+2
* remove unused argFabio Berger2017-06-011-6/+4
* Remove duplicate declarationsLeonid Logvinov2017-06-011-15/+3
* get rid of literal amount paramsFabio Berger2017-06-011-6/+16
* remove duplicate declarationsFabio Berger2017-06-011-3/+0
* Merge branch 'fillOrderAsync' of github.com:0xProject/0x.js into fillOrderAsyncFabio Berger2017-06-011-8/+18
|\
| * give some balance and allowance by defaultLeonid Logvinov2017-06-011-5/+4
| * Add test, for throw when order is expiredLeonid Logvinov2017-06-011-3/+14
* | Add async suffix and fix alignmentFabio Berger2017-06-011-9/+9
|/
* reorder variabledFabio Berger2017-06-011-3/+3
* remove legacy codeFabio Berger2017-06-011-1/+0
* reorder importFabio Berger2017-06-011-1/+1
* Merge branch 'fillOrderAsync' of github.com:0xProject/0x.js into fillOrderAsyncFabio Berger2017-06-011-9/+10
|\
| * Add shouldCheckTransferLeonid Logvinov2017-06-011-1/+1
| * Refactor testsLeonid Logvinov2017-06-011-10/+11
* | put external imports at the topFabio Berger2017-06-011-6/+6
|/
* Add comment for fillOrderAsync method, rename fillAmount to fillTakerAmountIn...Fabio Berger2017-06-011-3/+4
* Revert "Add EXPIRED test"Leonid Logvinov2017-06-011-22/+16
* Add EXPIRED testLeonid Logvinov2017-06-011-16/+22
* Add NOT_A_TAKER checkLeonid Logvinov2017-06-011-1/+10
* Add FILL_AMOUNT_IS_ZERO checkLeonid Logvinov2017-06-011-2/+2
* Add taker parameter to createSignedOrderLeonid Logvinov2017-06-011-2/+4
* Rename order to order_factoryLeonid Logvinov2017-06-011-1/+1
* Remove unnecessary checksLeonid Logvinov2017-06-011-5/+0
* Fix linter errorsLeonid Logvinov2017-06-011-8/+8
* Add dirty-chaiLeonid Logvinov2017-06-011-0/+4
* Allign parametersLeonid Logvinov2017-06-011-2/+2
* Use constLeonid Logvinov2017-06-011-1/+1
* Add setDefaultAccountLeonid Logvinov2017-06-011-2/+2
* Temp pushLeonid Logvinov2017-06-011-21/+28
* Add setAllowance functionLeonid Logvinov2017-05-311-4/+18
* Fix linter errorsLeonid Logvinov2017-05-311-1/+1
* Revert testsLeonid Logvinov2017-05-311-7/+43
* Merge branch 'erc20transfer' into fillOrderAsyncLeonid Logvinov2017-05-311-2/+0
* Refactor getOrderHash to accept order as an objectLeonid Logvinov2017-05-301-4/+3
* Add first passing testLeonid Logvinov2017-05-301-4/+5
* Temporarily remove testLeonid Logvinov2017-05-301-2/+1
* Append _test to exchange_wrapperLeonid Logvinov2017-05-301-0/+105