Skip to content

Commit 1c86027

Browse files
committed
Add Mezo testnet support
1 parent b10d02e commit 1c86027

File tree

10 files changed

+197
-188
lines changed

10 files changed

+197
-188
lines changed

common/src/consts.ts

+1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ export const INITIAL_DEPLOYMENT_BLOCK_BY_NETWORK_AND_CHAIN: NetworkChainBlockMap
9393
Monad: '520060', // Block of contract creation
9494
Ink: '1907965', // Block of contract creation
9595
HyperEVM: '13743181', // Block of contract creation
96+
Mezo: '3102383', // Block of contract creation
9697
},
9798
['Devnet']: {},
9899
};

common/src/explorer.ts

+4
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ export const explorerBlock = (network: Network, chainId: ChainId, block: string)
150150
? `https://explorer-sepolia.inkonchain.com/block/${block}`
151151
: chainId === chainToChainId('HyperEVM')
152152
? `https://testnet.purrsec.com/block/${block}`
153+
: chainId === chainToChainId('Mezo')
154+
? `https://rpc.test.mezo.org/block/${block}`
153155
: // : chainId === chainToChainId('Wormscan') <-- not supported on testnet dashboard
154156
'';
155157

@@ -295,6 +297,8 @@ export const explorerTx = (network: Network, chainId: ChainId, tx: string) =>
295297
? `https://explorer-sepolia.inkonchain.com/tx/${tx}`
296298
: chainId === chainToChainId('HyperEVM')
297299
? `https://testnet.purrsec.com/tx/${tx}`
300+
: chainId === chainToChainId('Mezo')
301+
? `https://rpc.test.mezo.org/tx/${tx}`
298302
: // chainId === chainToChainId('Wormscan') <-- not supported on testnet dashboard
299303
'';
300304

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.13.2",
20+
"@wormhole-foundation/sdk-icons": "^1.13.3",
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": "^1.21.2",
1717
"@terra-money/terra.js": "^3.1.3",
18-
"@wormhole-foundation/sdk": "^1.13.2",
18+
"@wormhole-foundation/sdk": "^1.13.3",
1919
"@xpla/xpla.js": "^0.2.3",
2020
"aptos": "1.5.0",
2121
"dotenv": "^16.0.3",

package-lock.json

+176-176
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.13.2",
29-
"@wormhole-foundation/sdk-definitions": "^1.13.2",
30-
"@wormhole-foundation/sdk-evm": "^1.13.2",
31-
"@wormhole-foundation/sdk-evm-core": "^1.13.2",
32-
"@wormhole-foundation/sdk-icons": "^1.13.2",
33-
"@wormhole-foundation/sdk-solana": "^1.13.2",
34-
"@wormhole-foundation/sdk-solana-core": "^1.13.2",
28+
"@wormhole-foundation/sdk-base": "^1.13.3",
29+
"@wormhole-foundation/sdk-definitions": "^1.13.3",
30+
"@wormhole-foundation/sdk-evm": "^1.13.3",
31+
"@wormhole-foundation/sdk-evm-core": "^1.13.3",
32+
"@wormhole-foundation/sdk-icons": "^1.13.3",
33+
"@wormhole-foundation/sdk-solana": "^1.13.3",
34+
"@wormhole-foundation/sdk-solana-core": "^1.13.3",
3535
"axios": "^1.5.0"
3636
}
3737
}

watcher/src/consts.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,11 @@ export const RPCS_BY_CHAIN: { [key in Network]: { [key in Chain]?: string } } =
109109
Snaxchain: process.env.SNAXCHAIN_RPC || 'https://rpc-snaxchain-s50q0kjngn.t.conduit.xyz',
110110
Unichain: process.env.UNICHAIN_RPC || 'https://sepolia.unichain.org',
111111
Worldchain: process.env.WORLDCHAIN_RPC || 'https://worldchain-sepolia.g.alchemy.com/public',
112-
Monad: process.env.MONAD_RPC, // TODO: There is no Monad public endpoint.
112+
Monad: process.env.MONAD_RPC || 'https://testnet-rpc.monad.xyz',
113113
Ink: process.env.INK_RPC || 'https://rpc-qnd-sepolia.inkonchain.com',
114114
HyperEVM: process.env.HYPER_EVM_RPC || 'https://api.hyperliquid-testnet.xyz/evm',
115115
Movement: process.env.MOVEMENT_RPC || 'https://aptos.testnet.bardock.movementlabs.xyz/v1',
116+
Mezo: process.env.MEZO_RPC || 'https://rpc.test.mezo.org',
116117
},
117118
['Devnet']: {},
118119
};

watcher/src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ const supportedChains: Chain[] =
6161
'Ink',
6262
// 'HyperEVM',
6363
'Movement',
64+
'Mezo',
6465
]
6566
: [
6667
// This is the list of chains supported in MAINNET.

watcher/src/watchers/Watcher.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ export class Watcher {
4343
chain === 'Ink' ||
4444
chain === 'HyperEVM' ||
4545
chain === 'Seievm' ||
46-
chain === 'Xlayer'
46+
chain === 'Xlayer' ||
47+
chain === 'Mezo'
4748
) {
4849
this.maximumBatchSize = 10;
4950
}

watcher/src/watchers/utils.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ export function makeFinalizedVaaWatcher(network: Network, chainName: Chain): Wat
4343
chainName === 'Snaxchain' ||
4444
chainName === 'Unichain' ||
4545
chainName === 'Worldchain' ||
46-
chainName === 'Xlayer'
46+
chainName === 'Xlayer' ||
47+
chainName === 'Mezo'
4748
) {
4849
return new VAAWatcher(network, chainName);
4950
} else if (chainName === 'Fantom' || chainName === 'Klaytn' || chainName === 'Oasis') {

0 commit comments

Comments
 (0)