feat: upgrade LendaSwap SDK to v0.2.25#28
Merged
Conversation
Deploying claw-cash-landing-page with
|
| Latest commit: |
81c4eab
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://8fd01e44.claw-cash-landing-page.pages.dev |
| Branch Preview URL: | https://codex-open-pr-to-upgrade-len.claw-cash-landing-page.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
@lendasat/lendaswap-sdk-pureto^0.2.25incli,skills, andweb, and refreshpnpm-lock.yaml.createEvmToArkadeSwapGeneric,createArkadeToEvmSwapGeneric), add token discovery/lookup, normalize amounts and response fields, and adapt status/field mappings and fee calculations.parseStablecoinAmount(uses SDKtoSmallestUnit) before creating swaps and wire the new SDK token IDs.getCoordinatorFundingCallDataPermit2, use Permit2 as the allowance spender, and create generic EVM→Arkade swaps when needed.apilendaswap.lendasat.comtoapi.lendaswap.com, add theeventsdependency and Vite alias for browser builds required by the upgraded dependency tree, and update various type/adaptor helpers.Testing
pnpm typecheckacross workspaces, which completed successfully.pnpm build:weband fixed browser export/alias issues so the production build completed (note: large bundle warning only).pnpm test(Vitest), and all tests passed (121 tests, 5 files in this run).Codex Task