From 6b04ee079d4dab9b451532f47460645d0592d742 Mon Sep 17 00:00:00 2001 From: Paul Noel Date: Tue, 26 Nov 2024 09:15:18 -0600 Subject: [PATCH] watcher: change Terra2 watcher --- watcher/src/watchers/CosmwasmWatcher.ts | 2 ++ watcher/src/watchers/utils.ts | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/watcher/src/watchers/CosmwasmWatcher.ts b/watcher/src/watchers/CosmwasmWatcher.ts index 1febe79b..f9b0a8c3 100644 --- a/watcher/src/watchers/CosmwasmWatcher.ts +++ b/watcher/src/watchers/CosmwasmWatcher.ts @@ -30,6 +30,8 @@ export class CosmwasmWatcher extends Watcher { this.latestBlockHeight = 0; if (chain === 'Sei') { this.maximumBatchSize = 1; + } else if (chain === 'Terra2') { + this.maximumBatchSize = 10; } } diff --git a/watcher/src/watchers/utils.ts b/watcher/src/watchers/utils.ts index b5bd24b7..46829ba1 100644 --- a/watcher/src/watchers/utils.ts +++ b/watcher/src/watchers/utils.ts @@ -63,8 +63,10 @@ export function makeFinalizedWatcher(network: Network, chainName: Chain): Watche return new InjectiveExplorerWatcher(network); } else if (chainName === 'Sei') { return new SeiExplorerWatcher(network); - } else if (chainName === 'Terra' || chainName === 'Terra2') { + } else if (chainName === 'Terra') { return new TerraExplorerWatcher(network, chainName); + } else if (chainName === 'Terra2') { + return new CosmwasmWatcher(network, chainName); } else if (chainName === 'Xpla') { return new CosmwasmWatcher(network, chainName); } else if (chainName === 'Sui') {