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

KarpelesLab / libwallet / 24975362911
24%

Build:
DEFAULT BRANCH: master
Ran 27 Apr 2026 03:45AM UTC
Jobs 1
Files 111
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

27 Apr 2026 03:37AM UTC coverage: 20.644% (+0.5%) from 20.111%
24975362911

push

github

MagicalTux
wltacct: Account:addressFormats — multi-shape address picker

Today Account.Address holds one canonical receive form per chain
(BIP84 p2wpkh on bitcoin / litecoin / monacoin, p2pkh on
bitcoin-cash / dogecoin). Frontends had no way to render the same
account as Legacy / SegWit-wrapped / Native SegWit, even though
the backend's modchain_* indexing watches every key type and
incoming funds at any of those shapes land in the same balance.

New endpoint Account:addressFormats returns every receive shape
available for the resolved network, ordered by display preference
(modern first). Per-chain catalog lives next to bitcoinAddress()
so adding a new script type is one map entry. The first entry's
isDefault is true and matches whatever Account.Address shows, so
a frontend switching from Account.Address to the picker sees the
same primary address.

Per-chain coverage:
  bitcoin       Native SegWit (bc1)  / SegWit-wrapped (3)  / Legacy (1)
  litecoin      Native SegWit (ltc1) / SegWit-wrapped (M)  / Legacy (L)
  monacoin      Native SegWit (mona1) / Legacy (M)
  bitcoin-cash  CashAddr (bitcoincash:)
  dogecoin      Standard (D)

Dart binding accounts.addressFormats(id, network:) returns a
typed AddressFormatsResult with chainId + List<AddressFormat>.
Both classes exported from the top-level barrel.

Tests pin the catalog: every chain returns the expected kinds in
the expected order, addresses carry the chain-specific prefix,
and AddressFormats[0].address is byte-identical to what
bitcoinAddress() emits — so the default-flagged entry can never
silently drift from Account.Address.

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

30 of 58 new or added lines in 3 files covered. (51.72%)

3073 of 14886 relevant lines covered (20.64%)

126.49 hits per line

Uncovered Changes

Lines Coverage ∆ File
21
0.0
0.0% wltacct/btc_api.go
7
67.05
67.05% wltacct/btc_address.go
Jobs
ID Job ID Ran Files Coverage
1 24975362911.1 27 Apr 2026 03:45AM UTC 111
20.64
GitHub Action Run
Source Files on build 24975362911
  • Tree
  • List 111
  • Changed 4
  • Source Changed 3
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24975362911
  • 379f4462 on github
  • Prev Build on master (#24973849007)
  • Next Build on master (#24976822008)
  • 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