A request to perform an “Action” on a token. Stores the information
about the action to be performed and must be consumed by the confirm_request
or confirm_request_mut
functions when the Rules are satisfied.
Dynamic field key for the TokenPolicy
to store the Config
for a
specific action Rule
. There can be only one configuration per
Rule
per TokenPolicy
.
A single Token
with Balance
inside. Can only be owned by an address,
and actions performed on it must be confirmed in a matching TokenPolicy
.
TokenPolicy
represents a set of rules that define what actions can be
performed on a Token
and which Rules
must be satisfied for the
action to succeed.
A Capability that manages a single TokenPolicy
specified in the for
field. Created together with TokenPolicy
in the new
function.
An event emitted when a TokenPolicy
is created and shared. Because
TokenPolicy
can only be shared (and potentially frozen in the future),
we emit this event in the share_policy
function and mark it as mutable.