import { EthereumNetworkType as e, NetworkFilterType as t } from "../types/chains.types.mjs";
import n from "./deploy-data/deploy-data-arbMainnet.json.mjs";
import r from "./deploy-data/deploy-data-ethMainnet.json.mjs";
import i from "./deploy-data/deploy-data-optimism.json.mjs";
import a from "./deploy-data/deploy-data-optimismTest.json.mjs";
import o from "./deploy-data/deploy-data-polygon.json.mjs";
import s from "./deploy-data/deploy-data-base.json.mjs";
import c from "./deploy-data/deploy-data-localhost.json.mjs";
import l from "./deploy-data/deploy-data-arcTestnet.json.mjs";
import u from "./deploy-data/deploy-data-sepoliaTestnet.json.mjs";
import d from "./deploy-data/deploy-data-solana.json.mjs";
import f from "./deploy-data/deploy-data-tronNile.json.mjs";
import p from "./deploy-data/deploy-data-tronMainnet.json.mjs";
import m from "./deploy-data/deploy-data-tempo.json.mjs";
import { isDevelopment as h, isNotProduction as g } from "./vite.constants.mjs";
//#region libs/shared/common/src/constants/chains.constants.ts
var _ = {
	chainId: 0,
	name: "All"
}, v = {
	polygon: 137,
	arbMainnet: 42161,
	ethMainnet: 1,
	bnbMainnet: 56,
	optimism: 10,
	optimismTest: 1010,
	base: 8453,
	localhost: 31337,
	arcTestnet: 5042002,
	sepoliaTestnet: 11155111,
	solanaMainnet: 501,
	solanaLocalnet: 102,
	tronNile: 3448148188,
	tronLocalnet: 103,
	tronMainnet: 728126428,
	tempo: 4217
}, y = "4sGjMW1sUnHzSxGspuhpqLDx6wiyjNtZ", b = v.ethMainnet, x = (e) => [
	v.localhost,
	v.tronLocalnet,
	v.solanaLocalnet
].includes(e), S = (e) => e ? x(e) ? b : e : b, C = (e) => e === v.optimismTest ? v.optimism : e, w = (e, t) => C(e) === C(t), T = "X4IiEZsSzGOrJq8tzq7Y3", E = g ? T : "XzUgeU8YiIIzkD7j2GWnTsFUck7wGgK9", D = "https://mainnet.helius-rpc.com/?api-key=24718f72-c710-45d6-853e-d447cf530579", O = {
	[v.ethMainnet]: {
		name: "Ethereum",
		chainId: v.ethMainnet,
		rpcUrl: "https://rpc.ankr.com/eth",
		fetchRpcUrl: `https://eth-mainnet.g.alchemy.com/v2/${E}`,
		wsRpcUrl: `wss://eth-mainnet.g.alchemy.com/v2/${E}`,
		supported: !0,
		contractData: r,
		quoterV2Address: "0x61fFE014bA17989E743c5F6cB21bF9697530B21e",
		uniswapV3FactoryAddress: "0x1F98431c8aD98523631AE4a59f267346ea31F984",
		priority: 1,
		maxPageSize: 9e5
	},
	[v.arbMainnet]: {
		name: "Arbitrum",
		chainId: v.arbMainnet,
		rpcUrl: "https://endpoints.omniatech.io/v1/arbitrum/one/public",
		fetchRpcUrl: `https://arb-mainnet.g.alchemy.com/v2/${E}`,
		wsRpcUrl: `wss://arb-mainnet.g.alchemy.com/v2/${E}`,
		supported: !0,
		contractData: n,
		quoterV2Address: "0x61fFE014bA17989E743c5F6cB21bF9697530B21e",
		uniswapV3FactoryAddress: "0x1F98431c8aD98523631AE4a59f267346ea31F984",
		priority: 2,
		maxPageSize: 5e5
	},
	[v.optimism]: {
		name: "Optimism",
		chainId: v.optimism,
		rpcUrl: "https://optimism-mainnet.infura.io/v3/c26b99456bb6464bb498926ff5162903",
		fetchRpcUrl: `https://opt-mainnet.g.alchemy.com/v2/${E}`,
		wsRpcUrl: `wss://opt-mainnet.g.alchemy.com/v2/${E}`,
		supported: !0,
		contractData: i,
		quoterV2Address: "0x61fFE014bA17989E743c5F6cB21bF9697530B21e",
		uniswapV3FactoryAddress: "0x1F98431c8aD98523631AE4a59f267346ea31F984",
		priority: 3,
		maxPageSize: 9e5
	},
	[v.optimismTest]: {
		name: "Optimism Test",
		chainId: v.optimismTest,
		rpcUrl: "https://optimism-mainnet.infura.io/v3/c26b99456bb6464bb498926ff5162903",
		fetchRpcUrl: `https://opt-mainnet.g.alchemy.com/v2/${E}`,
		wsRpcUrl: `wss://opt-mainnet.g.alchemy.com/v2/${E}`,
		supported: !0,
		contractData: a,
		quoterV2Address: "0x61fFE014bA17989E743c5F6cB21bF9697530B21e",
		uniswapV3FactoryAddress: "0x1F98431c8aD98523631AE4a59f267346ea31F984",
		priority: 3,
		maxPageSize: 9e5
	},
	[v.polygon]: {
		name: "Polygon",
		chainId: v.polygon,
		rpcUrl: "https://polygon-rpc.com",
		fetchRpcUrl: `https://polygon-mainnet.g.alchemy.com/v2/${E}`,
		wsRpcUrl: `wss://polygon-mainnet.g.alchemy.com/v2/${E}`,
		supported: !0,
		contractData: o,
		quoterV2Address: "0x61fFE014bA17989E743c5F6cB21bF9697530B21e",
		uniswapV3FactoryAddress: "0x1F98431c8aD98523631AE4a59f267346ea31F984",
		priority: 4,
		maxPageSize: 9e5
	},
	[v.bnbMainnet]: {
		name: "BNB Chain",
		chainId: v.bnbMainnet,
		rpcUrl: "https://bsc-dataseed.binance.org",
		fetchRpcUrl: `https://bnb-mainnet.g.alchemy.com/v2/${E}`,
		wsRpcUrl: `wss://bnb-mainnet.g.alchemy.com/v2/${E}`,
		supported: !0,
		contractData: {},
		quoterV2Address: "0x78D78E420Da98ad378D7799bE8f4AF69033EB077",
		uniswapV3FactoryAddress: "0xdB1d10011AD0Ff90774D0C6Bb92e5C5c8b4461F7",
		priority: 6
	},
	[v.base]: {
		name: "Base",
		chainId: v.base,
		rpcUrl: "https://mainnet.base.org/",
		fetchRpcUrl: `https://base-mainnet.g.alchemy.com/v2/${E}`,
		wsRpcUrl: `wss://base-mainnet.g.alchemy.com/v2/${E}`,
		supported: !0,
		contractData: s,
		quoterV2Address: "0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a",
		uniswapV3FactoryAddress: "0x33128a8fC17869897dcE68Ed026d694621f6FDfD",
		priority: 7,
		maxPageSize: 5e5
	},
	[v.arcTestnet]: {
		name: "Arc Testnet",
		chainId: v.arcTestnet,
		rpcUrl: `https://arc-testnet.g.alchemy.com/v2/${E}`,
		fetchRpcUrl: `https://arc-testnet.g.alchemy.com/v2/${E}`,
		wsRpcUrl: `wss://arc-testnet.g.alchemy.com/v2/${E}`,
		supported: !0,
		contractData: l,
		priority: 8,
		maxPageSize: 9999
	},
	[v.solanaMainnet]: {
		name: "Solana",
		chainId: v.solanaMainnet,
		rpcUrl: "https://api.mainnet-beta.solana.com",
		fetchRpcUrl: "https://mainnet.helius-rpc.com/?api-key=54ad9ec9-dad6-41de-b961-e3e8ea7a7188",
		supported: !0,
		contractData: d,
		priority: 8
	},
	[v.solanaLocalnet]: {
		name: "Solana Localnet",
		chainId: v.solanaLocalnet,
		rpcUrl: "http://127.0.0.1:8899",
		fetchRpcUrl: "http://127.0.0.1:8899",
		supported: !0,
		contractData: d,
		priority: 9
	},
	[v.tronNile]: {
		name: "Tron Nile",
		chainId: v.tronNile,
		rpcUrl: `https://tron-testnet.g.alchemy.com/v2/${E}`,
		fetchRpcUrl: `https://tron-testnet.g.alchemy.com/v2/${E}`,
		supported: !0,
		contractData: f,
		priority: 9,
		maxPageSize: 5e5
	},
	[v.tronMainnet]: {
		name: "Tron",
		chainId: v.tronMainnet,
		rpcUrl: `https://tron-mainnet.g.alchemy.com/v2/${E}`,
		fetchRpcUrl: `https://tron-mainnet.g.alchemy.com/v2/${E}`,
		supported: !0,
		priority: 10,
		contractData: p,
		maxPageSize: 5e5
	},
	[v.sepoliaTestnet]: {
		name: "Sepolia Testnet",
		chainId: v.sepoliaTestnet,
		rpcUrl: `https://eth-sepolia.g.alchemy.com/v2/${E}`,
		fetchRpcUrl: `https://eth-sepolia.g.alchemy.com/v2/${E}`,
		supported: !0,
		priority: 11,
		contractData: u,
		quoterV2Address: "0xEd1f6473345F45b75F8179591dd5bA1888cf2FB3",
		uniswapV3FactoryAddress: "0x0227628f3F023bb0B980b67D528571c95c6DaC1c",
		maxPageSize: 9e5
	},
	[v.tempo]: {
		name: "Tempo",
		chainId: v.tempo,
		rpcUrl: "https://rpc.tempo.xyz",
		fetchRpcUrl: "https://rpc.tempo.xyz",
		supported: !0,
		priority: 12,
		contractData: m,
		quoterV2Address: "0x53ab5d7a69db158f621b43ee70423da1e1403c2a",
		uniswapV3FactoryAddress: "0x24a3d4757e330890a8b8978028c9e58e04611fd6",
		maxPageSize: 9999
	}
}, k = {
	name: "Localhost",
	chainId: v.localhost,
	rpcUrl: "http://127.0.0.1:8545",
	fetchRpcUrl: "http://127.0.0.1:8545",
	supported: !0,
	contractData: c,
	quoterV2Address: O[b].quoterV2Address,
	uniswapV3FactoryAddress: O[b].uniswapV3FactoryAddress,
	priority: 7
};
h && (O[v.localhost] = k);
var A = {
	[e.Mainnet]: [
		v.polygon,
		v.arbMainnet,
		v.ethMainnet,
		v.bnbMainnet,
		v.optimism,
		v.base,
		v.tronMainnet,
		v.tempo
	],
	[e.Testnet]: g ? [
		v.arcTestnet,
		v.tronNile,
		v.sepoliaTestnet,
		v.optimismTest
	] : [v.arcTestnet, v.sepoliaTestnet],
	[e.Local]: [v.localhost]
}, j = [
	v.tronNile,
	v.tronMainnet,
	v.tronLocalnet
], M = [v.solanaMainnet, v.solanaLocalnet], N = (e) => [
	v.optimism,
	v.optimismTest,
	v.base
].includes(e), P = (e) => M.includes(e), F = (e) => j.includes(e), I = (e) => e === v.sepoliaTestnet, L = (e) => e === v.tempo, R = g ? v.tronNile : v.tronMainnet, z = v.solanaMainnet, B = [
	v.ethMainnet,
	v.optimism,
	v.base,
	v.polygon,
	v.arbMainnet,
	v.arcTestnet,
	z,
	v.sepoliaTestnet,
	v.tronMainnet,
	v.tronNile
], V = [...B.filter((e) => !F(e)), R], H = (e) => {
	let t = V.indexOf(R);
	t !== -1 && (V[t] = e), R = e;
}, U = B.filter((e) => !F(e) && !I(e) && !L(e)), W = [v.sepoliaTestnet, v.tempo], G = V.filter((e) => !W.includes(e)), K = B.filter((e) => e !== v.arcTestnet && !I(e) && !(F(e) && e !== v.tronMainnet)), q = B.filter((e) => !P(e) && !F(e)), J = (e) => q.includes(e), Y = {
	[t.Wallet]: U,
	[t.Pay]: V,
	[t.Bridge]: K,
	[t.Dashboard]: G
}, X = [v.arcTestnet];
//#endregion
export { E as ALCHEMY_API_KEY, T as ALCHEMY_TEST_KEY, _ as ALL_NETWORKS_OPTION, K as BRIDGE_SUPPORTED_CHAINS, W as DASHBOARD_EXCLUDED_CHAIN_IDS, G as DASHBOARD_SUPPORTED_CHAINS, q as EVM_CHAIN_IDS, Y as FILTER_CHAIN_MAP, V as FRONT_END_SUPPORTED_CHAINS, D as HELIUS_RPC_URL, B as HINKAL_SUPPORTED_CHAINS, M as SOLANA_CHAIN_IDS, X as SWAP_EXCLUDED_CHAINS, j as TRON_CHAIN_IDS, U as WALLET_SUPPORTED_CHAINS, v as chainIds, A as chainIdsByType, z as currentSolanaChainId, R as currentTronChainId, S as getNonLocalhostChainId, C as getOnchainChainId, J as isEvmChain, x as isLocalNetwork, N as isOptimismLike, w as isSameOnchainNetwork, I as isSepoliaTestnet, P as isSolanaLike, L as isTempo, F as isTronLike, b as localhostNetwork, O as networkRegistry, H as setHinkalTronChainId, y as solanaChainIdStr };
