Skip to main content

IntentVersion

enum IntentVersion : Enum<IntentVersion>

Byte signifying the version of an Intent

The version here is to distinguish between signing different versions of the struct or enum. Serialized output between two different versions of the same struct/enum might accidentally (or maliciously on purpose) match.

BCS

The BCS serialized form for this type is defined by the following ABNF:

intent-version = u8

Entries

V0V0

Properties

NameSummary
entriesval entries: EnumEntries<IntentVersion>
Returns a representation of an immutable list of all enum entries, in the order they're declared.
nameval name: String
ordinalval ordinal: Int

Functions

NameSummary
valueOffun valueOf(value: String): IntentVersion
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
valuesfun values(): Array<IntentVersion>
Returns an array containing the constants of this enum type, in the order they're declared.

V0

V0

Properties

NameSummary
nameval name: String
ordinalval ordinal: Int