Jacob Evans
b5f85c11fe
Re-enable orderwatcher tests. Add test for WETH withdraw
2019-05-09 16:46:08 +02:00
Fabio Berger
7cd27cd9c8
Make sure we reset blockchain state
2019-03-20 13:31:55 +01:00
Jacob Evans
e28c6d6f9c
Add a regression test for #1550
2019-03-14 10:45:20 +01:00
Fabio Berger
1fa82c1077
Fix up missing Provider interfaces and refactor providerUtils.standardizeOrThrow()
2019-02-19 22:34:31 -08:00
Leonid Logvinov
c3afc13dd6
Upgrade bignumber.js version
2019-01-15 16:25:24 +01:00
Fabio Berger
5e39eae84e
Fixx request payload and expected responses
2019-01-08 15:37:50 +01:00
Fabio Berger
0ea8669552
Fixx OrderWatcher WS tests so they are completely independent from one another
2019-01-08 15:37:14 +01:00
Amir Bandeali
fd37e88bdb
Use enums in pipeline
2019-01-07 11:11:19 -08:00
Amir Bandeali
ccdb81ac40
Add tests for MAP in order watcher
2019-01-07 10:31:11 -08:00
Fabio Berger
90ee70db23
Move onMessageAsync outside of tests and add comments
2018-12-19 12:49:51 +00:00
Fabio Berger
84c8b83694
Fix WS tests to remove race-condition and be more specific about the message expected
2018-12-19 12:18:53 +00:00
Fabio Berger
e2510ed28f
Add temporary console.log to test failing on CI
2018-12-19 10:44:32 +00:00
Fabio Berger
6382f98608
Fix file name
2018-12-16 18:05:20 -08:00
Fabio Berger
a12b9e82f6
Consolidate use of isVerbose in orderWatcherConfig
2018-12-16 18:00:23 -08:00
Fabio Berger
5d0e715d9a
Add isVerbose option to enable/disable logging
2018-12-16 17:46:28 -08:00
Fabio Berger
896c8d17c1
Fix schemas and tests
2018-12-16 17:31:38 -08:00
Fabio Berger
7661cfc85e
Improve our compliance to the JSON RPC spec
2018-12-16 16:21:27 -08:00
Fabio Berger
7cafe396de
Ensure fileName matches class name, fix broadcast
2018-12-15 21:34:35 -08:00
kao
6bb2ef9238
Respond to CR
2018-12-15 01:25:23 -08:00
kao
d9b5884834
Respond to CR
2018-12-14 12:52:55 -08:00
kao
687749460d
WIP: OrderWatcher WebSocket
...
Currently incomplete. Main challenge is to figure out how to test
a client + server setup in the single-threaded javascript environment.
2018-12-12 22:39:07 -08:00
Jacob Evans
9f924e459c
chore: change package org from 0xproject to 0x
2018-10-18 22:27:31 +11: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
6c8fb370dc
Update order-watcher to use new migrations functions
2018-10-15 13:37:57 -07:00
Alex Browne
29063cab18
update order-watcher to use new artifacts and abi-gen wrappers packages
2018-10-15 13:37:56 -07:00
amaurer
2e1222556f
Changed getWatchedOrders to getStats and returns Stats object
2018-10-07 12:24:42 -04:00
amaurer
9171f9ec60
Fix lint issues
2018-10-06 11:04:48 -04:00
amaurer
bd3f101ab8
Added orderWatchCount to return total count of orders watched.
2018-10-06 10:06:34 -04:00
Fabio Berger
9eecf3683b
Add transactionHash to OrderState and emit it from OrderWatcher subscription
2018-09-25 16:10:13 +01:00
F. Eugene Aumson
a263e7dfce
remove v2 contract artifacts
2018-08-20 16:12:09 -04:00
Jacob Evans
88c99396a2
Rename OrderAlreadyCancelledOrFilled -> OrderCancelled.
...
Remove try catch of throwing errors in favour of returning the Errors in a OrderValidationResult
2018-08-16 11:12:35 +10:00
Jacob Evans
622509c508
[Order-utils] Order is valid when maker amount is very small
...
Previously our min fillable calculation would throw a rounding error
when encountering a valid order (with a small maker amount). This was
inconsistent with the on-chain logic which allowed this order to be
filled.
2018-08-15 13:06:32 +10:00
Leonid Logvinov
a1acf19ff3
Fix a bad merge
2018-07-18 16:31:17 +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
Leonid Logvinov
bf8ac3b9e6
Fix tslint issues
2018-07-17 12:59:02 +02:00
Leonid Logvinov
95e9f33f6a
Migrate order-watcher to v2
2018-07-13 17:45:25 +02:00
Fabio Berger
0df36471b7
Pass actual networkId
2018-07-05 22:24:21 +02:00
Fabio Berger
d9e308e53a
Refactor order-watcher to use Blockstream under-the-hood
2018-07-05 16:39:53 +02:00
Fabio Berger
9b196ba68c
Merge branch 'v2-prototype' into feature/combinatorial-testing
...
* v2-prototype: (97 commits)
Fix typos in comments
Add modifier and tests for removeAuthorizedAddressAtIndex
Update and add tests
Change removeAuthorizedAddress => removeAuthorizedAddressAtIndex
Move isFunctionRemoveAuthorizedAddress to test
Fix usage of `popLastByte`
Fix LibBytes is a library
Remove `areBytesEqual`
Fix usage of `contentAddress()`
Clean low bits in bytes4
Clean high bits in address
Refactor LibBytes.readBytes4 for consistency
Fix LibBytes.equals
Add trailing garbage testcase for LibBytes.equals
Rename bytes.equals
Add slice and sliceDestructive
Rename bytes.rawAddress and add bytes.contentAddress
Rename read/writeBytesWithLength
Using LibBytes for bytes
Make LibBytes a library
...
# Conflicts:
# packages/contracts/src/utils/constants.ts
# packages/contracts/test/exchange/core.ts
2018-06-25 11:49:14 +02:00
Alex Browne
4012e31115
Use make-promises-safe as a preloader instead of manually importing
2018-06-21 19:17:33 -07:00
Fabio Berger
3eb232b3fc
For some reason order-watcher tests were timeing out so I increased the timeout limit
2018-06-13 13:18:19 +02:00
Fabio Berger
e1879ef4d9
Fix no-unused-variable tslint rule to include parameters and fix issues
2018-06-11 23:42:30 +02:00
Fabio Berger
73cc2a140c
- Refactor remainingFillableCalculator so it can be used for the maker and taker side
...
- Moved the tests over from order-watcher
- Did some token -> asset renaming
2018-06-07 18:03:50 +02:00
fragosti
870eca0d9f
Run prettier
2018-06-06 16:59:28 -07:00
fragosti
e75721016e
Fix linting issues
2018-06-06 16:43:05 -07:00
fragosti
a97d77064a
Get build and tests to pass
2018-06-06 15:26:40 -07:00
fragosti
9778695b4a
Try enabling no-unused-variable...
2018-06-04 19:48:21 -07:00
Amir Bandeali
8f2fd9b603
Rename Signer to Wallet, rename GAS_ESTIMATE to GAS_LIMIT
2018-05-30 17:11:31 -07:00