Commit Graph

174 Commits

Author SHA1 Message Date
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
Leonid Logvinov
d727bed6ab Prefix private vars with _ 2017-06-10 15:36:52 +02:00
Leonid
f4c6097f24 Merge branch 'master' into subscribe-async-tests 2017-06-09 19:50:12 +02:00
Leonid Logvinov
5d2843ef6f Add test for zeroEx.exchange.getCanceledTakerAmountAsync 2017-06-09 18:54:12 +02:00
Leonid Logvinov
800788eca4 Fix tests 2017-06-09 18:12:45 +02:00
Leonid Logvinov
2fd5d29b40 Remove only 2017-06-09 17:57:51 +02:00
Leonid Logvinov
b63c973d14 Add LogCancel test to subscribeAsync 2017-06-09 17:49:50 +02:00
Leonid Logvinov
6d4cb28b9d Address feedback 2017-06-09 15:49:56 +02:00
Leonid
c94485dfbb Merge branch 'master' into fillOrderUpToAsync 2017-06-08 18:33:19 +02:00
Leonid Logvinov
6eb192f0ea Add tests for fillOrdersUpTo 2017-06-08 18:14:29 +02:00
Fabio Berger
2b08c04d4d Merge branch 'master' into batchFillOrKill
# Conflicts:
#	test/exchange_wrapper_test.ts
2017-06-08 18:09:47 +02:00
Leonid
d7b5212b73 Merge pull request #47 from 0xProject/is-valid-signature-contract
Refactor isValidSignature
2017-06-08 17:20:49 +02:00