Repository navigation
Import TypeScript authorization lock SDK support - #13
Merged
Merged
Conversation
edo-chan
changed the base branch from
codex/solana-rust-authorization-locks
to
main
October 29, 2026 20:24
edo-chan
marked this pull request as ready for review
October 29, 2026 20:32
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.
Summary
Import the Solana TypeScript protocol SDK authorization-lock changes from swig-ts#193 into the four packages under
solana/typescript/packages/. Source pin:swig-ts@96dd3470c6fe2b6a7bcd2db8287d6e55c73a3914.The port adds lock instruction builders, permission and tail codecs, account helpers, and tests. This PR also aligns strict tail validation with the pinned program, selects the session signer as the default payer for lock calls, and forwards user pre/post instructions across Ed25519, secp256k1, and secp256r1 builders. The secp256r1 verification instruction remains immediately before the Swig instruction.
Validation
bun run build,bun run typecheck,bun run lint, andbun run format: pass.bun run test: 456 passed, 1 skipped, 0 failed. Runtime cases cover Ed25519, session key, signed secp256k1 and secp256r1, ProgramExec, SPL Token, Token-2022, exact balance rejection with unchanged account bytes, and lock removal.git diff --check: pass.Release note
The matching on-chain implementation is still open in swig-wallet#226, and this repository currently pins its program fixture to that branch. Repin to the merged on-chain revision before releasing these SDK changes. The source
swig-walletrepository is outside this merge.