Skip to content

Commit 7ca085e

Browse files
bruce-rileypanoel
authored andcommitted
Add Berachain mainnet support
1 parent 59b2369 commit 7ca085e

File tree

8 files changed

+312
-309
lines changed

8 files changed

+312
-309
lines changed

common/src/consts.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ export const INITIAL_DEPLOYMENT_BLOCK_BY_NETWORK_AND_CHAIN: NetworkChainBlockMap
4848
Mantle: '64176265',
4949
Blast: '2375628',
5050
Sei: '238594',
51-
Wormchain: '4510119', // https://bigdipper.live/wormhole/transactions/4D861F1BE86325D227FA006CA2745BBC6748AF5B5E0811DE536D02792928472A },
51+
Wormchain: '4510119', // https://bigdipper.live/wormhole/transactions/4D861F1BE86325D227FA006CA2745BBC6748AF5B5E0811DE536D02792928472A
52+
Berachain: '968947', //https://berascan.com/tx/0x5a425c6fee87ccc44ef87c1d9cb9c7d1deda4b8596b67c003726e68a2f06e0a4
5253
Snaxchain: '306315',
5354
Unichain: '8115676', // https://unichain.blockscout.com/tx/0x4d65e33abc388c2d92c71ea01374af935a6615d0e555a7abbdef6c44e04613ba
5455
Worldchain: '5805110', // https://worldscan.org/tx/0x568eb14596296bda3022527cf0e915bfec073613b27c495e695fb9e08652f6fc

common/src/explorer.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export const explorerBlock = (network: Network, chainId: ChainId, block: string)
6969
: chainId === chainToChainId('Linea')
7070
? `https://lineascan.build/block/${block}`
7171
: chainId === chainToChainId('Berachain')
72-
? `https://beratrail.io/block/${block}`
72+
? `https://berascan.com/block/${block}`
7373
: chainId === chainToChainId('Snaxchain')
7474
? `https://snaxchain.io/${block}`
7575
: chainId === chainToChainId('Unichain')
@@ -212,7 +212,7 @@ export const explorerTx = (network: Network, chainId: ChainId, tx: string) =>
212212
: chainId === chainToChainId('Linea')
213213
? `https://lineascan.build/tx/${tx}`
214214
: chainId === chainToChainId('Berachain')
215-
? `https://bartio.beratrail.io/tx/${tx}`
215+
? `https://berascan.com/tx/${tx}`
216216
: chainId === chainToChainId('Snaxchain')
217217
? `https://snaxchain.io/tx/${tx}`
218218
: chainId === chainToChainId('Unichain')

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

package-lock.json

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

watcher/src/consts.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@ export const RPCS_BY_CHAIN: { [key in Network]: { [key in Chain]?: string } } =
6262
Sei: process.env.SEI_RPC || 'https://sei-rest.brocha.in', // https://docs.sei.io/develop/resources
6363
Wormchain: process.env.WORMCHAIN_RPC || 'https://wormchain-rpc.quickapi.com',
6464
Xlayer: process.env.XLAYER_RPC || 'https://rpc.ankr.com/xlayer',
65+
Berachain: process.env.BERACHAIN_RPC || 'https://rpc.berachain.com',
6566
Snaxchain: process.env.SNAXCHAIN_RPC || 'https://snaxchain.io',
66-
Unichain: process.env.UNICHAIN_RPC, // TODO: There is no Unichain public endpoint yet.
67+
Unichain: process.env.UNICHAIN_RPC || 'https://mainnet.unichain.org',
6768
Worldchain: process.env.WORLDCHAIN_RPC || 'https://worldchain-mainnet.g.alchemy.com/public',
6869
},
6970
['Testnet']: {

watcher/src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ const supportedChains: Chain[] =
9191
'Mantle',
9292
'Blast',
9393
'Xlayer',
94+
'Berachain',
9495
'Snaxchain',
9596
'Unichain',
9697
'Worldchain',

0 commit comments

Comments
 (0)