ChangeEpochV4
type ChangeEpochV4
BCS
The BCS serialized form of this type is specified in [`bcs-schema.abnf`](https://github.com/iotaledger/iota-rust-sdk/blob/develop/crates/iota-sdk-types/bcs-schema.abnf\).
type ChangeEpochV4 struct {
// contains filtered or unexported fields
}
func LiftFromExternalChangeEpochV4
func LiftFromExternalChangeEpochV4(handle uint64) *ChangeEpochV4
func NewChangeEpochV4
func NewChangeEpochV4(epoch uint64, protocolVersion uint64, storageCharge uint64, computationCharge uint64, computationChargeBurned uint64, storageRebate uint64, nonRefundableStorageFee uint64, epochStartTimestampMs uint64, systemPackages []*SystemPackage, eligibleActiveValidators []uint64, scores []uint64, adjustRewardsByScore bool) *ChangeEpochV4
func (*ChangeEpochV4) AdjustRewardsByScore
func (_self *ChangeEpochV4) AdjustRewardsByScore() bool
Whether to adjust validator rewards based on score.
func (*ChangeEpochV4) ComputationCharge
func (_self *ChangeEpochV4) ComputationCharge() uint64
The total amount of gas charged for computation during the epoch.
func (*ChangeEpochV4) ComputationChargeBurned
func (_self *ChangeEpochV4) ComputationChargeBurned() uint64
The total amount of gas burned for computation during the epoch.
func (*ChangeEpochV4) Destroy
func (object *ChangeEpochV4) Destroy()
func (*ChangeEpochV4) EligibleActiveValidators
func (_self *ChangeEpochV4) EligibleActiveValidators() []uint64
Vector of active validator indices eligible to take part in committee selection because they support the new, target protocol version.
func (*ChangeEpochV4) Epoch
func (_self *ChangeEpochV4) Epoch() uint64
The next (to become) epoch ID.
func (*ChangeEpochV4) EpochStartTimestampMs
func (_self *ChangeEpochV4) EpochStartTimestampMs() uint64
Unix timestamp when epoch started
func (*ChangeEpochV4) NonRefundableStorageFee
func (_self *ChangeEpochV4) NonRefundableStorageFee() uint64
The non-refundable storage fee.
func (*ChangeEpochV4) ProtocolVersion
func (_self *ChangeEpochV4) ProtocolVersion() uint64
The protocol version in effect in the new epoch.
func (*ChangeEpochV4) Scores
func (_self *ChangeEpochV4) Scores() []uint64
Vector of scores relative to the past epoch performance of each validator, ordered by the past epoch's validator index.
func (*ChangeEpochV4) StorageCharge
func (_self *ChangeEpochV4) StorageCharge() uint64
The total amount of gas charged for storage during the epoch.
func (*ChangeEpochV4) StorageRebate
func (_self *ChangeEpochV4) StorageRebate() uint64
The amount of storage rebate refunded to the txn senders.
func (*ChangeEpochV4) SystemPackages
func (_self *ChangeEpochV4) SystemPackages() []*SystemPackage
System packages (specifically framework and move stdlib) that are written before the new epoch starts.
func (*ChangeEpochV4) ToDisplayString
func (_self *ChangeEpochV4) ToDisplayString() string
Render this type as human-readable text.
Some types also print this through the binding's native string conversion; this method is the spelling every object type has.
The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.