Skip to content

Commit 8bf207d

Browse files
Etienne Donnegerclaude
andauthored
feat(hyperevm): register native and stablecoin contracts (#549)
Pre-stage the per-chain values HyperEVM needs once the network is added to dbs-config (network id: hyperevm): - WHYPE in the native-token registry - USDC, USDT0, USDe, feUSD, USDH in the stablecoin registry - hyperevm -> HYPE for NFT sale currency - hyperevm chain id 999 in the spam-score map (commented, pending model) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent af37f1e commit 8bf207d

4 files changed

Lines changed: 12 additions & 0 deletions

File tree

src/registry/natives.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ export const natives = new Set([
1919
// Polygon (Matic)
2020
'0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270', // Polygon: WPOL
2121

22+
// HyperEVM
23+
'0x5555555555555555555555555555555555555555', // HyperEVM: WHYPE
24+
2225
// Solana
2326
'So11111111111111111111111111111111111111112', // WSOL
2427
]);

src/registry/stables.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ export const stables = new Set([
4141
'0x078d782b760474a361dda0af3839290b0ef57ad6', // Unichain: USDC
4242
'0x9151434b16b9763660705744891fA906F660EcC5', // Unichain: USDT0 Tether USD
4343

44+
// HyperEVM
45+
'0xb88339cb7199b77e23db6e890353e22632ba630f', // HyperEVM: USDC
46+
'0xb8ce59fc3717ada4c02eadf9682a9e934f625ebb', // HyperEVM: USDT0 (Tether USD)
47+
'0x5d3a1ff2b6bab83b63cd9ad0787074081a52ef34', // HyperEVM: USDe (Ethena)
48+
'0x02c6a2fa58cc01a18b8d9e00ea48d65e4df26c70', // HyperEVM: feUSD (Felix)
49+
'0x111111a1a0667d36bd57c0a9f569b98057111111', // HyperEVM: USDH
50+
4451
// Solana
4552
'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v', // Solana: USDC (USD Coin)
4653
'Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB', // Solana: USDT (Tether USD)

src/routes/nft/sales_evm.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ const nativeSymbols = new Map([
154154
['polygon', 'POL'],
155155
['unichain', 'ETH'],
156156
['avalanche', 'AVAX'],
157+
['hyperevm', 'HYPE'],
157158
['solana', 'SOL'],
158159
]);
159160

src/services/spamScoring.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export const CHAIN_ID_MAP: Record<string, number> = {
5050
optimism: 10,
5151
bsc: 56,
5252
// unichain: 10000,
53+
// hyperevm: 999,
5354
};
5455
const TIMEOUT_MS = 60000;
5556
const STALE_MS = 24 * 60 * 60 * 1000; // 1 day

0 commit comments

Comments
 (0)