MCPcopy Index your code
hub / github.com/anza-xyz/pinocchio

github.com/anza-xyz/pinocchio @v0.3.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.3.1 ↗ · + Follow
820 symbols 1,893 edges 155 files 133 documented · 16%
What it actually does AI analysis from the code graph — generated when you open this
loading…

Extension points exported contracts — how you extend this code

CpiWriter (Interface)
A trait for instructions that can be used in a CPI context. [27 implementers]
programs/token/src/instructions/mod.rs
Sysvar (Interface)
A type that holds sysvar data. [3 implementers]
sdk/src/sysvars/mod.rs
IntoBatch (Interface)
A trait for instructions that can be consumed directly into a `Batch`. [27 implementers]
programs/token/src/instructions/batch.rs
Resize (Interface)
Trait to indicate that an account can be resized. [1 implementers]
sdk/src/lib.rs
Sealed (Interface)
A sealed trait that prevents external implementations of the `IntoBatch` trait. [1 implementers]
programs/token/src/instructions/batch.rs
Sealed (Interface)
This is used to "seal" `Resize` and `UnsafeResize` traits, preventing external crates from implementing them for types o [1 …
sdk/src/lib.rs
UnsafeResize (Interface)
(no doc) [1 implementers]
sdk/src/lib.rs

Core symbols most depended-on inside this repo

write
called by 384
sdk/src/entrypoint/mod.rs
len
called by 273
sdk/src/sysvars/slot_hashes/mod.rs
invalid_argument_error
called by 84
programs/token/src/instructions/mod.rs
write_bytes
called by 77
programs/token-2022/src/lib.rs
is_empty
called by 39
sdk/src/sysvars/slot_hashes/mod.rs
push
called by 28
programs/token/src/instructions/batch.rs
write_bytes
called by 28
programs/system/src/instructions/mod.rs
account_borrow_failed_error
called by 24
programs/token/src/instructions/mod.rs

Shape

Method 522
Function 151
Class 131
Enum 9
Interface 7

Languages

Rust100%

Modules by API surface

sdk/src/entrypoint/mod.rs21 symbols
programs/token/src/state/account.rs20 symbols
programs/token-2022/src/state/account.rs20 symbols
sdk/src/sysvars/slot_hashes/test.rs19 symbols
sdk/src/sysvars/instructions.rs18 symbols
sdk/src/sysvars/slot_hashes/mod.rs17 symbols
programs/token/src/state/mint.rs13 symbols
programs/token/src/instructions/unwrap_lamports.rs13 symbols
programs/token/src/instructions/set_authority.rs13 symbols
programs/token-2022/src/state/mint.rs13 symbols
sdk/src/entrypoint/lazy.rs12 symbols
programs/token/src/instructions/withdraw_excess_lamports.rs12 symbols

For agents

$ claude mcp add pinocchio \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page