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

KarpelesLab / libwallet / 29804495121
25%

Build:
DEFAULT BRANCH: master
Ran 21 Jul 2026 05:39AM UTC
Jobs 1
Files 131
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

21 Jul 2026 05:36AM UTC coverage: 24.612% (-0.03%) from 24.646%
29804495121

push

github

MagicalTux
rust: broadcast OKX swaps through OKX's API, not our node RPC (match Go)

Previously execute_evm/execute_solana signed locally then broadcast via
the node (eth_sendRawTransaction / sendTransaction). Go broadcasts every
swap through OKX (Crypto/Okx:broadcastTransaction): OKX's node knows the
blockhash it embedded (no node-lag "Blockhash not found"), routes EVM txs
through a MEV-protected mempool, and lands Solana via its staked path.

- rest.rs: add authenticated POST (ApiKey::apply_post) — params in the
  JSON body, _key/_time/_nonce/_sign in the query, signed over
  POST\0path\0query\0sha256(body); send_bytes the exact hashed bytes.
- swap.rs: okx_broadcast_swap_tx (POST) + okx_await_order (orderStatus
  settlement poll) + new_quote_id. execute_evm now broadcasts via OKX
  (MEV per pref, no retry — re-signing burns the nonce) and confirms
  settlement so a revert isn't a phantom success. execute_solana
  broadcasts base58 (OKX base58-decodes; base64 silently fails to land),
  retries up to 3x with a fresh blockhash on retryable failures, confirms
  via orderStatus. Both return {chain, hash, orderId, quoteId}.
- handlers/swap.rs: thread MevProtection (opt-out, on by default) + an
  opaque QuoteId (caller-supplied or generated) into execute.

Tests updated to mock the OKX broadcast+orderStatus flow. 342 Rust tests
+ 64/64 Dart, 0 warnings. NOTE: the POST auth signature matches Go's
scheme but could not be validated against the live server here (mock
tests exercise the flow, not the real signature) — verify on first live
swap.

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

5027 of 20425 relevant lines covered (24.61%)

95.2 hits per line

Coverage Regressions

Lines Coverage ∆ File
4
71.22
-1.95% wltwallet/broker.go
3
59.24
-0.76% wltwallet/walletkey.go
Jobs
ID Job ID Ran Files Coverage
1 29804495121.1 21 Jul 2026 05:39AM UTC 131
24.61
GitHub Action Run
Source Files on build 29804495121
  • Tree
  • List 131
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29804495121
  • ae72e67f on github
  • Prev Build on master (#29803783293)
  • Next Build on master (#29877384959)
  • 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