Skip to main content

TransferPolicy

type TransferPolicy

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

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

func LiftFromExternalTransferPolicy

func LiftFromExternalTransferPolicy(handle uint64) *TransferPolicy

func TransferPolicyTryFromBcs

func TransferPolicyTryFromBcs(bytes []byte) (*TransferPolicy, error)

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

func TransferPolicyTryFromObjectWithType

func TransferPolicyTryFromObjectWithType(object *Object, typeParam *TypeTag) (*TransferPolicy, error)

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

func (*TransferPolicy) Balance

func (_self *TransferPolicy) Balance() uint64

IOTA balance collected by the policy, in nanos.

func (*TransferPolicy) DebugString

func (_self *TransferPolicy) DebugString() string

func (*TransferPolicy) Destroy

func (object *TransferPolicy) Destroy()

func (*TransferPolicy) Id

func (_self *TransferPolicy) Id() *ObjectId

The object's ID.

func (*TransferPolicy) Rules

func (_self *TransferPolicy) Rules() []string

Fully-qualified type names of the rules attached to this policy.