Class VersionedModuleSource
- Namespace
- Concordium.Sdk.Types
- Assembly
- Concordium.Sdk.dll
Contains source code of a versioned module where inherited classes are concrete versions.
public abstract record VersionedModuleSource : IEquatable<VersionedModuleSource>
- Inheritance
-
VersionedModuleSource
- Implements
- Derived
- Inherited Members
Constructors
VersionedModuleSource(byte[])
Base constructor
protected VersionedModuleSource(byte[] source)
Parameters
source
byte[]Module source code.
Properties
Source
Module source code.
public byte[] Source { get; }
Property Value
- byte[]
Methods
Equals(VersionedModuleSource?)
Check for equality.
public virtual bool Equals(VersionedModuleSource? other)
Parameters
other
VersionedModuleSource
Returns
GetHashCode()
Gets hash code.
public override int GetHashCode()
Returns
GetModuleSchema()
Get possible module schema embedded in module source code.
public VersionedModuleSchema? GetModuleSchema()
Returns
- VersionedModuleSchema
Possible module schema and module schema version
GetSchemaFromWasmCustomSection(Module, string, out byte[]?)
From custom sections in module
get entry with name entryKey
.
Fails if multiple entries exist with the same name.
protected static bool GetSchemaFromWasmCustomSection(Module module, string entryKey, out byte[]? schema)
Parameters
module
ModuleWeb assembly module
entryKey
stringName which is search for in custom sections.
schema
byte[]Possible schema if exist in custom sections.
Returns
- bool
True if schema was embedded in the custom section.