Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add World Chain and Monad Devnet support #382

Merged
merged 1 commit into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions common/src/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ export const INITIAL_DEPLOYMENT_BLOCK_BY_NETWORK_AND_CHAIN: NetworkChainBlockMap
Berachain: '1473347',
Snaxchain: '482557',
Unichain: '254961', // Block of contract creation
Worldchain: '4487948', // Block of contract creation
MonadDevnet: '3670467', // Block of contract creation
},
['Devnet']: {},
};
Expand Down
8 changes: 8 additions & 0 deletions common/src/explorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ export const explorerBlock = (network: Network, chainId: ChainId, block: string)
? `https://explorer-snaxchain-s50q0kjngn.t.conduit.xyz/${block}`
: chainId === chainToChainId('Unichain')
? `https://unichain-sepolia.blockscout.com/block/${block}`
: chainId === chainToChainId('Worldchain')
? `https://worldchain-sepolia.explorer.alchemy.com/block/${block}`
: chainId === chainToChainId('MonadDevnet')
? `${process.env.MONAD_DEVNET_EXPLORER_URL}/block/${block}`
: // : chainId === chainToChainId('Wormscan') <-- not supported on testnet dashboard
'';

Expand Down Expand Up @@ -263,6 +267,10 @@ export const explorerTx = (network: Network, chainId: ChainId, tx: string) =>
? `https://explorer-snaxchain-s50q0kjngn.t.conduit.xyz/tx/${tx}`
: chainId === chainToChainId('Unichain')
? `https://unichain-sepolia.blockscout.com/tx/${tx}`
: chainId === chainToChainId('Worldchain')
? `https://worldchain-sepolia.explorer.alchemy.com/tx/${tx}`
: chainId === chainToChainId('MonadDevnet')
? `${process.env.MONAD_DEVNET_EXPLORER_URL}/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": "^0.10.10",
"@wormhole-foundation/sdk-icons": "^0.14.0",
"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": "^0.10.10",
"@wormhole-foundation/sdk": "^0.14.0",
"@xpla/xpla.js": "^0.2.3",
"aptos": "1.5.0",
"dotenv": "^16.0.3",
Expand Down
666 changes: 339 additions & 327 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": "^0.10.10",
"@wormhole-foundation/sdk-definitions": "^0.10.10",
"@wormhole-foundation/sdk-evm": "^0.10.10",
"@wormhole-foundation/sdk-evm-core": "^0.10.10",
"@wormhole-foundation/sdk-icons": "^0.10.10",
"@wormhole-foundation/sdk-solana": "^0.10.10",
"@wormhole-foundation/sdk-solana-core": "^0.10.10",
"@wormhole-foundation/sdk-base": "^0.14.0",
"@wormhole-foundation/sdk-definitions": "^0.14.0",
"@wormhole-foundation/sdk-evm": "^0.14.0",
"@wormhole-foundation/sdk-evm-core": "^0.14.0",
"@wormhole-foundation/sdk-icons": "^0.14.0",
"@wormhole-foundation/sdk-solana": "^0.14.0",
"@wormhole-foundation/sdk-solana-core": "^0.14.0",
"axios": "^1.5.0"
}
}
2 changes: 2 additions & 0 deletions watcher/src/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ export const RPCS_BY_CHAIN: { [key in Network]: { [key in Chain]?: string } } =
Berachain: process.env.BERACHAIN_RPC || 'https://bartio.rpc.berachain.com',
Snaxchain: process.env.SNAXCHAIN_RPC || 'https://rpc-snaxchain-s50q0kjngn.t.conduit.xyz',
Unichain: process.env.UNICHAIN_RPC || 'https://sepolia.unichain.org',
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.
},
['Devnet']: {},
};
Expand Down
2 changes: 2 additions & 0 deletions watcher/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ const supportedChains: Chain[] =
'Berachain',
'Snaxchain',
'Unichain',
'Worldchain',
bruce-riley marked this conversation as resolved.
Show resolved Hide resolved
'MonadDevnet',
]
: [
// This is the list of chains supported in MAINNET.
Expand Down
2 changes: 2 additions & 0 deletions watcher/src/watchers/EVMWatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ export class EVMWatcher extends Watcher {
chain === 'Scroll' ||
chain === 'Snaxchain' ||
chain === 'Unichain' ||
chain === 'Worldchain' ||
chain === 'MonadDevnet' ||
chain === 'Xlayer'
) {
this.maximumBatchSize = 10;
Expand Down
2 changes: 2 additions & 0 deletions watcher/src/watchers/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ export function makeFinalizedWatcher(network: Network, chainName: Chain): Watche
chainName === 'Berachain' ||
chainName === 'Snaxchain' ||
chainName === 'Unichain' ||
chainName === 'Worldchain' ||
chainName === 'MonadDevnet' ||
chainName === 'Base'
) {
return new EVMWatcher(network, chainName);
Expand Down
Loading