Commit Graph

60 Commits

Author SHA1 Message Date
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
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
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
94cab6f694 Revert "Use different lodash import syntax which allows to include only used functions" 2017-06-22 16:21:56 +02:00
Leonid Logvinov
a1c363a8af Fall back to import x = require() syntax 2017-06-21 14:11:06 +02:00
Leonid Logvinov
40a7be0690 Use different lodash import syntax which allows to include only used functions 2017-06-21 13:56:14 +02:00
Leonid Logvinov
38170a24ed Fix bug in 0x.js tests when passing Web3 instead of Web3 Provider 2017-06-15 17:34:54 +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
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
fad23af55e Fix some tests 2017-06-10 16:07:03 +02:00
Leonid Logvinov
d727bed6ab Prefix private vars with _ 2017-06-10 15:36:52 +02:00
Fabio Berger
31cc75bd6d Fix isValidSignature tests 2017-06-08 18:02:31 +02:00
Leonid
ce3aed7236 Merge pull request #48 from 0xProject/interfaceTweaks
Interface tweaks
2017-06-08 17:21:00 +02:00
Leonid Logvinov
807e62e76e Fix linter error 2017-06-08 14:31:05 +02:00
Leonid Logvinov
a0fd89aeeb Rewrite isValidSignature tests 2017-06-08 14:24:12 +02:00
Fabio Berger
196130ff96 Make web3Wrapper protected instead of public 2017-06-08 12:06:04 +02:00
Fabio Berger
bc441015b6 add hex to function and variable name for clarity 2017-06-07 17:23:59 +02:00
Leonid
692a0fd965 Merge pull request #39 from 0xProject/senderAccount
Make methods accept senderAccount
2017-06-06 15:14:53 +02:00
Leonid Logvinov
80bbfc3f0f Last round of renamings 2017-06-06 14:10:36 +02:00
Leonid Logvinov
67e2208a18 Rename accounts to addreses 2017-06-06 12:48:00 +02:00
Leonid Logvinov
279790117b Remove message param from before 2017-06-06 12:43:20 +02:00
Leonid Logvinov
aeec2a96b0 Address feedback 2017-06-06 11:28:11 +02:00
Leonid Logvinov
bac6833436 Make methods accept senderAccount 2017-06-05 16:22:56 +02:00
Leonid Logvinov
4dc9a14aaf Add chai_setup 2017-06-05 13:07:26 +02:00
Fabio Berger
40208e3b2d Merge branch 'master' into addEventSubscriptions 2017-06-02 20:01:29 +02:00
Fabio Berger
d4320fec72 Add includeStack config to chai setup so that we get stackTraces 2017-06-02 19:38:28 +02:00
Fabio Berger
fc3be810a2 Implement zeroEx.exchange.subscribeAsync made sure to clean up subscriptions if user updates the provider 2017-06-02 12:31:16 +02:00
Fabio Berger
69a596352d Fix getOrderHashAsync test 2017-06-01 17:49:53 +02:00
Fabio Berger
24a745092e Stop passing exchangeAddress into getOrderHash and instead get it from the artifacts 2017-06-01 17:38:09 +02:00
Fabio Berger
59bc13c188 remove comment 2017-06-01 17:03:39 +02:00
Leonid Logvinov
21d00f04d4 Fix tests 2017-06-01 15:21:24 +02:00
Leonid Logvinov
dbb30aa1dd Fix linter errors 2017-06-01 11:46:57 +02:00
Leonid Logvinov
be13cf127c Refactor getOrderHash to accept order as an object 2017-05-30 17:35:17 +02:00
Fabio Berger
3522f94ff6 use .be.undefined instead of .be.an('undefined') 2017-05-30 14:26:07 +02:00
Fabio Berger
ad14c307ce Refactor exchangeWrapper and tokenRegistryWrapper to use contract getter that instantiates contract instance if not already instantiated 2017-05-30 14:23:44 +02:00
Fabio Berger
8561258ded Also test that web3Wrapper nested under tokenRegistryWrapper has updated provider 2017-05-30 12:56:10 +02:00
Fabio Berger
eefc8ca7ec add assertions that contractInstances are not undefined before provider update 2017-05-30 12:53:42 +02:00
Fabio Berger
007c57ec40 Also instantiate tokenRegistry contract instance 2017-05-30 12:52:28 +02:00
Fabio Berger
6aded80b2f remove unused import 2017-05-30 12:51:34 +02:00
Fabio Berger
a3ce892f85 Make tokenRegistry contract instantiation lazy and clear it on provider update 2017-05-30 12:43:50 +02:00
Fabio Berger
d15002a110 Add tests for setProvider 2017-05-30 12:30:38 +02:00
Fabio Berger
c536114b16 make web3Wrapper a private instance variable 2017-05-30 12:25:17 +02:00
Fabio Berger
43082b576c Fix typos 2017-05-29 16:53:07 +02:00