Skip to content

feat: ctoken pinocchio #1861

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

Draft
wants to merge 48 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
bdf3cf6
feat: zero-copy-derive
ananas-block Jul 2, 2025
48e0f54
feat: add ctoken mint hashing
ananas-block Jun 27, 2025
814e627
feat: add create ctoken mint
ananas-block Jun 27, 2025
37eaa84
feat: add mint_to_compressed
ananas-block Jun 27, 2025
e835af2
feat: add create_spl_mint
ananas-block Jun 27, 2025
21e81f1
format
ananas-block Jun 30, 2025
4c9826b
refactored folder structure
ananas-block Jul 4, 2025
f486b81
fix: instruction matching
ananas-block Jul 4, 2025
dc7ffb2
test env works
ananas-block Jul 4, 2025
9b34681
renamed Config -> ZeroCopyConfig, impl ZeroCopyMut light compressed a…
ananas-block Jul 5, 2025
941ccf6
refactored mint compiles
ananas-block Jul 5, 2025
d1bdcf9
anchor reexport in wrapped program
ananas-block Jul 5, 2025
90a4900
create compressed mint works
ananas-block Jul 5, 2025
037ab17
stash pre outputs
ananas-block Jul 5, 2025
06552e1
outputs random test
ananas-block Jul 5, 2025
78636b1
added context
ananas-block Jul 5, 2025
df3f947
stash pre input accounts
ananas-block Jul 5, 2025
4c506ef
stash mint output account creation
ananas-block Jul 5, 2025
589bf20
added create in and out mint account
ananas-block Jul 6, 2025
ab59232
compressed mint account test
ananas-block Jul 6, 2025
7f20ff6
refactor cpi execution
ananas-block Jul 6, 2025
37bb7d5
tests work
ananas-block Jul 6, 2025
457f07a
move create spl mint
ananas-block Jul 6, 2025
7de8e98
add inputs rnd test
ananas-block Jul 6, 2025
5bec734
stash multi transfer
ananas-block Jul 6, 2025
9e74c29
process_multi_transfer compiles
ananas-block Jul 6, 2025
2f56879
cleanup conversions
ananas-block Jul 6, 2025
fc0e08c
refactor: multitransfer file structure
ananas-block Jul 6, 2025
00be4ab
added multi sum check
ananas-block Jul 6, 2025
a098758
sum check tests
ananas-block Jul 6, 2025
a4bba67
add process_token_compression
ananas-block Jul 6, 2025
cf4bcdd
add create ata
ananas-block Jul 7, 2025
e8633e5
feat: create token account
ananas-block Jul 7, 2025
a7f48dd
feat: close account
ananas-block Jul 7, 2025
f82043b
fix multi sum test
ananas-block Jul 7, 2025
664d5cf
fix create token account and add integration tests for create, create…
ananas-block Jul 7, 2025
3965fd9
stash
ananas-block Jul 7, 2025
9b306bf
opt account info conversion
ananas-block Jul 7, 2025
30cfb27
stash create compressed mint passed
ananas-block Jul 8, 2025
cf4fe45
mint to compressed works
ananas-block Jul 8, 2025
3cefde9
tests work
ananas-block Jul 8, 2025
db564f9
cleanup
ananas-block Jul 8, 2025
97a5997
cleaned up accounts
ananas-block Jul 8, 2025
f23f83e
multi transfer function works
ananas-block Jul 8, 2025
23abced
still works
ananas-block Jul 8, 2025
84b759e
cleanup
ananas-block Jul 8, 2025
ff21a98
decompress test works
ananas-block Jul 8, 2025
ddd267a
stash extensions
ananas-block Jul 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ jobs:
cargo test -p light-account-checks --all-features
cargo test -p light-verifier --all-features
cargo test -p light-merkle-tree-metadata --all-features
cargo test -p light-zero-copy --features std
cargo test -p light-zero-copy --features "std, mut, derive"
cargo test -p light-zero-copy-derive --features "mut"
cargo test -p light-hash-set --all-features
- name: program-libs-slow
packages: light-bloom-filter light-indexed-merkle-tree light-batched-merkle-tree
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,5 @@ output1.txt
.zed

**/.claude/**/*

expand.rs
78 changes: 76 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ members = [
"program-libs/hash-set",
"program-libs/indexed-merkle-tree",
"program-libs/indexed-array",
"program-libs/zero-copy-derive",
"programs/account-compression",
"programs/system",
"programs/compressed-token",
"programs/compressed-token/program",
"programs/compressed-token/anchor",
"programs/registry",
"anchor-programs/system",
"sdk-libs/client",
Expand Down Expand Up @@ -105,6 +107,7 @@ solana-system-interface = { version = "1" }
solana-security-txt = "1.1.1"
spl-token = "7.0.0"
spl-token-2022 = { version = "7", features = ["no-entrypoint"] }
spl-pod = "0.5.1"
pinocchio = { version = "0.8.4" }
bs58 = "^0.5.1"
litesvm = "0.6.1"
Expand Down Expand Up @@ -167,12 +170,13 @@ light-compressed-account = { path = "program-libs/compressed-account", version =
light-account-checks = { path = "program-libs/account-checks", version = "0.3.0" }
light-verifier = { path = "program-libs/verifier", version = "2.1.0" }
light-zero-copy = { path = "program-libs/zero-copy", version = "0.2.0" }
light-zero-copy-derive = { path = "program-libs/zero-copy-derive", version = "0.1.0" }
photon-api = { path = "sdk-libs/photon-api", version = "0.51.0" }
forester-utils = { path = "forester-utils", version = "2.0.0" }
account-compression = { path = "programs/account-compression", version = "2.0.0", features = [
"cpi",
] }
light-compressed-token = { path = "programs/compressed-token", version = "2.0.0", features = [
light-compressed-token = { path = "programs/compressed-token/program", version = "2.0.0", features = [
"cpi",
] }
light-system-program-anchor = { path = "anchor-programs/system", version = "2.0.0", features = [
Expand Down
Loading