{"version":3,"file":"price_identifier.mjs","names":[],"sources":["../../../src/contracts/pyth/price_identifier.ts"],"sourcesContent":["/**************************************************************\n * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *\n **************************************************************/\nimport { MoveStruct, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';\nimport { bcs } from '@mysten/sui/bcs';\nimport { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';\nconst $moduleName =\n\t'0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837::price_identifier';\nexport const PriceIdentifier = new MoveStruct({\n\tname: `${$moduleName}::PriceIdentifier`,\n\tfields: {\n\t\tbytes: bcs.vector(bcs.u8()),\n\t},\n});\nexport interface FromByteVecOptions {\n\tpackage?: string;\n\targuments: [RawTransactionArgument<Array<number>>];\n}\nexport function fromByteVec(options: FromByteVecOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? '0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837';\n\tconst argumentsTypes = ['vector<u8>'] satisfies (string | null)[];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'price_identifier',\n\t\t\tfunction: 'from_byte_vec',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes),\n\t\t});\n}\nexport interface GetBytesOptions {\n\tpackage?: string;\n\targuments: [TransactionArgument];\n}\nexport function getBytes(options: GetBytesOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? '0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'price_identifier',\n\t\t\tfunction: 'get_bytes',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes),\n\t\t});\n}\n"],"mappings":";;;;;;;AAMA,MAAM,cACL;AACD,MAAa,kBAAkB,IAAI,WAAW;CAC7C,MAAM,GAAG,YAAY;CACrB,QAAQ,EACP,OAAO,IAAI,OAAO,IAAI,IAAI,CAAC,EAC3B;CACD,CAAC"}