const e=require(`../../constants/chains.constants.cjs`),t=require(`../../constants/protocol.constants.cjs`),n=require(`./caseInsensitive.utils.cjs`),r=require(`../../constants/tokens.constants.cjs`),i=require(`./erc20tokenFunctions.cjs`),a=require(`../../constants/bridging.constants.cjs`),o=require(`../../constants/lifi.constants.cjs`);var s=e=>`${o.LIFISCAN_URL}/tx/${e}`,c=(t,n,r)=>{if(e.isTempo(t.chainId)){let e=a.TEMPO_OUTBOUND_BRIDGE_DEST_SYMBOLS[t.erc20TokenAddress.toLowerCase()];if(e)return i.findTokenBySymbolFromTokenList(r,e)}if(e.isTempo(n)){let e=a.TEMPO_INBOUND_BRIDGE_DEST_SYMBOLS[t.symbol];if(e)return i.findTokenBySymbolFromTokenList(r,e)}},l=(i,a,o)=>{let s=r.chainNativeTokenSymbol[i],c=r.chainNativeTokenSymbol[a];if(s){if(s===c)return o.find(e=>e.erc20TokenAddress===t.zeroAddress||e.erc20TokenAddress===`11111111111111111111111111111111`);if(s===`ETH`){let r=e.isSolanaLike(a)?`ETH`:`WETH`;return o.find(e=>n.caseInsensitiveEqual(e.symbol,r)&&e.erc20TokenAddress!==t.zeroAddress&&e.erc20TokenAddress!==`11111111111111111111111111111111`)}return o.find(e=>n.caseInsensitiveEqual(e.symbol,s)&&e.erc20TokenAddress!==t.zeroAddress&&e.erc20TokenAddress!==`11111111111111111111111111111111`)}};exports.getEquivalentBridgedTokenForTempo=c,exports.getEquivalentNativeToken=l,exports.getLifiScanURL=s;