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
| V0 | V0 |
Properties
| Name | Summary |
|---|---|
| entries | val entries: EnumEntries<IntentVersion> Returns a representation of an immutable list of all enum entries, in the order they're declared. |
| name | val name: String |
| ordinal | val ordinal: Int |
Functions
| Name | Summary |
|---|---|
| valueOf | fun 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.) |
| values | fun values(): Array<IntentVersion> Returns an array containing the constants of this enum type, in the order they're declared. |
V0
Properties
| Name | Summary |
|---|---|
| name | val name: String |
| ordinal | val ordinal: Int |