TokenPolicy
open class TokenPolicy : Disposable, AutoCloseable, TokenPolicyInterface
A typed view of an on-chain 0x2::token::TokenPolicy<T> object.
Functions
| Name | Summary |
|---|---|
| close | @Synchronized open override fun close() |
| destroy | open override fun destroy() |
| id | open override fun id(): ObjectId The object's ID. |
| rules | open override fun rules(): Map<String, List<String>> Fully-qualified type names of the rules attached to each action, keyed by action name. |
| spentBalance | open override fun spentBalance(): ULong Balance spent on the spend action, in base units. |
| toString | open override fun toString(): String |
Companion object functions
| Name | Summary |
|---|---|
| tryFromBcs | fun tryFromBcs(bytes: ByteArray): TokenPolicy Decode from BCS bytes, without validating the on-chain type tag. |
| tryFromObjectWithType | fun tryFromObjectWithType(object: Object, typeParam: TypeTag): TokenPolicy Decode from an on-chain object, validating its Move type tag, including that its type parameter equals type_param. |