Class Interrupted
- Namespace
- Concordium.Sdk.Types
- Assembly
- Concordium.Sdk.dll
A contract was interrupted. This occurs when a contract invokes another contract or makes a transfer to an account.
public sealed record Interrupted : IContractTraceElement, IEquatable<Interrupted>
- Inheritance
-
Interrupted
- Implements
- Inherited Members
Constructors
Interrupted(ContractAddress, IList<ContractEvent>)
A contract was interrupted. This occurs when a contract invokes another contract or makes a transfer to an account.
public Interrupted(ContractAddress Address, IList<ContractEvent> Events)
Parameters
Address
ContractAddressThe contract interrupted.
Events
IList<ContractEvent>The events generated up until the interruption.
Properties
Address
The contract interrupted.
public ContractAddress Address { get; init; }
Property Value
Events
The events generated up until the interruption.
public IList<ContractEvent> Events { get; init; }
Property Value
Methods
GetDeserializedEvents(VersionedModuleSchema, ContractIdentifier)
Deserialize events using a VersionedModuleSchema.
public IList<Utf8Json> GetDeserializedEvents(VersionedModuleSchema schema, ContractIdentifier contractName)
Parameters
schema
VersionedModuleSchemaModule schema.
contractName
ContractIdentifierContract name.
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.