IotaSystemStateV1
type IotaSystemStateV1
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`].
type IotaSystemStateV1 struct {
// contains filtered or unexported fields
}
func IotaSystemStateV1TryFromBcs
func IotaSystemStateV1TryFromBcs(bytes []byte) (*IotaSystemStateV1, error)
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.
func LiftFromExternalIotaSystemStateV1
func LiftFromExternalIotaSystemStateV1(handle uint64) *IotaSystemStateV1
func (*IotaSystemStateV1) DebugString
func (_self *IotaSystemStateV1) DebugString() string
func (*IotaSystemStateV1) Destroy
func (object *IotaSystemStateV1) Destroy()
func (*IotaSystemStateV1) Epoch
func (_self *IotaSystemStateV1) Epoch() uint64
func (*IotaSystemStateV1) EpochStartTimestampMs
func (_self *IotaSystemStateV1) EpochStartTimestampMs() uint64
Unix timestamp (ms) of the current epoch start.
func (*IotaSystemStateV1) ExtraFieldsId
func (_self *IotaSystemStateV1) ExtraFieldsId() *ObjectId
Object ID of the `Bag` holding fields added to this struct after its current on-chain layout was set.
func (*IotaSystemStateV1) IotaTotalSupply
func (_self *IotaSystemStateV1) IotaTotalSupply() uint64
Total IOTA supply controlled by the system treasury, in nanos.
func (*IotaSystemStateV1) Parameters
func (_self *IotaSystemStateV1) Parameters() *SystemParametersV1
The system parameters.
func (*IotaSystemStateV1) ProtocolVersion
func (_self *IotaSystemStateV1) ProtocolVersion() uint64
func (*IotaSystemStateV1) ReferenceGasPrice
func (_self *IotaSystemStateV1) ReferenceGasPrice() uint64
The reference gas price for the current epoch, in nanos.
func (*IotaSystemStateV1) SafeMode
func (_self *IotaSystemStateV1) SafeMode() bool
Whether the system is running in a downgraded safe mode.
func (*IotaSystemStateV1) SafeModeComputationRewards
func (_self *IotaSystemStateV1) SafeModeComputationRewards() uint64
Computation rewards accumulated during safe mode, in nanos.
func (*IotaSystemStateV1) SafeModeNonRefundableStorageFee
func (_self *IotaSystemStateV1) SafeModeNonRefundableStorageFee() uint64
Non-refundable storage fees accumulated during safe mode, in nanos.
func (*IotaSystemStateV1) SafeModeStorageCharges
func (_self *IotaSystemStateV1) SafeModeStorageCharges() uint64
Storage charges accumulated during safe mode, in nanos.
func (*IotaSystemStateV1) SafeModeStorageRebates
func (_self *IotaSystemStateV1) SafeModeStorageRebates() uint64
Storage rebates accumulated during safe mode, in nanos.
func (*IotaSystemStateV1) StorageFund
func (_self *IotaSystemStateV1) StorageFund() *StorageFundV1
The storage fund.
func (*IotaSystemStateV1) SystemStateVersion
func (_self *IotaSystemStateV1) SystemStateVersion() uint64
func (*IotaSystemStateV1) ValidatorReportRecords
func (_self *IotaSystemStateV1) ValidatorReportRecords() map[*Address][]*Address
Validator report records: each reported validator's address mapped to the addresses of the validators reporting it.
func (*IotaSystemStateV1) Validators
func (_self *IotaSystemStateV1) Validators() *ValidatorSetV1
The validator set.