convert

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: AGPL-3.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EpochCommitFixture

func EpochCommitFixture() (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() (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(event flow.Event) (*flow.ServiceEvent, error)

ServiceEvent converts a service event encoded as the generic flow.Event type to a 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