Alex Browne
003ab1e5b3
Fix linter errors in contract-wrappers
2018-10-15 13:38:59 -07:00
Alex Browne
c83dec22c9
Improve error handling for unknown network ids in contract-wrappers
2018-10-15 13:38:59 -07:00
Alex Browne
0e1cd9784b
Use contractAddresses directly in revert_validation_test.ts
2018-10-15 13:38:33 -07:00
Alex Browne
1e9ea09f08
Introduce new contract-addresses package and use it everywhere
2018-10-15 13:38:33 -07:00
Alex Browne
1b8b2c0b9b
Appease linter
2018-10-15 13:37:57 -07:00
Alex Browne
a48e0a08bf
Add new runMigrationsOnce method to migrations. Update contract-wrappers to use it.
2018-10-15 13:37:57 -07:00
Alex Browne
ecdd6e3303
Fix linter errors in contract-wrappers
2018-10-15 13:37:57 -07:00
Alex Browne
2bd7b0f66b
update contract_wrappers to use new artifacts and abi-gen wrappers packages
2018-10-15 13:36:59 -07:00
Alex Browne
3a7bb97ad1
Remove artifacts from migrations package and update contract-wrappers accordingly
2018-10-15 13:36:59 -07:00
Alex Browne
026ad1f9a1
Update contract-wrappers package to use new contracts package for generated files
2018-10-15 13:36:09 -07:00
Brandon Millman
22abd1dfcf
feat(contract-wrappers): add optional validation to the forwarder wrapper
...
Similar to the approach taken in exchange wrapper, make a call to an rpc
node in order to simulate the transaction before actually sending the
transaction. The decorator will parse revert reasons and other types of
errors into canonical errors that a consumer of the library expects when
interacting with a contract wrapper.
2018-10-12 14:42:31 -07:00
Jacob Evans
07926ded6e
Introduce Metamask Subprovider.
...
MM has a number of inconsistencies with other providers when implementing the JSON RPC interface. This subprovider wraps those nuances so they do not leak into the rest of our code
2018-10-05 12:00:41 +10:00
Leonid Logvinov
8c985eb579
Fix linter issue
2018-10-02 15:09:24 +02:00
Jacob Evans
21f6072186
Handle revert with reason when decoding call result
...
We use in-process ganache which throws on an RPC error. This means all of our tests get a nice revert error thrown when testing against ganache. This is not possible with RPC providers and a revert with reason result is returned. Our callAsync doesn't handle this and attempts to decode the revert with reason error log as a successful log, which results in an error while decoding.
This only works with our fork of ethers https://github.com/ethers-io/ethers.js/pull/188 and will need to be re-worked when updating to Ethers.js 4
2018-09-28 09:59:58 +10:00
Fabio Berger
d0448c2bbd
Fix bug where if block wasn't found, getBlockAsync would throw. Now it returns undefined
2018-09-24 15:02:06 +01:00
Alex Browne
9d45d19c80
More small artifacts updates/changes
2018-09-04 18:10:23 -04:00
Brandon Millman
0fd44ee2c1
Fix broken test
2018-08-27 13:53:51 -07:00
Brandon Millman
0736c41357
Add test for order validator
2018-08-27 13:04:54 -07:00
Brandon Millman
898bd75a18
Remove some unused variables in forwarder wrapper test
2018-08-27 13:04:54 -07:00
Fabio Berger
d907b40378
Fix remaining merge issues
2018-08-22 13:12:42 +01:00
Fabio Berger
0248add542
Merge development branch
2018-08-22 11:41:42 +01:00
F. Eugene Aumson
a263e7dfce
remove v2 contract artifacts
2018-08-20 16:12:09 -04:00
Fabio Berger
f29263c477
Cleanup contract-wrappers index.ts
2018-08-20 13:49:29 +01:00
Jacob Evans
1c68057999
Rename to Transaction Encoder.
...
Add tests for all encoding methods.
2018-08-18 09:32:29 +10:00
Jacob Evans
36668f9409
[Contract-wrappers] Exchange execute transaction encoder
2018-08-16 16:51:55 +10:00
Fabio Berger
1d9408a8e0
Fix additional merge conflicts
2018-08-14 14:39:59 -07:00
Brandon Millman
4f381ca1d9
Update orderFactory interface
2018-08-03 16:04:47 -04:00
Brandon Millman
82092ab50a
Rename to calldata utils
2018-08-02 16:03:19 -07:00
Brandon Millman
30c6fe08ec
Add tests
2018-08-01 20:47:59 -07:00
Brandon Millman
5d44a67e62
Update forwarder_wrapper_test
2018-07-31 00:11:29 -07:00
Brandon Millman
bc93ff0cb5
Write initial test for forwarder_wrapper
2018-07-31 00:11:29 -07:00
Brandon Millman
44498f2263
Fix spelling error in exchange wrapper tests
2018-07-31 00:11:29 -07:00
Brandon Millman
045751a430
Add getOrdersInfo to exchange_wrapper
2018-07-31 00:11:28 -07:00
Brandon Millman
a7238d0fdb
Implement initial forwarder wrapper
2018-07-30 13:58:19 -07:00
Leonid Logvinov
5044fe4fe4
Merge branch 'v2-prototype' into feature/order-watcher-v2
2018-07-18 15:40:45 +02:00
Leonid Logvinov
c71781d9ab
Merge
2018-07-18 15:38:10 +02:00
Leonid Logvinov
dad557164e
Merge branch 'v2-prototype' into feature/order-watcher-v2
2018-07-18 15:27:38 +02:00
Fabio Berger
e2fb49a8f8
Merge pull request #884 from 0xProject/export-more-0x.js
...
Export missing V2 pieces from 0x.js
2018-07-18 15:18:54 +02:00
Leonid Logvinov
f3241ff86a
Merge pull request #883 from 0xProject/feature/tslint-improvements
...
New tslint rules
2018-07-18 14:54:47 +02:00
Fabio Berger
f8dbf57582
Rename assetProxyUtils to assetDataUtils
2018-07-17 15:26:55 +02:00
Fabio Berger
59fd5c69c0
Remove no-longer needed tests
2018-07-17 13:27:41 +02:00
Leonid Logvinov
bf8ac3b9e6
Fix tslint issues
2018-07-17 12:59:02 +02:00
Leonid Logvinov
acff177c54
Merge branch 'v2-prototype' into feature/order-watcher-v2
2018-07-16 14:38:27 +02:00
Leonid Logvinov
39de9c7879
Export forgotten stuff from contract-wrappers
2018-07-13 17:38:02 +02:00
Fabio Berger
512502ca08
Export Web3ProviderEngine from subproviders package
2018-07-13 14:26:02 +02:00
Jacob Evans
0b6ea1d046
Contract Wrappers - Ether token block range
...
Start after migrations to avoid any unexpected logs
2018-07-11 20:45:18 +10:00
Leonid Logvinov
0c8264801a
Fix tests
2018-07-05 19:11:41 +02:00
Leonid Logvinov
54d1a0359f
Fix prettier
2018-07-05 17:09:14 +02:00
Leonid Logvinov
b87e48c113
Fix merge conflicts
2018-07-05 16:51:37 +02:00
Leonid Logvinov
ef890aeac4
Adjust comments
2018-07-05 15:58:42 +02:00