Skip to main content

ChangeEpochV2

Namespace: IotaSdk

System transaction used to change the epoch

BCS

The BCS serialized form for this type is defined by the following ABNF:

change-epoch-v2 = u64 ; next epoch
u64 ; protocol version
u64 ; storage charge
u64 ; computation charge
u64 ; computation charge burned
u64 ; storage rebate
u64 ; non-refundable storage fee
u64 ; epoch start timestamp
(vector system-package)
public class ChangeEpochV2 : IChangeEpochV2, System.IEquatable`1[[IotaSdk.ChangeEpochV2, IotaSdk, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.IDisposable

Inheritance Object → ChangeEpochV2
Implements IChangeEpochV2, IEquatable<ChangeEpochV2>, IDisposable
Attributes NullableContextAttribute, NullableAttribute

Constructors​

ChangeEpochV2(UInt64)​

public ChangeEpochV2(ulong pointer)

Parameters​

pointer UInt64

ChangeEpochV2(UInt64, UInt64, UInt64, UInt64, UInt64, UInt64, UInt64, UInt64, SystemPackage[])​

public ChangeEpochV2(ulong epoch, ulong protocolVersion, ulong storageCharge, ulong computationCharge, ulong computationChargeBurned, ulong storageRebate, ulong nonRefundableStorageFee, ulong epochStartTimestampMs, SystemPackage[] systemPackages)

Parameters​

epoch UInt64

protocolVersion UInt64

storageCharge UInt64

computationCharge UInt64

computationChargeBurned UInt64

storageRebate UInt64

nonRefundableStorageFee UInt64

epochStartTimestampMs UInt64

systemPackages SystemPackage[]

Methods​

Destroy()​

public void Destroy()

Dispose()​

public void Dispose()

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

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

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[]

Equals(ChangeEpochV2)​

public bool Equals(ChangeEpochV2? other)

Parameters​

other ChangeEpochV2?

Returns​

Boolean

Equals(Object)​

public override bool Equals(object? obj)

Parameters​

obj Object?

Returns​

Boolean