import { defaultHookData as e } from "../../types/circom-data.types.mjs";
import { buildTronUnsignedTransactTransaction as t } from "../../functions/web3/functionCalls/transactCallDirectTron.mjs";
import { prepareDepositOnChainUtxosZkProof as n } from "./prepareDepositOnChainUtxosZkProof.mjs";
import { ethers as r } from "ethers";
//#region libs/shared/common/src/data-structures/Hinkal/hinkalPalTronDepositPrepare.ts
var i = async (i, a, o, s, c, l) => {
	let { zkCallData: u, circomData: d, dimData: f, totalAmount: p, utxoAmounts: m, hinkalWrapperAddress: h, hinkalWrapperABI: g } = await n(i, a, o, s, c, { hookData: {
		...e,
		preHookMetadata: r.hexlify(r.toUtf8Bytes(JSON.stringify({ orderId: l })))
	} });
	return {
		unsignedTx: await t(i, a, p, o, u, d, f, h, g),
		utxoAmounts: m
	};
};
//#endregion
export { i as hinkalPalTronDepositPrepare };
