Skip to main content

Config

type Config

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.

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

func ConfigTryFromBcs

func ConfigTryFromBcs(bytes []byte) (*Config, error)

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

func ConfigTryFromObjectWithType

func ConfigTryFromObjectWithType(object *Object, typeParam *TypeTag) (*Config, error)

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

func LiftFromExternalConfig

func LiftFromExternalConfig(handle uint64) *Config

func (*Config) DebugString

func (_self *Config) DebugString() string

func (*Config) Destroy

func (object *Config) Destroy()

func (*Config) Id

func (_self *Config) Id() *ObjectId

The object's ID.