import { networkRegistry as e } from "../../constants/chains.constants.mjs";
import { ethers as t } from "ethers";
//#region libs/shared/common/src/functions/utils/convertEmporiumOpToCallInfo.ts
var n = (n, r, i) => {
	let { hinkalAddress: a } = e[i].contractData, o = t.getBytes(n), s = o.slice(0, 20), c = o.slice(20, 21), [l, u, d, f] = [
		s,
		o.slice(21, 37),
		c,
		o.slice(37)
	].map((e) => t.hexlify(e));
	return {
		from: BigInt(d) > 0 ? r : a,
		to: l,
		value: BigInt(u),
		calldata: f
	};
};
//#endregion
export { n as convertEmporiumOpToCallInfo };
