package tezos-protocol-alpha
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=c6df840ebbf115e454db949028c595bec558a59a66cade73b52a6d099d6fa4d4
sha512=d8aee903b9fe130d73176bc8ec38b78c9ff65317da3cb4f3415f09af0c625b4384e7498201fdb61aa39086a7d5d409d0ab3423f9bc3ab989a680cf444a79bc13
doc/tezos_raw_protocol_alpha/Tezos_raw_protocol_alpha/Entrypoint_repr/index.html
Module Tezos_raw_protocol_alpha.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_alpha.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_alpha.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_alpha.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