{"version":3,"file":"queue.mjs","names":["generated.quoteRedeemOpen"],"sources":["../../../src/predict/bindings/queue.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n// The public `queueMoveCalls`: the generated order-flow `queue` bindings, with the argument key\n// `quote_redeem_open` shipped with (see `rename.ts`). Its `wrapper` parameter became `_wrapper` in\n// predict_orders v2 (Testnet v3), when builder fees moved from the account to each trade.\n\nimport type { TransactionArgument } from '@mysten/sui/transactions';\nimport * as generated from '../../contracts/deepbook_predict_orders/queue.js';\nimport type { RawTransactionArgument } from '../../contracts/utils/index.js';\nimport { renameArguments } from './rename.js';\n\nexport * from '../../contracts/deepbook_predict_orders/queue.js';\n\nexport interface QuoteRedeemOpenArguments {\n\tqueue: RawTransactionArgument<string>;\n\tmarket: RawTransactionArgument<string>;\n\twrapper: RawTransactionArgument<string>;\n\tpricer: TransactionArgument;\n\trecordId: RawTransactionArgument<number | bigint>;\n\tcloseQuantity: RawTransactionArgument<number | bigint>;\n}\nexport interface QuoteRedeemOpenOptions extends Omit<\n\tgenerated.QuoteRedeemOpenOptions,\n\t'arguments'\n> {\n\targuments:\n\t\t| QuoteRedeemOpenArguments\n\t\t| Extract<generated.QuoteRedeemOpenOptions['arguments'], readonly unknown[]>;\n}\n/**\n * Quote an early sell of `closeQuantity` from the Open record `recordId` at a live `Pricer`: the\n * close a queued sell fills, with no builder fee, matching `enqueue_redeem_open`.\n * `quoteRedeemOpenWithBuilderFee` quotes a sell that names a builder. Changes nothing. The\n * `wrapper` is no longer read, because the fee comes from the trade, not the account.\n */\nexport function quoteRedeemOpen(options: QuoteRedeemOpenOptions) {\n\treturn generated.quoteRedeemOpen({\n\t\t...options,\n\t\targuments: renameArguments(options.arguments, { wrapper: 'Wrapper' }),\n\t});\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,SAAgB,gBAAgB,SAAiC;AAChE,QAAOA,kBAA0B;EAChC,GAAG;EACH,WAAW,gBAAgB,QAAQ,WAAW,EAAE,SAAS,WAAW,CAAC;EACrE,CAAC"}