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
Id()
public ObjectId Id()
Returns
LinkageTable()
public LinkageMap LinkageTable()
Returns
Module(Identifier)
Retrieve the module from this package with the given Identifier.
public Byte[]? Module(Identifier name)
Parameters
name Identifier
Returns
Modules()
public ModuleMap Modules()
Returns
Size()
Return the size of the package in bytes.
public ulong Size()
Returns
ToBcs()
Convert this type to BCS encoded bytes.
public Byte[] ToBcs()
Returns
Exceptions
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
ToJson()
Convert this type to a JSON encoded string.
public string ToJson()
Returns
Exceptions
TypeOriginTable()
public TypeOrigin[] TypeOriginTable()
Returns
Version()
public Version Version()
Returns
Equals(MovePackage)
public bool Equals(MovePackage? other)
Parameters
other MovePackage?
Returns
Equals(Object)
public override bool Equals(object? obj)
Parameters
obj Object?
Returns
GetHashCode()
public override int GetHashCode()
Returns
FromBcs(Byte[])
Create this type from BCS encoded bytes.
public static MovePackage FromBcs(Byte[] bcs)
Parameters
bcs Byte[]
Returns
Exceptions
FromJson(String)
Create this type from a JSON encoded string.
public static MovePackage FromJson(string json)
Parameters
json String