Type Alias MoveValue

MoveValue:
    | boolean
    | string
    | MoveUint8Type
    | MoveUint16Type
    | MoveUint32Type
    | MoveUint64Type
    | MoveUint128Type
    | MoveUint256Type
    | MoveAddressType
    | MoveObjectType
    | MoveStructId
    | MoveOptionType
    | MoveValue[]

Possible Move values acceptable by move functions (entry, view)

Map of a Move value to the corresponding TypeScript value

Bool -> boolean

u8, u16, u32 -> number

u64, u128, u256 -> string

String -> string

Address -> 0x${string}

Struct - 0x${string}::${string}::${string}

Object -> 0x${string}

Vector -> Array<MoveValue>

Option -> MoveValue | null | undefined