Documentation ¶
Index ¶
- func DecodeCadenceValue[From cadence.Value, Into any](location string, value cadence.Value, decodeInner func(From) (Into, error)) (Into, error)
- func ServiceEvent(chainID flow.ChainID, event flow.Event) (*flow.ServiceEvent, error)
- func VersionBoundary(value cadence.Value) (flow.VersionBoundary, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeCadenceValue ¶ added in v0.30.5
func ServiceEvent ¶
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.
Click to show internal directories.
Click to hide internal directories.