Skip to main content

ChangeEpochV4Interface

type ChangeEpochV4Interface

type ChangeEpochV4Interface interface {
// Whether to adjust validator rewards based on score.
AdjustRewardsByScore() bool
// The total amount of gas charged for computation during the epoch.
ComputationCharge() uint64
// The total amount of gas burned for computation during the epoch.
ComputationChargeBurned() uint64
// Vector of active validator indices eligible to take part in committee
// selection because they support the new, target protocol version.
EligibleActiveValidators() []uint64
// The next (to become) epoch ID.
Epoch() uint64
// Unix timestamp when epoch started
EpochStartTimestampMs() uint64
// The non-refundable storage fee.
NonRefundableStorageFee() uint64
// The protocol version in effect in the new epoch.
ProtocolVersion() uint64
// Vector of scores relative to the past epoch performance of each
// validator, ordered by the past epoch's validator index.
Scores() []uint64
// The total amount of gas charged for storage during the epoch.
StorageCharge() uint64
// The amount of storage rebate refunded to the txn senders.
StorageRebate() uint64
// System packages (specifically framework and move stdlib) that are
// written before the new epoch starts.
SystemPackages() []*SystemPackage
}