Documentation ¶
Index ¶
- func ParseAnyTransactionStatusMeta(buf []byte) (any, error)
- func ParseLegacyTransactionStatusMeta(buf []byte) (*metalatest.TransactionStatusMeta, error)
- func ParseLegacyTransactionStatusMetaOldest(buf []byte) (*metaoldest.TransactionStatusMeta, error)
- func ParseTransactionStatusMeta(buf []byte) (*confirmed_block.TransactionStatusMeta, error)
- type TransactionStatusMetaContainer
- func (c *TransactionStatusMetaContainer) GetProtobuf() *confirmed_block.TransactionStatusMeta
- func (c *TransactionStatusMetaContainer) GetSerdeLatest() *metalatest.TransactionStatusMeta
- func (c *TransactionStatusMetaContainer) GetSerdeOldest() *metaoldest.TransactionStatusMeta
- func (c *TransactionStatusMetaContainer) IsEmpty() bool
- func (c *TransactionStatusMetaContainer) IsProtobuf() bool
- func (c *TransactionStatusMetaContainer) IsSerdeLatest() bool
- func (c *TransactionStatusMetaContainer) IsSerdeOldest() bool
- func (c *TransactionStatusMetaContainer) Ok() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseLegacyTransactionStatusMeta ¶
func ParseLegacyTransactionStatusMeta(buf []byte) (*metalatest.TransactionStatusMeta, error)
func ParseLegacyTransactionStatusMetaOldest ¶
func ParseLegacyTransactionStatusMetaOldest(buf []byte) (*metaoldest.TransactionStatusMeta, 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
func (c *TransactionStatusMetaContainer) GetProtobuf() *confirmed_block.TransactionStatusMeta
GetProtobuf returns the contained protobuf value.
func (*TransactionStatusMetaContainer) GetSerdeLatest ¶ added in v0.5.0
func (c *TransactionStatusMetaContainer) GetSerdeLatest() *metalatest.TransactionStatusMeta
GetSerdeLatest returns the contained latest serde format value.
func (*TransactionStatusMetaContainer) GetSerdeOldest ¶ added in v0.5.0
func (c *TransactionStatusMetaContainer) GetSerdeOldest() *metaoldest.TransactionStatusMeta
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
func (c *TransactionStatusMetaContainer) Ok() bool
Ok returns true if the container holds a value.