chore(svm): upgrade @solana/kit to v5.1.0 #880
Merged
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.
Description
Completes the
@solana/kitv5 migration for@x402/svm, following the approach established in #663.Background
PR #663 upgraded the legacy
x402package to@solana/kitv5. However, PR #705 (v2 architecture restructure) was developed in parallel and introduced the new@x402/svmpackage still pinned to kit v2. This creates a dependency conflict for projects using kit v5.This PR brings
@x402/svmto parity with the legacy package by upgrading to kit v5.1.0.Dependency Changes
@solana/kit@solana-program/compute-budget@solana-program/token@solana-program/token-2022@solana/transaction-confirmationzod@scure/baseWhy these changes
@solana/kit v5.1.0 includes an important bug fix in
@solana/transaction-confirmation(PR #1003) where transaction errors during confirmation might not be thrown properly.Removed dependencies:
@solana/transaction-confirmation- Not imported anywhere in the source; already re-exported from@solana/kitzod- Not imported anywhere; comes as transitive dependency from@x402/core@scure/base- Moved to devDependencies since it's only used in integration testsCode changes:
as CompiledTransactionMessagetype casts inutils.tsand facilitator schemesgetCompiledTransactionMessageDecoder().decode()returns the exact type expected bydecompileTransactionMessage(), making the casts unnecessaryFiles Modified
packages/mechanisms/svm/package.json- Dependency updatespackages/mechanisms/svm/src/utils.ts- Remove type castpackages/mechanisms/svm/src/exact/facilitator/scheme.ts- Remove type castpackages/mechanisms/svm/src/exact/v1/facilitator/scheme.ts- Remove type castpnpm-lock.yaml- Lockfile updateTests
All 109 unit tests pass:
Build and type-check pass:
Checklist