Skip to main content

Module wrapped_pumpfun_parser

Module wrapped_pumpfun_parser 

Source
Expand description

Explicitly opted-in, offline-validated wrapper rules. No RPC, clocks, or I/O. A rule describes an observed input layout, not proof of future CPI execution.

Structs§

WrappedPumpfunRule
Candidate rules must be reviewed and tested on independent transactions before the caller opts in. Never install analyzer output automatically.

Functions§

parse_wrapped_pumpfun_instruction
Use from a Shred RawInstruction callback with a caller-owned rule registry. Returns PumpFunTrade with input parameters, never fabricated executed amounts. Existing gRPC parsing does not call this function.
pump_trade_name
Narrow initial scope: fixed two-u64 v2 trades. Multi-hop and runtime-derived amounts are deliberately unsupported. Expand only with IDL-backed tests.
restore_instruction
Pure reconstruction. Missing ALT accounts, changed bytes or changed account constraints return None; the caller retains the original RawInstruction.

Type Aliases§

ThirdProgram
Compatibility name for the raw outer instruction payload. Rule identifiers belong to the caller’s rule registry, not the transaction’s provenance.