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

gnosis / dex-subgraph / 368
97%

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

pending completion
368

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

Jobs
ID Job ID Ran Files Coverage
1 368.1 06 Nov 2020 01:43PM UTC 0
96.21
Travis Job 368.1
Source Files on build 368
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #368
  • 8d9be6c4 on github
  • Prev Build on master (#365)
  • Next Build on master (#375)
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