Commit Graph

450 Commits

Author SHA1 Message Date
Leonid Logvinov
6f227c152d Add tests for unlimited allowance 2017-08-24 22:48:51 +02:00
Leonid Logvinov
933242bd9d Change the unregistered token in tests 2017-08-24 10:05:53 +02:00
Leonid Logvinov
a41ea299e5 Add tests for tokenRegistry public getters 2017-08-24 09:59:10 +02:00
Leonid Logvinov
0d7b75801a Add test for getTokenAddressesAsync 2017-08-24 09:59:10 +02:00
Leonid Logvinov
8d6045c1d5 Add validation for the case where the order is fully filled or canceled and a test 2017-08-24 09:55:02 +02:00
Leonid Logvinov
dd9561797f Fix order validation tests 2017-08-24 09:55:02 +02:00
Leonid Logvinov
37676d338e Remove And's from names 2017-08-24 09:55:01 +02:00
Leonid Logvinov
ae1cd90b9a Separate order validation errors tests from exchange tests 2017-08-24 09:55:01 +02:00
Fabio Berger
18f2a93950 Merge pull request #131 from 0xProject/addTokenRegistryMethod
Add public method to TokenRegistry
2017-08-23 18:22:50 +02:00
Fabio Berger
98be786764 rename method for clarity since we return a Token and not tokenMetadata 2017-08-23 18:14:19 +02:00
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
Fabio Berger
9dca3b76b5 rename proxy_wrapper_test to token_transfer_proxy_wrapper_test 2017-08-23 16:58:56 +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