Re-exports§
pub use crate::json::JsonAccountsDeserializer;
pub use crate::json::JsonSerializationOpts;
pub use crate::errors::ChainparserResult as Result;
Modules§
Structs§
- Chainparser
Deserializer - 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.
- IdlEnum
Variant - An enum variant which could be scalar (withouth fields) or tuple/struct (with fields).
- IdlError
Code - Error code and info for a specific error emitted by the program.
- IdlEvent
- A type of event emitted by the program.
- IdlEvent
Field - 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.
- IdlInstruction
Discriminant - A discriminant for an instruction.
- IdlInstructions
- IdlMetadata
- IDL Metadata only available with Shank.
- IdlState
- Program state found in the program..
- IdlType
Definition - Custom type definition.
Enums§
- Deserialize
Provider - Enum
Fields - Underlying fields of a tuple or struct IdlEnumVariant.
- IdlAccount
Item - IdlType
- Types that can be included in accounts or user defined structs or instruction args of an IDL.
- IdlType
Definition Ty - The underlying type of a IdlTypeDefinition, namely an enum with variants or a struct with fields.
Traits§
- Chainparser
Deserialize - Write
- A trait for writing or formatting into Unicode-accepting buffers or streams.