{"modulePath":"github.com/onflow/flow-archive","version":"v0.31.9-decrease-wait-interval","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package convert\n\n## Functions\n\n```go\nfunc BytesToRegisters(bb [][]byte) (flow.RegisterIDs, error)\n```\nBytesToRegisters converts a slice of byte slices into a slice of ledger registers.\n\n```go\nfunc BytesToValues(bb [][]byte) []flow.RegisterValue\n```\nBytesToValues converts a slice of byte slices into a slice of ledger values.\n\n```go\nfunc CommitToHash(commit flow.StateCommitment) []byte\n```\nCommitToHash converts a flow StateCommitment into a byte slice.\n\n```go\nfunc IDToHash(id flow.Identifier) []byte\n```\nIDToHash converts a flow Identifier into a byte slice.\n\n```go\nfunc KeyToRegisterID(key ledger.Key) (flow.RegisterID, error)\n```\nKeyToRegisterID converts a ledger key into a register ID.\n\n```go\nfunc ParseCadenceArgument(param string) (cadence.Value, error)\n```\nParseCadenceArgument parses strings that contain Cadence parameters into cadence values.\n\n```go\nfunc RegistersToBytes(values flow.RegisterIDs) [][]byte\n```\nRegistersToBytes converts a slice of ledger registers into a slice of byte slices.\n\n```go\nfunc RosettaTime(t time.Time) int64\n```\nRosettaTime converts a time into a Rosetta-compatible timestamp.\n\n```go\nfunc StringsToTypes(ss []string) []flow.EventType\n```\nStringsToTypes converts a slice of strings into a slice of flow event types.\n\n```go\nfunc TypesToStrings(types []flow.EventType) []string\n```\nTypesToStrings converts a slice of flow event types into a slice of strings.\n\n```go\nfunc ValuesToBytes(values []flow.RegisterValue) [][]byte\n```\nValuesToBytes converts a slice of ledger values into a slice of byte slices.\n\n","path":"github.com/onflow/flow-archive/models/convert","name":"convert","synopsis":"","isRedistributable":true}
