185 Commits

Author SHA1 Message Date
Brandon Millman
d21fbbc4c8 Fixed nits 2017-09-28 08:44:29 -07:00
Brandon Millman
333665370f Add tests 2017-09-27 17:12:38 -07:00
Leonid Logvinov
ee0adc8a7e
Add a test for getZRXTokenAddressAsync 2017-09-26 11:57:32 +02:00
Leonid Logvinov
a7b2131db7
Decode logs args in awaitTransactionMinedAsync 2017-09-05 18:45:20 +02:00
Leonid Logvinov
2b547f94a4
Change non-exhange contracts to also return txHash 2017-09-05 10:07:16 +02:00
Leonid Logvinov
c9e490bdae
Implement zeroEx.awaitTransactionMined 2017-09-04 19:08:14 +02:00
Leonid Logvinov
1ad395cf86
Make the functions immidiately return txHash instead of awaiting for a transaction to be mined 2017-09-04 18:14:48 +02:00
Leonid Logvinov
7d82d14a7d
Use zeroEx.getAvailableAddressesAsync instead of web3.eth.getAccounts 2017-08-29 18:41:29 +02:00
Leonid Logvinov
ae1cd90b9a
Separate order validation errors tests from exchange tests 2017-08-24 09:55:01 +02:00
Leonid Logvinov
894ade168d
Rename shouldCheckTransfer to shouldThrowOnInsufficientBalanceOrAllowance in tests 2017-08-22 16:15:10 +02:00
Leonid Logvinov
b2b5abadb2
Rename internally Proxy to TokenTransferProxy 2017-08-22 13:28:05 +02:00
Leonid Logvinov
73e8f890b5
Remove unused imports 2017-07-25 22:25:56 +02:00
Leonid Logvinov
4dda6c0949
Factor out order validation tests 2017-07-25 22:25:56 +02:00
Leonid Logvinov
defd09459d
Cover all possible branches of order validation errors with tests 2017-07-25 22:25:56 +02:00
Leonid Logvinov
bdbd01f965
Add a test: should throw when maker has balance to cover fees or transfer but not both 2017-07-25 22:25:56 +02:00
Leonid Logvinov
6033c1a5d5
Use PascalCase names as string enum keys 2017-07-11 17:54:57 -07:00
Leonid Logvinov
fbf89aea1c
Make getOrderHashHex static 2017-07-11 17:45:35 -07:00
Leonid Logvinov
8052625e76
Migrate to using a single Exchange contract 2017-07-11 16:15:08 -07:00
Leonid Logvinov
a8c9945a0f Migrate events 2017-07-11 00:30:14 -07:00
Leonid
f7515b489d Merge pull request #98 from 0xProject/typos
Typos
2017-07-07 13:58:26 -07:00
Fabio Berger
e9509b4ff3 Remove space after it keywork in tests 2017-07-07 11:50:23 -07:00
Leonid Logvinov
96596b1c2b
Rename batchCancelOrderAsync to batchCancelOrdersAsync 2017-07-07 10:31:22 -07:00
Leonid Logvinov
c0a90fe84e
Rename batchFillOrderAsync to batchFillOrdersAsync 2017-07-07 10:31:02 -07:00
Leonid Logvinov
9a9fd7d926
Move zeroEx.exchange.getAvailableContractAddressesAsync to zeroEx.getAvailableExchangeContractAddressesAsync and zeroEx.exchange.getProxyAuthorizedContractAddressesAsync to zeroEx.getProxyAuthorizedExchangeContractAddressesAsync 2017-07-05 14:18:46 -07:00
Leonid Logvinov
7d7bef2b1a
Handle errors from pseudo-async subscription tests 2017-07-03 18:26:31 -07:00
Leonid
2892f45ab7 Merge pull request #89 from 0xProject/proxy
Add zeroEx.proxy
2017-07-03 16:24:22 -07:00
Leonid Logvinov
dacf19ecae
Make proxy wrapper public on zeroEx instance 2017-07-03 14:48:11 -07:00
Leonid Logvinov
3a4a3b9aa1
Fix merge problems 2017-07-03 14:35:13 -07:00
Leonid
86c742cb11 Merge branch 'master' into wrap-log-bignumber 2017-07-03 14:31:40 -07:00
Leonid
8204409c6d Merge branch 'master' into add-exchange-address-to-order-struct 2017-07-03 12:05:46 -07:00
Leonid Logvinov
0e54418dbb
Wrap all event args in a newer version of BigNumber and test it 2017-07-01 19:44:17 -07:00
Leonid Logvinov
c0d4b30828
Assert correct event names in subscribeAsync tests 2017-07-01 08:39:57 -07:00
Leonid Logvinov
c5a93b0945
Fix comment 2017-06-30 14:21:58 -07:00
Leonid Logvinov
6aa37ad3e4
Add tests for getProxyAuthorizedContractAddressesAsync 2017-06-29 13:41:35 -07:00
Leonid Logvinov
fa3963199e
Make zeroEx.getOrderHashHex non-async 2017-06-29 12:54:41 -07:00
Leonid Logvinov
e1e79519b9
Fix typo in getAvailableContractAddressesAsync 2017-06-29 12:54:03 -07:00
Leonid Logvinov
de0e436aad
Allow multiple exchange versions t be functional at the same time 2017-06-26 19:44:21 -07:00
Leonid Logvinov
bd9fa3d335
Add test for return amount from fillOrdersUpToAsync 2017-06-22 14:15:35 +02:00
Leonid Logvinov
b28b0fad7a
Add test for cancelOrderAsync return value 2017-06-22 13:45:43 +02:00
Leonid Logvinov
d088dcdd36
Add simple test checking that fillOrderAsync return filled amount 2017-06-22 00:16:35 +02:00
Leonid Logvinov
42c61ecda5
Return filledAmount from fillOrderAsync 2017-06-21 17:55:21 +02:00
Leonid Logvinov
d789aa24aa
Make ZeroEx constructor accept Web3Provider instead of Web3 instance 2017-06-15 17:05:03 +02:00
Leonid Logvinov
ba289c2843
Remove types that are not used in public interface from export and rename EventEmitter to ContractEventEmitter and IndexFilterValues to IndexedFilterValues 2017-06-14 11:27:33 +02:00
Leonid Logvinov
ac8116bbe4
Address feedback 2017-06-13 18:08:18 +02:00
Leonid Logvinov
96a93c4b35
Add tests for stopWatchingAsync 2017-06-13 17:39:43 +02:00
Leonid Logvinov
6ad1900ada
Refactor subscription to return zeroExSignature object 2017-06-13 15:52:50 +02:00
Leonid Logvinov
52dc6b7710
Add getContractAddressAsync and tests 2017-06-13 13:29:02 +02:00
Leonid Logvinov
6cdd90e18b
Fix test 2017-06-12 19:03:16 +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