Documentation
¶
Index ¶
- func BytesToRegisters(bb [][]byte) (flow.RegisterIDs, error)
- func BytesToValues(bb [][]byte) []flow.RegisterValue
- func CommitToHash(commit flow.StateCommitment) []byte
- func IDToHash(id flow.Identifier) []byte
- func KeyToRegisterID(key ledger.Key) (flow.RegisterID, error)
- func ParseCadenceArgument(param string) (cadence.Value, error)
- func RegistersToBytes(values flow.RegisterIDs) [][]byte
- func RosettaTime(t time.Time) int64
- func StringsToTypes(ss []string) []flow.EventType
- func TypesToStrings(types []flow.EventType) []string
- func ValuesToBytes(values []flow.RegisterValue) [][]byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToRegisters ¶ added in v0.31.4
func BytesToRegisters(bb [][]byte) (flow.RegisterIDs, error)
BytesToRegisters converts a slice of byte slices into a slice of ledger registers.
func BytesToValues ¶
func BytesToValues(bb [][]byte) []flow.RegisterValue
BytesToValues converts a slice of byte slices into a slice of ledger values.
func CommitToHash ¶
func CommitToHash(commit flow.StateCommitment) []byte
CommitToHash converts a flow StateCommitment into a byte slice.
func IDToHash ¶
func IDToHash(id flow.Identifier) []byte
IDToHash converts a flow Identifier into a byte slice.
func KeyToRegisterID ¶ added in v0.31.4
func KeyToRegisterID(key ledger.Key) (flow.RegisterID, error)
KeyToRegisterID converts a ledger key into a register ID.
func ParseCadenceArgument ¶
ParseCadenceArgument parses strings that contain Cadence parameters into cadence values.
func RegistersToBytes ¶ added in v0.31.4
func RegistersToBytes(values flow.RegisterIDs) [][]byte
RegistersToBytes converts a slice of ledger registers 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 ¶
func ValuesToBytes(values []flow.RegisterValue) [][]byte
ValuesToBytes converts a slice of ledger values into a slice of byte slices.
Types ¶
This section is empty.