Table of Contents

Class ChainParametersV2

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

Updatable chain parameters that apply to protocol versions 6.

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

Constructors

ChainParametersV2()

public ChainParametersV2()

ChainParametersV2(ChainParametersV2)

public ChainParametersV2(ChainParametersV2 other)

Parameters

other ChainParametersV2

Fields

AccountCreationLimitFieldNumber

Field number for the "account_creation_limit" field.

public const int AccountCreationLimitFieldNumber = 6

Field Value

int

ConsensusParametersFieldNumber

Field number for the "consensus_parameters" field.

public const int ConsensusParametersFieldNumber = 1

Field Value

int

CooldownParametersFieldNumber

Field number for the "cooldown_parameters" field.

public const int CooldownParametersFieldNumber = 4

Field Value

int

EuroPerEnergyFieldNumber

Field number for the "euro_per_energy" field.

public const int EuroPerEnergyFieldNumber = 2

Field Value

int

FinalizationCommitteeParametersFieldNumber

Field number for the "finalization_committee_parameters" field.

public const int FinalizationCommitteeParametersFieldNumber = 15

Field Value

int

FoundationAccountFieldNumber

Field number for the "foundation_account" field.

public const int FoundationAccountFieldNumber = 10

Field Value

int

GasRewardsFieldNumber

Field number for the "gas_rewards" field.

public const int GasRewardsFieldNumber = 9

Field Value

int

Level1KeysFieldNumber

Field number for the "level1_keys" field.

public const int Level1KeysFieldNumber = 13

Field Value

int

Level2KeysFieldNumber

Field number for the "level2_keys" field.

public const int Level2KeysFieldNumber = 14

Field Value

int

MicroCcdPerEuroFieldNumber

Field number for the "micro_ccd_per_euro" field.

public const int MicroCcdPerEuroFieldNumber = 3

Field Value

int

MintDistributionFieldNumber

Field number for the "mint_distribution" field.

public const int MintDistributionFieldNumber = 7

Field Value

int

PoolParametersFieldNumber

Field number for the "pool_parameters" field.

public const int PoolParametersFieldNumber = 11

Field Value

int

RootKeysFieldNumber

Field number for the "root_keys" field.

public const int RootKeysFieldNumber = 12

Field Value

int

TimeParametersFieldNumber

Field number for the "time_parameters" field.

public const int TimeParametersFieldNumber = 5

Field Value

int

TransactionFeeDistributionFieldNumber

Field number for the "transaction_fee_distribution" field.

public const int TransactionFeeDistributionFieldNumber = 8

Field Value

int

Properties

AccountCreationLimit

The limit for the number of account creations in a block.

public CredentialsPerBlockLimit AccountCreationLimit { get; set; }

Property Value

CredentialsPerBlockLimit

ConsensusParameters

Consensus parameters.

public ConsensusParametersV1 ConsensusParameters { get; set; }

Property Value

ConsensusParametersV1

CooldownParameters

Extra number of epochs before reduction in stake, or baker deregistration is completed.

public CooldownParametersCpv1 CooldownParameters { get; set; }

Property Value

CooldownParametersCpv1

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

EuroPerEnergy

Euro per energy exchange rate.

public ExchangeRate EuroPerEnergy { get; set; }

Property Value

ExchangeRate

FinalizationCommitteeParameters

Finalization committee parameters

public FinalizationCommitteeParameters FinalizationCommitteeParameters { get; set; }

Property Value

FinalizationCommitteeParameters

FoundationAccount

The foundation account.

public AccountAddress FoundationAccount { get; set; }

Property Value

AccountAddress

GasRewards

Current gas reward parameters.

public GasRewardsCpv2 GasRewards { get; set; }

Property Value

GasRewardsCpv2

Level1Keys

Keys allowed to do level1 updates;

public HigherLevelKeys Level1Keys { get; set; }

Property Value

HigherLevelKeys

Level2Keys

Keys allowed to do parameter updates.

public AuthorizationsV1 Level2Keys { get; set; }

Property Value

AuthorizationsV1

MicroCcdPerEuro

Micro CCD per euro exchange rate.

public ExchangeRate MicroCcdPerEuro { get; set; }

Property Value

ExchangeRate

MintDistribution

Current mint distribution

public MintDistributionCpv1 MintDistribution { get; set; }

Property Value

MintDistributionCpv1

Parser

public static MessageParser<ChainParametersV2> Parser { get; }

Property Value

MessageParser<ChainParametersV2>

PoolParameters

Parameters governing baking pools and their commissions.

public PoolParametersCpv1 PoolParameters { get; set; }

Property Value

PoolParametersCpv1

RootKeys

Keys allowed to do root updates.

public HigherLevelKeys RootKeys { get; set; }

Property Value

HigherLevelKeys

TimeParameters

Current time parameters. The time parameters indicates the mint rate and the reward period length, i.e. the time between paydays.

public TimeParametersCpv1 TimeParameters { get; set; }

Property Value

TimeParametersCpv1

TransactionFeeDistribution

Current transaction fee distribution.

public TransactionFeeDistribution TransactionFeeDistribution { get; set; }

Property Value

TransactionFeeDistribution

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 ChainParametersV2 Clone()

Returns

ChainParametersV2

A deep clone of this object.

Equals(ChainParametersV2)

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

public bool Equals(ChainParametersV2 other)

Parameters

other ChainParametersV2

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(ChainParametersV2)

Merges the given message into this one.

public void MergeFrom(ChainParametersV2 other)

Parameters

other ChainParametersV2

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.