121 Commits

Author SHA1 Message Date
Leonid Logvinov
278f68ae77
Fix the typos 2018-01-17 16:22:47 +01:00
Leonid Logvinov
89d6326a83
Fix fillOrdersUpTo balances validation 2018-01-16 11:22:04 +01:00
Leonid Logvinov
8b81ea162f
Add a regression test for fillUpToValidation 2018-01-16 11:08:17 +01:00
Leonid Logvinov
292c3bbff8
Make some callbacks failable and add error handling 2018-01-11 13:22:04 +01:00
Leonid Logvinov
bef056b084
Fix linter issues 2018-01-10 11:24:38 +01:00
Leonid Logvinov
c8c86c44f8
Fix callback types 2018-01-10 11:24:37 +01:00
Leonid Logvinov
c49f68ef3e
Fix linter errors 2018-01-04 14:53:38 +01:00
Leonid Logvinov
4dfa720f2d
Use configured version of bignumber in all packages 2018-01-04 12:38:19 +01:00
Leonid Logvinov
d46fcb33c5
Fix formatting 2018-01-03 11:42:20 +01:00
Leonid Logvinov
e744e4cd98
Apply prettier config 2018-01-03 11:37:38 +01:00
Brandon Millman
cb3582289f
Merge pull request #285 from 0xProject/fix/underscorePrivate
Add new underscore-privates rule to @0xproject/tslint-config and fix …
2017-12-21 13:16:25 -05:00
Fabio Berger
b94d13b413 Refactor toBaseUnitAmount so that it throws if user supplies unitAmount with too many decimals 2017-12-21 09:34:50 +01:00
Fabio Berger
85e16c1233 Make assertion stricter so that one cannot submit invalid baseUnit amounts to toUnitAmount 2017-12-21 09:33:57 +01:00
Brandon Millman
2d53b7d9a4 Add some missed underscores, update changelog and comments 2017-12-20 19:08:11 -05:00
Brandon Millman
23052a5c2e Merge branch 'development' into fix/underscorePrivate
* 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
  ...
2017-12-20 19:07:54 -05:00
Leonid Logvinov
5d4078bcf4
Add slashes to base URLs 2017-12-20 16:25:41 +01:00
Brandon Millman
cb11aec84d
Add new underscore-privates rule to @0xproject/tslint-config and fix lint errors 2017-12-20 15:30:25 +01:00
Leonid Logvinov
d05a36deed
Fix WETH symbol 2017-12-20 15:02:22 +01:00
Leonid Logvinov
455f74d449
Fix test description 2017-12-20 14:45:35 +01:00
Leonid Logvinov
01bc254cd0
Fix a typo 2017-12-20 14:45:13 +01:00
Leonid Logvinov
2a7cafbf20
Add err==null assertions 2017-12-20 14:44:54 +01:00
Leonid Logvinov
d639a22cff
Add WETH9 tests 2017-12-20 14:02:25 +01:00
Leonid Logvinov
78eb79396e
Fix a typo 2017-12-20 14:02:24 +01:00
Leonid Logvinov
613fada49f
Add etherToken.getLogsAsync and etherToken.subscribe with tests 2017-12-20 14:01:59 +01:00
Leonid Logvinov
75f637bd75
Throw a better error message when taker is null|undefined or anything but not a string 2017-12-19 16:22:57 +01:00
Leonid Logvinov
436d78eb93
Fix linter issues 2017-12-19 12:10:43 +01:00
Leonid Logvinov
1e4fdcf615
Rename SubscriptionOpts to BlockRange 2017-12-19 12:10:43 +01:00
Fabio Berger
79bd416c61
Merge pull request #267 from 0xProject/refactor/passInEtherTokenAddress
Refactor EtherToken wrapper to accept address in method args
2017-12-19 10:23:07 +01:00
Brandon Millman
4dc6694651 Move web3 import after subprovider imports in test web3_factory 2017-12-17 23:30:14 -05:00
Fabio Berger
1f748afed9 Modify the etherToken wrapper methods to accept an etherTokenAddress as the 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. 2017-12-17 00:32:53 -06:00
Leonid Logvinov
c8e52882ca
Fix redundant spaces 2017-12-15 18:44:13 +01:00
Leonid Logvinov
818a50a3fb
Fix tests 2017-12-15 15:32:10 +01:00
Leonid Logvinov
274aa50d74
Fix 0x.js unused vars 2017-12-15 13:30:19 +01:00
Leonid Logvinov
a63061f5b2
Name a variable 2017-12-14 17:15:07 +01:00
Leonid Logvinov
f7f4b6da8d
Fix a conditional 2017-12-14 17:12:18 +01:00
Leonid Logvinov
4391f9913e
Fix linter errors 2017-12-14 15:47:03 +01:00
Leonid Logvinov
28c409fc6d
Add a function to init token balances 2017-12-14 15:47:03 +01:00
Leonid Logvinov
449a04d39c
Rename tokenUtils.getNonProtocolTokens to tokenUtils.getDummyTokens 2017-12-14 15:47:03 +01:00
Leonid Logvinov
cb596c1413
Move more shared utils into utils package and reuse them 2017-12-14 15:47:02 +01:00
Leonid Logvinov
b362e2c28e
Refactor networkId out of web3Wrapper 2017-12-08 12:51:46 +03:00
Leonid Logvinov
f1b267cc9f
Refactor web3Wrapper to a separate package 2017-12-06 20:55:09 +03:00
Leonid Logvinov
78fb8d2bdc
Use our promisify 2017-12-01 23:31:50 -06:00
Leonid
a98d6bf496
Merge pull request #235 from 0xProject/feature/gasPriceGasLimit
Add optional config for gasPrice and gasLimit for every transaction sending method
2017-11-28 14:37:33 -06:00
Leonid Logvinov
9f5e724aec
Add a HACK comment 2017-11-28 12:13:50 -06:00
Leonid Logvinov
50bf6a991d
Normalise subprovider names 2017-11-28 12:12:25 -06:00
Leonid Logvinov
d6a9e7520d
Remove gas params from tests 2017-11-28 11:51:10 -06:00
Leonid Logvinov
36b21e6e7b
Add fake gas estimate suprovider for tests 2017-11-28 11:44:10 -06:00
Fabio Berger
78f0ab3682 Last remaining website fixes 2017-11-27 22:23:51 -06:00
Leonid Logvinov
0500602ac3
Fix tests 2017-11-27 17:38:38 -06:00
Leonid Logvinov
082c5c375e
Fix tests 2017-11-27 17:37:55 -06:00