Skip to content

feat: upgrade @lendasat/lendaswap-sdk-pure from 0.0.2 to 0.2.11 - #22

Open
bonomat wants to merge 1 commit into
tiero:mainfrom
bonomat:chore/upgrade-lendaswap
Open

feat: upgrade @lendasat/lendaswap-sdk-pure from 0.0.2 to 0.2.11#22
bonomat wants to merge 1 commit into
tiero:mainfrom
bonomat:chore/upgrade-lendaswap

Conversation

@bonomat

@bonomat bonomat commented Mar 25, 2026

Copy link
Copy Markdown
  • Migrate to new chain-agnostic SDK API (generic endpoints, Permit2 flow)
  • createArkadeToEvmSwap → createArkadeToEvmSwapGeneric (tokenAddress + evmChainId)
  • createEvmToArkadeSwap → createEvmToArkadeSwapGeneric (tokenAddress + evmChainId)
  • getQuote now takes object params with sourceChain/targetChain (chain IDs)
  • Response fields: amounts are strings, tokens are TokenInfo objects, htlc_address_evm → evm_htlc_address, htlc_address_arkade → btc_vhtlc_address
  • Replace removed getEvmFundingCallData/getEvmRefundCallData/getAssetPairs
  • Web frontend uses client.fundSwap(swapId, signer) for Permit2 flow
  • CLI amounts now accept human-readable USD format (1.02 → 1020000 units)
  • Fix API swap proxy URL (lendasat.com → api.lendaswap.com)

Tested flow:

  • usdc to arkade

- Migrate to new chain-agnostic SDK API (generic endpoints, Permit2 flow)
- createArkadeToEvmSwap → createArkadeToEvmSwapGeneric (tokenAddress + evmChainId)
- createEvmToArkadeSwap → createEvmToArkadeSwapGeneric (tokenAddress + evmChainId)
- getQuote now takes object params with sourceChain/targetChain (chain IDs)
- Response fields: amounts are strings, tokens are TokenInfo objects,
  htlc_address_evm → evm_htlc_address, htlc_address_arkade → btc_vhtlc_address
- Replace removed getEvmFundingCallData/getEvmRefundCallData/getAssetPairs
- Web frontend uses client.fundSwap(swapId, signer) for Permit2 flow
- CLI amounts now accept human-readable USD format (1.02 → 1020000 units)
- Fix API swap proxy URL (lendasat.com → api.lendaswap.com)
@bonomat
bonomat force-pushed the chore/upgrade-lendaswap branch from c0d11f9 to 04168d6 Compare March 25, 2026 02:18
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