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
ModuleSchemaVersionModule 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
Methods
Create(string, ModuleSchemaVersion)
Constructor which converts schema
into hexadecimal string.
public static VersionedModuleSchema Create(string schema, ModuleSchemaVersion version)
Parameters
schema
stringModule schema given as an hexadecimal string.
version
ModuleSchemaVersionModule schema version.
Returns
GetDeserializedSchema()
Deserialize schema.
public Utf8Json GetDeserializedSchema()
Returns
- Utf8Json
Schema as json uft8 encoded.
Exceptions
- SchemaJsonException
Thrown when schema wasn't able to be deserialized.