Skip to content

Commit 0cc0359

Browse files
committed
Add unichain testnet support
1 parent d88c8cc commit 0cc0359

File tree

10 files changed

+307
-303
lines changed

10 files changed

+307
-303
lines changed

common/src/consts.ts

+1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ export const INITIAL_DEPLOYMENT_BLOCK_BY_NETWORK_AND_CHAIN: NetworkChainBlockMap
8383
PolygonSepolia: '2379275',
8484
Berachain: '1473347',
8585
Snaxchain: '482557',
86+
Unichain: '254961', // Block of contract creation
8687
},
8788
['Devnet']: {},
8889
};

common/src/explorer.ts

+4
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ export const explorerBlock = (network: Network, chainId: ChainId, block: string)
132132
? `https://bartio.beratrail.io/block/${block}`
133133
: chainId === chainToChainId('Snaxchain')
134134
? `https://explorer-snaxchain-s50q0kjngn.t.conduit.xyz/${block}`
135+
: chainId === chainToChainId('Unichain')
136+
? `https://unichain-sepolia.blockscout.com/block/${block}`
135137
: // : chainId === chainToChainId('Wormscan') <-- not supported on testnet dashboard
136138
'';
137139

@@ -259,6 +261,8 @@ export const explorerTx = (network: Network, chainId: ChainId, tx: string) =>
259261
? `https://bartio.beratrail.io/tx/${tx}`
260262
: chainId === chainToChainId('Snaxchain')
261263
? `https://explorer-snaxchain-s50q0kjngn.t.conduit.xyz/tx/${tx}`
264+
: chainId === chainToChainId('Unichain')
265+
? `https://unichain-sepolia.blockscout.com/tx/${tx}`
262266
: // chainId === chainToChainId('Wormscan') <-- not supported on testnet dashboard
263267
'';
264268

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

package-lock.json

+289-295
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+7-6
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,13 @@
2525
},
2626
"dependencies": {
2727
"@google-cloud/functions-framework": "^3.4.0",
28-
"@wormhole-foundation/sdk-base": "^0.10.6",
29-
"@wormhole-foundation/sdk-definitions": "^0.10.6",
30-
"@wormhole-foundation/sdk-evm": "^0.10.6",
31-
"@wormhole-foundation/sdk-evm-core": "^0.10.6",
32-
"@wormhole-foundation/sdk-solana": "^0.10.6",
33-
"@wormhole-foundation/sdk-solana-core": "^0.10.6",
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",
3435
"axios": "^1.5.0"
3536
}
3637
}

watcher/src/consts.ts

+1
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ export const RPCS_BY_CHAIN: { [key in Network]: { [key in Chain]?: string } } =
101101
PolygonSepolia: process.env.POLYGON_SEPOLIA_RPC || 'https://rpc-amoy.polygon.technology',
102102
Berachain: process.env.BERACHAIN_RPC || 'https://bartio.rpc.berachain.com',
103103
Snaxchain: process.env.SNAXCHAIN_RPC || 'https://rpc-snaxchain-s50q0kjngn.t.conduit.xyz',
104+
Unichain: process.env.UNICHAIN_RPC || 'https://sepolia.unichain.org',
104105
},
105106
['Devnet']: {},
106107
};

watcher/src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ const supportedChains: Chain[] =
5454
'PolygonSepolia',
5555
'Berachain',
5656
'Snaxchain',
57+
'Unichain',
5758
]
5859
: [
5960
// This is the list of chains supported in MAINNET.

watcher/src/watchers/EVMWatcher.ts

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export class EVMWatcher extends Watcher {
4747
chain === 'Klaytn' ||
4848
chain === 'Scroll' ||
4949
chain === 'Snaxchain' ||
50+
chain === 'Unichain' ||
5051
chain === 'Xlayer'
5152
) {
5253
this.maximumBatchSize = 10;

watcher/src/watchers/utils.ts

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export function makeFinalizedWatcher(network: Network, chainName: Chain): Watche
4242
chainName === 'Xlayer' ||
4343
chainName === 'Berachain' ||
4444
chainName === 'Snaxchain' ||
45+
chainName === 'Unichain' ||
4546
chainName === 'Base'
4647
) {
4748
return new EVMWatcher(network, chainName);

0 commit comments

Comments
 (0)