Solana program for the ZUPY token ecosystem, built with the Pinocchio zero-copy framework.
| Address | |
|---|---|
| Program ID | ZUPYzr87cgminBywohtbUxnaiFMwXNy8A5pD9cCcvVU |
| Mint | ZUPYxKLjfRyRmoF6j8Su8D3aTDkB4k4uqXLqHn8wcao |
- Zero-copy account deserialization (no heap allocations)
- Token-2022 (SPL Token Extensions) integration
- ZK compressed tokens via Light Protocol
- Three-wallet security architecture (Treasury, Mint Authority, Transfer Authority)
- Rate limiting (per-transaction and daily)
- On-chain metadata (Token Metadata Interface)
Requires Solana CLI and the SBF toolchain.
# Build for deployment
cargo build-sbf
# Unit tests
cargo test --lib
# Full test suite (requires SBF binary)
cargo build-sbf && cargo testThis program is verified on Solana Explorer. To verify locally:
solana-verify get-program-hash ZUPYzr87cgminBywohtbUxnaiFMwXNy8A5pD9cCcvVU
solana-verify get-executable-hash target/deploy/zupy_token_program.soBoth hashes must match.
src/
lib.rs Entrypoint + instruction dispatch
constants.rs Seeds, program IDs, authority pubkeys
error.rs Error codes
instructions/ One file per instruction handler
helpers/ Shared validation, PDA derivation, CPI wrappers
state/ Zero-copy account layouts (TokenState, RateLimitState)
tests/
test_transfers.rs Full integration tests (Mollusk SVM)
test_split_burns.rs Split transfer + burn edge cases
test_cu_benchmarks.rs Compute unit benchmarks (all instructions)
test_entrypoint.rs Dispatch + discriminator tests
Licensed under the Apache License, Version 2.0. See LICENSE for details.