Skip to content

feat: upgrade lendaswap-sdk-pure to 0.2.1#10

Merged
tiero merged 1 commit intomasterfrom
claude/peaceful-nightingale
Feb 24, 2026
Merged

feat: upgrade lendaswap-sdk-pure to 0.2.1#10
tiero merged 1 commit intomasterfrom
claude/peaceful-nightingale

Conversation

@tiero
Copy link
Copy Markdown
Member

@tiero tiero commented Feb 24, 2026

Summary

  • Upgrade @lendasat/lendaswap-sdk-pure from 0.0.2 to 0.2.1
  • Adapt LendaSwapSkill to all breaking API changes (renamed methods, new param shapes, TokenInfo objects, updated direction values)
  • Regenerate ESM patch for v0.2.1 (upstream fix from chore: fix-esm-imports-extensions lendasat/lendaswap-sdk#1 was only partially applied)

Test plan

  • Build passes (pnpm build)
  • All 17 tests pass (pnpm test)
  • Manual integration test with live LendaSwap API

🤖 Generated with Claude Code

Adapt to breaking API changes in the SDK:
- getQuote now takes an object param with sourceChain/targetChain
- createArkadeToEvmSwap → createArkadeToEvmSwapGeneric (tokenAddress/evmChainId)
- createEvmToArkadeSwap → createEvmToArkadeSwapGeneric
- getAssetPairs → getTokens
- getEvmFundingCallData → getCoordinatorFundingCallData
- getEvmRefundCallData → refundSwap().evmRefundData
- source_token/target_token are now TokenInfo objects
- Direction values renamed (evm_to_btc → evm_to_arkade/evm_to_bitcoin)
- HTLC field names updated (htlc_address_arkade → btc_vhtlc_address)

ESM patch updated for 0.2.1 (upstream fix was only partially applied).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@tiero tiero force-pushed the claude/peaceful-nightingale branch from e15e794 to 25edf18 Compare February 24, 2026 12:30
@tiero tiero merged commit 753d0e0 into master Feb 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant