Class PoolParametersCpv1
- Namespace
- Concordium.Grpc.V2
- Assembly
- Concordium.Sdk.dll
Parameters related to staking pools.
public sealed class PoolParametersCpv1 : IMessage<PoolParametersCpv1>, IEquatable<PoolParametersCpv1>, IDeepCloneable<PoolParametersCpv1>, IBufferMessage, IMessage
- Inheritance
-
PoolParametersCpv1
- Implements
-
IMessage<PoolParametersCpv1>IDeepCloneable<PoolParametersCpv1>IBufferMessageIMessage
- Inherited Members
Constructors
PoolParametersCpv1()
public PoolParametersCpv1()
PoolParametersCpv1(PoolParametersCpv1)
public PoolParametersCpv1(PoolParametersCpv1 other)
Parameters
other
PoolParametersCpv1
Fields
CapitalBoundFieldNumber
Field number for the "capital_bound" field.
public const int CapitalBoundFieldNumber = 6
Field Value
CommissionBoundsFieldNumber
Field number for the "commission_bounds" field.
public const int CommissionBoundsFieldNumber = 4
Field Value
LeverageBoundFieldNumber
Field number for the "leverage_bound" field.
public const int LeverageBoundFieldNumber = 7
Field Value
MinimumEquityCapitalFieldNumber
Field number for the "minimum_equity_capital" field.
public const int MinimumEquityCapitalFieldNumber = 5
Field Value
PassiveBakingCommissionFieldNumber
Field number for the "passive_baking_commission" field.
public const int PassiveBakingCommissionFieldNumber = 2
Field Value
PassiveFinalizationCommissionFieldNumber
Field number for the "passive_finalization_commission" field.
public const int PassiveFinalizationCommissionFieldNumber = 1
Field Value
PassiveTransactionCommissionFieldNumber
Field number for the "passive_transaction_commission" field.
public const int PassiveTransactionCommissionFieldNumber = 3
Field Value
Properties
CapitalBound
Maximum fraction of the total staked capital of that a new baker can have.
public CapitalBound CapitalBound { get; set; }
Property Value
CommissionBounds
Bounds on the commission rates that may be charged by bakers.
public CommissionRanges CommissionBounds { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
LeverageBound
The maximum leverage that a baker can have as a ratio of total stake to equity capital.
public LeverageFactor LeverageBound { get; set; }
Property Value
MinimumEquityCapital
Minimum equity capital required for a new baker.
public Amount MinimumEquityCapital { get; set; }
Property Value
Parser
public static MessageParser<PoolParametersCpv1> Parser { get; }
Property Value
- MessageParser<PoolParametersCpv1>
PassiveBakingCommission
Fraction of baking rewards charged by the passive delegation.
public AmountFraction PassiveBakingCommission { get; set; }
Property Value
PassiveFinalizationCommission
Fraction of finalization rewards charged by the passive delegation.
public AmountFraction PassiveFinalizationCommission { get; set; }
Property Value
PassiveTransactionCommission
Fraction of transaction rewards charged by the L-pool.
public AmountFraction PassiveTransactionCommission { 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 PoolParametersCpv1 Clone()
Returns
- PoolParametersCpv1
A deep clone of this object.
Equals(PoolParametersCpv1)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(PoolParametersCpv1 other)
Parameters
other
PoolParametersCpv1An 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(PoolParametersCpv1)
Merges the given message into this one.
public void MergeFrom(PoolParametersCpv1 other)
Parameters
other
PoolParametersCpv1
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.