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
ContractVersionContract version
Address
ContractAddressAddress of the affected instance.
Instigator
IAddressThe origin of the message to the smart contract. This can be either an account or a smart contract.
Amount
CcdAmountThe amount the method was invoked with.
Message
ParameterThe message passed to method.
ReceiveName
ReceiveNameThe 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
Amount
The amount the method was invoked with.
public CcdAmount Amount { get; init; }
Property Value
ContractVersion
Contract version
public ContractVersion ContractVersion { get; init; }
Property Value
Events
Any contract events that might have been generated by the contract execution.
public IList<ContractEvent> Events { get; init; }
Property Value
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
Message
The message passed to method.
public Parameter Message { get; init; }
Property Value
ReceiveName
The name of the method that was executed.
public ReceiveName ReceiveName { get; init; }
Property Value
Methods
GetDeserializeMessage(VersionedModuleSchema)
Deserialize message using a VersionedModuleSchema.
public Utf8Json GetDeserializeMessage(VersionedModuleSchema schema)
Parameters
schema
VersionedModuleSchemaVersioned module schema.
Returns
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
VersionedModuleSchemaModule schema.
contractIdentifier
ContractIdentifierContract name.
entryPoint
EntryPointEntrypoint on contract.
message
ParameterMessage to entrypoint.
Returns
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
VersionedModuleSchemaModule 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.