Skip to content

Commit 37e3799

Browse files
committed
common, watcher: update parameters for berachain and snaxchain
1 parent 534cda6 commit 37e3799

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

common/src/consts.ts

+1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ export const INITIAL_DEPLOYMENT_BLOCK_BY_NETWORK_AND_CHAIN: NetworkChainBlockMap
8181
Wormchain: '4495661',
8282
PolygonSepolia: '2379275',
8383
Berachain: '1473347',
84+
Snaxchain: '482557',
8485
},
8586
['Devnet']: {},
8687
};

common/src/explorer.ts

+7-3
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@ export const explorerBlock = (network: Network, chainId: ChainId, block: string)
127127
: chainId === chainToChainId('Linea')
128128
? `https://sepolia.lineascan.build/block/${block}`
129129
: chainId === chainToChainId('Berachain')
130-
? `https://artio.beratrail.io/block/${block}`
130+
? `https://bartio.beratrail.io/block/${block}`
131+
: chainId === chainToChainId('Snaxchain')
132+
? `https://explorer-snaxchain-s50q0kjngn.t.conduit.xyz/${block}`
131133
: // : chainId === chainToChainId('Wormscan') <-- not supported on testnet dashboard
132134
'';
133135

@@ -192,7 +194,7 @@ export const explorerTx = (network: Network, chainId: ChainId, tx: string) =>
192194
: chainId === chainToChainId('Linea')
193195
? `https://lineascan.build/tx/${tx}`
194196
: chainId === chainToChainId('Berachain')
195-
? `https://artio.beratrail.io/tx/${tx}`
197+
? `https://bartio.beratrail.io/tx/${tx}`
196198
: chainId === chainToChainId('Wormchain')
197199
? `https://bigdipper.live/wormhole/transactions/${tx}`
198200
: ''
@@ -250,7 +252,9 @@ export const explorerTx = (network: Network, chainId: ChainId, tx: string) =>
250252
: chainId === chainToChainId('Linea')
251253
? `https://sepolia.lineascan.build/tx/${tx}`
252254
: chainId === chainToChainId('Berachain')
253-
? `https://artio.beratrail.io/tx/${tx}`
255+
? `https://bartio.beratrail.io/tx/${tx}`
256+
: chainId === chainToChainId('Snaxchain')
257+
? `https://explorer-snaxchain-s50q0kjngn.t.conduit.xyz/tx/${tx}`
254258
: // chainId === chainToChainId('Wormscan') <-- not supported on testnet dashboard
255259
'';
256260

watcher/src/consts.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ export const RPCS_BY_CHAIN: { [key in Network]: { [key in Chain]?: string } } =
9898
Holesky: process.env.HOLESKY_RPC,
9999
Sepolia: process.env.SEPOLIA_RPC,
100100
PolygonSepolia: process.env.POLYGON_SEPOLIA_RPC || 'https://rpc-amoy.polygon.technology',
101-
Berachain: process.env.BERACHAIN_RPC || 'https://artio.rpc.berachain.com',
102-
Snaxchain: process.env.SNAXCHAIN_RPC,
101+
Berachain: process.env.BERACHAIN_RPC || 'https://bartio.rpc.berachain.com',
102+
Snaxchain: process.env.SNAXCHAIN_RPC || 'https://rpc-snaxchain-s50q0kjngn.t.conduit.xyz',
103103
},
104104
['Devnet']: {},
105105
};

watcher/src/watchers/EVMWatcher.ts

+2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ export class EVMWatcher extends Watcher {
4242
this.finalizedBlockTag = finalizedBlockTag;
4343
if (chain === 'Acala' || chain === 'Karura' || chain === 'Berachain') {
4444
this.maximumBatchSize = 50;
45+
} else if (chain === 'Snaxchain') {
46+
this.maximumBatchSize = 10;
4547
}
4648
}
4749

0 commit comments

Comments
 (0)