Open
Conversation
Add compressed token (cToken) client examples: - client-create-cmint.rs - Create compressed mint with metadata - client-create-ctoken.rs - Create compressed token account - client-create-cata.rs - Create compressed ATA - client-mint-to-ctoken.rs - Mint tokens to cToken - client-transfer-interface.rs - SPL to cToken transfers - client-close-ctoken.rs - Close cToken account Rename ctoken/ to c-token/ and add proper Cargo.toml with git dependencies pinned to commit 3b811efce.
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one) (1)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ 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 |
ananas-block
reviewed
Dec 7, 2025
| }; | ||
| use light_ctoken_interface::state::CToken; | ||
| use light_program_test::{LightProgramTest, ProgramTestConfig}; | ||
| use light_test_utils::spl::{create_mint_helper, create_token_2022_account, mint_spl_tokens}; |
Contributor
There was a problem hiding this comment.
its using light-test-utils.
ananas-block
reviewed
Dec 7, 2025
Co-authored-by: ananas-block <58553958+ananas-block@users.noreply.github.com>
- Add dotenvy dependency for .env file support - Create .gitignore to exclude .env files from version control - Update devnet-client-create-cmint.rs to load HELIUS_API_KEY from env - Add debug output to client-close-ctoken.rs - Fix function names in client-create-cmint.rs (derive_cmint_compressed_address)
Update GitHub Actions workflow and documentation to reference the renamed light-token directory. The directory was previously renamed from c-token to light-token, but CI configuration was not updated, causing build failures. Changes: - Update rust-tests.yml matrix to use light-token instead of c-token - Update README.md section heading and directory path - Update package.json and package-lock.json with new package name 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Remove [patch.crates-io] section so CI uses published crates instead of local paths that don't exist in the CI environment.
- Move source files from programs/src/ to src/ - Move test files from programs/tests/ to tests/ - Rename files for clarity (e.g., create_cmint.rs -> create_mint.rs)
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.
Add c-token client examples with Rust SDK usage.