Version Packages - #139
Merged
Merged
Conversation
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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@swig-wallet/lib@2.0.0
Major Changes
ab0e184: Breaking Change: Fix p-token fix(compactInstruction): sanitize SyncNative for p-token #138 compatibility #138 SyncNative account validation
The
compactInstructionsfunction previously appended the swig account toSyncNativeinstructions when they followed aSystemProgram.transfer(as part of the unbalanced-CPI lamport tracking workaround for Cross-program balanced instruction handling is too restrictive solana-labs/solana#9711). After p-token fix(compactInstruction): sanitize SyncNative for p-token #138 compatibility #138,SyncNativevalidates extra accounts: if a second account exists it must be the Rent sysvar — otherwise the instruction errors. The bare swig account appended byhandleUnbalancedcaused transactions to fail.This update:
SyncNativeinstructions before compaction, stripping any extraneous accounts so the base instruction references exactly one account (the wSOL ATA)handleUnbalancedfires after aSystemProgram.transferand the next instruction isSyncNative, inserts the Rent sysvar before the swig account so the final compact instruction sees[wSOL ATA, Rent, swigAccount]SyncNativeinstructions,handleUnbalancedcontinues to append only the swig account as beforePre-p-token silently ignores extra accounts, so adding Rent + swigAccount is backwards-safe. Post-p-token, the Rent sysvar satisfies the strict validation.
This is a required upgrade for all swig-ts clients that wrap SOL. Transactions containing
SyncNativewith an invalid extra account will be rejected once p-token account validation is live.See swig-wallet#154 for the coordinated breaking-change documentation.
Patch Changes
@swig-wallet/classic@2.0.0
Patch Changes
@swig-wallet/developer@1.3.2
Patch Changes
@swig-wallet/kit@2.0.0
Patch Changes
@swig-wallet/mcp-server@1.1.2
Patch Changes
@swig-wallet/coder@2.0.0