PurchaseCap
type PurchaseCap
A typed view of an on-chain `0x2::kiosk::PurchaseCap<T>` object.
type PurchaseCap struct {
// contains filtered or unexported fields
}
func LiftFromExternalPurchaseCap
func LiftFromExternalPurchaseCap(handle uint64) *PurchaseCap
func PurchaseCapTryFromBcs
func PurchaseCapTryFromBcs(bytes []byte) (*PurchaseCap, error)
Decode from BCS bytes, without validating the on-chain type tag.
func PurchaseCapTryFromObjectWithType
func PurchaseCapTryFromObjectWithType(object *Object, typeParam *TypeTag) (*PurchaseCap, error)
Decode from an on-chain object, validating its Move type tag, including that its type parameter equals `type_param`.
func (*PurchaseCap) DebugString
func (_self *PurchaseCap) DebugString() string
func (*PurchaseCap) Destroy
func (object *PurchaseCap) Destroy()
func (*PurchaseCap) Id
func (_self *PurchaseCap) Id() *ObjectId
The object's ID.
func (*PurchaseCap) ItemId
func (_self *PurchaseCap) ItemId() *ObjectId
Object ID of the listed item.
func (*PurchaseCap) KioskId
func (_self *PurchaseCap) KioskId() *ObjectId
Object ID of the kiosk the listed item belongs to.
func (*PurchaseCap) MinPrice
func (_self *PurchaseCap) MinPrice() uint64
Minimum price the item may be purchased for, in nanos.