require(`../../constants/chains.constants.cjs`);const e=require(`../../constants/protocol.constants.cjs`),t=require(`../../constants/token-data/ERC20Registry.cjs`);require(`../../constants/token-data/index.cjs`);const n=require(`../../data-structures/custom-token-registry/CustomTokenRegistry.cjs`);require(`../web3/etherFunctions.cjs`),require(`../../constants/tokens.constants.cjs`);var r=e=>{let r=t.getERC20Registry(e),i=n.customTokenRegistry.getCustomTokens(e);return[...r,...i]},i=(e,t,n)=>(n??r(t))?.find(t=>e===void 0?!1:t.erc20TokenAddress.toLowerCase()===e.toLowerCase()),a=(e,t)=>{let n=i(e.erc20TokenAddress,t);return n?{...e,name:n.name,symbol:n.symbol,logoURI:n.logoURI,decimals:n.decimals}:e},o=(e,t)=>r(t)?.find(t=>e===void 0?!1:t.symbol.toLowerCase()===e.toLowerCase()),s=t=>t.nftTokenType===e.TokenType.ERC721||t.nftTokenType===e.TokenType.ERC1155||t.nftTokenType===e.TokenType.MetaplexNFT||t.nftTokenType===e.TokenType.Token2022NFT||t.nftTokenType===e.TokenType.CompressedNFT;exports.getERC20Token=i,exports.getERC20TokenBySymbol=o,exports.getErc20TokensForChain=r,exports.isNFTToken=s,exports.overlayTokenWithRegistryData=a;