TokenPolicyCap
type TokenPolicyCap
A typed view of an on-chain `0x2::token::TokenPolicyCap<T>` object.
type TokenPolicyCap struct {
// contains filtered or unexported fields
}
func LiftFromExternalTokenPolicyCap
func LiftFromExternalTokenPolicyCap(handle uint64) *TokenPolicyCap
func TokenPolicyCapTryFromBcs
func TokenPolicyCapTryFromBcs(bytes []byte) (*TokenPolicyCap, error)
Decode from BCS bytes, without validating the on-chain type tag.
func TokenPolicyCapTryFromObjectWithType
func TokenPolicyCapTryFromObjectWithType(object *Object, typeParam *TypeTag) (*TokenPolicyCap, error)
Decode from an on-chain object, validating its Move type tag, including that its type parameter equals `type_param`.
func (*TokenPolicyCap) DebugString
func (_self *TokenPolicyCap) DebugString() string
func (*TokenPolicyCap) Destroy
func (object *TokenPolicyCap) Destroy()
func (*TokenPolicyCap) Id
func (_self *TokenPolicyCap) Id() *ObjectId
The object's ID.
func (*TokenPolicyCap) PolicyId
func (_self *TokenPolicyCap) PolicyId() *ObjectId
Object ID of the `TokenPolicy` this cap controls (the Move `for` field).