Table of Contents

Class DeployModule

Namespace
Concordium.Sdk.Transactions
Assembly
Concordium.Sdk.dll

A deployment of a Wasm smart contract module.

public sealed record DeployModule : AccountTransactionPayload, IEquatable<AccountTransactionPayload>, IEquatable<DeployModule>
Inheritance
DeployModule
Implements
Inherited Members

Constructors

DeployModule(VersionedModuleSource)

A deployment of a Wasm smart contract module.

public DeployModule(VersionedModuleSource Module)

Parameters

Module VersionedModuleSource

The smart contract module to be deployed.

Properties

Module

The smart contract module to be deployed.

public VersionedModuleSource Module { get; init; }

Property Value

VersionedModuleSource

Methods

Prepare(AccountAddress, AccountSequenceNumber, Expiry)

Prepares the account transaction payload for signing.

public PreparedAccountTransaction Prepare(AccountAddress sender, AccountSequenceNumber sequenceNumber, Expiry expiry)

Parameters

sender AccountAddress

Address of the sender of the transaction.

sequenceNumber AccountSequenceNumber

Account sequence number to use for the transaction.

expiry Expiry

Expiration time of the transaction.

Returns

PreparedAccountTransaction

ToBytes()

Copies the "deploy module" account transaction in the binary format expected by the node to a byte array.

public override byte[] ToBytes()

Returns

byte[]

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

Create a "deploy module" payload from a serialized as bytes.

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

Parameters

bytes ReadOnlySpan<byte>

The "deploy module" payload as bytes.

output (DeployModule Module, string Error)

Where to write the result of the operation.

Returns

bool