Table of Contents

Class VersionedModuleSourceFactory

Namespace
Concordium.Sdk.Types
Assembly
Concordium.Sdk.dll

Crates a VersiondModuleSource.

public static class VersionedModuleSourceFactory
Inheritance
VersionedModuleSourceFactory
Inherited Members

Methods

FromFile(string)

Create a cref="VersionedModuleSource" from a versioned WASM file.

public static VersionedModuleSource FromFile(string modulePath)

Parameters

modulePath string

The path to the versioned WASM file.

Returns

VersionedModuleSource

Exceptions

DeserialException

The provided WASM module was unable to be parsed.

TryDeserial(ReadOnlySpan<byte>, out (VersionedModuleSource? VersionedModuleSource, string? Error))

Create a VersionedModuleSource from a byte array.

public static bool TryDeserial(ReadOnlySpan<byte> bytes, out (VersionedModuleSource? VersionedModuleSource, string? Error) output)

Parameters

bytes ReadOnlySpan<byte>

Span of bytes with the serialized smart contract module

output (VersionedModuleSource VersionedModuleSource, string Error)

Where to write the result of the operation.

Returns

bool