Skip to main content

CoinManager

type CoinManager

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

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

func CoinManagerTryFromBcs

func CoinManagerTryFromBcs(bytes []byte) (*CoinManager, error)

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

func CoinManagerTryFromObjectWithType

func CoinManagerTryFromObjectWithType(object *Object, typeParam *TypeTag) (*CoinManager, error)

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

func LiftFromExternalCoinManager

func LiftFromExternalCoinManager(handle uint64) *CoinManager

func (*CoinManager) DebugString

func (_self *CoinManager) DebugString() string

func (*CoinManager) Destroy

func (object *CoinManager) Destroy()

func (*CoinManager) Id

func (_self *CoinManager) Id() *ObjectId

The object's ID.

func (*CoinManager) ImmutableMetadata

func (_self *CoinManager) ImmutableMetadata() **ImmutableCoinMetadata

Frozen fallback metadata, used only if the original metadata has been frozen.

func (*CoinManager) MaximumSupply

func (_self *CoinManager) MaximumSupply() *uint64

Optional maximum supply cap, in base units.

func (*CoinManager) Metadata

func (_self *CoinManager) Metadata() **IotaCoinMetadata

The coin's `CoinMetadata`, if still held by the manager.

func (*CoinManager) MetadataImmutable

func (_self *CoinManager) MetadataImmutable() bool

Whether the metadata is considered immutable.

func (*CoinManager) SupplyImmutable

func (_self *CoinManager) SupplyImmutable() bool

Whether the supply is considered immutable.

func (*CoinManager) TreasuryCap

func (_self *CoinManager) TreasuryCap() *TreasuryCap

The embedded `TreasuryCap` controlling the coin's supply.