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

KarpelesLab / libwallet / 25847618302
24%

Build:
DEFAULT BRANCH: master
Ran 14 May 2026 07:32AM UTC
Jobs 1
Files 118
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 May 2026 07:24AM UTC coverage: 21.36% (+0.3%) from 21.025%
25847618302

push

github

MagicalTux
wltcontract: curated contract-label registry + verifyingContractLabel

Adds the contract-label registry tibaneapp asked for to surface
"Uniswap V3: SwapRouter02" / "OpenSea: Seaport 1.6" etc. above the raw
0x… on typed-data approval sheets. Mirror shape to wlttoken/curated —
per-chain JSON files baked in via go:embed, sync Lookup helper, no
runtime network dependency.

Initial coverage (one per chain unless deterministic-address):
  Uniswap V2 Router (1), V3 SwapRouter + SwapRouter02 (1, 8453,
  42161, 10, 137), Universal Router + Permit2 (every chain;
  deterministic addresses), OpenSea Seaport 1.5 + 1.6 (1, 42161, 10,
  137; deterministic), Aave V3 Pool (1, 8453, 42161, 10, 137, 43114),
  Compound V3 Comet contracts (1, 8453), Balancer V2 Vault (1, 42161,
  137), Curve 3pool (1).

Wired into newMessageSignValue (wltbase/sign_request.go):
MessageSignValue gains a VerifyingContractLabel field, populated from
the registry when the EIP-712 domain has a verifyingContract that
matches. domain.chainId normalised across the shapes dApps actually
send (JSON number, float64 from json.Unmarshal default, decimal
string, hex string, 0x-prefixed hex). Empty when no match — host
falls back to the raw address.

Generic primitive: Contracts:lookup endpoint + Dart ContractsApi
wrapper so hosts can label addresses at any render site (effect
rows, watch_asset prompts, the new explorer-link affordances) using
the same registry.

Tests cover: address case-insensitivity, deterministic-address
cross-chain matches (Permit2), chainId shape normalisation, all the
"miss" paths (unknown contract, unsupported chain, non-EVM,
malformed domain).

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

80 of 120 new or added lines in 2 files covered. (66.67%)

1 existing line in 1 file now uncovered.

3492 of 16348 relevant lines covered (21.36%)

115.66 hits per line

Uncovered Changes

Lines Coverage ∆ File
35
55.7
wltcontract/contract.go
5
7.88
7.88% wltbase/sign_request.go

Coverage Regressions

Lines Coverage ∆ File
1
7.88
7.88% wltbase/sign_request.go
Jobs
ID Job ID Ran Files Coverage
1 25847618302.1 14 May 2026 07:32AM UTC 118
21.36
GitHub Action Run
Source Files on build 25847618302
  • Tree
  • List 118
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25847618302
  • 59ba87b1 on github
  • Prev Build on master (#25845962249)
  • Next Build on master (#25848034620)
  • 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