Table of Contents

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
IDeepCloneable<PoolParametersCpv1>
IBufferMessage
IMessage
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

int

CommissionBoundsFieldNumber

Field number for the "commission_bounds" field.

public const int CommissionBoundsFieldNumber = 4

Field Value

int

LeverageBoundFieldNumber

Field number for the "leverage_bound" field.

public const int LeverageBoundFieldNumber = 7

Field Value

int

MinimumEquityCapitalFieldNumber

Field number for the "minimum_equity_capital" field.

public const int MinimumEquityCapitalFieldNumber = 5

Field Value

int

PassiveBakingCommissionFieldNumber

Field number for the "passive_baking_commission" field.

public const int PassiveBakingCommissionFieldNumber = 2

Field Value

int

PassiveFinalizationCommissionFieldNumber

Field number for the "passive_finalization_commission" field.

public const int PassiveFinalizationCommissionFieldNumber = 1

Field Value

int

PassiveTransactionCommissionFieldNumber

Field number for the "passive_transaction_commission" field.

public const int PassiveTransactionCommissionFieldNumber = 3

Field Value

int

Properties

CapitalBound

Maximum fraction of the total staked capital of that a new baker can have.

public CapitalBound CapitalBound { get; set; }

Property Value

CapitalBound

CommissionBounds

Bounds on the commission rates that may be charged by bakers.

public CommissionRanges CommissionBounds { get; set; }

Property Value

CommissionRanges

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

LeverageFactor

MinimumEquityCapital

Minimum equity capital required for a new baker.

public Amount MinimumEquityCapital { get; set; }

Property Value

Amount

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

AmountFraction

PassiveFinalizationCommission

Fraction of finalization rewards charged by the passive delegation.

public AmountFraction PassiveFinalizationCommission { get; set; }

Property Value

AmountFraction

PassiveTransactionCommission

Fraction of transaction rewards charged by the L-pool.

public AmountFraction PassiveTransactionCommission { get; set; }

Property Value

AmountFraction

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 PoolParametersCpv1

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(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 CodedOutputStream

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