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
ContractVersionContractVersionContract version.
ModuleReferenceModuleReferenceA reference to a smart contract module deployed on the chain.
ContractAddressContractAddressRepresent the contract address of the newly initialized contract instance.
AmountCcdAmountRepresent the CCD amount the contract instance was initialized with.
InitNameContractNameThe name of the contract.
EventsIList<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
ContractAddress
Represent the contract address of the newly initialized contract instance.
public ContractAddress ContractAddress { get; init; }
Property Value
ContractVersion
Contract version.
public ContractVersion ContractVersion { get; init; }
Property Value
Events
A list of events generated by a smart contract.
public IList<ContractEvent> Events { get; init; }
Property Value
InitName
The name of the contract.
public ContractName InitName { get; init; }
Property Value
ModuleReference
A reference to a smart contract module deployed on the chain.
public ModuleReference ModuleReference { get; init; }
Property Value
Methods
GetDeserializedEvents(VersionedModuleSchema)
Deserialize events using a VersionedModuleSchema.
public IList<Utf8Json> GetDeserializedEvents(VersionedModuleSchema schema)
Parameters
schemaVersionedModuleSchemaModule 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.