Skip to main content

Crate jiminy_solana

Crate jiminy_solana 

Source
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
tokenSPL Token account readers, mint readers, Token-2022 extension screening
cpiSafe CPI wrappers, reentrancy guards, return data readers
cryptoEd25519 precompile verification, Merkle proof verification
authorityTwo-step authority rotation (propose + accept)
balancePre/post CPI balance delta guards
computeCompute budget guards
composeTransaction composition guards (flash-loan detection)
introspectRaw transaction introspection
oraclePyth V2 price feed readers
twapTWAP accumulators
upgradeProgram 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§

AccountView
Wrapper struct for a RuntimeAccount.
Address
The address of a Solana account.

Enums§

ProgramError
Reasons the program may fail

Type Aliases§

ProgramResult