import { hashEthereumAddress as e } from "../utils/addresses.mjs";
//#region libs/shared/common/src/functions/pre-transaction/constructAdminData.ts
var t = (t, n, r, i, a, o) => {
	if (!t) return;
	let s;
	return o && (s = {
		tokenIn: {
			symbol: o[0]?.symbol,
			address: o[0]?.erc20TokenAddress.toLowerCase()
		},
		tokenOut: {
			symbol: o[1]?.symbol,
			address: o[1]?.erc20TokenAddress.toLowerCase()
		}
	}), {
		hashedOwner: e(a),
		chainId: n,
		timestamp: Date.now(),
		action: t,
		erc20TokenAddresses: r,
		erc20TokenAmount: i.map(String),
		swapPair: s
	};
};
//#endregion
export { t as constructAdminData };
