package tezos-protocol-014-PtKathma
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=43723d096307603703a1a89ed1b2eb202b365f5e7824b96b0cbf813b343a6cf7
sha512=b2a637f2e965000d3d49ad85277ca24d6cb07a1a7cf2bc69d296d8b03ad78c3eaa8e21e94b9162e62c2e11649cd03bc845b2a3dafe623b91065df69d47dc8e4f
doc/tezos-protocol-014-PtKathma.raw/Tezos_raw_protocol_014_PtKathma/Entrypoint_repr/index.html
Module Tezos_raw_protocol_014_PtKathma.Entrypoint_repr
Source
An entrypoint is a non-empty string of at most 31 characters
val of_annot_strict :
loc:Script_repr.location ->
Non_empty_string.t ->
t Tezos_protocol_environment_014_PtKathma.Error_monad.tzresult
Converts an annot to an entrypoint. Returns an error if the string is too long or is "default".
val of_string_strict :
loc:Script_repr.location ->
string ->
t Tezos_protocol_environment_014_PtKathma.Error_monad.tzresult
Converts a string to an entrypoint. Returns an error if the string is too long or is "default". Converts "" to "default".
Converts a string to an entrypoint. Fails with Invalid_arg
if the string is too long or is "default". Converts "" to "default".
val of_annot_lax :
Non_empty_string.t ->
t Tezos_protocol_environment_014_PtKathma.Error_monad.tzresult
Converts an annot to an entrypoint. Returns an error if the string is too long. Accepts "default".
Converts an annot to an entrypoint. Returns None
if the string is too long. Accepts "default".
Converts a string to an entrypoint. Returns an error if the string is too long. Accepts "default" and converts "" to "default".
Converts an entrypoint to a non-empty string. "default" is kept as is.
Converts an entrypoint to a string used as an address suffix. For the default entrypoint, the result is the empty string. Otherwise it is "%" followed by the entrypoint.
Converts an entrypoint to a string used as a field annotation of a parameter union type. It is "%" followed by the entrypoint. The default entrypoint is converted to "%default".
Pretty-print an entrypoint
An encoding of entrypoints reusing the lax semantics. Decoding fails if the string is too long. "" is decoded into "default". "default" is encoded into "default".
An encoding of entrypoints reusing the strict semantics. Decoding fails if the string is too long or is "default". "" is decoded into "default". "default" is encoded into "".
An optimized encoding of entrypoints, used for operations.
Entrypoint RPC arg.
In-memory size of an entrypoint
Set of entrypoints
Map of entrypoints