/************************************************************** * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED * **************************************************************/ import { type BcsType, bcs } from '@mysten/sui/bcs'; import { MoveStruct, normalizeMoveArguments } from '../utils/index.js'; import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions'; const $moduleName = '0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837::hot_potato_vector'; export function HotPotatoVector>(...typeParameters: [T0]) { return new MoveStruct({ name: `${$moduleName}::HotPotatoVector<${typeParameters[0].name as T0['name']}>`, fields: { contents: bcs.vector(typeParameters[0]), }, }); } export interface DestroyOptions { package?: string; arguments: [TransactionArgument]; typeArguments: [string]; } export function destroy(options: DestroyOptions) { const packageAddress = options.package ?? '0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837'; const argumentsTypes = [null] satisfies (string | null)[]; return (tx: Transaction) => tx.moveCall({ package: packageAddress, module: 'hot_potato_vector', function: 'destroy', arguments: normalizeMoveArguments(options.arguments, argumentsTypes), typeArguments: options.typeArguments, }); } export interface LengthOptions { package?: string; arguments: [TransactionArgument]; typeArguments: [string]; } export function length(options: LengthOptions) { const packageAddress = options.package ?? '0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837'; const argumentsTypes = [null] satisfies (string | null)[]; return (tx: Transaction) => tx.moveCall({ package: packageAddress, module: 'hot_potato_vector', function: 'length', arguments: normalizeMoveArguments(options.arguments, argumentsTypes), typeArguments: options.typeArguments, }); } export interface IsEmptyOptions { package?: string; arguments: [TransactionArgument]; typeArguments: [string]; } export function isEmpty(options: IsEmptyOptions) { const packageAddress = options.package ?? '0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837'; const argumentsTypes = [null] satisfies (string | null)[]; return (tx: Transaction) => tx.moveCall({ package: packageAddress, module: 'hot_potato_vector', function: 'is_empty', arguments: normalizeMoveArguments(options.arguments, argumentsTypes), typeArguments: options.typeArguments, }); }