49 Commits

Author SHA1 Message Date
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
Fabio Berger
eeac90c1a2 Add tests for transferFromAsync, setAllowanceAsync and getAllowanceAsync and fix up other test issues 2017-06-02 16:16:31 +02:00
Leonid Logvinov
4d43f4d610
Address feedback 2017-05-31 17:54:01 +02:00
Leonid Logvinov
9409e0aba1
Add transfer function and tests for it 2017-05-31 11:16:57 +02:00
Fabio Berger
5e6818d3ef remove unused imports 2017-05-30 16:36:38 +02:00
Fabio Berger
8df2926a1a Add test for setProxyAllowanceAsync and additional test for getProxyAllowanceAsync 2017-05-30 16:31:02 +02:00
Fabio Berger
f066b52143 remove spaces after it keyword 2017-05-30 15:28:45 +02:00
Fabio Berger
53e83a7d81 Add first test for getProxyAllowanceAsync 2017-05-30 15:28:21 +02:00
Fabio Berger
86cdb6cb83 use token instead of erc20 2017-05-30 14:53:25 +02:00
Fabio Berger
2c3b718a4f rename erc20Wrapper to tokenWrapper to be more generic in case we end up supporting another spec 2017-05-30 14:48:41 +02:00