Table of Contents

Class ContractInitializedEvent

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

Data generated as part of initializing a single contract instance.

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

Constructors

ContractInitializedEvent(ContractVersion, ModuleReference, ContractAddress, CcdAmount, ContractName, IList<ContractEvent>)

Data generated as part of initializing a single contract instance.

public ContractInitializedEvent(ContractVersion ContractVersion, ModuleReference ModuleReference, ContractAddress ContractAddress, CcdAmount Amount, ContractName InitName, IList<ContractEvent> Events)

Parameters

ContractVersion ContractVersion

Contract version.

ModuleReference ModuleReference

A reference to a smart contract module deployed on the chain.

ContractAddress ContractAddress

Represent the contract address of the newly initialized contract instance.

Amount CcdAmount

Represent the CCD amount the contract instance was initialized with.

InitName ContractName

The name of the contract.

Events IList<ContractEvent>

A list of events generated by a smart contract.

Properties

Amount

Represent the CCD amount the contract instance was initialized with.

public CcdAmount Amount { get; init; }

Property Value

CcdAmount

ContractAddress

Represent the contract address of the newly initialized contract instance.

public ContractAddress ContractAddress { get; init; }

Property Value

ContractAddress

ContractVersion

Contract version.

public ContractVersion ContractVersion { get; init; }

Property Value

ContractVersion

Events

A list of events generated by a smart contract.

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

Property Value

IList<ContractEvent>

InitName

The name of the contract.

public ContractName InitName { get; init; }

Property Value

ContractName

ModuleReference

A reference to a smart contract module deployed on the chain.

public ModuleReference ModuleReference { get; init; }

Property Value

ModuleReference

Methods

GetDeserializedEvents(VersionedModuleSchema)

Deserialize events using a VersionedModuleSchema.

public IList<Utf8Json> GetDeserializedEvents(VersionedModuleSchema schema)

Parameters

schema VersionedModuleSchema

Module schema in hexadecimal.

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.