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

safe-global / safe-client-gateway / 19732484228
89%

Build:
DEFAULT BRANCH: main
Ran 27 Nov 2025 10:06AM UTC
Jobs 2
Files 1018
Run time 3min
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

27 Nov 2025 10:03AM UTC coverage: 90.137% (-0.04%) from 90.176%
19732484228

push

github

web-flow
feat(portfolio): add X-Env testnet header for Zerion API requests (#2806)

* feat(portfolio): add X-Env testnet header for Zerion API requests

Add support for Zerion's testnet API by including the `X-Env: testnet`
header when querying testnet chains. The header is automatically applied
based on the chain's `isTestnet` property.

Changes:
- Update zerion-balances-api.service to use chain.isTestnet
- Update zerion-positions-api.service to use chain.isTestnet
- Update zerion-portfolio-api.service with isTestnet parameter
- Infer isTestnet from chainIds in portfolio API service
- Add separate cache entries for testnet vs mainnet portfolio data

🤖 Generated with [Claude Code](https://claude.com/claude-code)

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

* test(balances): add unit tests for getZerionHeaders helper

Add comprehensive tests for the Zerion API headers helper function
covering mainnet/testnet scenarios and undefined apiKey edge cases.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

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

* refactor(cache): simplify getZerionChainsCacheDir parameter

Use plain boolean parameter instead of object wrapper since there's only
one parameter. Addresses PR review feedback.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

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

---------

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

2858 of 3551 branches covered (80.48%)

Branch coverage included in aggregate %.

21 of 34 new or added lines in 7 files covered. (61.76%)

3 existing lines in 2 files now uncovered.

13829 of 14962 relevant lines covered (92.43%)

619.78 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
91.67
-8.33% src/modules/portfolio/v1/portfolio.service.ts
2
94.44
-2.4% src/datasources/cache/cache.router.ts
10
11.16
0.19% src/modules/portfolio/datasources/zerion-portfolio-api.service.ts

Uncovered Existing Lines

Lines Coverage ∆ File
1
93.51
-2.6% src/modules/notifications/routes/v1/notifications.controller.ts
2
11.16
0.19% src/modules/portfolio/datasources/zerion-portfolio-api.service.ts
Jobs
ID Job ID Ran Files Coverage
1 run-unit-tests - 19732484228.1 27 Nov 2025 10:10AM UTC 1974
88.57
GitHub Action Run
2 run-integration-tests - 19732484228.2 27 Nov 2025 10:06AM UTC 1901
53.67
GitHub Action Run
Source Files on build 19732484228
  • Tree
  • List 1018
  • Changed 283
  • Source Changed 11
  • Coverage Changed 281
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #19732484228
  • f9012dea on github
  • Prev Build on main (#19732324349)
  • Next Build on main (#19742300988)
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