Skip to main content

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​

UInt64

EpochStartTimestampMs()​

Unix timestamp (ms) of the current epoch start.

public ulong EpochStartTimestampMs()

Returns​

UInt64

ExtraFieldsId()​

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

public ObjectId ExtraFieldsId()

Returns​

ObjectId

IotaTotalSupply()​

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

public ulong IotaTotalSupply()

Returns​

UInt64

Parameters()​

The system parameters.

public SystemParametersV1 Parameters()

Returns​

SystemParametersV1

ProtocolVersion()​

public ulong ProtocolVersion()

Returns​

UInt64

ReferenceGasPrice()​

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

public ulong ReferenceGasPrice()

Returns​

UInt64

SafeMode()​

Whether the system is running in a downgraded safe mode.

public bool SafeMode()

Returns​

Boolean

SafeModeComputationRewards()​

Computation rewards accumulated during safe mode, in nanos.

public ulong SafeModeComputationRewards()

Returns​

UInt64

SafeModeNonRefundableStorageFee()​

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

public ulong SafeModeNonRefundableStorageFee()

Returns​

UInt64

SafeModeStorageCharges()​

Storage charges accumulated during safe mode, in nanos.

public ulong SafeModeStorageCharges()

Returns​

UInt64

SafeModeStorageRebates()​

Storage rebates accumulated during safe mode, in nanos.

public ulong SafeModeStorageRebates()

Returns​

UInt64

StorageFund()​

The storage fund.

public StorageFundV1 StorageFund()

Returns​

StorageFundV1

SystemStateVersion()​

public ulong SystemStateVersion()

Returns​

UInt64

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​

ValidatorSetV1

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

Returns​

IotaSystemStateV1

Exceptions​

SdkFfiException