refactor: migrate to V2 APIs and published crates#13
Open
Conversation
added 2 commits
December 19, 2025 14:01
- Remove local path dependencies, use only published crates from crates.io - Switch from V1 to V2 state trees (batched Merkle trees) - Update processor to use CTokenAccount2 and transfer2 instruction - Update test to use V2 compress pattern with CTokenAccount2::compress_spl - Change version field from 2 to 3 for V2 compatibility - Add proper authority handling in packed accounts>
For V2 batched Merkle trees, accounts in the output queue should have prove_by_index=true so they are verified by index lookup rather than ZK proof. The local test indexer doesn't set this correctly, so we force it since we know the account was just compressed to the queue. >
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
CTokenAccount2andtransfer2instructionCTokenAccount2::compress_splTest plan
cargo build- builds successfullycargo test-sbf- test currently has a signer issue being debugged