IotaSystemStateV2
Namespace: IotaSdk
A typed view of the 0x3::iota_system_state_inner::IotaSystemStateV2
inner system state.
Exposes the scalar epoch parameters plus the nested validator set
([ValidatorSetV2]), storage fund ([StorageFundV1]), system parameters
([SystemParametersV1]), and the treasury's total supply.
public class IotaSystemStateV2 : IIotaSystemStateV2, System.IDisposable
Inheritance Object → IotaSystemStateV2
Implements IIotaSystemStateV2, IDisposable
Attributes NullableContextAttribute, NullableAttribute
Constructors
IotaSystemStateV2(UInt64)
public IotaSystemStateV2(ulong pointer)
Parameters
pointer UInt64
Methods
Destroy()
public void Destroy()
Dispose()
public void Dispose()
Epoch()
public ulong Epoch()
Returns
EpochStartTimestampMs()
Unix timestamp (ms) of the current epoch start.
public ulong EpochStartTimestampMs()
Returns
ExtraFieldsId()
Object ID of the Bag holding fields added to this struct after its
current on-chain layout was set.
public ObjectId ExtraFieldsId()
Returns
IotaTotalSupply()
Total IOTA supply controlled by the system treasury, in nanos.
public ulong IotaTotalSupply()
Returns
Parameters()
The system parameters.
public SystemParametersV1 Parameters()
Returns
ProtocolVersion()
public ulong ProtocolVersion()
Returns
ReferenceGasPrice()
The reference gas price for the current epoch, in nanos.
public ulong ReferenceGasPrice()
Returns
SafeMode()
Whether the system is running in a downgraded safe mode.
public bool SafeMode()
Returns
SafeModeComputationCharges()
Computation charges accumulated during safe mode, in nanos.
public ulong SafeModeComputationCharges()
Returns
SafeModeComputationChargesBurned()
Computation charges burned during safe mode, in nanos.
public ulong SafeModeComputationChargesBurned()
Returns
SafeModeNonRefundableStorageFee()
Non-refundable storage fees accumulated during safe mode, in nanos.
public ulong SafeModeNonRefundableStorageFee()
Returns
SafeModeStorageCharges()
Storage charges accumulated during safe mode, in nanos.
public ulong SafeModeStorageCharges()
Returns
SafeModeStorageRebates()
Storage rebates accumulated during safe mode, in nanos.
public ulong SafeModeStorageRebates()
Returns
StorageFund()
The storage fund.
public StorageFundV1 StorageFund()
Returns
SystemStateVersion()
public ulong SystemStateVersion()
Returns
ValidatorReportRecords()
Validator report records: each reported validator's address mapped to the addresses of the validators reporting it.
public Dictionary<Address, Address[]> ValidatorReportRecords()
Returns
Dictionary<Address, Address[]>
Validators()
The validator set.
public ValidatorSetV2 Validators()
Returns
TryFromBcs(Byte[])
Decode an IotaSystemStateV2 from raw BCS bytes.
There is no object-based constructor: the inner state is stored as
a dynamic field of the 0x5 wrapper, not as a top-level object
with its own type tag.
public static IotaSystemStateV2 TryFromBcs(Byte[] bytes)
Parameters
bytes Byte[]