Skip to main content

MovePackage

Namespace: IotaSdk

A move package

BCS

The BCS serialized form of this type is specified in bcs-schema.abnf.

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, ModuleMap, TypeOrigin[], LinkageMap)​

public MovePackage(ObjectId id, Version version, ModuleMap modules, TypeOrigin[] typeOriginTable, LinkageMap linkageTable)

Parameters​

id ObjectId

version Version

modules ModuleMap

typeOriginTable TypeOrigin[]

linkageTable LinkageMap

Methods​

Destroy()​

public void Destroy()

Dispose()​

public void Dispose()

Digest()​

Calculate the digest of the MovePackage.

public Digest Digest()

Returns​

Digest

Id()​

public ObjectId Id()

Returns​

ObjectId

LinkageTable()​

public LinkageMap LinkageTable()

Returns​

LinkageMap

Module(Identifier)​

Retrieve the module from this package with the given Identifier.

public Byte[]? Module(Identifier name)

Parameters​

name Identifier

Returns​

Byte[]?

Modules()​

public ModuleMap Modules()

Returns​

ModuleMap

Size()​

Return the size of the package in bytes.

public ulong Size()

Returns​

UInt64

ToBcs()​

Convert this type to BCS encoded bytes.

public Byte[] ToBcs()

Returns​

Byte[]

Exceptions​

SdkFfiException

ToDisplayString()​

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.

public string ToDisplayString()

Returns​

String

ToJson()​

Convert this type to a JSON encoded string.

public string ToJson()

Returns​

String

Exceptions​

SdkFfiException

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

FromBcs(Byte[])​

Create this type from BCS encoded bytes.

public static MovePackage FromBcs(Byte[] bcs)

Parameters​

bcs Byte[]

Returns​

MovePackage

Exceptions​

SdkFfiException

FromJson(String)​

Create this type from a JSON encoded string.

public static MovePackage FromJson(string json)

Parameters​

json String

Returns​

MovePackage

Exceptions​

SdkFfiException