Skip to content

Commit 3fef774

Browse files
committed
Add HyperEVM support
1 parent 3fa29c3 commit 3fef774

File tree

10 files changed

+304
-295
lines changed

10 files changed

+304
-295
lines changed

common/src/consts.ts

+1
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ export const INITIAL_DEPLOYMENT_BLOCK_BY_NETWORK_AND_CHAIN: NetworkChainBlockMap
8888
Worldchain: '4487948', // Block of contract creation
8989
MonadDevnet: '3670467', // Block of contract creation
9090
Ink: '1907965', // Block of contract creation
91+
HyperEVM: '13743181', // Block of contract creation
9192
},
9293
['Devnet']: {},
9394
};

common/src/explorer.ts

+4
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ export const explorerBlock = (network: Network, chainId: ChainId, block: string)
142142
? `${process.env.MONAD_DEVNET_EXPLORER_URL}/block/${block}`
143143
: chainId === chainToChainId('Ink')
144144
? `https://explorer-sepolia.inkonchain.com/block/${block}`
145+
: chainId === chainToChainId('HyperEVM')
146+
? `https://testnet.purrsec.com/block/${block}`
145147
: // : chainId === chainToChainId('Wormscan') <-- not supported on testnet dashboard
146148
'';
147149

@@ -279,6 +281,8 @@ export const explorerTx = (network: Network, chainId: ChainId, tx: string) =>
279281
? `${process.env.MONAD_DEVNET_EXPLORER_URL}/tx/${tx}`
280282
: chainId === chainToChainId('Ink')
281283
? `https://explorer-sepolia.inkonchain.com/tx/${tx}`
284+
: chainId === chainToChainId('HyperEVM')
285+
? `https://testnet.purrsec.com/tx/${tx}`
282286
: // chainId === chainToChainId('Wormscan') <-- not supported on testnet dashboard
283287
'';
284288

dashboard/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@types/node": "^18.6.4",
1818
"@types/react": "^18.0.15",
1919
"@types/react-dom": "^18.0.6",
20-
"@wormhole-foundation/sdk-icons": "^1.3.0",
20+
"@wormhole-foundation/sdk-icons": "^1.3.1",
2121
"buffer": "^6.0.3",
2222
"numeral": "^2.0.6",
2323
"react": "^18.2.0",

database/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"@injectivelabs/sdk-ts": "^1.0.368",
1616
"@mysten/sui.js": "^0.50.1",
1717
"@terra-money/terra.js": "^3.1.3",
18-
"@wormhole-foundation/sdk": "^1.3.0",
18+
"@wormhole-foundation/sdk": "^1.3.1",
1919
"@xpla/xpla.js": "^0.2.3",
2020
"aptos": "1.5.0",
2121
"dotenv": "^16.0.3",

package-lock.json

+286-286
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
},
2626
"dependencies": {
2727
"@google-cloud/functions-framework": "^3.4.0",
28-
"@wormhole-foundation/sdk-base": "^1.3.0",
29-
"@wormhole-foundation/sdk-definitions": "^1.3.0",
30-
"@wormhole-foundation/sdk-evm": "^1.3.0",
31-
"@wormhole-foundation/sdk-evm-core": "^1.3.0",
32-
"@wormhole-foundation/sdk-icons": "^1.3.0",
33-
"@wormhole-foundation/sdk-solana": "^1.3.0",
34-
"@wormhole-foundation/sdk-solana-core": "^1.3.0",
28+
"@wormhole-foundation/sdk-base": "^1.3.1",
29+
"@wormhole-foundation/sdk-definitions": "^1.3.1",
30+
"@wormhole-foundation/sdk-evm": "^1.3.1",
31+
"@wormhole-foundation/sdk-evm-core": "^1.3.1",
32+
"@wormhole-foundation/sdk-icons": "^1.3.1",
33+
"@wormhole-foundation/sdk-solana": "^1.3.1",
34+
"@wormhole-foundation/sdk-solana-core": "^1.3.1",
3535
"axios": "^1.5.0"
3636
}
3737
}

watcher/src/consts.ts

+1
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ export const RPCS_BY_CHAIN: { [key in Network]: { [key in Chain]?: string } } =
107107
Worldchain: process.env.WORLDCHAIN_RPC || 'https://worldchain-sepolia.g.alchemy.com/public',
108108
MonadDevnet: process.env.MONAD_DEVNET_RPC, // TODO: There is no Monad Devnet public endpoint.
109109
Ink: process.env.INK_RPC || 'https://rpc-qnd-sepolia.inkonchain.com',
110+
HyperEVM: process.env.HYPER_EVM_RPC || 'https://api.hyperliquid-testnet.xyz/evm',
110111
},
111112
['Devnet']: {},
112113
};

watcher/src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ const supportedChains: Chain[] =
5858
'Worldchain',
5959
'MonadDevnet',
6060
'Ink',
61+
'HyperEVM',
6162
]
6263
: [
6364
// This is the list of chains supported in MAINNET.

watcher/src/watchers/EVMWatcher.ts

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export class EVMWatcher extends Watcher {
5252
chain === 'Worldchain' ||
5353
chain === 'MonadDevnet' ||
5454
chain === 'Ink' ||
55+
chain === 'HyperEVM' ||
5556
chain === 'Xlayer'
5657
) {
5758
this.maximumBatchSize = 10;

watcher/src/watchers/utils.ts

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export function makeFinalizedWatcher(network: Network, chainName: Chain): Watche
4646
chainName === 'Worldchain' ||
4747
chainName === 'MonadDevnet' ||
4848
chainName === 'Ink' ||
49+
chainName === 'HyperEVM' ||
4950
chainName === 'Base'
5051
) {
5152
return new EVMWatcher(network, chainName);

0 commit comments

Comments
 (0)