convert

package
v0.23.6 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2022 License: AGPL-3.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EpochCommitFixture

func EpochCommitFixture(chain flow.ChainID) (flow.Event, *flow.EpochCommit)

EpochCommitFixture returns an EpochCommit service event as a Cadence event representation and as a protocol model representation.

func EpochSetupFixture

func EpochSetupFixture(chain flow.ChainID) (flow.Event, *flow.EpochSetup)

EpochSetupFixture returns an EpochSetup service event as a Cadence event representation and as a protocol model representation.

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