Skip to content

Conversation

@tilo-14
Copy link
Contributor

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

Add c-token client examples with Rust SDK usage.

tilo-14 and others added 2 commits November 27, 2025 21:10
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.
@coderabbitai
Copy link

coderabbitai bot commented Dec 6, 2025

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (1)
  • ai-review

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch tilo-feat-ctoken-examples

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

};
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};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its using light-test-utils.

tilo-14 and others added 9 commits December 7, 2025 19:39
Co-authored-by: ananas-block <[email protected]>
- 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 <[email protected]>
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)
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.

3 participants