aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/src
Commit message (Collapse)AuthorAgeFilesLines
* Return after checking for an error and add an explanatory commentLeonid Logvinov2018-01-131-1/+2
|
* Make some callbacks failable and add error handlingLeonid Logvinov2018-01-116-38/+61
|
* Fix callback typesLeonid Logvinov2018-01-101-1/+1
|
* Include web3 types via typeRoots and factor out common parts of tsconfig.jsonLeonid Logvinov2018-01-102-1/+9
|
* Apply prettify on json and md filesLeonid Logvinov2018-01-047-1727/+1726
|
* Fix linter errorsLeonid Logvinov2018-01-045-6/+5
|
* Use configured version of bignumber in all packagesLeonid Logvinov2018-01-0417-21/+17
|
* Fix formattingLeonid Logvinov2018-01-031-1/+0
|
* Apply prettier configLeonid Logvinov2018-01-0328-548/+889
|
* Merge pull request #285 from 0xProject/fix/underscorePrivateBrandon Millman2017-12-229-190/+190
|\ | | | | Add new underscore-privates rule to @0xproject/tslint-config and fix …
| * Add some missed underscores, update changelog and commentsBrandon Millman2017-12-212-3/+3
| |
| * Merge branch 'development' into fix/underscorePrivateBrandon Millman2017-12-216-12/+173
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * development: (29 commits) Move call to error reporter to end of handler so that even if reporting the error takes a while, it doesn't block the UI Update outdated WETH ranges Fix conditional Fix top-padding Publish Update CHANGELOGs Add slashes to base URLs Fix linter issue Fix WETH symbol Update snapshot and artifacts Replace our EtherTokens with WETH9 from maker Fix test description Fix a typo Add err==null assertions Add WETH9 tests Use the new snapshot including WETH9 and it's artifacts Add WETH9 and mirations Fix WETH events watching Fix a typo Init the _etherTokenContractsByAddress ...
| * | Add new underscore-privates rule to @0xproject/tslint-config and fix lint errorsBrandon Millman2017-12-209-188/+188
| | |
* | | Refactor toBaseUnitAmount so that it throws if user supplies unitAmount with ↵Fabio Berger2017-12-211-0/+4
| | | | | | | | | | | | too many decimals
* | | Make assertion stricter so that one cannot submit invalid baseUnit amounts ↵Fabio Berger2017-12-211-1/+1
| |/ |/| | | | | to `toUnitAmount`
* | Fix linter issueLeonid Logvinov2017-12-201-1/+0
| |
* | Update snapshot and artifactsLeonid Logvinov2017-12-203-3/+3
| |
* | Add WETH9 testsLeonid Logvinov2017-12-201-1/+1
| |
* | Use the new snapshot including WETH9 and it's artifactsLeonid Logvinov2017-12-203-5/+5
| |
* | Fix WETH events watchingLeonid Logvinov2017-12-202-3/+3
| |
* | Init the _etherTokenContractsByAddressLeonid Logvinov2017-12-201-1/+1
| |
* | Export new public typesLeonid Logvinov2017-12-201-0/+3
| |
* | Make order watcher react to new etherToken eventsLeonid Logvinov2017-12-201-0/+33
| |
* | Add EtherToken events to the ABILeonid Logvinov2017-12-202-2/+36
| |
* | Enable multiple EtherTokenContract instancesLeonid Logvinov2017-12-201-4/+9
| |
* | Add etherToken.getLogsAsync and etherToken.subscribe with testsLeonid Logvinov2017-12-204-6/+93
|/
* Don't throw in transformersLeonid Logvinov2017-12-201-1/+1
|
* Throw a better error message when taker is null|undefined or anything but ↵Leonid Logvinov2017-12-195-24/+78
| | | | not a string
* Fix commentsLeonid Logvinov2017-12-192-2/+2
|
* Fix linter issuesLeonid Logvinov2017-12-191-2/+2
|
* Rename SubscriptionOpts to BlockRangeLeonid Logvinov2017-12-196-19/+19
|
* Modify the etherToken wrapper methods to accept an etherTokenAddress as the ↵Fabio Berger2017-12-174-32/+14
| | | | first arg. Since it is becoming apparent we will be updating the canonical WETH contract, we want users of 0x.js to be able to interact with n number of etherTokens without re-instantiating for each one.
* Fix documentation issue where `unsubscribeAll` shown as method on every ↵Fabio Berger2017-12-173-4/+13
| | | | contractWrapper instance even though it's only used by Exchange and Token wrappers.
* Fix 0x.js unused varsLeonid Logvinov2017-12-1513-35/+9
|
* Add a newlineLeonid Logvinov2017-12-151-1/+2
|
* Fix linter errorsLeonid Logvinov2017-12-141-1/+1
|
* Add DummyToken to gitignoreLeonid Logvinov2017-12-141-0/+1
|
* Add DummyToken to artifacts listLeonid Logvinov2017-12-141-0/+2
|
* Update addresses and add DummyToken artifactLeonid Logvinov2017-12-145-4/+27
|
* Move shared types to types packageLeonid Logvinov2017-12-143-29/+7
|
* Move more shared utils into utils package and reuse themLeonid Logvinov2017-12-148-55/+5
|
* Remove generated contracts and ignore them. Add a prebuild command to ↵Leonid Logvinov2017-12-146-2160/+5
| | | | regenerate them
* Rename blockAndLogStreamer to blockAndLogStreamerIfExistsLeonid Logvinov2017-12-121-14/+18
|
* Refactor networkId out of web3WrapperLeonid Logvinov2017-12-087-19/+27
|
* Refactor web3Wrapper to a separate packageLeonid Logvinov2017-12-0717-244/+41
|
* Address feedbackLeonid Logvinov2017-12-061-1/+1
|
* Regenerate filesLeonid Logvinov2017-12-065-5/+5
|
* Rename abi-gen to typed-contractsLeonid Logvinov2017-12-065-10/+10
|
* Remove TODOsLeonid Logvinov2017-12-051-2/+0
|
* Fix a commentLeonid Logvinov2017-12-051-5/+5
|
* Add a commentLeonid Logvinov2017-12-051-0/+1
|
* Fix a typoLeonid Logvinov2017-12-051-1/+1
|
* Update commentLeonid Logvinov2017-12-025-5/+5
|
* Add comments before generated contractsLeonid Logvinov2017-12-025-0/+20
|
* Use our promisifyLeonid Logvinov2017-12-021-12/+11
|
* Make target optionalLeonid Logvinov2017-12-021-1/+1
|
* Remove es6-promisifyLeonid Logvinov2017-12-021-6/+0
|
* Remove all contract wrapperLeonid Logvinov2017-12-021-98/+0
|
* Add async prefixLeonid Logvinov2017-12-021-1/+1
|
* Adjust 0x.js to use generated wrappersLeonid Logvinov2017-12-027-24/+43
|
* Remove old contract typingsLeonid Logvinov2017-12-021-154/+11
|
* Add promisifyLeonid Logvinov2017-12-021-0/+24
|
* Add class utilsLeonid Logvinov2017-12-021-0/+17
|
* Add generated contract wrappersLeonid Logvinov2017-12-026-0/+2176
|
* Export TransactionOpts typeLeonid Logvinov2017-11-291-0/+1
|
* Merge pull request #235 from 0xProject/feature/gasPriceGasLimitLeonid2017-11-296-173/+125
|\ | | | | Add optional config for gasPrice and gasLimit for every transaction sending method
| * Improve the commentLeonid Logvinov2017-11-291-1/+3
| |
| * Remove a commentLeonid Logvinov2017-11-291-1/+0
| |
| * Fix a typoLeonid Logvinov2017-11-291-1/+1
| |
| * Add fake gas estimate suprovider for testsLeonid Logvinov2017-11-292-28/+1
| |
| * Fix a commentLeonid Logvinov2017-11-281-4/+4
| |
| * Increase gas marginLeonid Logvinov2017-11-281-2/+1
| |
| * Fix defaults for shouldValidateLeonid Logvinov2017-11-281-7/+21
| |
| * Add gas margin and remove undefined valuesLeonid Logvinov2017-11-281-10/+14
| |
| * Add an initializer for txOpts in etherTokenLeonid Logvinov2017-11-281-2/+6
| |
| * Add option config for gasPrice and gasLimit for every transaction sending methodLeonid Logvinov2017-11-285-138/+95
| |
* | Change interval to 1hLeonid Logvinov2017-11-291-1/+1
| |
* | RenameLeonid Logvinov2017-11-291-2/+2
| |
* | Add ifExists to cleanupJobIntervalLeonid Logvinov2017-11-291-4/+4
| |
* | Add a cleanup job to an order watcherLeonid Logvinov2017-11-292-2/+46
|/
* Fix merge conflictsLeonid Logvinov2017-11-282-5/+5
|
* Merge branch 'development' into feature/passNetworkIdLeonid2017-11-285-20/+27
|\
| * Add link to Provider explanationFabio Berger2017-11-281-1/+2
| |
| * Add comment about BlockParamLiteral explaining the omission of EarliestFabio Berger2017-11-241-0/+3
| |
| * Merge branch 'development' into validateOrdersAgainstLatestBlockFabio Berger2017-11-242-8/+11
| |\ | | | | | | | | | | | | | | | | | | * development: Rename removed to isRemoved Add CHANGELOG entry Make DecodedLogEvent contain web3 log under a log subkey
| * | Pass 'latest' to ExchangeTransferSimulator when used for validating orders, ↵Fabio Berger2017-11-244-14/+19
| | | | | | | | | | | | and pass 'pending' when used in the order watcher.
| * | Remove `Earliest` from blockParamLiterals since specifying block 0 is ↵Fabio Berger2017-11-241-1/+0
| | | | | | | | | | | | trivial and this type can be reused in situations where the options are pending or latest
* | | Remove ContractDoesNotExist error and replace it with more specific errorsLeonid Logvinov2017-11-242-3/+18
| | |
* | | Pass networkId on provider updateLeonid Logvinov2017-11-244-9/+9
| | |
* | | Remove outdated commentLeonid Logvinov2017-11-241-2/+0
| | |
* | | Improve a commentLeonid Logvinov2017-11-241-1/+1
| | |
* | | Add a commentLeonid Logvinov2017-11-241-0/+1
| | |
* | | Reuse the protected function to get contract addressLeonid Logvinov2017-11-241-10/+2
| | |
* | | Move variable declaration inside the ifLeonid Logvinov2017-11-241-0/+12
| | |
* | | Fix rebasing issuesLeonid Logvinov2017-11-241-1/+2
| | |
* | | Revert "Remove redundant async"Leonid Logvinov2017-11-241-1/+1
| | | | | | | | | | | | This reverts commit 8d11ababd62d947e338757f57c41179510b11338.
* | | Refactor getContractAddress to contractWrapperLeonid Logvinov2017-11-245-41/+17
| | |
* | | Remove redundant asyncLeonid Logvinov2017-11-241-1/+1
| | |
* | | Fix the artifactsLeonid Logvinov2017-11-242-2/+2
| | |
* | | Fix the imports orderLeonid Logvinov2017-11-2411-1445/+70
| | |
* | | Enable some new linter rules and fix the issuesLeonid Logvinov2017-11-2410-154/+157
| | |
* | | Auto-fix linter errorsLeonid Logvinov2017-11-2420-123/+151
| | |
* | | Fix linter issuesLeonid Logvinov2017-11-242-2/+2
| | |
* | | Await block reconcilationLeonid Logvinov2017-11-241-1/+1
| | |
* | | Remove even more asyncsLeonid Logvinov2017-11-244-21/+34
| | |
* | | Make zeroEx.tokenRegistry.getContractAddress non-asyncLeonid Logvinov2017-11-241-5/+12
| | |
* | | Make exchange subscriptions non-asyncLeonid Logvinov2017-11-241-2/+2
| | |
* | | Cleanup order watcher from redundant asyncsLeonid Logvinov2017-11-242-11/+11
| | |
* | | Make zeroEx.exchange.getContractAddress non-asyncLeonid Logvinov2017-11-241-6/+13
| | |
* | | Add ZRX artifactsLeonid Logvinov2017-11-241-0/+17
| | |
* | | Make getZRXTokenAddress non asyncLeonid Logvinov2017-11-246-18/+29
| | |
* | | Store networkId in web3WrapperLeonid Logvinov2017-11-242-20/+9
| | |
* | | Add networkId to zeroExConfig schemaLeonid Logvinov2017-11-241-0/+5
| | |
* | | Add networkId to ZeroExConfig and make it requiredLeonid Logvinov2017-11-242-17/+10
| |/ |/|
* | Rename removed to isRemovedLeonid Logvinov2017-11-242-7/+7
| |
* | Make DecodedLogEvent contain web3 log under a log subkeyLeonid Logvinov2017-11-242-2/+5
|/
* Merge pull request #230 from 0xProject/feature/removeDuplicateEventsFabio Berger2017-11-241-0/+12
|\ | | | | Add an order state cache to filter out duplicate events
| * Add an order state cache to filter out duplicate eventsLeonid Logvinov2017-11-211-0/+12
| |
* | Fix nitsJacob Evans2017-11-231-5/+4
| |
* | Merge branch 'development' into feature/calculate-remaining-proportionsJacob Evans2017-11-238-46/+189
|\ \
| * | Last renamesLeonid Logvinov2017-11-231-5/+5
| | |
| * | Refactor while conditionLeonid Logvinov2017-11-231-6/+12
| | |
| * | Merge branch 'development' into feature/orderExpiredLeonid2017-11-231-3/+31
| |\ \
| | * | Rename toDecimal to hexToDecimalLeonid Logvinov2017-11-221-4/+4
| | | |
| | * | Add postFormatter for logsLeonid Logvinov2017-11-221-3/+31
| | |/
| * | Fix testsLeonid Logvinov2017-11-221-1/+2
| | |
| * | Fix a typoLeonid Logvinov2017-11-221-1/+1
| | |
| * | Check if transactionReceipt exists before normalizing itLeonid Logvinov2017-11-211-1/+3
| | |
| * | Address nitsLeonid Logvinov2017-11-211-3/+2
| | |
| * | Remove old commentLeonid Logvinov2017-11-211-1/+0
| | |
| * | Fix async callbacksLeonid Logvinov2017-11-211-2/+2
| | |
| * | Check if callback existsLeonid Logvinov2017-11-212-8/+10
| | |
| * | RenameLeonid Logvinov2017-11-211-8/+8
| | |
| * | Pass callback downLeonid Logvinov2017-11-211-9/+5
| | |
| * | Merge branch 'development' into feature/orderExpiredLeonid2017-11-2111-37/+52
| |\|
| | * Merge branch 'development' into feature/track-zrx-movementsJacob Evans2017-11-164-20/+11
| | |\
| | | * Merge branch 'development' into syncSubscribeJacob Evans2017-11-169-9/+24
| | | |\
| | | * | separate assignment and callJacob Evans2017-11-151-1/+2
| | | | |
| | | * | Remove Async subscribe callbacks from OrderWatcherJacob Evans2017-11-152-10/+8
| | | | |
| | | * | Callback for subscribe no longer supports an Async CallbackJacob Evans2017-11-144-12/+4
| | | | |
| | * | | Fix nitsJacob Evans2017-11-161-1/+1
| | | | |
| | * | | Change to Async suffix conventionJacob Evans2017-11-161-4/+4
| | | | |
| | * | | Add return typeJacob Evans2017-11-161-1/+1
| | | | |
| | * | | Add and Remove Fee Token with Maker TokenJacob Evans2017-11-161-8/+17
| | | |/ | | |/|
| * | | Remove custom heap and use bintreesLeonid Logvinov2017-11-213-102/+14
| | | |
| * | | Add expirationMarginMsLeonid Logvinov2017-11-214-10/+30
| | | |
| * | | Add defaultsLeonid Logvinov2017-11-213-9/+9
| | | |
| * | | Add ifExists suffixLeonid Logvinov2017-11-212-6/+6
| | | |
| * | | Improve the commentLeonid Logvinov2017-11-211-1/+1
| | | |
| * | | Remove commentLeonid Logvinov2017-11-211-1/+0
| | | |
| * | | Remove new lineLeonid Logvinov2017-11-211-1/+0
| | | |
| * | | Delete orderExpirationCheckingIntervalIdIfExistsLeonid Logvinov2017-11-211-0/+1
| | | |
| * | | Throw when subscription is already removedLeonid Logvinov2017-11-211-1/+4
| | | |
| * | | Throw when subscription is already presentLeonid Logvinov2017-11-211-1/+4
| | | |
| * | | Remove redundant bindLeonid Logvinov2017-11-211-3/+1
| | | |
| * | | Do simple inits inlineLeonid Logvinov2017-11-211-2/+1
| | | |
| * | | Remove order on expirationLeonid Logvinov2017-11-181-0/+1
| | | |
| * | | Improve the commentLeonid Logvinov2017-11-181-1/+2
| | | |
| * | | Fix heap implementationLeonid Logvinov2017-11-181-0/+3
| | | |
| * | | Add initial implementation of expiration watcherLeonid Logvinov2017-11-164-2/+173
| | |/ | |/|
* | | Perform the division last to not compound any errorsJacob Evans2017-11-221-2/+6
| | |
* | | Add a test for when the ratio is < 1Jacob Evans2017-11-221-43/+55
| | |
* | | totalZRXTransferAmount -> totalZRXTransferAmountRequiredJacob Evans2017-11-211-2/+2
| | |
* | | Unit test edge case for ZRX and ZRX partial fillJacob Evans2017-11-212-11/+15
| | |
* | | Refactor into a calculator classJacob Evans2017-11-212-93/+76
| | |
* | | Fixes before refactorJacob Evans2017-11-211-35/+47
| | |
* | | fix bug when fees and partial asymmetricJacob Evans2017-11-201-1/+1
| | |
* | | remove importJacob Evans2017-11-201-1/+0
| | |
* | | calculate remaining maker token amountJacob Evans2017-11-201-25/+35
| | |
* | | Split into Pooled and non-pooledJacob Evans2017-11-201-12/+50
| | |
* | | Incorrect amount when is zero or non-zrx feeJacob Evans2017-11-201-1/+1
| | |
* | | Readability variable namesJacob Evans2017-11-201-10/+10
| | |
* | | refactor upJacob Evans2017-11-161-16/+16
| | |
* | | Use 18 decimal place unitsJacob Evans2017-11-161-2/+2
| | |
* | | Shortcut if everything satisfies in the non dependent use caseJacob Evans2017-11-161-0/+6
| | |
* | | Remove commentsJacob Evans2017-11-161-3/+0
| | |
* | | Initial testsJacob Evans2017-11-161-3/+31
| |/ |/|
* | Change the way 0x.js assert extends the @0xproject/assert moduleBrandon Millman2017-11-151-2/+3
| |
* | Merge pull request #219 from 0xProject/feature/rounding-validationBrandon Millman2017-11-152-0/+14
|\ \ | | | | | | Rounding validation
| * | Name a constantLeonid Logvinov2017-11-151-2/+4
| | |
| * | Fix namingsLeonid Logvinov2017-11-151-2/+2
| | |
| * | Add validation for rounding errorLeonid Logvinov2017-11-141-0/+7
| | |
| * | Return remainingFillableTakerAmountLeonid Logvinov2017-11-141-0/+4
| | |
| * | Add remainingFillableMakerAmount to typesLeonid Logvinov2017-11-141-0/+1
| | |
* | | Merge branch 'development' into feature/addJsonSchemasBrandon Millman2017-11-155-8/+8
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * development: Improve description Alphabetize Add exit 0 to 0x.js build command Add snapshot save and revert to order_state_watcher_test.ts Fix changelog Use tslint v5.8.0 everywhere and use the tslint-config sub-package instead of the old repo as a dep. in the rest of the sub-packages. Add tslint-config sub-package Fix tslint issue Public interface has changed, moved to minor version Update changelog Renamed canceled to cancelled
| * \ \ Merge pull request #220 from 0xProject/feature/addTsLintPackageFabio Berger2017-11-151-1/+1
| |\ \ \ | | |_|/ | |/| | Add TSLint Config package
| | * | Fix tslint issueFabio Berger2017-11-141-1/+1
| | | |
| * | | Merge pull request #217 from dekz/fixCancelledNaming2Fabio Berger2017-11-144-7/+7
| |\ \ \ | | |/ / | |/| | Standardise on Cancelled over canceled
| | * | Renamed canceled to cancelledJacob Evans2017-11-144-7/+7
| | |/
* | / Add json-schemas package to mono repoBrandon Millman2017-11-146-6/+6
|/ /
* | fix orderingsFabio Berger2017-11-141-1/+1
| |
* | Rename backFabio Berger2017-11-141-1/+1
| |
* | Rename assert sub-package and removed duplicate methods from 0x.js's assert ↵Fabio Berger2017-11-141-77/+5
|/ | | | module
* Remove unused varFabio Berger2017-11-141-1/+0
|
* Add interface typeFabio Berger2017-11-141-2/+6
|
* Replace _.get for type safetyFabio Berger2017-11-141-6/+6
|
* Declare as stringFabio Berger2017-11-141-1/+1
|
* Fix lint and ts issuesFabio Berger2017-11-141-1/+1
|
* Switch over to Lerna + Yarn Workspaces setup for a mono-repo approachFabio Berger2017-11-1337-0/+7318