Skip to content

Version Packages - #139

Merged
tracy-codes merged 1 commit into
mainfrom
changeset-release/main
May 7, 2026
Merged

Version Packages#139
tracy-codes merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

@github-actions github-actions Bot commented May 7, 2026

Copy link
Copy Markdown
Contributor

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 compactInstructions function previously appended the swig account to SyncNative instructions when they followed a SystemProgram.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, SyncNative validates extra accounts: if a second account exists it must be the Rent sysvar — otherwise the instruction errors. The bare swig account appended by handleUnbalanced caused transactions to fail.

    This update:

    • Sanitizes SyncNative instructions before compaction, stripping any extraneous accounts so the base instruction references exactly one account (the wSOL ATA)
    • When handleUnbalanced fires after a SystemProgram.transfer and the next instruction is SyncNative, inserts the Rent sysvar before the swig account so the final compact instruction sees [wSOL ATA, Rent, swigAccount]
    • For non-SyncNative instructions, handleUnbalanced continues to append only the swig account as before

    Pre-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 SyncNative with 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/coder@2.0.0

@swig-wallet/classic@2.0.0

Patch Changes

  • Updated dependencies [ab0e184]
    • @swig-wallet/lib@2.0.0
    • @swig-wallet/coder@2.0.0

@swig-wallet/developer@1.3.2

Patch Changes

  • Updated dependencies [ab0e184]
    • @swig-wallet/lib@2.0.0

@swig-wallet/kit@2.0.0

Patch Changes

  • Updated dependencies [ab0e184]
    • @swig-wallet/lib@2.0.0
    • @swig-wallet/coder@2.0.0

@swig-wallet/mcp-server@1.1.2

Patch Changes

  • @swig-wallet/classic@2.0.0

@swig-wallet/coder@2.0.0

@tracy-codes
tracy-codes merged commit cd36bea into main May 7, 2026
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