Skip to main content
Version: 1.7.0

dynamic_entrypoints

type t = big_map<nat, bytes>

Type `t` is an alias of the predefined type `dynamic_entrypoints`.

let set: <param, storage>(_: dynamic_entrypoint<param, storage>) => (_: option<entrypoint<param, storage>>) => ( _: dynamic_entrypoints ) => dynamic_entrypoints

The call Dynamic_entrypoints.set(dyn, 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(entrypoint), dyn_map) is a copy of dyn_map where the dynamic entrypoint dyn is associated to the static entrypoint entrypoint.

let set_bytes: <param, storage>(_: dynamic_entrypoint<param, storage>) => (_: option<bytes>) => (_: dynamic_entrypoints) => dynamic_entrypoints

The call Dynamic_entrypoints.set_bytes(dyn, 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(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.

let get: <param, storage>(_: dynamic_entrypoint<param, storage>) => (_: dynamic_entrypoints) => option< entrypoint<param, storage> >

The call Dynamic_entrypoints.get(dyn, dyn_map) is None() if the dynamic entrypoint dyn is absent from the dynamic entrypoints map dyn_map. Otherwise, it is Some(entry), where entry is a static entrypoint that is callable (like a function). See type entrypoint.