Table of Contents

Class DryRunStateQuery

Namespace
Concordium.Grpc.V2
Assembly
Concordium.Sdk.dll

Run a query as part of a dry run. Queries do not update the block state.

public sealed class DryRunStateQuery : IMessage<DryRunStateQuery>, IEquatable<DryRunStateQuery>, IDeepCloneable<DryRunStateQuery>, IBufferMessage, IMessage
Inheritance
DryRunStateQuery
Implements
IDeepCloneable<DryRunStateQuery>
IBufferMessage
IMessage
Inherited Members

Constructors

DryRunStateQuery()

public DryRunStateQuery()

DryRunStateQuery(DryRunStateQuery)

public DryRunStateQuery(DryRunStateQuery other)

Parameters

other DryRunStateQuery

Fields

GetAccountInfoFieldNumber

Field number for the "get_account_info" field.

public const int GetAccountInfoFieldNumber = 1

Field Value

int

GetInstanceInfoFieldNumber

Field number for the "get_instance_info" field.

public const int GetInstanceInfoFieldNumber = 2

Field Value

int

InvokeInstanceFieldNumber

Field number for the "invoke_instance" field.

public const int InvokeInstanceFieldNumber = 3

Field Value

int

Properties

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

GetAccountInfo

Look up information on a particular account.

The energy cost for this query is 200.

public AccountIdentifierInput GetAccountInfo { get; set; }

Property Value

AccountIdentifierInput

GetInstanceInfo

Look up information about a particular smart contract.

The energy cost for this query is 200.

public ContractAddress GetInstanceInfo { get; set; }

Property Value

ContractAddress

InvokeInstance

Invoke an entrypoint on a smart contract instance. No changes made to the state are retained at the completion of the operation.

The energy cost for this query is 200 plus the energy used by the smart contract execution.

public DryRunInvokeInstance InvokeInstance { get; set; }

Property Value

DryRunInvokeInstance

Parser

public static MessageParser<DryRunStateQuery> Parser { get; }

Property Value

MessageParser<DryRunStateQuery>

QueryCase

public DryRunStateQuery.QueryOneofCase QueryCase { get; }

Property Value

DryRunStateQuery.QueryOneofCase

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.

ClearQuery()

public void ClearQuery()

Clone()

Creates a deep clone of this object.

public DryRunStateQuery Clone()

Returns

DryRunStateQuery

A deep clone of this object.

Equals(DryRunStateQuery)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(DryRunStateQuery other)

Parameters

other DryRunStateQuery

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object other)

Parameters

other object

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

MergeFrom(DryRunStateQuery)

Merges the given message into this one.

public void MergeFrom(DryRunStateQuery other)

Parameters

other DryRunStateQuery

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 CodedOutputStream

Coded output stream to write the data to. Must not be null.