Documentation
¶
Index ¶
- func BytesToPaths(bb [][]byte) ([]ledger.Path, error)
- func BytesToValues(bb [][]byte) []ledger.Value
- func CommitToHash(commit flow.StateCommitment) []byte
- func IDToHash(id flow.Identifier) []byte
- func ParseCadenceArgument(param string) (cadence.Value, error)
- func PathsToBytes(paths []ledger.Path) [][]byte
- func RosettaTime(t time.Time) int64
- func StringsToTypes(ss []string) []flow.EventType
- func TypesToStrings(types []flow.EventType) []string
- func ValuesToBytes(values []ledger.Value) [][]byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToPaths ¶
BytesToPaths converts a slice of byte slices into a slice of ledger paths.
func BytesToValues ¶
BytesToValues converts a slice of byte slices into a slice of ledger values.
func CommitToHash ¶ added in v1.1.0
func CommitToHash(commit flow.StateCommitment) []byte
CommitToHash converts a flow StateCommitment into a byte slice.
func IDToHash ¶ added in v1.1.0
func IDToHash(id flow.Identifier) []byte
IDToHash converts a flow Identifier into a byte slice.
func ParseCadenceArgument ¶
ParseCadenceArgument parses strings that contain Cadence parameters into cadence values.
func PathsToBytes ¶
PathsToBytes converts a slice of ledger paths into a slice of byte slices.
func RosettaTime ¶
RosettaTime converts a time into a Rosetta-compatible timestamp.
func StringsToTypes ¶
StringsToTypes converts a slice of strings into a slice of flow event types.
func TypesToStrings ¶
TypesToStrings converts a slice of flow event types into a slice of strings.
func ValuesToBytes ¶
ValuesToBytes converts a slice of ledger values into a slice of byte slices.
Types ¶
This section is empty.