59 Commits

Author SHA1 Message Date
Fabio Berger
e33027c624 Merge branch 'development' into feature/receipt-status
* development: (164 commits)
  Remove old tests
  Remove unused code
  Fix tests
  Remove redundant spaces
  Don't store empty objects
  Fix a typo
  Remove duplicate operations
  Remove redundant instance variables
  Fix tests
  Remove blockStore and default to numConfirmations === 0
  Add a comment
  Store number of confirmations in a blockStore
  Remove tautology check
  Pass blockStore to eventWatcher
  Fix last merge conflicts
  Clear cache on unsubscribe
  Clear store cache on events
  Add more configs for order watcher
  Make subscribe function async and make blockStore operational
  Adjust tests to new interface
  ...

# Conflicts:
#	package.json
#	src/types.ts
#	yarn.lock
2017-11-12 21:12:37 -05:00
Fabio Berger
442f35a1fd Merge branch 'development' into orderWatcher
* development:
  0.23.0
  Update CHANGELOG
  Fix amounts in tests one last time. Now that we updated the testRPC snapshot, this should no longer be mismatched between CI and locally
  Update testRPC snapshot used by CircleCi
  Push unsubscribe to the base class rather than super
  Check for null rather than undefined
  Removed nits
  Test case was error then unsubscribe
  Clean up subscription state.
  Fix unhandled promise rejection error on subscriptions

