Skip to content

Commit 993bce4

Browse files
authored
Merge pull request #1739 from balancednetwork/feat/add-hyperevm
Add HyperEVM
2 parents 4a93175 + c646f82 commit 993bce4

26 files changed

Lines changed: 183 additions & 50 deletions

File tree

‎.DS_Store‎

0 Bytes
Binary file not shown.

‎apps/web/package.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
"@reach/tabs": "0.18.0",
2323
"@reduxjs/toolkit": "2.2.0",
2424
"@sentry/react": "9.26.0",
25-
"@sodax/dapp-kit": "0.0.1-rc.29",
26-
"@sodax/sdk": "0.0.1-rc.43",
27-
"@sodax/types": "0.0.1-rc.18",
25+
"@sodax/dapp-kit": "0.0.1-rc.31",
26+
"@sodax/sdk": "0.0.1-rc.45",
27+
"@sodax/types": "0.0.1-rc.19",
2828
"@sodax/wallet-sdk-core": "0.0.1-rc.2",
2929
"@tanstack/react-query": "5.29.2",
3030
"@uniswap/token-lists": "1.0.0-beta.30",
Lines changed: 8 additions & 0 deletions
Loading

‎apps/web/src/app/components/SearchModal/CurrencySearch.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ export function CurrencySearch({
296296
) {
297297
items = items.filter(item => balancedSupportedChains.includes(item as any));
298298
} else {
299-
items = items.filter(item => item !== 'sonic');
299+
items = items.filter(item => item !== 'sonic' && item !== 'hyper');
300300
}
301301
return items.sort((a, b) => {
302302
return xChainMap[a].name.localeCompare(xChainMap[b].name);

‎apps/web/src/app/components/WalletModal/WalletItem.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ const WalletItem = ({ name, xChainType, logo, description, border, xChains, swit
9090
<XChainsWrap signedIn={!!address}>
9191
{xChains.map(chain => (
9292
<Box key={chain.xChainId} onClick={() => handleSwitchChain(chain)} style={{ cursor: 'pointer' }}>
93-
<ChainLogo chain={chain} size="19px" key={chain.xChainId} />
93+
<ChainLogo chain={chain} size="18px" key={chain.xChainId} />
9494
</Box>
9595
))}
9696
</XChainsWrap>

‎apps/web/src/app/components/WalletModal/index.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ export default function WalletModal() {
112112
'binance',
113113
'base',
114114
'sonic',
115+
'hyper',
115116
],
116117
xChains: Object.values(xChainMap)
117118
.filter(xChain => getXChainType(xChain.xChainId) === 'EVM' && !xChain.testnet)

‎apps/web/src/app/components/WalletModal/styled.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,11 @@ export const XChainsWrap = styled.div<{ signedIn: boolean }>`
175175
`};
176176
177177
img {
178-
margin: 5px 6px;
178+
margin: 5px;
179179
}
180180
181181
@media screen and (min-width: ${mobileWalletBreakpoint}) {
182-
max-width: 236px;
182+
max-width: 242px;
183183
margin-bottom: 0;
184184
}
185185
`;

‎apps/web/src/app/components/home/_components/SavingsChainSelector/index.tsx‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,11 @@ const SavingsChainSelector = ({
7878
if (signedWallets.length === 0) {
7979
return xChains
8080
.filter(
81-
chain => chain.xChainId !== 'archway-1' && chain.xChainId !== '0x100.icon' && chain.xChainId !== 'sonic',
81+
chain =>
82+
chain.xChainId !== 'archway-1' &&
83+
chain.xChainId !== '0x100.icon' &&
84+
chain.xChainId !== 'sonic' &&
85+
chain.xChainId !== 'hyper',
8286
)
8387
.map(({ xChainId }) => ({
8488
xChainId,
@@ -90,7 +94,13 @@ const SavingsChainSelector = ({
9094
}
9195

9296
return xChains
93-
.filter(chain => chain.xChainId !== 'archway-1' && chain.xChainId !== '0x100.icon' && chain.xChainId !== 'sonic')
97+
.filter(
98+
chain =>
99+
chain.xChainId !== 'archway-1' &&
100+
chain.xChainId !== '0x100.icon' &&
101+
chain.xChainId !== 'sonic' &&
102+
chain.xChainId !== 'hyper',
103+
)
94104
.map(({ xChainId }) => {
95105
const isWalletConnected = signedWallets.some(wallet => wallet.xChainId === xChainId);
96106
const lockedAmount = lockedAmounts?.[xChainId]
Lines changed: 8 additions & 0 deletions
Loading

‎apps/web/src/constants/coingecko.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export const COINGECKO_COIN_IDS = {
4040
afSUI: 'aftermath-staked-sui',
4141
// mSUI: '', // Not confirmed on CoinGecko
4242
// S: 'sonic', // Sonic Labs blockchain (formerly Fantom) native token - Chain ID 146
43+
HYPE: 'hyperliquid',
4344
} as const;
4445

4546
// Chart time periods supported by CoinGecko

0 commit comments

Comments
 (0)