convert

package
v0.51.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 License: AGPL-3.0 Imports: 8 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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. CAUTION: This function must only be used for input events computed locally, by an Execution or Verification Node; it is not resilient to malicious inputs. No errors are expected during normal operation.

func VersionBoundary added in v0.37.20

func VersionBoundary(value cadence.Value) (
	flow.VersionBoundary,
	error,
)

VersionBoundary decodes a single version boundary from the given Cadence value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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