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

safe-global / safe-client-gateway / 43251112909
92%

Build:
DEFAULT BRANCH: main
Ran 12 Nov 2026 03:46PM UTC
Jobs 4
Files 1103
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

12 Nov 2026 03:44PM UTC coverage: 91.611% (+0.6%) from 91.043%
43251112909

push

github

web-flow
feat(portfolio): add batched portfolio summaries (#3742)

* feat(balances): add batched portfolio-summary snapshots

Add GET /v2/portfolio/summaries. It returns each Safe's fiat value from the
Zerion wallet-portfolio snapshot shared with /v2/safes, with the snapshot's
total, 1-day change, distributions by chain and type, and fetch and expiry
times. Chains Zerion does not list fall back to the Transaction Service.

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

* fix(balances): import ZerionModule and address review feedback

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

* docs(balances): state that fiatTotalByType covers the whole address

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

* feat(portfolio): sum portfolio summaries from the /positions snapshot

GET /v2/portfolio/summaries now reads the snapshot GET /v1/portfolio
caches: one Zerion /positions call per wallet and environment. Each
Safe's value, and the totals per chain and per position type, are summed
from its token and position rows with the same trusted and dust filters
as the Assets page, so the selector, Home and Assets show one number.

- The /v1/portfolio cache entry now stores fetchedAt and expiresAt.
  Entries cached before have none and are refetched once by the
  summaries route; GET /v1/portfolio reads both forms.
- A summaries cache miss spends the shared Zerion budget first; over
  budget, the Safe falls back to the Transaction Service.
- The route moves to the portfolio module (routes/v2), next to the
  snapshot it reads. The /portfolio-based snapshot changes to the
  balances module are reverted, so /v2/safes is unchanged.
- The 1-day change is dropped; expiresAt is documented as approximate.
- FiatCodeSchema upper-cases the code; a non-Safe address logs at debug;
  mocks drop the redundant `as unknown`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yNBUwcveCbx6xanCevFt2

* fix(portfo... (continued)

5334 of 6048 branches covered (88.19%)

Branch coverage included in aggregate %.

143 of 143 new or added lines in 8 files covered. (100.0%)

1 existing line in 1 file now uncovered.

13230 of 14216 relevant lines covered (93.06%)

366.99 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
86.67
-5.0% src/modules/notifications/routes/v1/notifications.controller.ts
Jobs
ID Job ID Ran Files Coverage
1 run-integration-tests-2 - 43251112909.1 12 Nov 2026 03:46PM UTC 1103
42.23
GitHub Action Run
2 run-integration-tests-1 - 43251112909.2 12 Nov 2026 03:46PM UTC 1103
40.66
GitHub Action Run
3 run-integration-tests-3 - 43251112909.3 12 Nov 2026 03:46PM UTC 1103
46.21
GitHub Action Run
4 run-unit-tests - 43251112909.4 12 Nov 2026 03:46PM UTC 1103
69.29
GitHub Action Run
Source Files on build 43251112909
  • Tree
  • List 1103
  • Changed 38
  • Source Changed 5
  • Coverage Changed 38
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #43251112909
  • 5a3d2478 on github
  • Prev Build on main (#43245601597)
  • Next Build on main (#43254907307)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc