Documentation ¶
Index ¶
- Variables
- func AccountKeyToMessage(a *flow.AccountKey) *entities.AccountKey
- func AccountToMessage(a flow.Account) *entities.Account
- func BlockHeaderToMessage(b flow.BlockHeader) (*entities.BlockHeader, error)
- func BlockToMessage(b flow.Block) (*entities.Block, error)
- func CadenceValueToMessage(value cadence.Value) ([]byte, error)
- func CollectionGuaranteeToMessage(g flow.CollectionGuarantee) *entities.CollectionGuarantee
- func CollectionGuaranteesToMessages(l []*flow.CollectionGuarantee) []*entities.CollectionGuarantee
- func CollectionToMessage(c flow.Collection) *entities.Collection
- func EventToMessage(e flow.Event) (*entities.Event, error)
- func IdentifierToMessage(i flow.Identifier) []byte
- func IdentifiersToMessages(l []flow.Identifier) [][]byte
- func MessageToAccount(m *entities.Account) (flow.Account, error)
- func MessageToAccountKey(m *entities.AccountKey) (*flow.AccountKey, error)
- func MessageToBlock(m *entities.Block) (flow.Block, error)
- func MessageToBlockHeader(m *entities.BlockHeader) (flow.BlockHeader, error)
- func MessageToCadenceValue(m []byte) (cadence.Value, error)
- func MessageToCollection(m *entities.Collection) (flow.Collection, error)
- func MessageToCollectionGuarantee(m *entities.CollectionGuarantee) (flow.CollectionGuarantee, error)
- func MessageToEvent(m *entities.Event) (flow.Event, error)
- func MessageToIdentifier(b []byte) flow.Identifier
- func MessageToTransaction(m *entities.Transaction) (flow.Transaction, error)
- func MessageToTransactionResult(m *access.TransactionResultResponse) (flow.TransactionResult, error)
- func MessagesToCollectionGuarantees(l []*entities.CollectionGuarantee) ([]*flow.CollectionGuarantee, error)
- func MessagesToIdentifiers(l [][]byte) []flow.Identifier
- func TransactionResultToMessage(result flow.TransactionResult) (*access.TransactionResultResponse, error)
- func TransactionToMessage(t flow.Transaction) (*entities.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyMessage = errors.New("protobuf message is empty")
Functions ¶
func AccountKeyToMessage ¶
func AccountKeyToMessage(a *flow.AccountKey) *entities.AccountKey
func AccountToMessage ¶
func BlockHeaderToMessage ¶
func BlockHeaderToMessage(b flow.BlockHeader) (*entities.BlockHeader, error)
func BlockToMessage ¶
func CadenceValueToMessage ¶ added in v0.4.0
func CollectionGuaranteeToMessage ¶
func CollectionGuaranteeToMessage(g flow.CollectionGuarantee) *entities.CollectionGuarantee
func CollectionGuaranteesToMessages ¶
func CollectionGuaranteesToMessages(l []*flow.CollectionGuarantee) []*entities.CollectionGuarantee
func CollectionToMessage ¶
func CollectionToMessage(c flow.Collection) *entities.Collection
func EventToMessage ¶
func IdentifierToMessage ¶ added in v0.4.0
func IdentifierToMessage(i flow.Identifier) []byte
func IdentifiersToMessages ¶ added in v0.4.0
func IdentifiersToMessages(l []flow.Identifier) [][]byte
func MessageToAccount ¶
func MessageToAccountKey ¶
func MessageToAccountKey(m *entities.AccountKey) (*flow.AccountKey, error)
func MessageToBlock ¶
func MessageToBlockHeader ¶
func MessageToBlockHeader(m *entities.BlockHeader) (flow.BlockHeader, error)
func MessageToCadenceValue ¶ added in v0.4.0
func MessageToCollection ¶
func MessageToCollection(m *entities.Collection) (flow.Collection, error)
func MessageToCollectionGuarantee ¶
func MessageToCollectionGuarantee(m *entities.CollectionGuarantee) (flow.CollectionGuarantee, error)
func MessageToEvent ¶
func MessageToIdentifier ¶ added in v0.4.0
func MessageToIdentifier(b []byte) flow.Identifier
func MessageToTransaction ¶
func MessageToTransaction(m *entities.Transaction) (flow.Transaction, error)
func MessageToTransactionResult ¶
func MessageToTransactionResult(m *access.TransactionResultResponse) (flow.TransactionResult, error)
func MessagesToCollectionGuarantees ¶
func MessagesToCollectionGuarantees(l []*entities.CollectionGuarantee) ([]*flow.CollectionGuarantee, error)
func MessagesToIdentifiers ¶ added in v0.4.0
func MessagesToIdentifiers(l [][]byte) []flow.Identifier
func TransactionResultToMessage ¶
func TransactionResultToMessage(result flow.TransactionResult) (*access.TransactionResultResponse, error)
func TransactionToMessage ¶
func TransactionToMessage(t flow.Transaction) (*entities.Transaction, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.