12984 Commits

Author SHA1 Message Date
Fabio Berger
e1e50bba3d Fix web3 imports again 2017-05-26 13:24:05 +02:00
Fabio Berger
8c61af28db Fix web3 imports 2017-05-26 12:57:37 +02:00
Fabio Berger
ff403f3f8f Copy over artifacts to lib folder onBuild 2017-05-26 12:57:22 +02:00
Leonid
f338c68f12 Merge pull request #13 from 0xProject/getOrderHash
Port getOrderHash and write tests for it
2017-05-26 12:41:51 +02:00
Leonid Logvinov
3195741ebc
Address feedback 2017-05-26 12:17:31 +02:00
Leonid Logvinov
183e8a7138
Address feedback 2017-05-25 20:29:33 +02:00
Leonid Logvinov
f75595c6cd
Change the order of params in isValidSignatureAsync to be consistent 2017-05-25 20:12:55 +02:00
Leonid Logvinov
8e35923d6e
Fix exchange type 2017-05-25 20:12:13 +02:00
Leonid Logvinov
b9892c0d49
Remove unused imports 2017-05-25 20:11:48 +02:00
Fabio Berger
bc8fc53433 Add initial exchange contract function, set up web3Wrapper, added types and utils 2017-05-25 19:47:11 +02:00
Fabio Berger
74e7dc46b4 Add npm command to update contact artifacts 2017-05-25 19:45:44 +02:00
Leonid Logvinov
f2f39d9eb2
Port getOrderHash 2017-05-25 17:24:29 +02:00
Fabio Berger
f7b8378a6e Merge pull request #11 from 0xProject/isValidOrderHash
Port isValidOrderHash and tests
2017-05-25 13:57:40 +02:00
Leonid Logvinov
f3cfd3e708
Get rid of ETH 2017-05-25 13:54:56 +02:00
Leonid Logvinov
612019f5e7
Fix comment 2017-05-25 13:53:54 +02:00
Leonid Logvinov
3fe582d94c
Fix tests 2017-05-25 13:50:05 +02:00
Leonid Logvinov
00b6401452
Fix braces 2017-05-25 13:47:04 +02:00
Leonid
b43cc8f52c Merge branch 'master' into isValidOrderHash 2017-05-25 13:44:19 +02:00
Leonid Logvinov
eee06e0cc9
Address feedback 2017-05-25 13:42:53 +02:00
Fabio Berger
dfb7b039f1 Merge pull request #12 from 0xProject/addToUnitStatic
Add toUnitAmount and toBaseUnitAmount static helpers and tests
2017-05-25 13:40:15 +02:00
Fabio Berger
12aa9a29e4 Add toUnitAmount and toBaseUnitAmount static helpers and tests 2017-05-25 13:19:46 +02:00
Leonid Logvinov
74a80c28d3
Remove type aliases 2017-05-25 13:02:15 +02:00
Leonid
dc1ca23e30 Merge branch 'master' into isValidOrderHash 2017-05-25 12:53:37 +02:00
Leonid Logvinov
5d64b562c6
Fix tests 2017-05-25 12:52:31 +02:00
Leonid Logvinov
00a16b37e0
Remove HexString type 2017-05-25 12:28:28 +02:00
Fabio Berger
b1a6c895cc Merge pull request #10 from 0xProject/addSchemas
Add schema validation
2017-05-25 12:27:49 +02:00
Fabio Berger
2117b4e0c8 Use expect.to.throw 2017-05-25 12:23:13 +02:00
Fabio Berger
ec2d3cc599 Merge branch 'master' into addSchemas
# Conflicts:
#	package.json
2017-05-25 12:11:12 +02:00
Fabio Berger
56dfe6b2ff remove stray console log 2017-05-25 12:10:08 +02:00
Fabio Berger
a5550a0b58 rename v to validator for clarity 2017-05-25 12:09:50 +02:00
Leonid Logvinov
5be5debdf1
Port isValidOrderHash and tests 2017-05-25 12:08:54 +02:00
Fabio Berger
bcfb1a699a Fix malformed tests to check for thrown assertion 2017-05-25 12:08:49 +02:00
Fabio Berger
ae47981669 Pretty print passed in order and schema validation errors in thrown assertion 2017-05-25 12:08:21 +02:00
Fabio Berger
fa559377c8 Improve ECSignature schema to check signature parameters and that v is 27 or 28 2017-05-25 12:06:38 +02:00
Leonid
334d2f175f Merge pull request #9 from 0xProject/generateSalt
Add generateSalt and tests for it
2017-05-25 11:48:21 +02:00
Leonid Logvinov
8fe580ea52
More descriptive comment 2017-05-25 11:38:01 +02:00
Fabio Berger
0b8ddc1ee1 Add schema validation and assertion, create ECSignature schema 2017-05-25 11:27:27 +02:00
Leonid Logvinov
7c40fee2ad
Add lodash 2017-05-25 11:24:44 +02:00
Leonid Logvinov
55c491f8ea
Add generateSalt and tests for it 2017-05-25 11:19:14 +02:00
Fabio Berger
d23dbf53fd Fix test that was passing an invalid address (now caught by our assertions), to instead pass a valid but unrelated address as the test name suggests 2017-05-25 11:00:20 +02:00
Fabio Berger
755c980a56 Add assertions library and add them for all function args 2017-05-25 10:58:40 +02:00
Leonid
140a160ba0 Merge pull request #8 from 0xProject/isSignatureValid
Add isSignatureValid method and tests for it
2017-05-24 19:25:24 +02:00
Leonid Logvinov
945a583e89
Address feedback 2017-05-24 19:23:35 +02:00
Leonid Logvinov
d8670e5768
Add node types 2017-05-24 19:06:07 +02:00
Leonid Logvinov
762db7961e
Add test for malformed s 2017-05-24 19:01:19 +02:00
Leonid Logvinov
522300c0ab
change tests descriptions 2017-05-24 18:58:31 +02:00
Leonid Logvinov
7a566c6988
Add test vector source 2017-05-24 18:50:14 +02:00
Leonid Logvinov
6470cf54e3
Type the ethereumjs-util 2017-05-24 18:49:19 +02:00
Leonid Logvinov
568b9fe742
Define node version in circleCI 2017-05-24 18:19:02 +02:00
Leonid Logvinov
af3cb84ff9
Add isSignatureValid method and tests for it 2017-05-24 18:06:58 +02:00