refactor(cli): rename compress/decompress to wrap/unwrap and update commands#2300
Open
refactor(cli): rename compress/decompress to wrap/unwrap and update commands#2300
Conversation
…ommands - Rename compress-sol/compress-spl to wrap-sol/wrap-spl - Rename decompress-sol/decompress-spl to unwrap-sol/unwrap-spl - Remove deprecated commands: approve-and-mint-to, create-token-pool, merge-token-accounts - Add new commands: create-interface-pda, create-token-account - Export unwrap and decompressMint from compressed-token SDK - Update tests and README to match new command names
Contributor
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (37)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
added 5 commits
February 19, 2026 01:00
Remove wrap-sol, unwrap-sol, and balance commands that use raw ZK Compression (stateless.js compress/decompress). CLI now exclusively uses Light Token APIs from @lightprotocol/compressed-token.
transferInterface expects a wallet public key (on-curve) as destination and derives the ATA internally. The CLI was passing a derived ATA which caused an off-curve validation error, silently failing the transfer. Also removes redundant createAtaInterfaceIdempotent call since transferInterface handles recipient ATA creation via ensureRecipientAta.
createMintInterface already embeds decompressMint as an action in the create-mint instruction data. The separate decompressMint call after mint creation was a wasted transaction. Also updates init command description to "Light Token".
Setup now mints SPL tokens to the payer's ATA instead of compressed tokens via the V1 path. Wrap test wraps directly, unwrap test wraps first then unwraps.
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.
The rebrand: "ZK Compression" → "Light Token"
The CLI was built around the "ZK Compression" branding — compress SOL, compress SPL, decompress, compressed token balance, etc. The product is being repositioned as Light Token — a token standard on Solana, not a compression utility. The CLI language needs to reflect what users actually do, not the underlying mechanism.
What changed
1. Rename compress/decompress → wrap/unwrap (
6e31743)compress-spl→wrap-spl(you're wrapping SPL tokens into Light Tokens)decompress-spl→unwrap-spl(you're unwrapping Light Tokens back to SPL)2. Remove ZK Compression SOL commands (
e29b806)compress-solanddecompress-solentirelybalance(compressed SOL balance)merge-token-accountsapprove-and-mint-to3. Fix transfer to pass wallet key not ATA (
243683c)transferInterfaceexpected the wallet pubkey, not the derived ATA address4. Remove redundant decompressMint (
4b73af8)5. Replace V1 mintTo in test helpers (
5f0ad94)mintTofrom@lightprotocol/compressed-tokento mint compressed tokens directlywrap-spl/unwrap-splNet result
The CLI went from ~16 commands exposing compression internals to a focused set of Light Token operations:
create-mint,mint-to,transfer,wrap-spl,unwrap-spl,token-balance,create-token-account. The V1 compressed token path is gone from the test helpers. The CI workflow was renamed fromcli-tests-v2tocli-tests.