• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

gnosis / dex-services / 4627
31%

Build:
DEFAULT BRANCH: master
Ran 10 Aug 2020 12:37PM UTC
Jobs 1
Files 89
Run time 31s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Aug 2020 12:24PM UTC coverage: 28.83% (+0.002%) from 28.828%
4627

push

travis-pro

web-flow
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

Jobs
ID Job ID Ran Files Coverage
3 4627.3 (OPEN_SOLVER_VERSION=v0.0.11 PRIVATE_SOLVER_VERSION=v0.8.2) 10 Aug 2020 12:37PM UTC 0
28.83
Travis Job 4627.3
Source Files on build 4627
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4627
  • 53aa46cc on github
  • Prev Build on master (#4621)
  • Next Build on master (#4629)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc