aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/test
Commit message (Collapse)AuthorAgeFilesLines
* Move BlockParamLiteral to shared types packageJacob Evans2018-02-073-3/+6
| | | | Also BlockParam
* Merge branch 'development' into fix/ether_token_addressLeonid2018-02-0517-144/+28
|\
| * Fix lint errorsBrandon Millman2018-01-314-5/+5
| |
| * Make an RPC constructor param implicitLeonid Logvinov2018-01-3010-10/+10
| |
| * Refactor contracts tests to not use injected web3 instanceLeonid Logvinov2018-01-3017-139/+23
| |
* | Add regression testsLeonid Logvinov2018-02-051-0/+12
| |
* | Fix linter errorsLeonid Logvinov2018-01-301-1/+0
| |
* | Add zeroEx.etherToken.getContractAddressifExistsLeonid Logvinov2018-01-301-1/+1
|/
* Add config file specifically in prettier command and fix filesFabio Berger2018-01-3024-4370/+4370
|
* Fix prettierFabio Berger2018-01-3024-4370/+4370
|
* Add shouldAddPersonalMessagePrefix param to signOrderHashAsync instead of ↵Fabio Berger2018-01-302-4/+20
| | | | trying to infer whether to add it or not from the nodeVersion
* Reject negative amounts in isValidBaseUnitAmountJacob Evans2018-01-191-0/+47
|
* Merge pull request #322 from 0xProject/fix/ci-timeLeonid2018-01-181-1/+1
|\ | | | | Speed-up CI
| * Remove trailing slashLeonid Logvinov2018-01-171-1/+1
| |
* | Fix the typosLeonid Logvinov2018-01-171-3/+3
| |
* | Fix fillOrdersUpTo balances validationLeonid Logvinov2018-01-161-0/+14
| |
* | Add a regression test for fillUpToValidationLeonid Logvinov2018-01-161-1/+18
|/
* Make some callbacks failable and add error handlingLeonid Logvinov2018-01-113-22/+27
|
* Fix linter issuesLeonid Logvinov2018-01-103-10/+1
|
* Fix callback typesLeonid Logvinov2018-01-107-155/+201
|
* Fix linter errorsLeonid Logvinov2018-01-042-2/+2
|
* Use configured version of bignumber in all packagesLeonid Logvinov2018-01-0412-12/+12
|
* Fix formattingLeonid Logvinov2018-01-031-3/+0
|
* Apply prettier configLeonid Logvinov2018-01-0322-704/+1400
|
* Merge pull request #285 from 0xProject/fix/underscorePrivateBrandon Millman2017-12-224-46/+46
|\ | | | | 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-214-5/+240
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-203-43/+43
| | |
* | | Refactor toBaseUnitAmount so that it throws if user supplies unitAmount with ↵Fabio Berger2017-12-211-0/+6
| | | | | | | | | | | | too many decimals
* | | Make assertion stricter so that one cannot submit invalid baseUnit amounts ↵Fabio Berger2017-12-211-0/+6
| |/ |/| | | | | to `toUnitAmount`
* | Add slashes to base URLsLeonid Logvinov2017-12-201-3/+3
| |
* | Fix WETH symbolLeonid Logvinov2017-12-201-1/+1
| |
* | Fix test descriptionLeonid Logvinov2017-12-201-1/+1
| |
* | Fix a typoLeonid Logvinov2017-12-201-1/+1
| |
* | Add err==null assertionsLeonid Logvinov2017-12-201-0/+4
| |
* | Add WETH9 testsLeonid Logvinov2017-12-202-3/+57
| |
* | Fix a typoLeonid Logvinov2017-12-201-1/+1
| |
* | Add etherToken.getLogsAsync and etherToken.subscribe with testsLeonid Logvinov2017-12-203-2/+179
|/
* Throw a better error message when taker is null|undefined or anything but ↵Leonid Logvinov2017-12-191-0/+9
| | | | not a string
* Fix linter issuesLeonid Logvinov2017-12-192-2/+2
|
* Rename SubscriptionOpts to BlockRangeLeonid Logvinov2017-12-192-10/+10
|
* Merge pull request #267 from 0xProject/refactor/passInEtherTokenAddressFabio Berger2017-12-192-14/+7
|\ | | | | Refactor EtherToken wrapper to accept address in method args
| * Modify the etherToken wrapper methods to accept an etherTokenAddress as the ↵Fabio Berger2017-12-172-14/+7
| | | | | | | | 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.
* | Move web3 import after subprovider imports in test web3_factoryBrandon Millman2017-12-182-4/+10
|/
* Fix redundant spacesLeonid Logvinov2017-12-162-6/+6
|
* Fix testsLeonid Logvinov2017-12-151-0/+1
|
* Fix 0x.js unused varsLeonid Logvinov2017-12-1511-59/+3
|
* Name a variableLeonid Logvinov2017-12-151-1/+2
|
* Fix a conditionalLeonid Logvinov2017-12-151-5/+1
|
* Fix linter errorsLeonid Logvinov2017-12-142-2/+2
|
* Add a function to init token balancesLeonid Logvinov2017-12-142-4/+30
|
* Rename tokenUtils.getNonProtocolTokens to tokenUtils.getDummyTokensLeonid Logvinov2017-12-144-11/+14
|
* Move more shared utils into utils package and reuse themLeonid Logvinov2017-12-1414-108/+23
|
* Refactor networkId out of web3WrapperLeonid Logvinov2017-12-082-2/+2
|
* Refactor web3Wrapper to a separate packageLeonid Logvinov2017-12-074-5/+5
|
* Use our promisifyLeonid Logvinov2017-12-022-6/+12
|
* Merge pull request #235 from 0xProject/feature/gasPriceGasLimitLeonid2017-11-295-3/+67
|\ | | | | Add optional config for gasPrice and gasLimit for every transaction sending method
| * Add a HACK commentLeonid Logvinov2017-11-291-0/+3
| |
| * Normalise subprovider namesLeonid Logvinov2017-11-293-6/+6
| |
| * Remove gas params from testsLeonid Logvinov2017-11-291-6/+0
| |
| * Add fake gas estimate suprovider for testsLeonid Logvinov2017-11-294-1/+62
| |
| * Fix testsLeonid Logvinov2017-11-281-0/+5
| |
| * Fix testsLeonid Logvinov2017-11-281-0/+1
| |
| * Update MAX_REASONABLE_GAS_COST_IN_WEILeonid Logvinov2017-11-281-1/+1
| |
* | Last remaining website fixesFabio Berger2017-11-282-2/+2
|/
* Fix testsLeonid Logvinov2017-11-281-13/+18
|
* Fix merge conflictsLeonid Logvinov2017-11-282-12/+2
|
* Merge branch 'development' into feature/passNetworkIdLeonid2017-11-285-19/+17
|\
| * Fix tests now that we no longer fire duplicate orderWatcher eventsFabio Berger2017-11-241-15/+3
| |
| * Add missing typeFabio Berger2017-11-241-1/+1
| |
| * Merge branch 'development' into validateOrdersAgainstLatestBlockFabio Berger2017-11-242-8/+10
| |\ | | | | | | | | | | | | | | | | | | * 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-5/+5
| | | | | | | | | | | | and pass 'pending' when used in the order watcher.
* | | Remove ContractDoesNotExist error and replace it with more specific errorsLeonid Logvinov2017-11-241-3/+3
| | |
* | | Add a regression testLeonid Logvinov2017-11-241-5/+23
| | |
* | | Pass networkId on provider updateLeonid Logvinov2017-11-243-3/+3
| | |
* | | Fix rebasing issuesLeonid Logvinov2017-11-242-9/+11
| | |
* | | Remove unused asyncsLeonid Logvinov2017-11-241-2/+2
| | |
* | | Fix the imports orderLeonid Logvinov2017-11-2413-104/+130
| | |
* | | Enable some new linter rules and fix the issuesLeonid Logvinov2017-11-241-5/+5
| | |
* | | Auto-fix linter errorsLeonid Logvinov2017-11-247-24/+33
| | |
* | | Don't reassign the parameterLeonid Logvinov2017-11-241-3/+3
| | |
* | | Remove even more asyncsLeonid Logvinov2017-11-243-8/+7
| | |
* | | Make exchange subscriptions non-asyncLeonid Logvinov2017-11-241-6/+6
| | |
* | | Cleanup order watcher from redundant asyncsLeonid Logvinov2017-11-243-19/+23
| | |
* | | Make zeroEx.exchange.getContractAddress non-asyncLeonid Logvinov2017-11-244-6/+5
| | |
* | | Make getZRXTokenAddress non asyncLeonid Logvinov2017-11-245-38/+11
| | |
* | | Adjust the testsLeonid Logvinov2017-11-2414-29/+73
| | |
* | | Fix CI testsLeonid Logvinov2017-11-241-1/+7
| |/ |/|
* | Rename removed to isRemovedLeonid Logvinov2017-11-241-2/+2
| |
* | Make DecodedLogEvent contain web3 log under a log subkeyLeonid Logvinov2017-11-242-8/+10
|/
* Update to Async callJacob Evans2017-11-231-3/+4
|
* Fix nitsJacob Evans2017-11-231-1/+1
|
* Merge branch 'development' into feature/calculate-remaining-proportionsJacob Evans2017-11-234-18/+175
|\
| * Add blockchainLifecycle management to the ExpirationWatcher testBrandon Millman2017-11-231-2/+6
| |
| * Merge branch 'development' into feature/orderExpiredLeonid2017-11-231-0/+3
| |\
| | * Fix testsLeonid Logvinov2017-11-221-1/+1
| | |
| | * Add instanceOf assertionLeonid Logvinov2017-11-221-0/+1
| | |
| | * Add postFormatter for logsLeonid Logvinov2017-11-221-0/+2
| | |
| * | Fix testsLeonid Logvinov2017-11-221-5/+5
| | |
| * | Address nitsLeonid Logvinov2017-11-211-7/+7
| | |
| * | Fix async callbacksLeonid Logvinov2017-11-212-13/+12
| | |
| * | Merge branch 'development' into feature/orderExpiredLeonid2017-11-212-85/+139
| |\|
| | * Fix nitsJacob Evans2017-11-161-3/+1
| | |
| | * Change to Async suffix conventionJacob Evans2017-11-161-16/+16
| | |
| | * test wordingJacob Evans2017-11-161-1/+1
| | |
| | * Add and Remove Fee Token with Maker TokenJacob Evans2017-11-161-15/+33
| | |
| * | Fix typosLeonid Logvinov2017-11-211-1/+1
| | |
| * | Rename orderLifetime to orderLifetimeSLeonid Logvinov2017-11-211-6/+6
| | |
| * | Reference types directlyLeonid Logvinov2017-11-211-4/+2
| | |
| * | Add tests for expirationWatcherLeonid Logvinov2017-11-181-0/+137
| | |
* | | add a test constant for ZRX decimalsJacob Evans2017-11-222-25/+29
| | |
* | | Add a test for when the ratio is < 1Jacob Evans2017-11-221-9/+49
| | |
* | | Remove onlyJacob Evans2017-11-221-1/+1
| | |
* | | calculatedFillableAmountPlusFeesJacob Evans2017-11-211-7/+7
| | |
* | | Unit test edge case for ZRX and ZRX partial fillJacob Evans2017-11-211-33/+44
| | |
* | | setting a failed testJacob Evans2017-11-211-11/+46
| | |
* | | Move to base unitsJacob Evans2017-11-211-9/+10
| | |
* | | Added unit test for calculatorJacob Evans2017-11-211-0/+89
| | |
* | | fix bug when fees and partial asymmetricJacob Evans2017-11-201-0/+26
| | |
* | | Remove onlyJacob Evans2017-11-201-1/+1
| | |
* | | refactor upJacob Evans2017-11-161-1/+1
| | |
* | | Use 18 decimal place unitsJacob Evans2017-11-161-1/+1
| | |
* | | Shortcut if everything satisfies in the non dependent use caseJacob Evans2017-11-161-2/+26
| | |
* | | Fix testJacob Evans2017-11-161-7/+5
| | |
* | | Initial testsJacob Evans2017-11-161-1/+34
| |/ |/|
* | Merge pull request #219 from 0xProject/feature/rounding-validationBrandon Millman2017-11-151-73/+105
|\ \ | | | | | | Rounding validation
| * | Fix testsLeonid Logvinov2017-11-141-12/+11
| | |
| * | Add a test for rounding errorLeonid Logvinov2017-11-141-0/+23
| | |
| * | Add assertions for fillableTakerAmountLeonid Logvinov2017-11-141-72/+82
| | |
* | | Merge branch 'development' into feature/addJsonSchemasBrandon Millman2017-11-152-9/+15
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| * | | Add snapshot save and revert to order_state_watcher_test.tsBrandon Millman2017-11-151-0/+6
| | |/ | |/|
| * | Renamed canceled to cancelledJacob Evans2017-11-142-9/+9
| |/
* / Add json-schemas package to mono repoBrandon Millman2017-11-141-1/+1
|/
* Fix lint and ts issuesFabio Berger2017-11-141-9/+9
|
* Switch over to Lerna + Yarn Workspaces setup for a mono-repo approachFabio Berger2017-11-1323-0/+3258