Skip to content

Commit 3a3b705

Browse files
authored
chore: update readonly & bump versions to v0.16.0 (#13)
* chore: update read only example * chore: update readonly * chore: update zk-id to v2 * chore: update versions to git deps * update deps and ts test * update readme * Update read-only/tests/test.rs * Update read-only/tests/test.rs
1 parent b3b8615 commit 3a3b705

32 files changed

Lines changed: 4911 additions & 7025 deletions

File tree

.github/actions/setup/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ runs:
8181
uses: actions/cache@v4
8282
with:
8383
path: ~/.cargo/bin/photon
84-
key: photon-${{ runner.os }}-49b7e7f0d668babbc4d65fe8a0a7236df76f75a8
84+
key: photon-${{ runner.os }}-1a785036de52896b68d06413e3b0231122d6aa4a
8585

8686
- name: Install Solana CLI tools
8787
shell: bash
@@ -106,7 +106,7 @@ runs:
106106
107107
- name: Install Light CLI
108108
shell: bash
109-
run: npm install -g @lightprotocol/zk-compression-cli
109+
run: npm install -g @lightprotocol/zk-compression-cli@0.27.1-alpha.2
110110

111111
- name: Cache Powers of Tau file
112112
if: inputs.install-circom == 'true'
@@ -141,7 +141,7 @@ runs:
141141
shell: bash
142142
env:
143143
RUSTFLAGS: "-A dead-code"
144-
run: cargo install --git https://github.com/lightprotocol/photon.git --rev 49b7e7f0d668babbc4d65fe8a0a7236df76f75a8 --locked
144+
run: cargo install --git https://github.com/lightprotocol/photon.git --rev 1a785036de52896b68d06413e3b0231122d6aa4a --locked --force
145145

146146
- name: Generate keypair
147147
shell: bash

README.md

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,27 @@ full compressed account lifecycle (create, increment, decrement, reset, close):
3030

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

33-
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+
3454
## Light Protocol dependencies
3555

3656
### Rust Crates
@@ -43,45 +63,45 @@ full compressed account lifecycle (create, increment, decrement, reset, close):
4363

4464
### TypeScript/JavaScript Packages
4565

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

4969
## Prerequisites
5070

5171
Required versions:
5272

53-
- **Rust**: 1.86.0 or later
54-
- **Solana CLI**: 2.2.15
73+
- **Rust**: 1.90.0 or later
74+
- **Solana CLI**: 2.3.11
5575
- **Anchor CLI**: 0.31.1
5676
- **Zk compression CLI**: 0.27.0 or later
5777
- **Node.js**: 23.5.0 or later
5878

5979
Install the Light CLI:
6080

6181
```bash
62-
$ npm -g i @lightprotocol/zk-compression-cli
82+
$ npm -g i @lightprotocol/zk-compression-cli@0.27.1-alpha.2
6383
```
6484

6585
Install Solana CLI:
6686

6787
```bash
68-
sh -c "$(curl -sSfL https://release.solana.com/v2.2.15/install)"
88+
sh -c "$(curl -sSfL https://release.solana.com/v2.3.11/install)"
6989
```
7090

7191
Install Anchor CLI:
7292

7393
```bash
7494
cargo install --git https://github.com/coral-xyz/anchor avm --force
7595
avm install latest
76-
avm use latest
96+
avm use 0.31.1
7797
```
7898

7999
## Getting Started with your own Program
80100

81101
1. install the light cli
82102

83103
```bash
84-
$ npm -g i @lightprotocol/zk-compression-cli
104+
$ npm -g i @lightprotocol/zk-compression-cli@0.27.1-alpha.2
85105
```
86106

87107
2. instantiate a template Solana program with compressed accounts

0 commit comments

Comments
 (0)