CoinManager
open class CoinManager : Disposable, AutoCloseable, CoinManagerInterface
A typed view of an on-chain 0x2::coin_manager::CoinManager<T> object.
Functions
| Name | Summary |
|---|---|
| close | @Synchronized open override fun close() |
| destroy | open override fun destroy() |
| id | open override fun id(): ObjectId The object's ID. |
| immutableMetadata | open override fun immutableMetadata(): ImmutableCoinMetadata? Frozen fallback metadata, used only if the original metadata has been frozen. |
| maximumSupply | open override fun maximumSupply(): ULong? Optional maximum supply cap, in base units. |
| metadata | open override fun metadata(): IotaCoinMetadata? The coin's CoinMetadata, if still held by the manager. |
| metadataImmutable | open override fun metadataImmutable(): Boolean Whether the metadata is considered immutable. |
| supplyImmutable | open override fun supplyImmutable(): Boolean Whether the supply is considered immutable. |
| toString | open override fun toString(): String |
| treasuryCap | open override fun treasuryCap(): TreasuryCap The embedded TreasuryCap controlling the coin's supply. |
Companion object functions
| Name | Summary |
|---|---|
| tryFromBcs | fun tryFromBcs(bytes: ByteArray): CoinManager Decode from BCS bytes, without validating the on-chain type tag. |
| tryFromObjectWithType | fun tryFromObjectWithType(object: Object, typeParam: TypeTag): CoinManager Decode from an on-chain object, validating its Move type tag, including that its type parameter equals type_param. |