ChangeEpochV4
ChangeEpochV4
class ChangeEpochV4
BCS
The BCS serialized form of this type is specified in
bcs-schema.abnf.
init(epoch:protocolVersion:storageCharge:computationCharge:computationChargeBurned:storageRebate:nonRefundableStorageFee:epochStartTimestampMs:systemPackages:eligibleActiveValidators:scores:adjustRewardsByScore:)
convenience init(epoch: UInt64, protocolVersion: UInt64, storageCharge: UInt64, computationCharge: UInt64, computationChargeBurned: UInt64, storageRebate: UInt64, nonRefundableStorageFee: UInt64, epochStartTimestampMs: UInt64, systemPackages: [SystemPackage], eligibleActiveValidators: [UInt64], scores: [UInt64], adjustRewardsByScore: Bool)
adjustRewardsByScore()
func adjustRewardsByScore() -> Bool
Whether to adjust validator rewards based on score.
computationCharge()
func computationCharge() -> UInt64
The total amount of gas charged for computation during the epoch.
computationChargeBurned()
func computationChargeBurned() -> UInt64
The total amount of gas burned for computation during the epoch.
eligibleActiveValidators()
func eligibleActiveValidators() -> [UInt64]
Vector of active validator indices eligible to take part in committee selection because they support the new, target protocol version.
epoch()
func epoch() -> UInt64
The next (to become) epoch ID.
epochStartTimestampMs()
func epochStartTimestampMs() -> UInt64
Unix timestamp when epoch started
nonRefundableStorageFee()
func nonRefundableStorageFee() -> UInt64
The non-refundable storage fee.
protocolVersion()
func protocolVersion() -> UInt64
The protocol version in effect in the new epoch.
scores()
func scores() -> [UInt64]
Vector of scores relative to the past epoch performance of each validator, ordered by the past epoch's validator index.
storageCharge()
func storageCharge() -> UInt64
The total amount of gas charged for storage during the epoch.
storageRebate()
func storageRebate() -> UInt64
The amount of storage rebate refunded to the txn senders.
systemPackages()
func systemPackages() -> [SystemPackage]
System packages (specifically framework and move stdlib) that are written before the new epoch starts.
toDisplayString()
func 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.