convert

package
v0.32.9 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: AGPL-3.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeCadenceValue added in v0.30.5

func DecodeCadenceValue[From cadence.Value, Into any](
	location string,
	value cadence.Value,
	decodeInner func(From) (Into, error),
) (Into, error)

func ServiceEvent

func ServiceEvent(chainID flow.ChainID, event flow.Event) (*flow.ServiceEvent, error)

ServiceEvent converts a service event encoded as the generic flow.Event type to a flow.ServiceEvent type for use within protocol software and protocol state. This acts as the conversion from the Cadence type to the flow-go type.

Types

This section is empty.

Jump to

Keyboard shortcuts

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