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

KarpelesLab / libwallet / 27096383372
22%

Build:
DEFAULT BRANCH: master
Ran 07 Jun 2026 03:14PM UTC
Jobs 1
Files 128
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

07 Jun 2026 03:12PM UTC coverage: 22.349% (-0.2%) from 22.499%
27096383372

push

github

MagicalTux
wltswap: drop Jupiter/dFlow/1inch + add Swap:countryAvailability + bump 0.4.56

OKX-only cleanup:

The legacy Jupiter Ultra, dFlow, and 1inch adapters have been
unreached since the OKX migration — left in the tree behind
commented RegisterProvider lines as a flip-back safety net. Fully
removed now:

- wltswap/jupiter.go, wltswap/dflow.go, wltswap/oneinch.go deleted.
- wltswap/http_test.go (all 6 tests were Jupiter-specific) deleted.
- Provider URLs, API keys, referral accounts, and the 1inch
  native-sentinel constants dropped from http.go.
- oneInchSupportedChains removed; computeAvailability's signature
  drops the oneInchKey parameter and shrinks to OKX-only branches.
- providerDisplayLabel switch loses the legacy cases — only
  "okx_solana" / "okx_evm" remain.
- approval.go's per-provider spender-label switch collapses to the
  generic "<ProviderLabel> Router" fallback.
- fetchEVMNonce (previously inlined in oneinch.go) moves to a small
  evm_util.go so any future EVM helper has a home.
- Docstrings + comments across swap.go, approval.go, provider.go,
  errors.go, okx.go, Swap:availability's Dart wrapper, and the
  Dart SwapQuote / SwapAvailability / QuoteAttempt models updated
  to OKX-centric wording.

Net diff: -1504 / +186 lines; full test suite + dart analyze pass.

New endpoint:

Swap:countryAvailability — cheap predicate the host calls from
settings / onboarding to decide whether the Swap UI should be
visible at all for the user's jurisdiction.

- Input:  CountryAvailabilityRequest { country: string }
          (ISO 3166-1 alpha-2, case-insensitive)
- Output: CountryAvailabilityResult { available, country, reason }
- Source of truth: https://www.okx.com/app-availability/ios
  (121 jurisdictions, 2025-05-22 snapshot)

Reasons: empty on success, "invalid_country" on a bad code,
"country_not_supported" when the code parses but isn't on the
allow-list. init() asserts every code in okxAvailableCountries
resolves in countrydb so a typo in the sta... (continued)

19 of 49 new or added lines in 5 files covered. (38.78%)

53 existing lines in 2 files now uncovered.

4176 of 18685 relevant lines covered (22.35%)

100.97 hits per line

Uncovered Changes

Lines Coverage ∆ File
21
25.0
wltswap/country_availability.go
8
0.0
wltswap/evm_util.go
1
72.97
-8.16% wltswap/availability.go

Coverage Regressions

Lines Coverage ∆ File
52
0.0
-65.82% wltswap/http.go
1
23.94
0.0% wltswap/okx.go
Jobs
ID Job ID Ran Files Coverage
1 27096383372.1 07 Jun 2026 03:14PM UTC 128
22.35
GitHub Action Run
Source Files on build 27096383372
  • Tree
  • List 128
  • Changed 8
  • Source Changed 8
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #27096383372
  • 237c5b41 on github
  • Prev Build on master (#27023772732)
  • 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