Skip to main content

Publish

type Publish​

Command to publish a new move package

BCS​

The BCS serialized form of this type is specified in [`bcs-schema.abnf`](https://github.com/iotaledger/iota-rust-sdk/blob/develop/crates/iota-sdk-types/bcs-schema.abnf\).

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

func LiftFromExternalPublish​

func LiftFromExternalPublish(handle uint64) *Publish

func NewPublish​

func NewPublish(modules [][]byte, dependencies []*ObjectId) *Publish

func PublishFromBcs​

func PublishFromBcs(bcs []byte) (*Publish, error)

Create this type from BCS encoded bytes.

func PublishFromJson​

func PublishFromJson(json string) (*Publish, error)

Create this type from a JSON encoded string.

func (*Publish) DebugString​

func (_self *Publish) DebugString() string

func (*Publish) Dependencies​

func (_self *Publish) Dependencies() []*ObjectId

Set of packages that the to-be published package depends on

func (*Publish) Destroy​

func (object *Publish) Destroy()

func (*Publish) Eq​

func (_self *Publish) Eq(other *Publish) bool

func (*Publish) Modules​

func (_self *Publish) Modules() [][]byte

The serialized move modules

func (*Publish) Ne​

func (_self *Publish) Ne(other *Publish) bool

func (*Publish) ToBcs​

func (_self *Publish) ToBcs() ([]byte, error)

Convert this type to BCS encoded bytes.

func (*Publish) ToDisplayString​

func (_self *Publish) ToDisplayString() string

Render this type as human-readable text.

Some types also print this through the binding's native string conversion; this method is the spelling every object type has.

The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.

func (*Publish) ToJson​

func (_self *Publish) ToJson() (string, error)

Convert this type to a JSON encoded string.