Skip to main content

TransferPolicyCap

type TransferPolicyCap

A typed view of an on-chain `0x2::transfer_policy::TransferPolicyCap<T>` object.

type TransferPolicyCap struct {
// contains filtered or unexported fields
}

func LiftFromExternalTransferPolicyCap

func LiftFromExternalTransferPolicyCap(handle uint64) *TransferPolicyCap

func TransferPolicyCapTryFromBcs

func TransferPolicyCapTryFromBcs(bytes []byte) (*TransferPolicyCap, error)

Decode from BCS bytes, without validating the on-chain type tag.

func TransferPolicyCapTryFromObjectWithType

func TransferPolicyCapTryFromObjectWithType(object *Object, typeParam *TypeTag) (*TransferPolicyCap, error)

Decode from an on-chain object, validating its Move type tag, including that its type parameter equals `type_param`.

func (*TransferPolicyCap) DebugString

func (_self *TransferPolicyCap) DebugString() string

func (*TransferPolicyCap) Destroy

func (object *TransferPolicyCap) Destroy()

func (*TransferPolicyCap) Id

func (_self *TransferPolicyCap) Id() *ObjectId

The object's ID.

func (*TransferPolicyCap) PolicyId

func (_self *TransferPolicyCap) PolicyId() *ObjectId

Object ID of the `TransferPolicy` this cap controls.