Skip to main content

Config

open class Config : Disposable, AutoCloseable, ConfigInterface

A typed view of an on-chain 0x2::config::Config<WriteCap> object, where WriteCap is the phantom type parameter from the Move declaration, not a concrete type.

Functions

NameSummary
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): Config
Decode from BCS bytes, without validating the on-chain type tag.
tryFromObjectWithTypefun tryFromObjectWithType(object: Object, typeParam: TypeTag): Config
Decode from an on-chain object, validating its Move type tag, including that its type parameter equals type_param.