diff --git a/public/logos/elixir.svg b/public/logos/elixir.svg new file mode 100644 index 00000000..bf6b993d --- /dev/null +++ b/public/logos/elixir.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/src/components/icons/TokenIcon.tsx b/src/components/icons/TokenIcon.tsx index 80bacb3d..ebac8b3d 100644 --- a/src/components/icons/TokenIcon.tsx +++ b/src/components/icons/TokenIcon.tsx @@ -4,8 +4,6 @@ import { memo } from 'react'; import { IToken } from '@hyperlane-xyz/sdk'; import { Circle } from '@hyperlane-xyz/widgets'; -import { getRegistry } from '../../context/context'; -import { isValidHttpsUrl, isValidRelativeUrl } from '../../utils/url'; import { ErrorBoundary } from '../errors/ErrorBoundary'; interface Props { @@ -37,11 +35,14 @@ function _TokenIcon({ token, size = 32 }: Props) { function getImageSrc(token?: IToken | null) { if (!token?.logoURI) return null; - // If it's a valid, direct URL, return it - if (isValidHttpsUrl(token.logoURI)) return token.logoURI; - // Otherwise assume it's a relative URL to the registry base - if (isValidRelativeUrl(token.logoURI)) return getRegistry().getUri(token.logoURI); - return null; + + return '/logos/elixir.svg'; + + // // If it's a valid, direct URL, return it + // if (isValidHttpsUrl(token.logoURI)) return token.logoURI; + // // Otherwise assume it's a relative URL to the registry base + // if (isValidRelativeUrl(token.logoURI)) return getRegistry().getUri(token.logoURI); + // return null; } export const TokenIcon = memo(_TokenIcon); diff --git a/src/consts/warpRouteWhitelist.ts b/src/consts/warpRouteWhitelist.ts index 8c6ae88c..3471f32c 100644 --- a/src/consts/warpRouteWhitelist.ts +++ b/src/consts/warpRouteWhitelist.ts @@ -2,7 +2,7 @@ // Warp Route IDs use format `SYMBOL/chainname1-chainname2...` where chains are ordered alphabetically // If left null, all warp routes in the configured registry will be included // If set to a list (including an empty list), only the specified routes will be included -export const warpRouteWhitelist: Array | null = null; +export const warpRouteWhitelist: Array | null = ['DEUSD/ethereum-sei']; // Example: // [ // // 'ETH/ethereum-viction' diff --git a/src/consts/warpRoutes.yaml b/src/consts/warpRoutes.yaml index 090dcb3b..6146ba52 100644 --- a/src/consts/warpRoutes.yaml +++ b/src/consts/warpRoutes.yaml @@ -2,5 +2,25 @@ # These configs will be merged with the warp routes in the configured registry # The input here is typically the output of the Hyperlane CLI warp deploy command --- -tokens: [] +tokens: + - addressOrDenom: "0x68a3963D2fE3427cfD044806B40AF41feCaae845" + chainName: sei + connections: + - token: ethereum|ethereum|0x1Ae0F9913B9277615A94eb78D4D438E708F67571 + decimals: 18 + name: fastUSD + standard: EvmHypSynthetic + symbol: fastUSD + logoURI: "/logos/elixir.svg" + - addressOrDenom: "0x1Ae0F9913B9277615A94eb78D4D438E708F67571" + chainName: ethereum + collateralAddressOrDenom: "0x15700B564Ca08D9439C58cA5053166E8317aa138" + connections: + - token: ethereum|sei|0x68a3963D2fE3427cfD044806B40AF41feCaae845 + decimals: 18 + name: deUSD + standard: EvmHypCollateral + symbol: deUSD + logoURI: "/logos/elixir.svg" + options: {}