Skip to main content

ChangeEpochV4

Namespace: IotaSdk

BCS

The BCS serialized form of this type is specified in bcs-schema.abnf.

public class ChangeEpochV4 : IChangeEpochV4, System.IDisposable

Inheritance Object → ChangeEpochV4
Implements IChangeEpochV4, IDisposable
Attributes NullableContextAttribute, NullableAttribute

Constructors​

ChangeEpochV4(UInt64)​

public ChangeEpochV4(ulong pointer)

Parameters​

pointer UInt64

ChangeEpochV4(UInt64, UInt64, UInt64, UInt64, UInt64, UInt64, UInt64, UInt64, SystemPackage[], UInt64[], UInt64[], Boolean)​

public ChangeEpochV4(ulong epoch, ulong protocolVersion, ulong storageCharge, ulong computationCharge, ulong computationChargeBurned, ulong storageRebate, ulong nonRefundableStorageFee, ulong epochStartTimestampMs, SystemPackage[] systemPackages, UInt64[] eligibleActiveValidators, UInt64[] scores, bool adjustRewardsByScore)

Parameters​

epoch UInt64

protocolVersion UInt64

storageCharge UInt64

computationCharge UInt64

computationChargeBurned UInt64

storageRebate UInt64

nonRefundableStorageFee UInt64

epochStartTimestampMs UInt64

systemPackages SystemPackage[]

eligibleActiveValidators UInt64[]

scores UInt64[]

adjustRewardsByScore Boolean

Methods​

Destroy()​

public void Destroy()

Dispose()​

public void Dispose()

AdjustRewardsByScore()​

Whether to adjust validator rewards based on score.

public bool AdjustRewardsByScore()

Returns​

Boolean

ComputationCharge()​

The total amount of gas charged for computation during the epoch.

public ulong ComputationCharge()

Returns​

UInt64

ComputationChargeBurned()​

The total amount of gas burned for computation during the epoch.

public ulong ComputationChargeBurned()

Returns​

UInt64

EligibleActiveValidators()​

Vector of active validator indices eligible to take part in committee selection because they support the new, target protocol version.

public UInt64[] EligibleActiveValidators()

Returns​

UInt64[]

Epoch()​

The next (to become) epoch ID.

public ulong Epoch()

Returns​

UInt64

EpochStartTimestampMs()​

Unix timestamp when epoch started

public ulong EpochStartTimestampMs()

Returns​

UInt64

NonRefundableStorageFee()​

The non-refundable storage fee.

public ulong NonRefundableStorageFee()

Returns​

UInt64

ProtocolVersion()​

The protocol version in effect in the new epoch.

public ulong ProtocolVersion()

Returns​

UInt64

Scores()​

Vector of scores relative to the past epoch performance of each validator, ordered by the past epoch's validator index.

public UInt64[] Scores()

Returns​

UInt64[]

StorageCharge()​

The total amount of gas charged for storage during the epoch.

public ulong StorageCharge()

Returns​

UInt64

StorageRebate()​

The amount of storage rebate refunded to the txn senders.

public ulong StorageRebate()

Returns​

UInt64

SystemPackages()​

System packages (specifically framework and move stdlib) that are written before the new epoch starts.

public SystemPackage[] SystemPackages()

Returns​

SystemPackage[]

ToDisplayString()​

Render this type as human-readable text.

Some types also print this through the binding's native string conversion; this method is the spelling every object type has.

The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.

public string ToDisplayString()

Returns​

String