Table of Contents

Class VersionedModuleSchema

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

Module schema embedded within VersionedModuleSource.

public sealed record VersionedModuleSchema : IEquatable<VersionedModuleSchema>
Inheritance
VersionedModuleSchema
Implements
Inherited Members

Constructors

VersionedModuleSchema(byte[], ModuleSchemaVersion)

Module schema embedded within VersionedModuleSource.

public VersionedModuleSchema(byte[] Schema, ModuleSchemaVersion Version)

Parameters

Schema byte[]

Module schema

Version ModuleSchemaVersion

Module schema version

Properties

Schema

Module schema

public byte[] Schema { get; init; }

Property Value

byte[]

Version

Module schema version

public ModuleSchemaVersion Version { get; init; }

Property Value

ModuleSchemaVersion

Methods

Create(string, ModuleSchemaVersion)

Constructor which converts schema into hexadecimal string.

public static VersionedModuleSchema Create(string schema, ModuleSchemaVersion version)

Parameters

schema string

Module schema given as an hexadecimal string.

version ModuleSchemaVersion

Module schema version.

Returns

VersionedModuleSchema

GetDeserializedSchema()

Deserialize schema.

public Utf8Json GetDeserializedSchema()

Returns

Utf8Json

Schema as json uft8 encoded.

Exceptions

SchemaJsonException

Thrown when schema wasn't able to be deserialized.