Skip to main content

MovePackage

Namespace: IotaSdk

A move package

BCS

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

move-package = object-id ; id
u64 ; version
(vector (identifier bytes)) ; modules
(vector type-origin) ; type-origin-table
(vector (object-id upgrade-info)) ; linkage-table
public class MovePackage : IMovePackage, System.IEquatable`1[[IotaSdk.MovePackage, IotaSdk, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.IDisposable

Inheritance Object → MovePackage
Implements IMovePackage, IEquatable<MovePackage>, IDisposable
Attributes NullableContextAttribute, NullableAttribute

Constructors​

MovePackage(UInt64)​

public MovePackage(ulong pointer)

Parameters​

pointer UInt64

MovePackage(ObjectId, Version, Dictionary<Identifier, Byte[]>, TypeOrigin[], Dictionary<ObjectId, UpgradeInfo>)​

public MovePackage(ObjectId id, Version version, Dictionary<Identifier, Byte[]> modules, TypeOrigin[] typeOriginTable, Dictionary<ObjectId, UpgradeInfo> linkageTable)

Parameters​

id ObjectId

version Version

modules Dictionary<Identifier, Byte[]>

typeOriginTable TypeOrigin[]

linkageTable Dictionary<ObjectId, UpgradeInfo>

Methods​

Destroy()​

public void Destroy()

Dispose()​

public void Dispose()

Id()​

public ObjectId Id()

Returns​

ObjectId

LinkageTable()​

public Dictionary<ObjectId, UpgradeInfo> LinkageTable()

Returns​

Dictionary<ObjectId, UpgradeInfo>

Modules()​

public Dictionary<Identifier, Byte[]> Modules()

Returns​

Dictionary<Identifier, Byte[]>

TypeOriginTable()​

public TypeOrigin[] TypeOriginTable()

Returns​

TypeOrigin[]

Version()​

public Version Version()

Returns​

Version

Equals(MovePackage)​

public bool Equals(MovePackage? other)

Parameters​

other MovePackage?

Returns​

Boolean

Equals(Object)​

public override bool Equals(object? obj)

Parameters​

obj Object?

Returns​

Boolean

GetHashCode()​

public override int GetHashCode()

Returns​

Int32