import { EthereumNetworkType as e, NetworkFilterType as t } from "../types/chains.types.mjs";
import { arbMainnetData as n, arcTestnetData as r, baseData as i, ethMainnetData as a, localhostData as o, optimismData as s, polygonData as c, solanaData as l, tronMainnetData as u, tronNileData as d } from "./deploy-data/index.mjs";
import { isDevelopment as f, isNotProduction as p } from "./vite.constants.mjs";
//#region libs/shared/common/src/constants/chains.constants.ts
var m = {
	polygon: 137,
	arbMainnet: 42161,
	ethMainnet: 1,
	bnbMainnet: 56,
	optimism: 10,
	base: 8453,
	localhost: 31337,
	arcTestnet: 5042002,
	solanaMainnet: 501,
	solanaLocalnet: 102,
	tronNile: 3448148188,
	tronLocalnet: 103,
	tronMainnet: 728126428
}, h = m.ethMainnet, g = (e) => !![m.localhost].includes(e), _ = (e) => e ? g(e) ? h : e : h, v = "X4IiEZsSzGOrJq8tzq7Y3", y = p ? v : "XzUgeU8YiIIzkD7j2GWnTsFUck7wGgK9", b = "https://mainnet.helius-rpc.com/?api-key=24718f72-c710-45d6-853e-d447cf530579", x = {
	[m.ethMainnet]: {
		name: "Ethereum",
		chainId: m.ethMainnet,
		rpcUrl: "https://rpc.ankr.com/eth",
		fetchRpcUrl: `https://eth-mainnet.g.alchemy.com/v2/${y}`,
		wsRpcUrl: `wss://eth-mainnet.g.alchemy.com/v2/${y}`,
		supported: !0,
		contractData: a,
		quoterV2Address: "0x61fFE014bA17989E743c5F6cB21bF9697530B21e",
		uniswapV3FactoryAddress: "0x1F98431c8aD98523631AE4a59f267346ea31F984",
		priority: 1,
		maxPageSize: 9e5
	},
	[m.arbMainnet]: {
		name: "Arbitrum",
		chainId: m.arbMainnet,
		rpcUrl: "https://endpoints.omniatech.io/v1/arbitrum/one/public",
		fetchRpcUrl: `https://arb-mainnet.g.alchemy.com/v2/${y}`,
		wsRpcUrl: `wss://arb-mainnet.g.alchemy.com/v2/${y}`,
		supported: !0,
		contractData: n,
		quoterV2Address: "0x61fFE014bA17989E743c5F6cB21bF9697530B21e",
		uniswapV3FactoryAddress: "0x1F98431c8aD98523631AE4a59f267346ea31F984",
		priority: 2,
		maxPageSize: 5e5
	},
	[m.optimism]: {
		name: "Optimism",
		chainId: m.optimism,
		rpcUrl: "https://optimism-mainnet.infura.io/v3/c26b99456bb6464bb498926ff5162903",
		fetchRpcUrl: `https://opt-mainnet.g.alchemy.com/v2/${y}`,
		wsRpcUrl: `wss://opt-mainnet.g.alchemy.com/v2/${y}`,
		supported: !0,
		contractData: s,
		quoterV2Address: "0x61fFE014bA17989E743c5F6cB21bF9697530B21e",
		uniswapV3FactoryAddress: "0x1F98431c8aD98523631AE4a59f267346ea31F984",
		priority: 3,
		maxPageSize: 9e5
	},
	[m.polygon]: {
		name: "Polygon",
		chainId: m.polygon,
		rpcUrl: "https://polygon-rpc.com",
		fetchRpcUrl: `https://polygon-mainnet.g.alchemy.com/v2/${y}`,
		wsRpcUrl: `wss://polygon-mainnet.g.alchemy.com/v2/${y}`,
		supported: !0,
		contractData: c,
		quoterV2Address: "0x61fFE014bA17989E743c5F6cB21bF9697530B21e",
		uniswapV3FactoryAddress: "0x1F98431c8aD98523631AE4a59f267346ea31F984",
		priority: 4,
		maxPageSize: 9e5
	},
	[m.bnbMainnet]: {
		name: "BNB Chain",
		chainId: m.bnbMainnet,
		rpcUrl: "https://bsc-dataseed.binance.org",
		fetchRpcUrl: `https://bnb-mainnet.g.alchemy.com/v2/${y}`,
		wsRpcUrl: `wss://bnb-mainnet.g.alchemy.com/v2/${y}`,
		supported: !0,
		contractData: {},
		quoterV2Address: "0x78D78E420Da98ad378D7799bE8f4AF69033EB077",
		uniswapV3FactoryAddress: "0xdB1d10011AD0Ff90774D0C6Bb92e5C5c8b4461F7",
		priority: 6
	},
	[m.base]: {
		name: "Base",
		chainId: m.base,
		rpcUrl: "https://mainnet.base.org/",
		fetchRpcUrl: `https://base-mainnet.g.alchemy.com/v2/${y}`,
		wsRpcUrl: `wss://base-mainnet.g.alchemy.com/v2/${y}`,
		supported: !0,
		contractData: i,
		quoterV2Address: "0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a",
		uniswapV3FactoryAddress: "0x33128a8fC17869897dcE68Ed026d694621f6FDfD",
		priority: 7,
		maxPageSize: 5e5
	},
	[m.arcTestnet]: {
		name: "Arc Testnet",
		chainId: m.arcTestnet,
		rpcUrl: `https://arc-testnet.g.alchemy.com/v2/${y}`,
		fetchRpcUrl: `https://arc-testnet.g.alchemy.com/v2/${y}`,
		wsRpcUrl: `wss://arc-testnet.g.alchemy.com/v2/${y}`,
		supported: !0,
		contractData: r,
		priority: 8,
		maxPageSize: 9999
	},
	[m.solanaMainnet]: {
		name: "Solana",
		chainId: m.solanaMainnet,
		rpcUrl: "https://api.mainnet-beta.solana.com",
		fetchRpcUrl: "https://mainnet.helius-rpc.com/?api-key=54ad9ec9-dad6-41de-b961-e3e8ea7a7188",
		supported: !0,
		contractData: l,
		priority: 8
	},
	[m.solanaLocalnet]: {
		name: "Solana Localnet",
		chainId: m.solanaLocalnet,
		rpcUrl: "http://127.0.0.1:8899",
		fetchRpcUrl: "http://127.0.0.1:8899",
		supported: !0,
		contractData: l,
		priority: 9
	},
	[m.tronNile]: {
		name: "Tron Nile",
		chainId: m.tronNile,
		rpcUrl: `https://tron-testnet.g.alchemy.com/v2/${y}`,
		fetchRpcUrl: `https://tron-testnet.g.alchemy.com/v2/${y}`,
		supported: !0,
		contractData: d,
		priority: 9,
		maxPageSize: 5e5
	},
	[m.tronMainnet]: {
		name: "Tron",
		chainId: m.tronMainnet,
		rpcUrl: `https://tron-mainnet.g.alchemy.com/v2/${y}`,
		fetchRpcUrl: `https://tron-mainnet.g.alchemy.com/v2/${y}`,
		supported: !0,
		priority: 10,
		contractData: u,
		maxPageSize: 5e5
	}
}, S = {
	name: "Localhost",
	chainId: m.localhost,
	rpcUrl: "http://127.0.0.1:8545",
	fetchRpcUrl: "http://127.0.0.1:8545",
	supported: !0,
	contractData: o,
	quoterV2Address: x[h].quoterV2Address,
	uniswapV3FactoryAddress: x[h].uniswapV3FactoryAddress,
	priority: 7
};
f && (x[m.localhost] = S), e.Mainnet, m.polygon, m.arbMainnet, m.ethMainnet, m.bnbMainnet, m.optimism, m.base, m.tronMainnet, e.Testnet, p ? (m.arcTestnet, m.tronNile) : m.arcTestnet, e.Local, m.localhost;
var C = [
	m.tronNile,
	m.tronMainnet,
	m.tronLocalnet
], w = [m.solanaMainnet, m.solanaLocalnet], T = (e) => w.includes(e), E = (e) => C.includes(e), D = p ? m.tronNile : m.tronMainnet, O = [
	m.ethMainnet,
	m.optimism,
	m.base,
	m.polygon,
	m.arbMainnet,
	m.arcTestnet,
	m.solanaMainnet,
	D
], k = O.filter((e) => !E(e)), A = O.filter((e) => !E(e) && e !== m.arcTestnet);
O.filter((e) => !T(e) && !E(e)), t.Wallet, t.Pay, t.Bridge;
//#endregion
export { y as ALCHEMY_API_KEY, v as ALCHEMY_TEST_KEY, A as BRIDGE_SUPPORTED_CHAINS, b as HELIUS_RPC_URL, O as HINKAL_SUPPORTED_CHAINS, w as SOLANA_CHAIN_IDS, C as TRON_CHAIN_IDS, k as WALLET_SUPPORTED_CHAINS, m as chainIds, D as currentTronChainId, _ as getNonLocalhostChainId, g as isLocalNetwork, T as isSolanaLike, E as isTronLike, h as localhostNetwork, x as networkRegistry };