# Conflicts:
#	src/types.ts
#	test/exchange_wrapper_test.ts
#	test/token_wrapper_test.ts
2017-11-12 20:49:48 -05:00
Leonid Logvinov
50ee23ebfa
Normalize the way we return the transaction status 2017-11-12 15:05:06 -05:00
Fabio Berger
dae5a063cf Fix amounts in tests one last time. Now that we updated the testRPC snapshot, this should no longer be mismatched between CI and locally 2017-11-12 10:43:24 -05:00
Fabio Berger
4e708c81ca Fix expected balance 2017-11-11 09:19:51 -05:00
Fabio Berger
4262ac3c89 Fix unhandled promise rejection error on subscriptions 2017-11-10 14:13:15 -05:00
Leonid Logvinov
cd3c7f1b97
Revert test amount changes 2017-11-09 17:14:10 -05:00
Fabio Berger
a8585df81b Fix tests by making the expected balance be 2^27 not 2^26 2017-11-09 10:21:38 -05:00
Leonid Logvinov
f53472e717 Add initial mempool watching implememtation 2017-10-30 18:49:16 +02:00
Leonid Logvinov
744a9b8931
Upgrade bignumber to the version with native typings and remove typings 2017-10-25 22:22:23 +03:00
Leonid Logvinov
0eaca6c691
Make logs fetching and sunscriptions more type-safe 2017-10-13 12:52:59 +03:00
Leonid Logvinov
292aab9b18
Use BlockParamLiteral types 2017-10-06 13:07:01 +03:00
Leonid Logvinov
209c31f361
Remove TODOs 2017-10-05 16:28:20 +03:00
Leonid Logvinov
7bcedc27b8
Update CHANGELOG 2017-10-05 15:43:46 +03:00
Leonid Logvinov
1b6d3b0f0b
Add missing comments 2017-10-05 15:35:37 +03:00
Leonid Logvinov
7dd6352393
Implement subscriptions based on ethereumjs-blockstream 2017-10-05 15:35:37 +03:00
Leonid Logvinov
504beeb2f3
Add filtering by topic 2017-10-04 13:30:00 +03:00
Leonid Logvinov
451ded4963
Add tests for zeroEx.exchange.getLogsAsync 2017-10-04 11:14:20 +03:00
Leonid Logvinov
087645e59f
Add tests for zeroEx.token.getLogsAsync 2017-10-04 11:14:19 +03:00
Leonid Logvinov
2b547f94a4
Change non-exhange contracts to also return txHash 2017-09-05 10:07:16 +02:00
Leonid Logvinov
1c2d4cbb1a
Fix tests descriptions 2017-09-04 16:57:22 +02:00
Leonid Logvinov
7d82d14a7d
Use zeroEx.getAvailableAddressesAsync instead of web3.eth.getAccounts 2017-08-29 18:41:29 +02:00
Leonid Logvinov
a2d579b201
Add an explanatory comment 2017-08-24 22:48:51 +02:00
Leonid Logvinov
79dcc1660e
Add a test that unlimited allowance reduces gas cost 2017-08-24 22:48:51 +02:00
Leonid Logvinov
6f227c152d
Add tests for unlimited allowance 2017-08-24 22:48:51 +02:00
Leonid Logvinov
894ade168d
Rename shouldCheckTransfer to shouldThrowOnInsufficientBalanceOrAllowance in tests 2017-08-22 16:15:10 +02:00
Leonid Logvinov
f77cc87271
Use lowercase address in tests 2017-08-22 11:02:13 +02:00
Fabio Berger
20045a438a remove unnecessary assertion and add regression test 2017-08-16 15:44:39 -07:00
Fabio Berger
a32b94bac4 Remove isUserAddressAvailable assertion from getBalanceAsync and add regression test 2017-08-16 15:34:09 -07:00
Leonid Logvinov
41f0be48f1
Use actual exception values in test names 2017-07-11 18:21:12 -07:00
Leonid Logvinov
6033c1a5d5
Use PascalCase names as string enum keys 2017-07-11 17:54:57 -07:00
Leonid Logvinov
c5dca95f89
Use .bignumber for BigNumber comparation 2017-07-04 10:31:07 -07:00
Leonid Logvinov
5611df82f9
Refactor event tests 2017-07-04 10:26:43 -07:00
Leonid Logvinov
7d7bef2b1a
Handle errors from pseudo-async subscription tests 2017-07-03 18:26:31 -07:00
Leonid Logvinov
5a8eb77ff0
Add initial implementation and tests for zeroEx.token.subscribeAsync 2017-07-03 15:54:05 -07:00
Leonid Logvinov
d789aa24aa
Make ZeroEx constructor accept Web3Provider instead of Web3 instance 2017-06-15 17:05:03 +02:00
Leonid Logvinov
365548e126
Introduce index.ts file which defines public interface 2017-06-12 18:20:43 +02:00
Leonid Logvinov
672d5aae5d
Change main file name from 0x.js.ts to 0x.ts 2017-06-12 11:33:35 +02:00
Leonid
d1d5477e8d Merge branch 'master' into chai-setup 2017-06-06 13:45:25 +02:00
Leonid Logvinov
39958be0b8
Address feedback 2017-06-06 11:38:29 +02:00
Leonid Logvinov
aeec2a96b0
Address feedback 2017-06-06 11:28:11 +02:00
Leonid Logvinov
38cf621327
Add regression test for transferFrom bug 2017-06-05 13:13:04 +02:00
Leonid Logvinov
4dc9a14aaf
Add chai_setup 2017-06-05 13:07:26 +02:00
Fabio Berger
c6ceb44682 Fix bug 2017-06-02 20:34:16 +02:00
Fabio Berger
1443c0838c Merge branch 'master' into remainingTokenMethods
# Conflicts:
#	src/types.ts
#	src/web3_wrapper.ts
2017-06-02 19:45:57 +02:00
Fabio Berger
d4320fec72 Add includeStack config to chai setup so that we get stackTraces 2017-06-02 19:38:28 +02:00
Fabio Berger
3de6559547 remove unneeded calls to toBaseUnitAmount 2017-06-02 16:38:17 +02:00
Fabio Berger
53af22a844 pass numbers to BigNumber unless it's too big for the number type 2017-06-02 16:36:25 +02:00
Fabio Berger
563d0ca4a2 use BigNumber(0) instead of with a string zero 2017-06-02 16:33:10 +02:00
Fabio Berger
21292ad15e Add balance check to transferAsync and related test 2017-06-02 16:29:12 +02:00