Skip to content

Conversation

@tilo-14
Copy link
Contributor

@tilo-14 tilo-14 commented Dec 19, 2025

Summary

  • 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

Test plan

  • Run cargo build - builds successfully
  • Run cargo test-sbf - test currently has a signer issue being debugged

tilo-14 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.
>
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.

2 participants