Skip to content

Commit b3b167c

Browse files
author
tilo-14
committed
Add basic-operations examples (Anchor + Native)
Adds comprehensive examples for compressed account operations: **Structure:** - basic-operations/anchor/ - Anchor framework examples - basic-operations/native/ - Native Rust examples - Both organized as Cargo workspaces **Programs included:** - create: Create compressed accounts with derived addresses - update: Update compressed account data - close: Close compressed accounts - reinit: Reinitialize compressed accounts - burn: Permanently burn compressed accounts **Features:** - SHA256 hashing for flat serialization - light-sdk 0.15.0 compatibility - Full workspace configuration - Compiles to deployable .so binaries - Test files for each operation
1 parent d978204 commit b3b167c

55 files changed

Lines changed: 23396 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

basic-operations/anchor/.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.anchor
2+
.DS_Store
3+
target
4+
**/*.rs.bk
5+
node_modules
6+
test-ledger
7+
.yarn
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[toolchain]
2+
3+
[features]
4+
resolution = true
5+
skip-lint = false
6+
7+
[programs.localnet]
8+
create = "6pJwGkAuV2MtBanB3Fdugknra7TAKbN3ERsT6Gg2PwgE"
9+
update = "BFqDgFRTLiAKv8djbb2YNXhr3cmkaCaSSHKMuX7qUxFL"
10+
close = "3xy8FEPobWT63vh8bc49KxoWChPPr6ttckVWxdo6wDfc"
11+
reinit = "AGKi1s7HtUAFS3tJYG6uKGqb3vj6mMKzUzT4w4cNvhTB"
12+
burn = "2eSawJMBc2PUWYKWpzdKCPMvv5JLpPXoCxf2BBhg4stL"
13+
14+
[registry]
15+
url = "https://api.apr.dev"
16+
17+
[provider]
18+
cluster = "localnet"
19+
wallet = "~/.config/solana/id.json"
20+
21+
[scripts]
22+
test = "yarn run ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"

0 commit comments

Comments
 (0)