Skip to content

Commit 71b97a7

Browse files
author
tilo-14
committed
feat: add c-token client examples
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.
1 parent 6b53faa commit 71b97a7

11 files changed

Lines changed: 10219 additions & 2 deletions

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,16 @@ Full compressed account lifecycle (create, increment, decrement, reset, close):
4242

4343
- **[zk-id](./zk-id)** - A minimal zk id Solana program that uses zero-knowledge proofs for identity verification with compressed accounts.
4444

45-
45+
### Compressed Token (c-token) Examples
46+
47+
- **[c-token](./c-token/)** - Client examples for compressed tokens (cToken) including:
48+
- Create compressed mint (cMint) with metadata
49+
- Create compressed token account (cToken)
50+
- Create compressed associated token account (cATA)
51+
- Mint tokens to cToken account
52+
- Transfer between SPL and cToken accounts
53+
- Close cToken account
54+
4655
## Light Protocol dependencies
4756

4857
### Rust Crates

0 commit comments

Comments
 (0)