Expand description
§jiminy-solana
Token readers, CPI guards, Ed25519, Merkle proofs, Pyth oracles, authority rotation, and the rest of the Solana platform helpers that depend on SPL Token / Token-2022.
This is where you go once your program starts touching tokens. Everything reads fields directly from account data – zero deserialization, zero allocation. Token-2022 extensions are screened with a single function call so you don’t get rugged by a permanent delegate you forgot to check.
ⓘ
use jiminy_solana::prelude::*;§Modules
| Module | |
|---|---|
token | SPL Token account readers, mint readers, Token-2022 extension screening |
cpi | Safe CPI wrappers, reentrancy guards, return data readers |
crypto | Ed25519 precompile verification, Merkle proof verification |
authority | Two-step authority rotation (propose + accept) |
balance | Pre/post CPI balance delta guards |
compute | Compute budget guards |
compose | Transaction composition guards (flash-loan detection) |
introspect | Raw transaction introspection |
oracle | Pyth V2 price feed readers |
twap | TWAP accumulators |
upgrade | Program upgrade authority verification (feature: programs) |
Depends on jiminy_core for validation, math, and account IO.
Re-exports§
pub use jiminy_core;pub use pinocchio;pub use pinocchio_system;pub use pinocchio_token;
Modules§
- authority
- Two-step authority handoff (propose + accept).
- balance
- Balance delta checks for CPI composition.
- compose
- Transaction composition guards.
- compute
- Compute unit budget guards.
- cpi
- Safe CPI wrappers, reentrancy guards, and return data readers.
- crypto
- Cryptographic verification: Ed25519 precompile and Merkle proofs.
- introspect
- Transaction introspection via Sysvar Instructions.
- oracle
- Zero-copy Pyth V2 price feed readers.
- prelude
- Convenience re-exports for the common jiminy-solana usage pattern.
- token
- SPL Token readers, mint readers, and Token-2022 extension screening.
- twap
- TWAP (time-weighted average price) accumulator math.
- upgrade
- Program upgrade authority verification.
Structs§
- Account
View - Wrapper struct for a
RuntimeAccount. - Address
- The address of a Solana account.
Enums§
- Program
Error - Reasons the program may fail