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

KarpelesLab / libwallet / 25827287175
24%

Build:
DEFAULT BRANCH: master
Ran 13 May 2026 09:35PM UTC
Jobs 1
Files 116
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

13 May 2026 09:24PM UTC coverage: 20.935% (-0.07%) from 21.003%
25827287175

push

github

MagicalTux
wltswap: refresh balances + register unknown TokenOut after a swap

Two post-execute hooks for Swap:execute that mirror what the other
broadcast paths (wlttx, wltacct sign_api, wltbase web3) already do:

1. NotifyTxBroadcast: the balance poller subscribes to tx:broadcast
   and triggers an immediate refresh. Aggregator-driven swaps
   (Jupiter / dFlow / 1inch) bypass the wlttx path that fires this
   event today, so spent + earned balances waited up to 60 s for the
   next polling tick. Nudged from swapExecute now.

2. EnsureToken: when TokenOut isn't native and the user has no
   matching Token row yet, insert one with the swap quote's
   symbol + decimals. Without it, Token:list keeps showing the
   token as Unknown until the user manually calls Token:create.
   New exported helper in wlttoken (idempotent — second call with
   the same (network, address) returns the existing row).

Both hooks are best-effort: any failure is logged and ignored so a
schema or DB hiccup doesn't invalidate a swap that already broadcast.

Integration tests live in wlttest/ to reuse InitTempEnv +
MakeDefaultNetworks (wlttoken doesn't import wltbase, so the helper
can't be unit-tested in-package without a hand-rolled env mock).

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

0 of 51 new or added lines in 2 files covered. (0.0%)

3339 of 15949 relevant lines covered (20.94%)

118.16 hits per line

Uncovered Changes

Lines Coverage ∆ File
33
0.0
0.0% wlttoken/token.go
18
14.07
-1.01% wltswap/swap.go
Jobs
ID Job ID Ran Files Coverage
1 25827287175.1 13 May 2026 09:35PM UTC 116
20.94
GitHub Action Run
Source Files on build 25827287175
  • Tree
  • List 116
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25827287175
  • ab3efac8 on github
  • Prev Build on master (#25776762761)
  • Next Build on master (#25827942474)
  • 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