Skip to content

Commit f47dbad

Browse files
bruce-rileypanoel
authored andcommitted
Add World Chain and Monad Devnet support
1 parent 0cc0359 commit f47dbad

File tree

10 files changed

+366
-336
lines changed

10 files changed

+366
-336
lines changed

common/src/consts.ts

+2
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ export const INITIAL_DEPLOYMENT_BLOCK_BY_NETWORK_AND_CHAIN: NetworkChainBlockMap
8484
Berachain: '1473347',
8585
Snaxchain: '482557',
8686
Unichain: '254961', // Block of contract creation
87+
Worldchain: '4487948', // Block of contract creation
88+
MonadDevnet: '3670467', // Block of contract creation
8789
},
8890
['Devnet']: {},
8991
};

common/src/explorer.ts

+8
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@ export const explorerBlock = (network: Network, chainId: ChainId, block: string)
134134
? `https://explorer-snaxchain-s50q0kjngn.t.conduit.xyz/${block}`
135135
: chainId === chainToChainId('Unichain')
136136
? `https://unichain-sepolia.blockscout.com/block/${block}`
137+
: chainId === chainToChainId('Worldchain')
138+
? `https://worldchain-sepolia.explorer.alchemy.com/block/${block}`
139+
: chainId === chainToChainId('MonadDevnet')
140+
? `${process.env.MONAD_DEVNET_EXPLORER_URL}/block/${block}`
137141
: // : chainId === chainToChainId('Wormscan') <-- not supported on testnet dashboard
138142
'';
139143

@@ -263,6 +267,10 @@ export const explorerTx = (network: Network, chainId: ChainId, tx: string) =>
263267
? `https://explorer-snaxchain-s50q0kjngn.t.conduit.xyz/tx/${tx}`
264268
: chainId === chainToChainId('Unichain')
265269
? `https://unichain-sepolia.blockscout.com/tx/${tx}`
270+
: chainId === chainToChainId('Worldchain')
271+
? `https://worldchain-sepolia.explorer.alchemy.com/tx/${tx}`
272+
: chainId === chainToChainId('MonadDevnet')
273+
? `${process.env.MONAD_DEVNET_EXPLORER_URL}/tx/${tx}`
266274
: // chainId === chainToChainId('Wormscan') <-- not supported on testnet dashboard
267275
'';
268276

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": "^0.10.10",
20+
"@wormhole-foundation/sdk-icons": "^0.14.0",
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": "^0.10.10",
18+
"@wormhole-foundation/sdk": "^0.14.0",
1919
"@xpla/xpla.js": "^0.2.3",
2020
"aptos": "1.5.0",
2121
"dotenv": "^16.0.3",

package-lock.json

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

watcher/src/consts.ts

+2
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ export const RPCS_BY_CHAIN: { [key in Network]: { [key in Chain]?: string } } =
102102
Berachain: process.env.BERACHAIN_RPC || 'https://bartio.rpc.berachain.com',
103103
Snaxchain: process.env.SNAXCHAIN_RPC || 'https://rpc-snaxchain-s50q0kjngn.t.conduit.xyz',
104104
Unichain: process.env.UNICHAIN_RPC || 'https://sepolia.unichain.org',
105+
Worldchain: process.env.WORLDCHAIN_RPC || 'https://worldchain-sepolia.g.alchemy.com/public',
106+
MonadDevnet: process.env.MONAD_DEVNET_RPC, // TODO: There is no Monad Devnet public endpoint.
105107
},
106108
['Devnet']: {},
107109
};

watcher/src/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ const supportedChains: Chain[] =
5555
'Berachain',
5656
'Snaxchain',
5757
'Unichain',
58+
'Worldchain',
59+
'MonadDevnet',
5860
]
5961
: [
6062
// This is the list of chains supported in MAINNET.

watcher/src/watchers/EVMWatcher.ts

+2
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ export class EVMWatcher extends Watcher {
4848
chain === 'Scroll' ||
4949
chain === 'Snaxchain' ||
5050
chain === 'Unichain' ||
51+
chain === 'Worldchain' ||
52+
chain === 'MonadDevnet' ||
5153
chain === 'Xlayer'
5254
) {
5355
this.maximumBatchSize = 10;

watcher/src/watchers/utils.ts

+2
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ export function makeFinalizedWatcher(network: Network, chainName: Chain): Watche
4343
chainName === 'Berachain' ||
4444
chainName === 'Snaxchain' ||
4545
chainName === 'Unichain' ||
46+
chainName === 'Worldchain' ||
47+
chainName === 'MonadDevnet' ||
4648
chainName === 'Base'
4749
) {
4850
return new EVMWatcher(network, chainName);

0 commit comments

Comments
 (0)