Skip to main content

VersionInterface

interface VersionInterface

Inheritors

Version

Functions

NameSummary
asU64abstract fun asU64(): ULong
Get the underlying u64 value of this version
getCongestedVersionSuggestedGasPriceabstract fun getCongestedVersionSuggestedGasPrice(): ULong
Returns the suggested_gas_price embedded in this congested shared object version. The suggested_gas_price here is used for a gas price feedback mechanism for transactions canceled due to shared object congestion.
isCanceledabstract fun isCanceled(): Boolean
Checks if this version is canceled, i.e., the corresponding object appears in a canceled transaction.
isCongestedabstract fun isCongested(): Boolean
Check if this version is congested, i.e., the corresponding object is the reason for transaction cancellation.
isValidabstract fun isValid(): Boolean
Checks if this version is valid, i.e., the corresponding object does not appear in a canceled transaction.
nextabstract fun next(): Version
Returns the next version, or an error if overflow occurs.
previousabstract fun previous(): Version
Returns the previous version, or an error if underflow occurs.