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

gnosis / dex-subgraph / 368 / 1
97%
master: 97%

Build:
DEFAULT BRANCH: master
Ran 06 Nov 2020 01:43PM UTC
Files 11
Run time 1s
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

06 Nov 2020 01:36PM UTC coverage: 96.209% (+0.07%) from 96.135%
368.1

push

travis-pro

web-flow
Move solution stat collection into onSolutionSubmission (#144)

This PR moves the collection of solution specific details such as solver, objective value, utility, etc from the first `onTrade` handler to a specific `onSolutionSubmission` handler. Main motivation for this is that we want to record global stats such as fees, utility, volume and for that it's simpler to use a designated top level handler (it would be possible using todays setup but involve much more computation e.g. when deriving the utility of a certain traded). On the contrary, utility in OWL is part of the SolutionSubmission event already.

In this PR I'm mainly changing the status quo. In the next PR I will be adding a global Stat entity that also gets populated inside the onSolutionSubmission method.

It has the nice side effect that we no longer need to mock the call to `latestSolution` in our unit tests.

### Test Plan

CI

406 of 422 relevant lines covered (96.21%)

7.86 hits per line

Source Files on job 368.1
  • Tree
  • List 0
  • Changed 11
  • Source Changed 2
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 82
  • Travis Job 368.1
  • 8d9be6c4 on github
  • Prev Job for on master (#365.1)
  • Next Job for on master (#375.1)
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