Skip to main content

Publish

type Publish​

Command to publish a new move package

BCS​

The BCS serialized form for this type is defined by the following ABNF:

```text publish = (vector bytes) ; the serialized move modules (vector object-id) ; the set of package dependencies ```

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 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