convert

package
v0.27.6-retry-block-up... Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: AGPL-3.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyMessage = errors.New("protobuf message is empty")

Functions

func AccountToMessage

func AccountToMessage(a *flow.Account) (*entitiesproto.Account, error)

func BlockHeaderToMessage

func BlockHeaderToMessage(h *flow.Header) (*entitiesproto.BlockHeader, error)

func BlockToMessage

func BlockToMessage(h *flow.Block) (*entitiesproto.Block, error)

func EventToMessage

func EventToMessage(e flow.Event) *entitiesproto.Event

func EventsToMessages

func EventsToMessages(flowEvents []flow.Event) []*entitiesproto.Event

func IdentifierToMessage

func IdentifierToMessage(i flow.Identifier) []byte

func IdentifiersToMessages

func IdentifiersToMessages(l []flow.Identifier) [][]byte

func LightCollectionToMessage

func LightCollectionToMessage(c *flow.LightCollection) (*entitiesproto.Collection, error)

func MessageToAccountKey

func MessageToAccountKey(m *entitiesproto.AccountKey) (*flow.AccountPublicKey, error)

func MessageToIdentifier

func MessageToIdentifier(b []byte) flow.Identifier

func MessageToTransaction

func MessageToTransaction(m *entitiesproto.Transaction, chain flow.Chain) (flow.TransactionBody, error)

func MessagesToIdentifiers

func MessagesToIdentifiers(l [][]byte) []flow.Identifier

Types

This section is empty.

Jump to

Keyboard shortcuts

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