Skip to content

Commit

Permalink
Add HyperEVM support
Browse files Browse the repository at this point in the history
  • Loading branch information
bruce-riley committed Dec 20, 2024
1 parent 3fa29c3 commit 3fef774
Show file tree
Hide file tree
Showing 10 changed files with 304 additions and 295 deletions.
1 change: 1 addition & 0 deletions common/src/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export const INITIAL_DEPLOYMENT_BLOCK_BY_NETWORK_AND_CHAIN: NetworkChainBlockMap
Worldchain: '4487948', // Block of contract creation
MonadDevnet: '3670467', // Block of contract creation
Ink: '1907965', // Block of contract creation
HyperEVM: '13743181', // Block of contract creation
},
['Devnet']: {},
};
Expand Down
4 changes: 4 additions & 0 deletions common/src/explorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ export const explorerBlock = (network: Network, chainId: ChainId, block: string)
? `${process.env.MONAD_DEVNET_EXPLORER_URL}/block/${block}`
: chainId === chainToChainId('Ink')
? `https://explorer-sepolia.inkonchain.com/block/${block}`
: chainId === chainToChainId('HyperEVM')
? `https://testnet.purrsec.com/block/${block}`
: // : chainId === chainToChainId('Wormscan') <-- not supported on testnet dashboard
'';

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

Expand Down
2 changes: 1 addition & 1 deletion dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@types/node": "^18.6.4",
"@types/react": "^18.0.15",
"@types/react-dom": "^18.0.6",
"@wormhole-foundation/sdk-icons": "^1.3.0",
"@wormhole-foundation/sdk-icons": "^1.3.1",
"buffer": "^6.0.3",
"numeral": "^2.0.6",
"react": "^18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion database/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@injectivelabs/sdk-ts": "^1.0.368",
"@mysten/sui.js": "^0.50.1",
"@terra-money/terra.js": "^3.1.3",
"@wormhole-foundation/sdk": "^1.3.0",
"@wormhole-foundation/sdk": "^1.3.1",
"@xpla/xpla.js": "^0.2.3",
"aptos": "1.5.0",
"dotenv": "^16.0.3",
Expand Down
572 changes: 286 additions & 286 deletions package-lock.json

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@
},
"dependencies": {
"@google-cloud/functions-framework": "^3.4.0",
"@wormhole-foundation/sdk-base": "^1.3.0",
"@wormhole-foundation/sdk-definitions": "^1.3.0",
"@wormhole-foundation/sdk-evm": "^1.3.0",
"@wormhole-foundation/sdk-evm-core": "^1.3.0",
"@wormhole-foundation/sdk-icons": "^1.3.0",
"@wormhole-foundation/sdk-solana": "^1.3.0",
"@wormhole-foundation/sdk-solana-core": "^1.3.0",
"@wormhole-foundation/sdk-base": "^1.3.1",
"@wormhole-foundation/sdk-definitions": "^1.3.1",
"@wormhole-foundation/sdk-evm": "^1.3.1",
"@wormhole-foundation/sdk-evm-core": "^1.3.1",
"@wormhole-foundation/sdk-icons": "^1.3.1",
"@wormhole-foundation/sdk-solana": "^1.3.1",
"@wormhole-foundation/sdk-solana-core": "^1.3.1",
"axios": "^1.5.0"
}
}
1 change: 1 addition & 0 deletions watcher/src/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export const RPCS_BY_CHAIN: { [key in Network]: { [key in Chain]?: string } } =
Worldchain: process.env.WORLDCHAIN_RPC || 'https://worldchain-sepolia.g.alchemy.com/public',
MonadDevnet: process.env.MONAD_DEVNET_RPC, // TODO: There is no Monad Devnet public endpoint.
Ink: process.env.INK_RPC || 'https://rpc-qnd-sepolia.inkonchain.com',
HyperEVM: process.env.HYPER_EVM_RPC || 'https://api.hyperliquid-testnet.xyz/evm',
},
['Devnet']: {},
};
Expand Down
1 change: 1 addition & 0 deletions watcher/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ const supportedChains: Chain[] =
'Worldchain',
'MonadDevnet',
'Ink',
'HyperEVM',
]
: [
// This is the list of chains supported in MAINNET.
Expand Down
1 change: 1 addition & 0 deletions watcher/src/watchers/EVMWatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export class EVMWatcher extends Watcher {
chain === 'Worldchain' ||
chain === 'MonadDevnet' ||
chain === 'Ink' ||
chain === 'HyperEVM' ||
chain === 'Xlayer'
) {
this.maximumBatchSize = 10;
Expand Down
1 change: 1 addition & 0 deletions watcher/src/watchers/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export function makeFinalizedWatcher(network: Network, chainName: Chain): Watche
chainName === 'Worldchain' ||
chainName === 'MonadDevnet' ||
chainName === 'Ink' ||
chainName === 'HyperEVM' ||
chainName === 'Base'
) {
return new EVMWatcher(network, chainName);
Expand Down

0 comments on commit 3fef774

Please sign in to comment.