Fabio Berger
1fa82c1077
Fix up missing Provider interfaces and refactor providerUtils.standardizeOrThrow()
2019-02-19 22:34:31 -08:00
Greg Hysen
500b4940a3
Improvements and conventions in utils package + abi decoder
2019-02-08 17:12:54 -08:00
Greg Hysen
6406126ae3
Merged tx decoder into AbiDecoder in utils and merged zeroex tx decoder into ContractWrappers.
2019-02-08 16:25:30 -08:00
Greg Hysen
d9c4c74a56
Added tests for ZeroExTransactionDecoder
2019-02-08 16:25:30 -08:00
Greg Hysen
5a231fb057
Prep for txData decoder tests
2019-02-08 16:25:30 -08:00
Greg Hysen
63f41df327
started writing tests for zeroex tx decoder
2019-02-08 16:25:30 -08:00
Amir Bandeali
8246dec843
Rename getTransactionHex to getTransactionHashHex for clarity
2019-02-05 09:26:03 -08:00
Fabio Berger
e021460f03
Remove .only
2019-02-05 13:09:23 +00:00
Fabio Berger
332cc14dcd
Add preSigned isValidSignature test for success case using smart contract & TS implementation
2019-02-05 13:07:40 +00:00
Leonid Logvinov
c3afc13dd6
Upgrade bignumber.js version
2019-01-15 16:25:24 +01:00
Jacob Evans
dc58c60841
Update hardcoded token addresses
2019-01-12 18:50:05 +11:00
Xianny
943c378309
Implement tslint enum-naming to enforce PascalCase on enum members ( #1474 )
2019-01-11 10:04:30 -08:00
Greg Hysen
a00e416a19
ran prettier
2019-01-07 15:50:48 -08:00
Greg Hysen
77a2ca1ddc
Minor documentation updates to dutch auction wrapper
2019-01-07 15:50:48 -08:00
Greg Hysen
c6ab380685
Ran prettier & linter
2019-01-07 15:50:48 -08:00
Greg Hysen
bbd4828340
removed .only
2019-01-07 15:50:48 -08:00
Greg Hysen
06139cbfe5
Added dutch auction utils to contract-wrappers
2019-01-07 15:50:48 -08:00
Greg Hysen
b249a50d8f
ran prettier
2019-01-07 15:50:48 -08:00
Greg Hysen
0432212a34
dutch wrapper tests working
2019-01-07 15:50:48 -08:00
Greg Hysen
7203ca90cf
all dutchie wrapper tests passing
2019-01-07 15:50:48 -08:00
Greg Hysen
5da748a062
Progress on dutch auction wrapper. Need to add auction data decoding to it.
2019-01-07 15:50:48 -08:00
Greg Hysen
43b648e7dc
Dutch wrapper
2019-01-07 15:50:48 -08:00
Fabio Berger
6fa6579c31
Use correctly formatted signature so that it rejects with the expected reason and not because the signature is mal-formatted
2018-11-12 11:57:54 +01:00
Fabio Berger
b21c1bea46
Use rejectedWith
2018-11-12 10:23:42 +01:00
Fabio Berger
857a35d4f7
Fix validateOrderFillableOrThrowAsync method so it also checks order signature, cancelled, cancelledUpTo, and throws helpful error messages
2018-11-09 00:45:48 +01:00
Jacob Evans
9f924e459c
chore: change package org from 0xproject to 0x
2018-10-18 22:27:31 +11:00
Alex Browne
5bdfad9b41
Remove ContractNotFound errors in contract-wrappers
2018-10-16 00:23:43 -07:00
Alex Browne
6f8e98e537
In contract-wrappers, remove setProvider and add unsubscribeAll method.
2018-10-15 17:35:25 -07:00
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