Skip to content

Commit 47cbded

Browse files
tilo-14claude
andcommitted
Update README with Basic Operations section and version requirements
- Add new Basic Operations section with links to anchor and native examples - Update ZK compression CLI version requirement to 0.27.1-alpha.2 - Remove Tree Versions section (V1/V2 distinction) - Fix typo in stateless.js package version - Capitalize Counter Program section title 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 66ab844 commit 47cbded

File tree

1 file changed

+15
-23
lines changed

1 file changed

+15
-23
lines changed

README.md

Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,21 @@
44

55
## Examples
66

7+
### Basic Operations
8+
9+
- **[basic-operations/anchor](./basic-operations/anchor/)** - Anchor program with Rust and TypeScript tests
10+
- **[basic-operations/native-rust](./basic-operations/native-rust/)** - Native Solana program with light-sdk and Rust tests.
11+
12+
Basic Operations include:
13+
- **create** - Initialize a new compressed account.
14+
- **update** - Modify data in an existing compressed account.
15+
- **close** - Clear account data and preserve its address.
16+
- **reinit** - Reinitialize a closed account with the same address.
17+
- **burn** - Permanently delete a compressed account.
18+
719
### Counter Program
820

9-
full compressed account lifecycle (create, increment, decrement, reset, close):
21+
Full compressed account lifecycle (create, increment, decrement, reset, close):
1022

1123
- **[counter/anchor](./counter/anchor/)** - Anchor program with Rust and TypeScript tests
1224
- **[counter/native](./counter/native/)** - Native Solana program with light-sdk and Rust tests.
@@ -30,27 +42,7 @@ full compressed account lifecycle (create, increment, decrement, reset, close):
3042

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

33-
## Tree Versions
34-
35-
Compressed Accounts examples use different Tree versions:
36-
37-
### V1 Trees (Mainnet)
38-
- **[counter/anchor](./counter/anchor/)** - Full compressed account lifecycle using Anchor
39-
- **[counter/native](./counter/native/)** - Full compressed account lifecycle using native Solana
40-
- **[counter/pinocchio](./counter/pinocchio/)** - Full compressed account lifecycle using Pinocchio
41-
- **[account-comparison](./account-comparison/)** - Account comparison example
42-
43-
V1 Trees are deployed on **mainnet**.
44-
45-
### V2 Trees (Local/Devnet)
46-
- **[create-and-update](./create-and-update/)** - Create and update accounts with single validity proof
47-
- **[read-only](./read-only)** - Create and read compressed accounts onchain
48-
- **[zk-id](./zk-id)** - Zero-knowledge identity verification
49-
50-
V2 Trees consume **significantly less CU** (compute units) and are available on **local and devnet** environments.
51-
52-
Both Tree versions are supported in Light SDK 0.16.0.
53-
45+
5446
## Light Protocol dependencies
5547

5648
### Rust Crates
@@ -63,7 +55,7 @@ Both Tree versions are supported in Light SDK 0.16.0.
6355

6456
### TypeScript/JavaScript Packages
6557

66-
- `@lightprotocol/stateless.js@0.22.1-alpha.1"` - Client library for interacting with compressed accounts
58+
- `@lightprotocol/stateless.js@0.22.1-alpha.1` - Client library for interacting with compressed accounts
6759
- `@lightprotocol/zk-compression-cli@0.27.1-alpha.2` - Command-line tools for ZK compression development
6860

6961
## Prerequisites

0 commit comments

Comments
 (0)