solanatxmetaparsers

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseAnyTransactionStatusMeta

func ParseAnyTransactionStatusMeta(buf []byte) (any, error)

func ParseTransactionStatusMeta

func ParseTransactionStatusMeta(buf []byte) (*confirmed_block.TransactionStatusMeta, error)

Types

type TransactionStatusMetaContainer added in v0.5.0

type TransactionStatusMetaContainer struct {
	// contains filtered or unexported fields
}

func ParseTransactionStatusMetaContainer added in v0.5.0

func ParseTransactionStatusMetaContainer(buf []byte) (*TransactionStatusMetaContainer, error)

ParseTransactionStatusMetaContainer parses the transaction status meta from the given bytes. It tries to parse the bytes as the latest protobuf format, then the latest serde format, and finally the oldest serde format. It returns a container that holds the parsed value.

func (*TransactionStatusMetaContainer) GetProtobuf added in v0.5.0

GetProtobuf returns the contained protobuf value.

func (*TransactionStatusMetaContainer) GetSerdeLatest added in v0.5.0

GetSerdeLatest returns the contained latest serde format value.

func (*TransactionStatusMetaContainer) GetSerdeOldest added in v0.5.0

GetSerdeOldest returns the contained oldest serde format value.

func (*TransactionStatusMetaContainer) IsEmpty added in v0.5.0

func (c *TransactionStatusMetaContainer) IsEmpty() bool

IsEmpty returns true if the container holds no value.

func (*TransactionStatusMetaContainer) IsProtobuf added in v0.5.0

func (c *TransactionStatusMetaContainer) IsProtobuf() bool

IsProtobuf returns true if the contained value is a protobuf.

func (*TransactionStatusMetaContainer) IsSerdeLatest added in v0.5.0

func (c *TransactionStatusMetaContainer) IsSerdeLatest() bool

IsSerdeLatest returns true if the contained value is the latest serde format.

func (*TransactionStatusMetaContainer) IsSerdeOldest added in v0.5.0

func (c *TransactionStatusMetaContainer) IsSerdeOldest() bool

IsSerdeOldest returns true if the contained value is the oldest serde format.

func (*TransactionStatusMetaContainer) Ok added in v0.5.0

Ok returns true if the container holds a value.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL