Commit Graph

366 Commits

Author SHA1 Message Date
Leonid Logvinov
c522cd5020 Migrate events 2017-07-07 17:45:40 -07:00
Fabio Berger
6b80134f48 Merge pull request #100 from 0xProject/improveSignOrder
Improve signOrderHashAsync
2017-07-07 17:43:31 -07:00
Leonid
0876fc6cab Merge branch 'master' into cache_net_version 2017-07-07 14:08:34 -07:00
Leonid
6593ddf35c Merge pull request #97 from 0xProject/speedup-tests
Paralellize fill scenarios
2017-07-07 14:07:41 -07:00
Leonid
23f32b6bba Add noop comment 2017-07-07 14:07:26 -07:00
Leonid
f7515b489d Merge pull request #98 from 0xProject/typos
Typos
2017-07-07 13:58:26 -07:00
Fabio Berger
712a1ba36e Modify signOrderHashAsync to parse the signatureHex string as V + R + S AND R + S + V and check both for a valid signature in order to fix the issue of different nodes returning it differently 2017-07-07 13:49:02 -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
198cd364db Paralellize fill scenarios 2017-07-07 09:58:56 -07:00
Leonid Logvinov
90ddfe58a9 Rename networkId to networkIdIfExists 2017-07-06 15:43:35 -07:00
Leonid Logvinov
0f3f557e0b Fix a typo in a filename 2017-07-06 15:42:00 -07:00
Leonid Logvinov
21cb428b38 Rename RPC_NETWORK_ID to TESTRPC_NETWORK_ID 2017-07-06 15:41:27 -07:00
Leonid Logvinov
2ad6a64664 Remove only 2017-07-06 15:23:55 -07:00
Leonid Logvinov
e19c222f30 Add tests for networkId caching and invalidation 2017-07-06 15:18:56 -07:00
Leonid Logvinov
b1667cdd89 Fix comments to use web3 provider instead of web3 instance 2017-07-06 10:18:38 -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
ea6583d47e Make all fields of subscriptionOpts schema optional 2017-07-04 17:35:02 -07:00
Leonid Logvinov
464c16be73 move order hash schema to a separate file 2017-07-04 17:33:35 -07:00
Leonid Logvinov
82c1d7ca7c Add exchangeContractAddress to an order in schema tests 2017-07-04 12:29:14 -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
f39a2134b9 Add tests for order hash Schema 2017-07-04 10:05:45 -07:00
Leonid Logvinov
64cf47f297 Add tests for subscriptionOptsSchema and blockParamSchema 2017-07-03 21:59:42 -07:00
Leonid Logvinov
7d7bef2b1a Handle errors from pseudo-async subscription tests 2017-07-03 18:26:31 -07:00
Leonid
6d234c09af Merge branch 'master' into subscribe-token 2017-07-03 16:37:15 -07:00
Leonid
2892f45ab7 Merge pull request #89 from 0xProject/proxy
Add zeroEx.proxy
2017-07-03 16:24:22 -07:00
Leonid Logvinov
5a8eb77ff0 Add initial implementation and tests for zeroEx.token.subscribeAsync 2017-07-03 15:54:05 -07:00
Leonid Logvinov
1275f243a3 Add zeroEx.proxy.getAuthorizedAddressesAsync and tests 2017-07-03 15:03:33 -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
1321ea5beb Remove unused code from test/proxy_wrapper_test.ts 2017-06-29 13:15:20 -07:00
Leonid Logvinov
7ca113b59b Add a test for a ProxyWrapper 2017-06-29 13:11:50 -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
83bc740911 Make it clear that we are using a fake address in tests 2017-06-29 11:25:58 -07:00
Leonid Logvinov
91e2857645 Fix a typo in a name 2017-06-29 10:53:11 -07:00
Leonid Logvinov
e9db532727 Make getOrderHashHex a non-async function 2017-06-29 10:34:49 -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
73eb78d793 Merge pull request #81 from 0xProject/addWrappedETHSupport
Add Wrapped ETH Support
2017-06-26 13:23:02 -07:00
Fabio Berger
41098c6a35 refactor getBalanceInEthAsync to getBalanceInWeiAsync and change the test assertions to check if the discrepancy between the existing ETH balance and expected balance is small enough to simply be the gas cost used by the transaction. 2017-06-26 11:20:16 -07:00
Fabio Berger
0f413febd3 Fix typo 2017-06-26 10:30:09 -07:00
Fabio Berger
60b3f3e6dd Implement EtherTokenWrapper and tests, with deposit and withdraw methods 2017-06-25 14:50:11 -07:00