-
Notifications
You must be signed in to change notification settings - Fork 3
feat: add c-token client examples #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
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 |
| }; | ||
| 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}; |
There was a problem hiding this comment.
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.
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)
Add c-token client examples with Rust SDK usage.