Skip to content

Commit

Permalink
fix: add HYPE, HyperEVM to rest-api
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiTimesChi committed Feb 26, 2025
1 parent 56a6ce4 commit b31e0fc
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
17 changes: 17 additions & 0 deletions packages/rest-api/src/constants/bridgeable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1420,3 +1420,20 @@ export const SPECTRAL: BridgeableToken = {
imgUrl:
'https://105bc697.sanguine-fe.pages.dev/_next/static/media/spectral.6d51750c.svg',
}

export const HYPE: BridgeableToken = {
addresses: {
[CHAINS.HYPEREVM.id]: '0x0000000000000000000000000000000000000000',
},
decimals: {
[CHAINS.HYPEREVM.id]: 18,
},
symbol: 'HYPE',
name: 'HYPE',
swapableType: 'HYPE',
color: 'green',
priorityRank: 300,
routeSymbol: 'HYPE',
imgUrl:
'https://45b41e43.sanguine-fe.pages.dev/_next/static/media/hyperliquid.3dafe2fd.svg',
}
22 changes: 22 additions & 0 deletions packages/rest-api/src/constants/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,27 @@ export const UNICHAIN: Chain = {
},
}

export const HYPEREVM: Chain = {
id: 999,
name: 'HyperEVM',
rpcUrls: {
primary: 'https://rpc.hyperliquid.xyz/evm',
fallback: 'https://rpc.hypurrscan.io',
},
explorerUrl: 'https://purrsec.com',
explorerName: 'PurrSec',
imgUrl:
'https://45b41e43.sanguine-fe.pages.dev/_next/static/media/hyperliquid.3dafe2fd.svg',
blockTime: 2000,
networkName: 'HyperEVM',
networkUrl: 'https://rpc.hyperliquid.xyz/evm',
nativeCurrency: {
name: 'HYPE',
symbol: 'HYPE',
decimals: 18,
},
}

export const CHAINS = {
ETHEREUM,
ARBITRUM,
Expand All @@ -555,6 +576,7 @@ export const CHAINS = {
WORLDCHAIN,
BERACHAIN,
UNICHAIN,
HYPEREVM,
}

export const CHAINS_ARRAY = Object.values(CHAINS)
Expand Down

0 comments on commit b31e0fc

Please sign in to comment.