Skip to main content

DenyCapV1

open class DenyCapV1 : Disposable, AutoCloseable, DenyCapV1Interface

A typed view of an on-chain 0x2::coin::DenyCapV1<T> object, the capability for denying addresses from using a regulated coin.

Functions

NameSummary
allowGlobalPauseopen override fun allowGlobalPause(): Boolean
Whether the bearer may also enable a global pause.
close@Synchronized
open override fun close()
destroyopen override fun destroy()
idopen override fun id(): ObjectId
The object's ID.
toStringopen override fun toString(): String

Companion object functions

NameSummary
tryFromBcsfun tryFromBcs(bytes: ByteArray): DenyCapV1
Decode from BCS bytes, without validating the on-chain type tag.
tryFromObjectWithTypefun tryFromObjectWithType(object: Object, typeParam: TypeTag): DenyCapV1
Decode from an on-chain object, validating its Move type tag, including that its type parameter equals type_param.