IotaSystemStateV1
open class IotaSystemStateV1 : Disposable, AutoCloseable, IotaSystemStateV1Interface
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.
Functions
| Name | Summary |
|---|---|
| close | @Synchronized open override fun close() |
| destroy | open override fun destroy() |
| epoch | open override fun epoch(): ULong |
| epochStartTimestampMs | open override fun epochStartTimestampMs(): ULong Unix timestamp (ms) of the current epoch start. |
| extraFieldsId | open override fun extraFieldsId(): ObjectId Object ID of the Bag holding fields added to this struct after its current on-chain layout was set. |
| iotaTotalSupply | open override fun iotaTotalSupply(): ULong Total IOTA supply controlled by the system treasury, in nanos. |
| parameters | open override fun parameters(): SystemParametersV1 The system parameters. |
| protocolVersion | open override fun protocolVersion(): ULong |
| referenceGasPrice | open override fun referenceGasPrice(): ULong The reference gas price for the current epoch, in nanos. |
| safeMode | open override fun safeMode(): Boolean Whether the system is running in a downgraded safe mode. |
| safeModeComputationRewards | open override fun safeModeComputationRewards(): ULong Computation rewards accumulated during safe mode, in nanos. |
| safeModeNonRefundableStorageFee | open override fun safeModeNonRefundableStorageFee(): ULong Non-refundable storage fees accumulated during safe mode, in nanos. |
| safeModeStorageCharges | open override fun safeModeStorageCharges(): ULong Storage charges accumulated during safe mode, in nanos. |
| safeModeStorageRebates | open override fun safeModeStorageRebates(): ULong Storage rebates accumulated during safe mode, in nanos. |
| storageFund | open override fun storageFund(): StorageFundV1 The storage fund. |
| systemStateVersion | open override fun systemStateVersion(): ULong |
| toString | open override fun toString(): String |
| validatorReportRecords | open override fun validatorReportRecords(): Map<Address, List<Address>> Validator report records: each reported validator's address mapped to the addresses of the validators reporting it. |
| validators | open override fun validators(): ValidatorSetV1 The validator set. |
Companion object functions
| Name | Summary |
|---|---|
| tryFromBcs | fun tryFromBcs(bytes: ByteArray): IotaSystemStateV1 Decode an IotaSystemStateV1 from raw BCS bytes. |