dynamic_entrypoints
type t = big_map<nat, bytes>
Type t is an alias of the predefined type
dynamic_entrypoints.
set: <param, storage>(dyn: dynamic_entrypoint<param, storage>, entry_opt: option<entrypoint<param, storage>>, dyn_map: dynamic_entrypoints ) => dynamic_entrypoints
The call Dynamic_entrypoints.set(dyn, ["None" as "None"], dyn_map)
returns a copy of the map of dynamic entrypoints dyn_map where the
dynamic entrypoint dyn is not associated to a static entrypoint. The
call Dynamic_entrypoints.set(dyn, ["Some" as "Some", entrypoint],
dyn_map) is a copy of dyn_map where the dynamic entrypoint dyn is
associated to the static entrypoint entrypoint.
set_bytes: <param, storage>(dyn: dynamic_entrypoint<param, storage>, bytes_opt: option<bytes>, dyn_map: dynamic_entrypoints) => dynamic_entrypoints
The call Dynamic_entrypoints.set_bytes(dyn, ["None" as "None"],
dyn_map) returns a copy of the map of dynamic entrypoints dyn_map
where the dynamic entrypoint dyn is not associated to a static
entrypoint. The call Dynamic_entrypoints.set_bytes(dyn,
["Some" as "Some", bytes], dyn_map) is a copy of dyn_map where the
dynamic entrypoint dyn is associated to the static entrypoint
encoded by the sequence of bytes bytes. If that sequence is invalid,
any call to the dynamic entrypoint will fail.
get: <param, storage>(dyn: dynamic_entrypoint<param, storage>, dyn_map: dynamic_entrypoints) => option<entrypoint<param, storage>>
The call Dynamic_entrypoints.get(dyn, dyn_map) is
["None" as "None"] if the dynamic entrypoint dyn is absent from
the dynamic entrypoints map dyn_map. Otherwise, it is
["Some" as "Some", entry], where entry is a static entrypoint that
is callable (like a function). See type entrypoint.