Commit Graph

389 Commits

Author SHA1 Message Date
Fabio Berger
2a7da4fc4f use non-checksummed address 2017-08-23 18:13:26 +02:00
Fabio Berger
fedded3ec1 Add public method getTokenMetadataIfExistsAsync to TokenRegistry wrapper, refactor getTokensAsync to use getTokenMetadataIfExistsAsync under the hood and added unit tests 2017-08-23 17:27:54 +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
c10a2d4fe4 Put the last test address on it's own line 2017-08-22 11:08:45 +02:00
Leonid Logvinov
f77cc87271 Use lowercase address in tests 2017-08-22 11:02:13 +02:00
Leonid Logvinov
52ac8c2251 Reject checksummed addresses 2017-08-22 11:00:44 +02:00
Fabio Berger
dd6997423f Merge pull request #118 from 0xProject/artifacts-update
Update artifacts with the latest mainnet version
2017-08-21 07:02:50 -05:00
Fabio Berger
b5bfcc772a set default value to hasAddresses boolean 2017-08-16 21:06:41 -07: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
9099ef4ee5 Remove url from token registry 2017-08-14 19:32:41 -05:00
Leonid Logvinov
660aa224ca Indent callbacks 2017-07-25 22:25:57 +02:00
Leonid Logvinov
c6e0acdb04 Rearrange imports 2017-07-25 22:25:57 +02:00
Leonid Logvinov
73e8f890b5 Remove unused imports 2017-07-25 22:25:56 +02:00
Leonid Logvinov
c11ba988c7 Fix tests 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
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
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
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