compatibility

package
v6.0.0-...-9259e93 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 8 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMetadataDatumMap

func GetMetadataDatumMap(txMetadata json.RawMessage, metadataDatumKey int) (map[string][]byte, error)

func GetMetadataDatums

func GetMetadataDatums(txMetadata json.RawMessage, metadataDatumKey int) ([][]byte, error)

Types

type CompatibleOgmiosAuxiliaryData

type CompatibleOgmiosAuxiliaryData chainsync.OgmiosAuxiliaryDataV6

func (CompatibleOgmiosAuxiliaryData) MarshalDynamoDBAttributeValue

func (c CompatibleOgmiosAuxiliaryData) MarshalDynamoDBAttributeValue(item *dynamodb.AttributeValue) error

func (CompatibleOgmiosAuxiliaryData) MarshalJSON

func (c CompatibleOgmiosAuxiliaryData) MarshalJSON() ([]byte, error)

For now, serialize as v5

func (*CompatibleOgmiosAuxiliaryData) UnmarshalDynamoDBAttributeValue

func (c *CompatibleOgmiosAuxiliaryData) UnmarshalDynamoDBAttributeValue(item *dynamodb.AttributeValue) error

func (*CompatibleOgmiosAuxiliaryData) UnmarshalJSON

func (c *CompatibleOgmiosAuxiliaryData) UnmarshalJSON(data []byte) error

type CompatibleResponsePraos

type CompatibleResponsePraos chainsync.ResponsePraos

Frontend for converting v5 JSON responses to v6.

func (CompatibleResponsePraos) MarshalDynamoDBAttributeValue

func (c CompatibleResponsePraos) MarshalDynamoDBAttributeValue(item *dynamodb.AttributeValue) error

func (CompatibleResponsePraos) MarshalJSON

func (c CompatibleResponsePraos) MarshalJSON() ([]byte, error)

func (CompatibleResponsePraos) MustFindIntersectResult

func (r CompatibleResponsePraos) MustFindIntersectResult() CompatibleResultFindIntersection

func (CompatibleResponsePraos) MustNextBlockResult

func (r CompatibleResponsePraos) MustNextBlockResult() CompatibleResultNextBlock

func (*CompatibleResponsePraos) UnmarshalDynamoDBAttributeValue

func (c *CompatibleResponsePraos) UnmarshalDynamoDBAttributeValue(item *dynamodb.AttributeValue) error

func (*CompatibleResponsePraos) UnmarshalJSON

func (c *CompatibleResponsePraos) UnmarshalJSON(data []byte) error

type CompatibleResult

type CompatibleResult struct {
	NextBlock        *CompatibleResultNextBlock
	FindIntersection *CompatibleResultFindIntersection
}

func (CompatibleResult) MarshalDynamoDBAttributeValue

func (c CompatibleResult) MarshalDynamoDBAttributeValue(item *dynamodb.AttributeValue) error

func (CompatibleResult) MarshalJSON

func (c CompatibleResult) MarshalJSON() ([]byte, error)

func (*CompatibleResult) UnmarshalDynamoDBAttributeValue

func (c *CompatibleResult) UnmarshalDynamoDBAttributeValue(item *dynamodb.AttributeValue) error

func (*CompatibleResult) UnmarshalJSON

func (c *CompatibleResult) UnmarshalJSON(data []byte) error

type CompatibleResultFindIntersection

type CompatibleResultFindIntersection chainsync.ResultFindIntersectionPraos

Support findIntersect (v6) / FindIntersection (v5) universally.

func (CompatibleResultFindIntersection) MarshalDynamoDBAttributeValue

func (c CompatibleResultFindIntersection) MarshalDynamoDBAttributeValue(item *dynamodb.AttributeValue) error

func (CompatibleResultFindIntersection) MarshalJSON

func (c CompatibleResultFindIntersection) MarshalJSON() ([]byte, error)

For now, serialize as v5

func (CompatibleResultFindIntersection) String

func (*CompatibleResultFindIntersection) UnmarshalDynamoDBAttributeValue

func (c *CompatibleResultFindIntersection) UnmarshalDynamoDBAttributeValue(item *dynamodb.AttributeValue) error

func (*CompatibleResultFindIntersection) UnmarshalJSON

func (c *CompatibleResultFindIntersection) UnmarshalJSON(data []byte) error

Deserialize either v5 or v6 values

type CompatibleResultNextBlock

type CompatibleResultNextBlock chainsync.ResultNextBlockPraos

Support nextBlock (v6) / RequestNext (v5) universally.

func (CompatibleResultNextBlock) MarshalDynamoDBAttributeValue

func (c CompatibleResultNextBlock) MarshalDynamoDBAttributeValue(item *dynamodb.AttributeValue) error

func (CompatibleResultNextBlock) MarshalJSON

func (c CompatibleResultNextBlock) MarshalJSON() ([]byte, error)

func (CompatibleResultNextBlock) String

func (c CompatibleResultNextBlock) String() string

func (*CompatibleResultNextBlock) UnmarshalDynamoDBAttributeValue

func (c *CompatibleResultNextBlock) UnmarshalDynamoDBAttributeValue(item *dynamodb.AttributeValue) error

func (*CompatibleResultNextBlock) UnmarshalJSON

func (c *CompatibleResultNextBlock) UnmarshalJSON(data []byte) error

type CompatibleTx

type CompatibleTx chainsync.Tx

v5 and v6 transactions universally.

func (CompatibleTx) MarshalDynamoDBAttributeValue

func (c CompatibleTx) MarshalDynamoDBAttributeValue(item *dynamodb.AttributeValue) error

func (CompatibleTx) MarshalJSON

func (c CompatibleTx) MarshalJSON() ([]byte, error)

For now, serialize as v5

func (*CompatibleTx) UnmarshalDynamoDBAttributeValue

func (c *CompatibleTx) UnmarshalDynamoDBAttributeValue(item *dynamodb.AttributeValue) error

func (*CompatibleTx) UnmarshalJSON

func (c *CompatibleTx) UnmarshalJSON(data []byte) error

Deserialize either v5 or v6 values

type CompatibleTxOut

type CompatibleTxOut chainsync.TxOut

func (CompatibleTxOut) MarshalDynamoDBAttributeValue

func (to CompatibleTxOut) MarshalDynamoDBAttributeValue(item *dynamodb.AttributeValue) error

func (CompatibleTxOut) MarshalJSON

func (to CompatibleTxOut) MarshalJSON() ([]byte, error)

For now, serialize as v5

func (*CompatibleTxOut) UnmarshalDynamoDBAttributeValue

func (to *CompatibleTxOut) UnmarshalDynamoDBAttributeValue(item *dynamodb.AttributeValue) error

func (*CompatibleTxOut) UnmarshalJSON

func (to *CompatibleTxOut) UnmarshalJSON(data []byte) error

Deserialize either v5 or v6 values

type CompatibleValue

type CompatibleValue shared.Value

func (CompatibleValue) MarshalDynamoDBAttributeValue

func (c CompatibleValue) MarshalDynamoDBAttributeValue(item *dynamodb.AttributeValue) error

func (CompatibleValue) MarshalJSON

func (c CompatibleValue) MarshalJSON() ([]byte, error)

func (*CompatibleValue) UnmarshalDynamoDBAttributeValue

func (c *CompatibleValue) UnmarshalDynamoDBAttributeValue(item *dynamodb.AttributeValue) error

func (*CompatibleValue) UnmarshalJSON

func (c *CompatibleValue) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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