IotaSystemStateV1
Namespace: IotaSdk
A typed view of the 0x3::iota_system_state_inner::IotaSystemStateV1
inner system state, the layout selected by
[IotaSystemState::version] 1.
Exposes the same parameters as [IotaSystemStateV2], except that safe-mode
computation is accounted as rewards rather than charges, and the validator
set is a [ValidatorSetV1].
public class IotaSystemStateV1 : IIotaSystemStateV1, System.IDisposable
Inheritance Object → IotaSystemStateV1
Implements IIotaSystemStateV1, IDisposable
Attributes NullableContextAttribute, NullableAttribute
Constructors
IotaSystemStateV1(UInt64)
public IotaSystemStateV1(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
SafeModeComputationRewards()
Computation rewards accumulated during safe mode, in nanos.
public ulong SafeModeComputationRewards()
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 ValidatorSetV1 Validators()
Returns
TryFromBcs(Byte[])
Decode an IotaSystemStateV1 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 IotaSystemStateV1 TryFromBcs(Byte[] bytes)
Parameters
bytes Byte[]