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

KarpelesLab / libwallet / 24679627981
25%

Build:
DEFAULT BRANCH: master
Ran 20 Apr 2026 05:12PM UTC
Jobs 1
Files 98
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

20 Apr 2026 05:03PM UTC coverage: 21.254% (-0.01%) from 21.264%
24679627981

push

github

MagicalTux
Swap:availability — per-chain-id gating (not per-family)

Original 0.3.19 draft of this endpoint only branched on the chain
family ("solana" / "evm" / "bitcoin"). Not precise enough: Jupiter
and dFlow only route on Solana mainnet (devnet + testnet should
not show a Swap button), and 1inch's Classic Swap API covers a
specific list of EVM chain ids — anything else gets a 404 upstream.

Changes:
- AvailabilityResult.Chain → Network, formatted as "<type>.<chainId>"
  to match Asset:list's key convention ("evm.1", "solana.mainnet-beta",
  "bitcoin.dogecoin"). SwapAvailability exposes chainFamily /
  chainId convenience getters.
- Solana: only mainnet-beta is eligible; devnet / testnet get
  unsupported_chain.
- EVM: gated against oneInchSupportedChains — 1 / 10 / 56 / 100 /
  137 / 250 / 324 / 8453 / 42161 / 43114 / 59144. Chains outside
  that set return unsupported_chain regardless of API key.
- Bitcoin-family (bitcoin, bitcoin-cash, litecoin, dogecoin, etc.):
  unchanged, always unsupported_chain.

Tests cover all three families, Solana cluster variants, three EVM
chain ids in coverage, an EVM chain outside coverage, and the
chain-miss-beats-key-miss precedence.

Pre-release cleanup — 0.3.18 didn't ship this endpoint, so the
chain → network field rename is a same-version iteration.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

15 of 17 new or added lines in 1 file covered. (88.24%)

1 existing line in 1 file now uncovered.

2529 of 11899 relevant lines covered (21.25%)

68.33 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
73.91
-3.86% wltswap/availability.go

Coverage Regressions

Lines Coverage ∆ File
1
73.91
-3.86% wltswap/availability.go
Jobs
ID Job ID Ran Files Coverage
1 24679627981.1 20 Apr 2026 05:12PM UTC 98
21.25
GitHub Action Run
Source Files on build 24679627981
  • Tree
  • List 98
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24679627981
  • d76ad23b on github
  • Prev Build on master (#24678838223)
  • Next Build on master (#24680378732)
  • Delete
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