Skip to content

Commit

Permalink
Add Berachain mainnet support
Browse files Browse the repository at this point in the history
  • Loading branch information
bruce-riley authored and panoel committed Feb 12, 2025
1 parent 59b2369 commit 7ca085e
Show file tree
Hide file tree
Showing 8 changed files with 312 additions and 309 deletions.
3 changes: 2 additions & 1 deletion common/src/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ export const INITIAL_DEPLOYMENT_BLOCK_BY_NETWORK_AND_CHAIN: NetworkChainBlockMap
Mantle: '64176265',
Blast: '2375628',
Sei: '238594',
Wormchain: '4510119', // https://bigdipper.live/wormhole/transactions/4D861F1BE86325D227FA006CA2745BBC6748AF5B5E0811DE536D02792928472A },
Wormchain: '4510119', // https://bigdipper.live/wormhole/transactions/4D861F1BE86325D227FA006CA2745BBC6748AF5B5E0811DE536D02792928472A
Berachain: '968947', //https://berascan.com/tx/0x5a425c6fee87ccc44ef87c1d9cb9c7d1deda4b8596b67c003726e68a2f06e0a4
Snaxchain: '306315',
Unichain: '8115676', // https://unichain.blockscout.com/tx/0x4d65e33abc388c2d92c71ea01374af935a6615d0e555a7abbdef6c44e04613ba
Worldchain: '5805110', // https://worldscan.org/tx/0x568eb14596296bda3022527cf0e915bfec073613b27c495e695fb9e08652f6fc
Expand Down
4 changes: 2 additions & 2 deletions common/src/explorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const explorerBlock = (network: Network, chainId: ChainId, block: string)
: chainId === chainToChainId('Linea')
? `https://lineascan.build/block/${block}`
: chainId === chainToChainId('Berachain')
? `https://beratrail.io/block/${block}`
? `https://berascan.com/block/${block}`
: chainId === chainToChainId('Snaxchain')
? `https://snaxchain.io/${block}`
: chainId === chainToChainId('Unichain')
Expand Down Expand Up @@ -212,7 +212,7 @@ export const explorerTx = (network: Network, chainId: ChainId, tx: string) =>
: chainId === chainToChainId('Linea')
? `https://lineascan.build/tx/${tx}`
: chainId === chainToChainId('Berachain')
? `https://bartio.beratrail.io/tx/${tx}`
? `https://berascan.com/tx/${tx}`
: chainId === chainToChainId('Snaxchain')
? `https://snaxchain.io/tx/${tx}`
: chainId === chainToChainId('Unichain')
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.6.0",
"@wormhole-foundation/sdk-icons": "^1.7.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": "^1.6.0",
"@wormhole-foundation/sdk": "^1.7.0",
"@xpla/xpla.js": "^0.2.3",
"aptos": "1.5.0",
"dotenv": "^16.0.3",
Expand Down
592 changes: 296 additions & 296 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.6.0",
"@wormhole-foundation/sdk-definitions": "^1.6.0",
"@wormhole-foundation/sdk-evm": "^1.6.0",
"@wormhole-foundation/sdk-evm-core": "^1.6.0",
"@wormhole-foundation/sdk-icons": "^1.6.0",
"@wormhole-foundation/sdk-solana": "^1.6.0",
"@wormhole-foundation/sdk-solana-core": "^1.6.0",
"@wormhole-foundation/sdk-base": "^1.7.0",
"@wormhole-foundation/sdk-definitions": "^1.7.0",
"@wormhole-foundation/sdk-evm": "^1.7.0",
"@wormhole-foundation/sdk-evm-core": "^1.7.0",
"@wormhole-foundation/sdk-icons": "^1.7.0",
"@wormhole-foundation/sdk-solana": "^1.7.0",
"@wormhole-foundation/sdk-solana-core": "^1.7.0",
"axios": "^1.5.0"
}
}
3 changes: 2 additions & 1 deletion watcher/src/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ export const RPCS_BY_CHAIN: { [key in Network]: { [key in Chain]?: string } } =
Sei: process.env.SEI_RPC || 'https://sei-rest.brocha.in', // https://docs.sei.io/develop/resources
Wormchain: process.env.WORMCHAIN_RPC || 'https://wormchain-rpc.quickapi.com',
Xlayer: process.env.XLAYER_RPC || 'https://rpc.ankr.com/xlayer',
Berachain: process.env.BERACHAIN_RPC || 'https://rpc.berachain.com',
Snaxchain: process.env.SNAXCHAIN_RPC || 'https://snaxchain.io',
Unichain: process.env.UNICHAIN_RPC, // TODO: There is no Unichain public endpoint yet.
Unichain: process.env.UNICHAIN_RPC || 'https://mainnet.unichain.org',
Worldchain: process.env.WORLDCHAIN_RPC || 'https://worldchain-mainnet.g.alchemy.com/public',
},
['Testnet']: {
Expand Down
1 change: 1 addition & 0 deletions watcher/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ const supportedChains: Chain[] =
'Mantle',
'Blast',
'Xlayer',
'Berachain',
'Snaxchain',
'Unichain',
'Worldchain',
Expand Down

0 comments on commit 7ca085e

Please sign in to comment.