Class InstanceUpdatedEvent
- Namespace
- Concordium.Grpc.V2
- Assembly
- Concordium.Sdk.dll
Data generated as part of updating a single contract instance. In general a single Update transaction will generate one or more of these events, together with possibly some transfers.
public sealed class InstanceUpdatedEvent : IMessage<InstanceUpdatedEvent>, IEquatable<InstanceUpdatedEvent>, IDeepCloneable<InstanceUpdatedEvent>, IBufferMessage, IMessage
- Inheritance
-
InstanceUpdatedEvent
- Implements
-
IMessage<InstanceUpdatedEvent>IDeepCloneable<InstanceUpdatedEvent>IBufferMessageIMessage
- Inherited Members
Constructors
InstanceUpdatedEvent()
public InstanceUpdatedEvent()
InstanceUpdatedEvent(InstanceUpdatedEvent)
public InstanceUpdatedEvent(InstanceUpdatedEvent other)
Parameters
other
InstanceUpdatedEvent
Fields
AddressFieldNumber
Field number for the "address" field.
public const int AddressFieldNumber = 2
Field Value
AmountFieldNumber
Field number for the "amount" field.
public const int AmountFieldNumber = 4
Field Value
ContractVersionFieldNumber
Field number for the "contract_version" field.
public const int ContractVersionFieldNumber = 1
Field Value
EventsFieldNumber
Field number for the "events" field.
public const int EventsFieldNumber = 7
Field Value
InstigatorFieldNumber
Field number for the "instigator" field.
public const int InstigatorFieldNumber = 3
Field Value
ParameterFieldNumber
Field number for the "parameter" field.
public const int ParameterFieldNumber = 5
Field Value
ReceiveNameFieldNumber
Field number for the "receive_name" field.
public const int ReceiveNameFieldNumber = 6
Field Value
Properties
Address
Address of the affected instance.
public ContractAddress Address { get; set; }
Property Value
Amount
The amount the method was invoked with.
public Amount Amount { get; set; }
Property Value
ContractVersion
Contract version.
public ContractVersion ContractVersion { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
Events
Any contract events that might have been generated by the contract execution.
public RepeatedField<ContractEvent> Events { get; }
Property Value
- RepeatedField<ContractEvent>
Instigator
The origin of the message to the smart contract. This can be either an account or a smart contract.
public Address Instigator { get; set; }
Property Value
Parameter
The parameter passed to the method.
public Parameter Parameter { get; set; }
Property Value
Parser
public static MessageParser<InstanceUpdatedEvent> Parser { get; }
Property Value
- MessageParser<InstanceUpdatedEvent>
ReceiveName
The name of the method that was executed.
public ReceiveName ReceiveName { get; set; }
Property Value
Methods
CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
public int CalculateSize()
Returns
- int
The number of bytes required to write this message to a coded output stream.
Clone()
Creates a deep clone of this object.
public InstanceUpdatedEvent Clone()
Returns
- InstanceUpdatedEvent
A deep clone of this object.
Equals(InstanceUpdatedEvent)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(InstanceUpdatedEvent other)
Parameters
other
InstanceUpdatedEventAn object to compare with this object.
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object other)
Parameters
other
object
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
MergeFrom(InstanceUpdatedEvent)
Merges the given message into this one.
public void MergeFrom(InstanceUpdatedEvent other)
Parameters
other
InstanceUpdatedEvent
Remarks
See the user guide for precise merge semantics.
MergeFrom(CodedInputStream)
Merges the data from the specified coded input stream with the current message.
public void MergeFrom(CodedInputStream input)
Parameters
input
CodedInputStream
Remarks
See the user guide for precise merge semantics.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
WriteTo(CodedOutputStream)
Writes the data to the given coded output stream.
public void WriteTo(CodedOutputStream output)
Parameters
output
CodedOutputStreamCoded output stream to write the data to. Must not be null.