Skip to main content

MovePackage

type MovePackage​

A 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 MovePackage struct {
// contains filtered or unexported fields
}

func LiftFromExternalMovePackage​

func LiftFromExternalMovePackage(handle uint64) *MovePackage

func MovePackageFromBcs​

func MovePackageFromBcs(bcs []byte) (*MovePackage, error)

Create this type from BCS encoded bytes.

func MovePackageFromJson​

func MovePackageFromJson(json string) (*MovePackage, error)

Create this type from a JSON encoded string.

func NewMovePackage​

func NewMovePackage(id *ObjectId, version *Version, modules *ModuleMap, typeOriginTable []TypeOrigin, linkageTable *LinkageMap) (*MovePackage, error)

func (*MovePackage) DebugString​

func (_self *MovePackage) DebugString() string

func (*MovePackage) Destroy​

func (object *MovePackage) Destroy()

func (*MovePackage) Digest​

func (_self *MovePackage) Digest() *Digest

Calculate the digest of the MovePackage.

func (*MovePackage) Eq​

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

func (*MovePackage) Hash​

func (_self *MovePackage) Hash() uint64

func (*MovePackage) Id​

func (_self *MovePackage) Id() *ObjectId

func (*MovePackage) LinkageTable​

func (_self *MovePackage) LinkageTable() *LinkageMap

func (*MovePackage) Module​

func (_self *MovePackage) Module(name *Identifier) *[]byte

Retrieve the module from this package with the given Identifier.

func (*MovePackage) Modules​

func (_self *MovePackage) Modules() *ModuleMap

func (*MovePackage) Ne​

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

func (*MovePackage) Size​

func (_self *MovePackage) Size() uint64

Return the size of the package in bytes.

func (*MovePackage) ToBcs​

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

Convert this type to BCS encoded bytes.

func (*MovePackage) ToDisplayString​

func (_self *MovePackage) 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 (*MovePackage) ToJson​

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

Convert this type to a JSON encoded string.

func (*MovePackage) TypeOriginTable​

func (_self *MovePackage) TypeOriginTable() []TypeOrigin

func (*MovePackage) Version​

func (_self *MovePackage) Version() *Version