import { ExternalActionId as e } from "../../types/external-action.types.mjs";
import { networkRegistry as t } from "../../constants/chains.constants.mjs";
//#region libs/shared/common/src/functions/pre-transaction/getExternalSwapAddress.ts
var n = (n, r) => {
	let { contractData: i } = t[n], a;
	switch (r) {
		case e.Uniswap:
			a = i?.uniswapExternalActionAddress;
			break;
		case e.Odos:
			a = i?.odosExternalActionInstanceAddress;
			break;
		case e.OneInch:
			a = i?.oneInchExternalActionInstanceAddress;
			break;
		case e.Lifi:
			a = i?.hinkalAddress;
			break;
		default:
			a = i?.uniswapExternalActionAddress;
			break;
	}
	if (!a) throw Error("No external Address set during swap");
	return a;
};
//#endregion
export { n as getExternalSwapAddress };
