5149 Commits

Author SHA1 Message Date
Leonid Logvinov
dc34492898
Fix paths in circle.yml 2017-05-26 17:30:51 +02:00
Leonid Logvinov
65caf64441
Add contracts deployment and copying the artefacts to circle.ym 2017-05-26 17:28:28 +02:00
Leonid Logvinov
a2f283379d
Add testrpc as a dependency and a command for running it 2017-05-26 17:25:00 +02:00
Fabio Berger
555bac19cb Setup blockchain snapshotting before/after every test, implemented unit tests for exchangeWrapper.isValidSignature 2017-05-26 17:12:22 +02:00
Fabio Berger
f4bf9fc423 Add missing semi-colon 2017-05-26 17:10:12 +02:00
Fabio Berger
5a6df03b64 cleanup isValidSignature method 2017-05-26 17:10:02 +02:00
Fabio Berger
123cfb7c00 Add missing require 2017-05-26 17:09:47 +02:00
Fabio Berger
e545ade857 Spacing and import re-order 2017-05-26 17:09:34 +02:00
Fabio Berger
3cf25d0787 Postfix test files with _test 2017-05-26 17:08:45 +02:00
Leonid Logvinov
c5cc388a59
Remove unused bignum import 2017-05-26 15:08:44 +02:00
Leonid Logvinov
97fc77d8e9
Remove es6 target 2017-05-26 15:00:40 +02:00
Fabio Berger
6d7625296b include jsonschema type defs 2017-05-26 14:51:21 +02:00
Leonid Logvinov
fec5fb19c9
Extract artifacts list to a variable 2017-05-26 14:06:40 +02:00
Fabio Berger
9f16316567 Merge branch 'master' into implementFirstExchangeMethod
# Conflicts:
#	package.json
#	src/ts/0x.js.ts
#	src/ts/globals.d.ts
#	src/ts/types.ts
2017-05-26 13:29:19 +02:00
Fabio Berger
4465313df3 Include JSON file loader in webpack 2017-05-26 13:24:25 +02:00
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