MoveVector

@Serializable(with = MoveVectorSerializer::class)
data class MoveVector<T : EntryFunctionArgument>(var values: List<T>) : TransactionArgument

This class is the Kotlin representation of a Move vector<T>, where T is a type that represents either a primitive type (bool, u8, u64, ...) or a BCS-serializable struct itself.

The MoveVector class is a BCS-serializable subclass of TransactionArgument, which is a superclass for all types that can be used as arguments in a transaction.

The purpose of this class is to facilitate easy construction of BCS-serializable Move vector<T> types.

Parameters

T

: a serializable type that represents either a primitive type (bool, u8, u64, ...)

Samples

Constructors

Link copied to clipboard
constructor(values: List<T>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
var values: List<T>

: a list of T values that the MoveVector will contain

Functions

Link copied to clipboard