TokenPolicyProtocol
TokenPolicyProtocol Objects
class TokenPolicyProtocol(typing.Protocol)
A typed view of an on-chain 0x2::token::TokenPolicy<T> object.
id
def id() -> ObjectId
The object's ID.
rules
def rules() -> dict[str, typing.List[str]]
Fully-qualified type names of the rules attached to each action, keyed by action name.
spent_balance
def spent_balance() -> int
Balance spent on the spend action, in base units.