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

hicommonwealth / commonwealth / 22110653300
38%

Build:
DEFAULT BRANCH: master
Ran 17 Feb 2026 06:37PM UTC
Jobs 1
Files 474
Run time 1min
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

17 Feb 2026 06:27PM UTC coverage: 38.186% (+0.4%) from 37.824%
22110653300

push

github

web-flow
Implement prediction market event pipelines for slices 5-8 (Merge, Resolution, Redemption, Cancellation) (#13393)

* feat: implement prediction market event pipelines for slices 5-8

Implement the remaining four core domain slices for the Futarchy
prediction market integration:

- Slice 5 (Merge): TokensMerged EVM event pipeline — mapper, projection
  handler that inserts trades, decrements position balances, decrements
  market total_collateral
- Slice 6 (Resolution): ProposalResolved + MarketResolved EVM events,
  ResolvePredictionMarket command with author/admin auth and active
  status validation
- Slice 7 (Redemption): TokensRedeemed EVM event pipeline — mapper maps
  outcome to winning token, projection decrements winning token balance
- Slice 8 (Cancellation): CancelPredictionMarket command with
  author/admin auth, validates draft or active status

Also adds GetPredictionMarketTrades and GetPredictionMarketPositions
query endpoints, and exposes all new commands/queries via tRPC router
behind FLAG_FUTARCHY.

Completed GitHub issue #13392

Co-Authored-By: Claude <noreply@anthropic.com>

* docs: update plan

Co-Authored-By: Claude <noreply@anthropic.com>

* fix: use string types for PG DECIMAL and DATE fields in prediction market query schemas

PostgreSQL returns DECIMAL(78,0) as strings and BigInt cannot be
JSON-serialized. Created View schemas that override PG_ETH fields with
z.string() for trade and position query outputs, matching the established
LaunchpadTradeView pattern. Documented the convention in CLAUDE.md.

Co-Authored-By: Claude <noreply@anthropic.com>

* fix: view schema

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: rotorsoft <rotorsoft@outlook.com>
Co-authored-by: Claude <noreply@anthropic.com>

2107 of 6006 branches covered (35.08%)

Branch coverage included in aggregate %.

76 of 91 new or added lines in 6 files covered. (83.52%)

3774 of 9395 relevant lines covered (40.17%)

52.58 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
89.47
libs/model/src/aggregates/prediction_market/CancelPredictionMarket.command.ts
1
88.89
libs/model/src/aggregates/prediction_market/ResolvePredictionMarket.command.ts
4
0.0
libs/model/src/aggregates/prediction_market/GetPredictionMarketPositions.query.ts
4
92.7
-7.3% libs/model/src/aggregates/prediction_market/PredictionMarket.projection.ts
5
0.0
libs/model/src/aggregates/prediction_market/GetPredictionMarketTrades.query.ts
Subprojects
ID Flag name Job ID Ran Files Coverage
1 unit-test-coverage 22110653300.1 17 Feb 2026 06:37PM UTC 474
38.19
GitHub Action Run
Source Files on build 22110653300
  • Tree
  • List 474
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #22110653300
  • 11f67b0a on github
  • Prev Build on master (#22062575499)
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