Crate chainparser

Source

Re-exports§

pub use crate::json::JsonAccountsDeserializer;
pub use crate::json::JsonSerializationOpts;
pub use crate::errors::ChainparserResult as Result;

Modules§

borsh
de
discriminator
errors
idl
ixs
json
spl
traits

Structs§

ChainparserDeserializer
Setup to deserialize accounts for a given program. The accounts are expected to have been serialized using the borsh format.
Idl
IDL that is compatible with what anchor and shank extract from a solana program.
IdlAccount
Metadata of an account that is provided when calling an instruction.
IdlAccounts
Accounts provided when calling an instruction.
IdlConst
A constant defined in the program.
IdlEnumVariant
An enum variant which could be scalar (withouth fields) or tuple/struct (with fields).
IdlErrorCode
Error code and info for a specific error emitted by the program.
IdlEvent
A type of event emitted by the program.
IdlEventField
A field that is part of a struct of an IdlTypeDefinition.
IdlField
A field in a struct, enum variant or [IdlInstruction] args.
IdlInstruction
This represents one Instruction which in the case of ShankInstruction is just one variant of that enum. We also expect it to only have one arg which is a custom type containing the respective instruction args.
IdlInstructionDiscriminant
A discriminant for an instruction.
IdlInstructions
IdlMetadata
IDL Metadata only available with Shank.
IdlState
Program state found in the program..
IdlTypeDefinition
Custom type definition.

Enums§

DeserializeProvider
EnumFields
Underlying fields of a tuple or struct IdlEnumVariant.
IdlAccountItem
IdlType
Types that can be included in accounts or user defined structs or instruction args of an IDL.
IdlTypeDefinitionTy
The underlying type of a IdlTypeDefinition, namely an enum with variants or a struct with fields.

Traits§

ChainparserDeserialize
Write
A trait for writing or formatting into Unicode-accepting buffers or streams.

Functions§

try_extract_classic_idl