Crate tiders_svm_decode

Crate tiders_svm_decode 

Source
Expand description

§tiders-svm-decode

Decodes Solana (SVM) program data from binary format into Apache Arrow RecordBatches.

Supports two types of decoding:

  • Instructions — Decodes Borsh-serialized instruction data using 8-byte discriminators and a typed parameter schema (InstructionSignature).
  • Program logs — Decodes base64-encoded log event data using a typed parameter schema (LogSignature).

The type system (DynType / DynValue) supports all Borsh primitives (i8–i128, u8–u128, bool) plus complex types (arrays, structs, enums, options).

Structs§

InstructionSignature
Defines the schema for decoding a Solana instruction: discriminator bytes, parameter types, and account names.
LogSignature
Defines the schema for decoding a Solana program log event: parameter types to decode from base64 data.
ParamInput
Represents a parameter input with a name and dynamic type

Enums§

DynType
Represents a dynamic type that can be deserialized from binary data
DynValue
Represents a dynamically deserialized value

Functions§

decode_instructions
decode_instructions_batch
Decodes instruction data from an Arrow RecordBatch into a new RecordBatch of decoded parameters and accounts.
decode_logs
Decodes base64-encoded log messages into a RecordBatch of typed parameter columns.
decode_logs_batch
Decodes log event data from an Arrow RecordBatch into a new RecordBatch of decoded parameters.
deserialize_data
Deserializes binary data into a vector of dynamic values based on the provided parameter types
instruction_signature_to_arrow_schema
Converts an InstructionSignature into an Arrow [Schema], mapping each parameter and account name to the corresponding Arrow field and data type.
match_discriminators