Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add artifacts from deUSD deploy #240

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions public/logos/elixir.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 8 additions & 7 deletions src/components/icons/TokenIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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);
2 changes: 1 addition & 1 deletion src/consts/warpRouteWhitelist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string> | null = null;
export const warpRouteWhitelist: Array<string> | null = ['DEUSD/ethereum-sei'];
// Example:
// [
// // 'ETH/ethereum-viction'
Expand Down
22 changes: 21 additions & 1 deletion src/consts/warpRoutes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: {}
Loading