require(`../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../functions/utils/fees.utils.cjs`),t=require(`../../functions/utils/solana-memo.cjs`),n=require(`./hinkalSolanaDepositAndWithdraw.cjs`);let r=require(`@solana/web3.js`);var i=async(i,a,o,s,c,l)=>{let u=s.map(t=>t+e.calculateTotalFee(t,c)),d=n.buildMultiPaymentDepositSetup(i,a,o,u),f=await n.buildMultiPaymentDepositBuilder(d).instruction(),p=t.buildOrderIdMemoInstruction(l),{blockhash:m}=await d.program.provider.connection.getLatestBlockhash();return{unsignedTx:new r.VersionedTransaction(new r.TransactionMessage({payerKey:d.publicKey,recentBlockhash:m,instructions:[f,p]}).compileToV0Message()),utxoAmounts:u}};exports.hinkalPalSolanaDepositPrepare=i;