Skip to main content

IIotaSystemStateV1

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 interface IIotaSystemStateV1

Attributes NullableContextAttribute

Methods

Epoch()

ulong Epoch()

Returns

UInt64

EpochStartTimestampMs()

Unix timestamp (ms) of the current epoch start.

ulong EpochStartTimestampMs()

Returns

UInt64

ExtraFieldsId()

Object ID of the Bag holding fields added to this struct after its current on-chain layout was set.

ObjectId ExtraFieldsId()

Returns

ObjectId

IotaTotalSupply()

Total IOTA supply controlled by the system treasury, in nanos.

ulong IotaTotalSupply()

Returns

UInt64

Parameters()

The system parameters.

SystemParametersV1 Parameters()

Returns

SystemParametersV1

ProtocolVersion()

ulong ProtocolVersion()

Returns

UInt64

ReferenceGasPrice()

The reference gas price for the current epoch, in nanos.

ulong ReferenceGasPrice()

Returns

UInt64

SafeMode()

Whether the system is running in a downgraded safe mode.

bool SafeMode()

Returns

Boolean

SafeModeComputationRewards()

Computation rewards accumulated during safe mode, in nanos.

ulong SafeModeComputationRewards()

Returns

UInt64

SafeModeNonRefundableStorageFee()

Non-refundable storage fees accumulated during safe mode, in nanos.

ulong SafeModeNonRefundableStorageFee()

Returns

UInt64

SafeModeStorageCharges()

Storage charges accumulated during safe mode, in nanos.

ulong SafeModeStorageCharges()

Returns

UInt64

SafeModeStorageRebates()

Storage rebates accumulated during safe mode, in nanos.

ulong SafeModeStorageRebates()

Returns

UInt64

StorageFund()

The storage fund.

StorageFundV1 StorageFund()

Returns

StorageFundV1

SystemStateVersion()

ulong SystemStateVersion()

Returns

UInt64

ValidatorReportRecords()

Validator report records: each reported validator's address mapped to the addresses of the validators reporting it.

Dictionary<Address, Address[]> ValidatorReportRecords()

Returns

Dictionary<Address, Address[]>

Validators()

The validator set.

ValidatorSetV1 Validators()

Returns

ValidatorSetV1