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

KarpelesLab / libwallet / 24416744321
25%

Build:
DEFAULT BRANCH: master
Ran 14 Apr 2026 06:51PM UTC
Jobs 1
Files 71
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

14 Apr 2026 06:43PM UTC coverage: 24.777% (-0.2%) from 24.99%
24416744321

push

github

MagicalTux
webview injection: EIP-6963, Solana Wallet Standard, mpurse

New endpoint `Web3:injectionScript` returns a JS blob the host app can
run inside a WebView to expose libwallet as:

- `window.ethereum` — EIP-1193 provider, EIP-6963 announce with
  wallet name / icon / rdns / uuid baked into the script. Covers all
  configured EVM chains.
- `window.solana` — legacy provider + minimal Wallet Standard
  `wallet-standard:register-wallet` announce. Solana mainnet/devnet.
- `window.mpurse` — Monacoin (github.com/tadajam/mpurse). `getAddress()`
  drives a connect prompt and returns the connected account address;
  `signMessage` / `signRawTransaction` / `sendRawTransaction` / `sendAsset`
  return "not implemented yet" so dApps load cleanly and can fall back.

The script works bidirectionally: dApp calls go out through a
host-provided bridge channel (name is configurable via `Bridge`), and
host events drive the provider back via a `__libwalletEvent(name, data)`
entry point that re-dispatches per standard (EIP-1193 emit, mpurse
updateEmitter, Solana connect/disconnect).

Initial state (chainId, networkVersion, connected accounts for the
given `Host`) is baked into the script so providers answer on first
paint without a host round-trip.

Dart helper: `client.web3.injectionScript(name:, rdns:, uuid:, icon:,
bridge:, host?:)` returns the ready-to-run JS string.

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

3 of 78 new or added lines in 2 files covered. (3.85%)

1913 of 7721 relevant lines covered (24.78%)

3.23 hits per line

Uncovered Changes

Lines Coverage ∆ File
51
5.56
wltbase/injection.go
24
0.8
-0.04% wltbase/web3.go
Jobs
ID Job ID Ran Files Coverage
1 24416744321.1 14 Apr 2026 06:51PM UTC 71
24.78
GitHub Action Run
Source Files on build 24416744321
  • Tree
  • List 71
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24416744321
  • 3842a0a2 on github
  • Prev Build on master (#24416091053)
  • Next Build on master (#24418628689)
  • Delete
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