Class ChainParametersV0
- Namespace
- Concordium.Grpc.V2
- Assembly
- Concordium.Sdk.dll
Updatable chain parameters that apply to protocol versions 1-3.
public sealed class ChainParametersV0 : IMessage<ChainParametersV0>, IEquatable<ChainParametersV0>, IDeepCloneable<ChainParametersV0>, IBufferMessage, IMessage
- Inheritance
-
ChainParametersV0
- Implements
-
IMessage<ChainParametersV0>IDeepCloneable<ChainParametersV0>IBufferMessageIMessage
- Inherited Members
Constructors
ChainParametersV0()
public ChainParametersV0()
ChainParametersV0(ChainParametersV0)
public ChainParametersV0(ChainParametersV0 other)
Parameters
other
ChainParametersV0
Fields
AccountCreationLimitFieldNumber
Field number for the "account_creation_limit" field.
public const int AccountCreationLimitFieldNumber = 5
Field Value
BakerCooldownEpochsFieldNumber
Field number for the "baker_cooldown_epochs" field.
public const int BakerCooldownEpochsFieldNumber = 4
Field Value
ElectionDifficultyFieldNumber
Field number for the "election_difficulty" field.
public const int ElectionDifficultyFieldNumber = 1
Field Value
EuroPerEnergyFieldNumber
Field number for the "euro_per_energy" field.
public const int EuroPerEnergyFieldNumber = 2
Field Value
FoundationAccountFieldNumber
Field number for the "foundation_account" field.
public const int FoundationAccountFieldNumber = 9
Field Value
GasRewardsFieldNumber
Field number for the "gas_rewards" field.
public const int GasRewardsFieldNumber = 8
Field Value
Level1KeysFieldNumber
Field number for the "level1_keys" field.
public const int Level1KeysFieldNumber = 12
Field Value
Level2KeysFieldNumber
Field number for the "level2_keys" field.
public const int Level2KeysFieldNumber = 13
Field Value
MicroCcdPerEuroFieldNumber
Field number for the "micro_ccd_per_euro" field.
public const int MicroCcdPerEuroFieldNumber = 3
Field Value
MinimumThresholdForBakingFieldNumber
Field number for the "minimum_threshold_for_baking" field.
public const int MinimumThresholdForBakingFieldNumber = 10
Field Value
MintDistributionFieldNumber
Field number for the "mint_distribution" field.
public const int MintDistributionFieldNumber = 6
Field Value
RootKeysFieldNumber
Field number for the "root_keys" field.
public const int RootKeysFieldNumber = 11
Field Value
TransactionFeeDistributionFieldNumber
Field number for the "transaction_fee_distribution" field.
public const int TransactionFeeDistributionFieldNumber = 7
Field Value
Properties
AccountCreationLimit
The limit for the number of account creations in a block.
public CredentialsPerBlockLimit AccountCreationLimit { get; set; }
Property Value
BakerCooldownEpochs
Extra number of epochs before reduction in stake, or baker deregistration is completed.
public Epoch BakerCooldownEpochs { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
ElectionDifficulty
Election difficulty for consensus lottery.
public ElectionDifficulty ElectionDifficulty { get; set; }
Property Value
EuroPerEnergy
Euro per energy exchange rate.
public ExchangeRate EuroPerEnergy { get; set; }
Property Value
FoundationAccount
The foundation account.
public AccountAddress FoundationAccount { get; set; }
Property Value
GasRewards
Current gas reward parameters.
public GasRewards GasRewards { get; set; }
Property Value
Level1Keys
Keys allowed to do level1 updates;
public HigherLevelKeys Level1Keys { get; set; }
Property Value
Level2Keys
Keys allowed to do parameter updates.
public AuthorizationsV0 Level2Keys { get; set; }
Property Value
MicroCcdPerEuro
Micro CCD per euro exchange rate.
public ExchangeRate MicroCcdPerEuro { get; set; }
Property Value
MinimumThresholdForBaking
Minimum threshold for becoming a baker.
public Amount MinimumThresholdForBaking { get; set; }
Property Value
MintDistribution
Current mint distribution
public MintDistributionCpv0 MintDistribution { get; set; }
Property Value
Parser
public static MessageParser<ChainParametersV0> Parser { get; }
Property Value
- MessageParser<ChainParametersV0>
RootKeys
Keys allowed to do root updates.
public HigherLevelKeys RootKeys { get; set; }
Property Value
TransactionFeeDistribution
Current transaction fee distribution.
public TransactionFeeDistribution TransactionFeeDistribution { 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 ChainParametersV0 Clone()
Returns
- ChainParametersV0
A deep clone of this object.
Equals(ChainParametersV0)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ChainParametersV0 other)
Parameters
other
ChainParametersV0An 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(ChainParametersV0)
Merges the given message into this one.
public void MergeFrom(ChainParametersV0 other)
Parameters
other
ChainParametersV0
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.