Table of Contents

Class Updated

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

A contract instance was updated.

public sealed record Updated : IContractTraceElement, IEquatable<Updated>
Inheritance
Updated
Implements
Inherited Members

Constructors

Updated(ContractVersion, ContractAddress, IAddress, CcdAmount, Parameter, ReceiveName, IList<ContractEvent>)

A contract instance was updated.

public Updated(ContractVersion ContractVersion, ContractAddress Address, IAddress Instigator, CcdAmount Amount, Parameter Message, ReceiveName ReceiveName, IList<ContractEvent> Events)

Parameters

ContractVersion ContractVersion

Contract version

Address ContractAddress

Address of the affected instance.

Instigator IAddress

The origin of the message to the smart contract. This can be either an account or a smart contract.

Amount CcdAmount

The amount the method was invoked with.

Message Parameter

The message passed to method.

ReceiveName ReceiveName

The name of the method that was executed.

Events IList<ContractEvent>

Any contract events that might have been generated by the contract execution.

Properties

Address

Address of the affected instance.

public ContractAddress Address { get; init; }

Property Value

ContractAddress

Amount

The amount the method was invoked with.

public CcdAmount Amount { get; init; }

Property Value

CcdAmount

ContractVersion

Contract version

public ContractVersion ContractVersion { get; init; }

Property Value

ContractVersion

Events

Any contract events that might have been generated by the contract execution.

public IList<ContractEvent> Events { get; init; }

Property Value

IList<ContractEvent>

Instigator

The origin of the message to the smart contract. This can be either an account or a smart contract.

public IAddress Instigator { get; init; }

Property Value

IAddress

Message

The message passed to method.

public Parameter Message { get; init; }

Property Value

Parameter

ReceiveName

The name of the method that was executed.

public ReceiveName ReceiveName { get; init; }

Property Value

ReceiveName

Methods

GetDeserializeMessage(VersionedModuleSchema)

Deserialize message using a VersionedModuleSchema.

public Utf8Json GetDeserializeMessage(VersionedModuleSchema schema)

Parameters

schema VersionedModuleSchema

Versioned module schema.

Returns

Utf8Json

Message deserialized as json uft8 encoded.

Exceptions

SchemaJsonException

Thrown when message wasn't able to be deserialized form schema.

GetDeserializeMessage(VersionedModuleSchema, ContractIdentifier, EntryPoint, Parameter)

Deserialize message using a VersionedModuleSchema.

public static Utf8Json GetDeserializeMessage(VersionedModuleSchema schema, ContractIdentifier contractIdentifier, EntryPoint entryPoint, Parameter message)

Parameters

schema VersionedModuleSchema

Module schema.

contractIdentifier ContractIdentifier

Contract name.

entryPoint EntryPoint

Entrypoint on contract.

message Parameter

Message to entrypoint.

Returns

Utf8Json

Parameter deserialized as json uft8 encoded.

Exceptions

SchemaJsonException

Thrown when message wasn't able to be deserialized from schema.

GetDeserializedEvents(VersionedModuleSchema)

Deserialize events using a VersionedModuleSchema.

public IList<Utf8Json> GetDeserializedEvents(VersionedModuleSchema schema)

Parameters

schema VersionedModuleSchema

Module schema.

Returns

IList<Utf8Json>

List of deserialized json uft8 encoded events. Possible null if this was returned from deserialization.

Exceptions

SchemaJsonException

Thrown if an event wasn't able to be deserialized from schema.