aboutsummaryrefslogtreecommitdiffstats
path: root/src/contract_wrappers/exchange_wrapper.ts
Commit message (Expand)AuthorAgeFilesLines
* Switch over to Lerna + Yarn Workspaces setup for a mono-repo approachFabio Berger2017-11-131-866/+0
* Merge branch 'development' into orderWatcherFabio Berger2017-11-131-11/+0
|\
| * Push unsubscribe to the base class rather than superJacob Evans2017-11-121-6/+0
| * Removed nitsJacob Evans2017-11-121-1/+0
| * Clean up subscription state.Jacob Evans2017-11-121-11/+7
* | Remove redundant assertionsLeonid Logvinov2017-11-101-10/+0
* | Add assert.isValidBaseUnitAmount that checks for decimals in amounts that sho...Fabio Berger2017-11-091-0/+10
* | remove unused typeFabio Berger2017-11-091-1/+0
|/
* Merge branch 'development' of github.com:0xProject/0x.js into developmentFabio Berger2017-10-301-14/+14
|\
| * Upgrade bignumber to the version with native typings and remove typingsLeonid Logvinov2017-10-261-14/+14
* | Fix commentFabio Berger2017-10-301-2/+2
|/
* Revert "Reduce final bundle size by 11% (82kB)"Leonid2017-10-241-1/+1
* Include only used lodash functionsLeonid Logvinov2017-10-181-1/+1
* Merge branch 'development' into setFillOrKillToUseRequestInterfaceLeonid2017-10-161-10/+17
|\
| * Make logs fetching and sunscriptions more type-safeLeonid Logvinov2017-10-131-10/+17
* | Use OrderFillRequest interface for batchFillOrKillAssaf2017-10-111-12/+11
|/
* Implement transfer Emulator and rewrite testsLeonid Logvinov2017-10-091-17/+50
* Remove unused importsLeonid Logvinov2017-10-051-3/+1
* Add type assertions for callback parametersLeonid Logvinov2017-10-051-0/+1
* Fix commentsLeonid Logvinov2017-10-051-1/+1
* Remove missing commentLeonid Logvinov2017-10-051-1/+0
* Implement subscriptions based on ethereumjs-blockstreamLeonid Logvinov2017-10-051-48/+34
* Add assertionsLeonid Logvinov2017-10-051-0/+3
* Add tests for zeroEx.exchange.getLogsAsyncLeonid Logvinov2017-10-041-3/+5
* Implement zeroEx.exchange.getLogsAsyncLeonid Logvinov2017-10-041-0/+17
* Fixed nitsBrandon Millman2017-09-281-9/+27
* Add testsBrandon Millman2017-09-281-5/+0
* Add OrderTransactionOpts to enable optional validation to exchange_wrapperBrandon Millman2017-09-281-27/+64
* fix merge issueFabio Berger2017-09-261-1/+1
* Merge branch 'development' into addOrderValidationFabio Berger2017-09-261-7/+11
|\
| * Update commentLeonid Logvinov2017-09-261-1/+1
| * Make getZRXTokenAddressAsync publicLeonid Logvinov2017-09-261-7/+11
* | improve commentFabio Berger2017-09-261-1/+2
* | make opts optionalFabio Berger2017-09-261-1/+1
* | rename validateOrderFillableThrowIfNotFillableAsync to validateOrderFillableO...Fabio Berger2017-09-261-2/+2
* | Add validateOrderFillableThrowIfNotFillableAsync to public methods in order t...Fabio Berger2017-09-261-0/+19
|/
* Move lower-casing logicLeonid Logvinov2017-09-191-1/+2
* Postfix variable names with 'ifExists'Leonid Logvinov2017-09-191-4/+4
* Make contract addresses configurableLeonid Logvinov2017-09-181-2/+4
* Fetch tokenTransferProxy address from exchange contractLeonid Logvinov2017-09-181-0/+5
* Replace placeholders with actual comentsLeonid Logvinov2017-09-081-3/+3
* Rename CallOpts to MethodOptsLeonid Logvinov2017-09-081-10/+11
* Allow user to specify defaultBlock when calling const exchange methodsLeonid Logvinov2017-09-081-6/+15
* Use LogError typeLeonid Logvinov2017-09-071-3/+3
* Fix a commentLeonid Logvinov2017-09-071-2/+1
* Add zeroEx.exchange.throwLogErrorsAsErrorsLeonid Logvinov2017-09-061-0/+23
* Decode logs args in awaitTransactionMinedAsyncLeonid Logvinov2017-09-061-2/+2
* Cast to Artifat typeLeonid Logvinov2017-09-051-1/+1
* Remove unused codeLeonid Logvinov2017-09-051-16/+0
* Rename x.call -> x.callAsync x() -> x.sendTransactionAsync() x.estimateGas() ...Leonid Logvinov2017-09-051-21/+21
* Fix gasPrice regressionLeonid Logvinov2017-09-051-2/+2
* Change non-exhange contracts to also return txHashLeonid Logvinov2017-09-051-1/+0
* Make the functions immidiately return txHash instead of awaiting for a transa...Leonid Logvinov2017-09-051-41/+35
* Remove default value for gasPriceLeonid Logvinov2017-08-291-1/+1
* Allow user to specify the gas priceLeonid Logvinov2017-08-291-2/+2
* Use 0x-json-schemasLeonid Logvinov2017-08-281-25/+18
* Fix commentsLeonid Logvinov2017-08-241-5/+7
* Add a comment for isRoundingErrorAsyncLeonid Logvinov2017-08-241-5/+12
* Remove And's from namesLeonid Logvinov2017-08-241-17/+17
* Move order validation functions to orderValidationUtils and make isRoundingEr...Leonid Logvinov2017-08-241-51/+26
* Add initial implementation for public order validation functionsLeonid Logvinov2017-08-241-48/+77
* Return variable instead of expressionFabio Berger2017-08-231-1/+2
* Fix the docs for shouldThrowOnInsufficientBalanceOrAllowanceLeonid Logvinov2017-08-221-4/+6
* Merge pull request #118 from 0xProject/artifacts-updateFabio Berger2017-08-211-2/+2
|\
| * Update Exchange artifacts and adjust ExchangeWrapperLeonid Logvinov2017-08-151-2/+2
* | remove unneeded assertion from _isRoundingErrorAsync since one can make stati...Fabio Berger2017-08-171-1/+0
|/
* Store tokenWrapper inside of OrdervalidationUtilsLeonid Logvinov2017-07-261-2/+4
* Remove and from namesLeonid Logvinov2017-07-261-1/+1
* Remove unused importsLeonid Logvinov2017-07-261-6/+0
* Refactor OrderValidationUtils to check for the case when ZRX is one of the to...Leonid Logvinov2017-07-261-2/+2
* Pass tokenWrapper to validateFillOrderBalancesAndAllowancesAndThrowIfInvalidA...Leonid Logvinov2017-07-261-1/+1
* Move _validateFillOrderBalancesAndAllowancesAndThrowIfInvalidAsync to orderVa...Leonid Logvinov2017-07-261-63/+4
* Add forgotten meger conflict resolutionLeonid Logvinov2017-07-121-19/+0
* Use PascalCase names as string enum keysLeonid Logvinov2017-07-121-26/+54
* Fix the commentLeonid Logvinov2017-07-121-1/+3
* Migrate to using a single Exchange contractLeonid Logvinov2017-07-121-69/+39
* Fix a typoLeonid Logvinov2017-07-111-4/+4
* Fix a typo in commentLeonid Logvinov2017-07-111-2/+2
* Rename shouldCheckTransfer to shouldThrowOnInsufficientBalanceOrAllowanceLeonid Logvinov2017-07-111-10/+11
* Change arguments order at isRoundingErrorLeonid Logvinov2017-07-111-3/+3
* Migrate eventsLeonid Logvinov2017-07-111-3/+4
* Migrate fillOrKillOrderLeonid Logvinov2017-07-111-9/+9
* Migrate ZRX_TOKEN_AMOUNTLeonid Logvinov2017-07-111-1/+1
* Migrate getUnavailableTakerTokenAmountLeonid Logvinov2017-07-111-3/+3
* Migrate batchFillOrKillOrdersLeonid Logvinov2017-07-111-5/+5
* Migrate batchFillOrdersLeonid Logvinov2017-07-111-16/+20
* Migrate fillOrderLeonid Logvinov2017-07-111-20/+23
* Migrate fillOrdersUpTo and remove minLeonid Logvinov2017-07-111-13/+14
* Migrate batchCancelOrdersLeonid Logvinov2017-07-111-5/+5
* Migrate cencelOrderLeonid Logvinov2017-07-111-9/+9
* Revert "Migrate isRoundingError parameter changes"Leonid Logvinov2017-07-111-5/+5
* Revert "Rename ZRX to ZRX_TOKEN_CONTRACT"Leonid Logvinov2017-07-111-1/+1
* Migrate isRoundingError parameter changesLeonid Logvinov2017-07-111-5/+5
* Rename ZRX to ZRX_TOKEN_CONTRACTLeonid Logvinov2017-07-111-1/+1
* Rename batchCancelOrderAsync to batchCancelOrdersAsyncLeonid Logvinov2017-07-081-1/+1
* Rename batchFillOrderAsync to batchFillOrdersAsyncLeonid Logvinov2017-07-081-2/+2
* Move zeroEx.exchange.getAvailableContractAddressesAsync to zeroEx.getAvailabl...Leonid Logvinov2017-07-061-45/+2
* move order hash schema to a separate fileLeonid Logvinov2017-07-051-1/+2
* Make invalidateContractInstancesAsync private on exchange and tokenLeonid Logvinov2017-07-051-4/+4
* Add parameter validation for subscribeAsyncLeonid Logvinov2017-07-051-0/+6
* Use orderHashSchema to validate order hashLeonid Logvinov2017-07-051-4/+4
* Merge branch 'master' into subscribe-tokenLeonid2017-07-041-4/+4
|\
| * Merge pull request #89 from 0xProject/proxyLeonid2017-07-041-4/+4
| |\
| | * Use call instead of use in the commentsLeonid Logvinov2017-07-041-4/+4
* | | Add initial implementation and tests for zeroEx.token.subscribeAsyncLeonid Logvinov2017-07-041-32/+2
|/ /
* | Rename _wrapEventCallback to _getBigNumberWrappingEventCallbackLeonid Logvinov2017-07-041-2/+2
* | Merge branch 'master' into wrap-log-bignumberLeonid2017-07-041-61/+145
|\|
| * Stop passing exchangeContractAddress to utils.getOrderHashHexLeonid Logvinov2017-07-041-7/+2
| * Await ZRX callLeonid Logvinov2017-07-041-1/+1
| * Fix the commentLeonid Logvinov2017-07-041-1/+1
| * Rename invalidateContractInstanceAsync to invalidateContractInstancesAsyncLeonid Logvinov2017-07-041-1/+1
| * Fix namingLeonid Logvinov2017-07-011-2/+3
| * Fix a typo in authorizedLeonid Logvinov2017-07-011-3/+3
| * Fix a bug in getProxyAuthorizedContractAddressesAsyncLeonid Logvinov2017-07-011-2/+7
| * Move schema assertion up to prevent the _.map failureLeonid Logvinov2017-07-011-1/+1
| * Implement getProxyAuthorizedContractAddressesAsyncLeonid Logvinov2017-06-301-0/+16
| * Store ProxyWrapper instance in ExchangeWrapperLeonid Logvinov2017-06-301-1/+4
| * Factor out ZRXtokenAddress variableLeonid Logvinov2017-06-301-1/+2
| * Rename ZeroExError.CONTRACT_DOES_NOT_EXIST to ZeroExError.EXCHANGE_CONTRACT_D...Leonid Logvinov2017-06-301-1/+1
| * Fix a typo in a nameLeonid Logvinov2017-06-301-2/+2
| * Factor out exchangeArtifacts variableLeonid Logvinov2017-06-301-1/+2
| * Check that artefacts by networkId are not undefined before getting the addressLeonid Logvinov2017-06-301-2/+5
| * Fix a typo in a nameLeonid Logvinov2017-06-301-1/+1
| * Fix a typo in a nameLeonid Logvinov2017-06-301-1/+1
| * Move schema assertion up to prevent the _.map failureLeonid Logvinov2017-06-301-2/+2
| * Move schema assertion up to prevent the _.map failureLeonid Logvinov2017-06-301-1/+1
| * Mve schema assertion up to prevent the _.map failureLeonid Logvinov2017-06-301-1/+1
| * Allow multiple exchange versions t be functional at the same timeLeonid Logvinov2017-06-271-48/+107
| * Move exchange artifacts to an exchange subfolderLeonid Logvinov2017-06-271-1/+1
* | Check for a BigNumber instanceLeonid Logvinov2017-07-041-1/+8
* | Use _.isString instead of instanceofLeonid Logvinov2017-07-041-1/+1
* | Wrap all event args in a newer version of BigNumber and test itLeonid Logvinov2017-07-021-1/+19
|/
* Fix incorrect merge consequencesLeonid Logvinov2017-06-231-3/+3
* Merge branch 'master' into fill-order-amuontLeonid2017-06-231-27/+22
|\
| * Revert "Use different lodash import syntax which allows to include only used ...Leonid2017-06-221-26/+22
* | Return filledTakerTokenAmount from fillOrdersUpToAsyncLeonid Logvinov2017-06-221-3/+10
* | Return cancelledAmount from cancelOrderAsyncLeonid Logvinov2017-06-221-1/+6
* | Fix return commentLeonid Logvinov2017-06-221-1/+1
* | Return filledAmount from fillOrderAsyncLeonid Logvinov2017-06-211-1/+6
|/
* Fall back to import x = require() syntaxLeonid Logvinov2017-06-211-5/+5
* Use different lodash import syntax which allows to include only used functionsLeonid Logvinov2017-06-211-22/+26
* Add missing semi-colonFabio Berger2017-06-201-1/+1
* Improve commentFabio Berger2017-06-201-3/+3
* Merge branch 'master' of github.com:0xProject/0x.jsFabio Berger2017-06-191-1/+2
|\
| * Rename LogErrorArgs to LogErrorEventArgs and EventArgs to ContractEventArgsLeonid Logvinov2017-06-191-2/+2
| * Add actual type for contract event argumentsLeonid Logvinov2017-06-151-1/+2
* | Add and improve commentsFabio Berger2017-06-161-7/+11
|/
* Remove types that are not used in public interface from export and rename Eve...Leonid Logvinov2017-06-141-7/+7
* Rename ZeroExEvent to EventEmitterLeonid Logvinov2017-06-131-12/+12
* Bind watch function on an eventLeonid Logvinov2017-06-131-1/+1
* Refactor subscription to return zeroExSignature objectLeonid Logvinov2017-06-131-16/+27
* Add getContractAddressAsync and testsLeonid Logvinov2017-06-131-0/+9
* Merge branch 'master' into privateLeonid2017-06-111-14/+22
|\
| * Merge pull request #60 from 0xProject/error-decoratorFabio Berger2017-06-111-0/+8
| |\
| | * Merge branch 'master' into error-decoratorLeonid2017-06-101-11/+61
| | |\
| | * | Add initial error handling decorator implementationLeonid Logvinov2017-06-101-0/+8
| * | | Remove Hex suffix from public functions parameters namesLeonid Logvinov2017-06-101-14/+14
| | |/ | |/|
* | | Fix last testsLeonid Logvinov2017-06-111-8/+8
* | | Prefix private vars with _Leonid Logvinov2017-06-101-91/+92
|/ /
* | Align all param comments so that they are more readableFabio Berger2017-06-101-38/+48
* | Add param & return comments to all public methods and add comments to some pu...Fabio Berger2017-06-101-11/+51
|/
* Address feedbackLeonid Logvinov2017-06-101-1/+1
* Fix testLeonid Logvinov2017-06-101-8/+5
* Merge branch 'master' into json-schemaLeonid2017-06-101-5/+4
|\
| * Merge branch 'master' into async-bugLeonid2017-06-091-20/+83
| |\
| * | Use for ofLeonid Logvinov2017-06-091-2/+2
| * | Fix the bug of not awaiting an async functionLeonid Logvinov2017-06-091-4/+3
* | | Merge branch 'master' into json-schemaLeonid2017-06-091-4/+71
|\ \ \ | | |/ | |/|
| * | Merge branch 'master' into fillOrderUpToAsyncLeonid2017-06-091-16/+12
| |\ \
| * | | Address feedbackLeonid Logvinov2017-06-091-5/+2
| * | | Add signedOrdersScxhemaLeonid Logvinov2017-06-091-0/+4
| * | | Address feedbackLeonid Logvinov2017-06-091-1/+1
| * | | Add assert.hashAtMostOneUniqueValueLeonid Logvinov2017-06-091-6/+6
| * | | Merge branch 'master' into fillOrderUpToAsyncLeonid2017-06-091-24/+89
| |\ \ \ | | | |/ | | |/|
| * | | Add tests for fillOrdersUpToLeonid Logvinov2017-06-091-7/+7
| * | | Implement fillOrderUpToAsyncLeonid Logvinov2017-06-081-0/+66
* | | | Fix tests one moreLeonid Logvinov2017-06-091-1/+1
* | | | Fix testsLeonid Logvinov2017-06-091-1/+1
* | | | Merge branch 'master' into json-schemaLeonid2017-06-091-12/+7
|\ \ \ \ | | |_|/ | |/| |
| * | | Add orderCancelrequestsSchema and orderFillRequestsSchemaLeonid Logvinov2017-06-091-16/+12
| | |/ | |/|
* | | Make static function publicLeonid Logvinov2017-06-091-1/+0
* | | Convert to JSON schema compatible object by defaultLeonid Logvinov2017-06-091-19/+7
|/ /
* | fix indentationFabio Berger2017-06-091-13/+13
* | add comment explaining the use of anyFabio Berger2017-06-091-0/+1
* | Improve commentFabio Berger2017-06-091-1/+1
* | Add orderFillOrKillRequestsSchema and validate using it instead of looping ov...Fabio Berger2017-06-091-4/+5
* | Merge branch 'master' into batchFillOrKillFabio Berger2017-06-091-25/+91
|\|
| * Merge pull request #47 from 0xProject/is-valid-signature-contractLeonid2017-06-081-2/+2
| |\
| | * Merge branch 'master' into is-valid-signature-contractLeonid2017-06-081-0/+6
| | |\
| | * | Refactor isValidSignatureLeonid Logvinov2017-06-081-2/+2
| * | | Merge branch 'master' into batchFillAsyncLeonid2017-06-081-0/+6
| |\ \ \ | | | |/ | | |/|
| * | | Address feedbackLeonid Logvinov2017-06-081-9/+12
| * | | Use isSenderAddressAsyncLeonid Logvinov2017-06-081-2/+2
| * | | Address old feedbackLeonid Logvinov2017-06-081-2/+3
| * | | Fix spacingLeonid Logvinov2017-06-081-2/+2
| * | | Merge branch 'master' into batchFillAsyncLeonid Logvinov2017-06-081-25/+106
| |\ \ \ | | | |/ | | |/|
| * | | Don't use batchFillOrderAsync for fillOrderAsyncLeonid Logvinov2017-06-081-3/+37
| * | | Add no-op testLeonid Logvinov2017-06-081-1/+3
| * | | Remove old commentLeonid Logvinov2017-06-081-1/+0
| * | | Refactor to use OrderFillRequestLeonid Logvinov2017-06-071-22/+26
| * | | Merge branch 'batchCancelAsync' into batchFillAsyncLeonid Logvinov2017-06-071-27/+3
| |\ \ \
| * \ \ \ Merge branch 'batchCancelAsync' into batchFillAsyncLeonid Logvinov2017-06-071-17/+19
| |\ \ \ \
| * | | | | Add assertion for empty batchLeonid Logvinov2017-06-071-0/+1
| * | | | | Fix linter errorsLeonid Logvinov2017-06-071-1/+2
| * | | | | Add tests for batchCancelAsyncLeonid Logvinov2017-06-071-1/+1
| * | | | | Add initial batchCancelAsync implementationLeonid Logvinov2017-06-071-0/+45
| * | | | | Remove assertions from utils methodsLeonid Logvinov2017-06-071-4/+1
| * | | | | Add initial implementation of batchCancelAsyncLeonid Logvinov2017-06-071-21/+43
* | | | | | Merge branch 'master' into batchFillOrKillFabio Berger2017-06-081-0/+6
|\ \ \ \ \ \ | | |_|_|_|/ | |/| | | |
| * | | | | Add getOrderHashHexUsingContractCallAsyncLeonid Logvinov2017-06-081-0/+6
| | |_|_|/ | |/| | |
* | | | | Merge branch 'master' into batchFillOrKillFabio Berger2017-06-081-2/+56
|\| | | |
| * | | | Address feedbackLeonid Logvinov2017-06-081-6/+9
| * | | | Address feedbackLeonid Logvinov2017-06-081-5/+6
| * | | | Don't use batch function for normal oneLeonid Logvinov2017-06-081-3/+27
| * | | | Merge branch 'master' into batchCancelAsyncLeonid2017-06-081-7/+57
| |\ \ \ \
| * | | | | Address feedbackLeonid Logvinov2017-06-071-8/+11
| | |_|_|/ | |/| | |
| * | | | Use batchCancel for normal cancelLeonid Logvinov2017-06-071-28/+5
| | |_|/ | |/| |
| * | | Refactor to use OrderCancellationRequestLeonid Logvinov2017-06-071-17/+19
| * | | Add tests for batchCancelAsyncLeonid Logvinov2017-06-071-1/+1
| * | | Add initial batchCancelAsync implementationLeonid Logvinov2017-06-071-0/+45
* | | | Implement batchFillOrKill and testsFabio Berger2017-06-081-7/+70
| |/ / |/| |
* | | Remove catch of invalid jump throws since there are many reasons the contract...Fabio Berger2017-06-071-24/+14
* | | add `hex` to function and variable name for clarityFabio Berger2017-06-071-4/+4
* | | remove unused argFabio Berger2017-06-071-2/+1
* | | merge masterFabio Berger2017-06-071-31/+79
|\| |
| * | Remove assertions from utils methodsLeonid Logvinov2017-06-071-4/+1
| |/
| * Use union type Order|SignedOrderLeonid Logvinov2017-06-071-2/+2
| * Address feedbackLeonid Logvinov2017-06-071-16/+15
| * Add test when the order was already cancelled or filledLeonid Logvinov2017-06-061-31/+35
| * Add checks and tests for expired order and zero fill amountLeonid Logvinov2017-06-061-1/+7
| * Fix testsLeonid Logvinov2017-06-061-1/+1
| * Add initial implementation with success testLeonid Logvinov2017-06-061-1/+52
* | Implement fillOrKill & testsFabio Berger2017-06-071-17/+88
|/
* Address feedbackLeonid Logvinov2017-06-061-1/+1
* Add isAnyAddressAvailableAsyncLeonid Logvinov2017-06-061-0/+1
* Rename isSenderAddressHexAsync to isSenderAddressAsyncLeonid Logvinov2017-06-061-1/+1
* Rename senderAccount to senderAddressLeonid Logvinov2017-06-061-8/+8
* Rename assert.isSenderAccountHexAsync to assert.isSenderAddressHexAsyncLeonid Logvinov2017-06-061-1/+1
* Rename senderAccount to takerAddressLeonid Logvinov2017-06-061-5/+5
* Add variableName to isSenderAddcountHexAsyncLeonid Logvinov2017-06-061-1/+1
* Make methods accept senderAccountLeonid Logvinov2017-06-051-21/+14
* Run stopWatching in parallelFabio Berger2017-06-031-3/+4
* Merge branch 'master' into addEventSubscriptionsFabio Berger2017-06-031-31/+98
|\
| * Address feedbackLeonid Logvinov2017-06-031-12/+12
| * Allign argumentsLeonid Logvinov2017-06-031-3/+3
| * Rewrite commentLeonid Logvinov2017-06-031-5/+11
| * Move FillOrderValidatinErrs to ExchangeContractErrsLeonid Logvinov2017-06-031-13/+12
| * Assign wouldRoundingErrorOccur to a variableLeonid Logvinov2017-06-021-2/+4
| * Rename EXPIRED to FILL_ORDER_EXPIREDLeonid Logvinov2017-06-021-1/+1
| * Assign timestamp to a variableLeonid Logvinov2017-06-021-1/+2