package tezos-protocol-alpha
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=ddfb5076eeb0b32ac21c1eed44e8fc86a6743ef18ab23fff02d36e365bb73d61
sha512=d22a827df5146e0aa274df48bc2150b098177ff7e5eab52c6109e867eb0a1f0ec63e6bfbb0e3645a6c2112de3877c91a17df32ccbff301891ce4ba630c997a65
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