Module token

Source

Structs§

ActionRequest
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.
ActionRequestTypeTag
RuleKey
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.
RuleKeyTypeTag
Token
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
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.
TokenPolicyCap
A Capability that manages a single TokenPolicy specified in the for field. Created together with TokenPolicy in the new function.
TokenPolicyCapTypeTag
TokenPolicyCreated
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.
TokenPolicyCreatedTypeTag
TokenPolicyTypeTag
TokenTypeTag