|
Ran
|
Jobs
1
|
Files
89
|
Run time
31s
|
Badge
README BADGES
|
push
travis-pro
Port pricegraph `fetch` data script to Rust (#1271) To completely remove NodeJS requirement, migrate `pricegraph-data` scripts from JS to Rust. It turns out that with `ethcontract` and the `contracts` crate, it is relatively easy! ### Test Plan It takes FOREVER to download the full orderbook, for a quick test, download a few pages: ``` $ INFURA_PROJECT_ID=... cargo run -p pricegraph-data --bin fetch [2020-08-10T07:45:09Z INFO fetch] retrieving orderbook at block 10630913 until batch 5323483 [2020-08-10T07:45:09Z INFO fetch] retrieving orderbook at block 10630913 until batch 5323484 [2020-08-10T07:45:09Z DEBUG fetch] retrieving page 0x0000…0000-0 [2020-08-10T07:45:10Z DEBUG fetch] retrieving page 0x7b2e…a196-24 [2020-08-10T07:45:11Z DEBUG fetch] retrieving page 0xb738…a513-10 ^C ``` Then inspect that the newly created encoded orderbook file matches the format of an existing one: ``` $ cat orderbook-5323483.hex | head -n 1 <a class=hub.com/gnosis/dex-services/commit/2e173510024d480d195d8875e4d55e9b6198b654">2e1735100 <a class=hub.com/gnosis/dex-services/commit/0000000000000000000000000000000000000000">000000000000001b008d6014628154509 000a 0000 00507ef5 ffffffff 0000000000000a968163f0a57b400000 00000000000000004563918244f40000 00000000000000004563918244f40000 0004 $ cat orderbook-5298183.hex | head -n 1 2e173510024d480d195d8875e4d55e9b6198b654 00000000000000000000000000000000000000000000000116860e2e71f33d91 000a 0000 00507ef5 ffffffff 0000000000000a968163f0a57b400000 00000000000000004563918244f40000 00000000000000004563918244f40000 0004 ```
11925 of 47516 branches covered (25.1%)
Branch coverage included in aggregate %.
3250 of 5121 relevant lines covered (63.46%)
28308.78 hits per line
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 3 | 4627.3 (OPEN_SOLVER_VERSION=v0.0.11 PRIVATE_SOLVER_VERSION=v0.8.2) | 0 |
28.83 |
Travis Job 4627.3 |