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

gnosis / dex-services / 4597
31%

Build:
DEFAULT BRANCH: master
Ran 07 Aug 2020 11:53AM UTC
Jobs 1
Files 89
Run time 8s
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

07 Aug 2020 11:41AM UTC coverage: 28.59% (+0.02%) from 28.573%
4597

push

travis-pro

web-flow
Vendor artifacts (#1263)

Fixes #846 and closes #1257  

This PR adds a `contracts/src/bin/vendor.rs` script for vendoring Truffle artifact JSON files.
Additionally, these artifacts are vendored and used instead of building with Truffle.

One thing I'm not fond about vendoring is the JSON artifact files are **HUGE**. So, we also prune the JSON files a bit, only including what is used by `ethcontract`:
```
{
  abi,
  contractName,
  bytecode,
  networks,
  devdoc,
  userdoc,
}
```

This would reduce:
```
$ du -h contracts/artifacts # Before pruning
5.5M	contracts/artifacts
$ du -h contracts/artifacts # After pruning, size reduced by 97%!
172K	contracts/artifacts
```

### Test Plan

CI, and :crossed_fingers: that master won't break :see_no_evil: 

Also, run the vendor script and see no modifications:
```
$ (cd contracts; cargo run --bin vendor --features bin)
   Compiling contracts v0.1.0 (/var/home/nlordell/Developer/gnosis/dex-services/contracts)
    Finished dev [unoptimized + debuginfo] target(s) in 6.56s
     Running `/var/home/nlordell/Developer/gnosis/dex-services/target/debug/vendor`
[2020-08-06T21:42:28Z INFO  vendor] vendoring contract artifacts to '/var/home/nlordell/Developer/gnosis/dex-services/contracts/artifacts'
[2020-08-06T21:42:28Z INFO  vendor] retrieving BatchExchange from @gnosis.pm/dex-contracts@0.4.1
[2020-08-06T21:42:30Z INFO  vendor] retrieving BatchExchangeViewer from @gnosis.pm/dex-contracts@0.4.1
[2020-08-06T21:42:32Z INFO  vendor] retrieving TokenOWL from @gnosis.pm/owl-token@3.1.0
[2020-08-06T21:42:32Z INFO  vendor] retrieving TokenOWLProxy from @gnosis.pm/owl-token@3.1.0
[2020-08-06T21:42:32Z INFO  vendor] retrieving IdToAddressBiMap from @gnosis.pm/solidity-data-structures@1.2.4
[2020-08-06T21:42:33Z INFO  vendor] retrieving IterableAppendOnlySet from @gnosis.pm/solidity-data-structures@1.2.4
[2020-08-06T21:42:33Z INFO  vendor] retrieving ERC20Mintable from @openzeppelin/contracts... (continued)

11765 of 47109 branches covered (24.97%)

Branch coverage included in aggregate %.

3136 of 5010 relevant lines covered (62.59%)

12075.56 hits per line

Jobs
ID Job ID Ran Files Coverage
3 4597.3 (OPEN_SOLVER_VERSION=v0.0.11 PRIVATE_SOLVER_VERSION=v0.8.2) 07 Aug 2020 11:53AM UTC 0
28.59
Travis Job 4597.3
Source Files on build 4597
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4597
  • 24837621 on github
  • Prev Build on master (#4593)
  • Next Build on master (#4606)
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