Skip to content

Commit

Permalink
watcher: change Terra2 watcher
Browse files Browse the repository at this point in the history
  • Loading branch information
panoel committed Nov 26, 2024
1 parent 393b218 commit 6b04ee0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions watcher/src/watchers/CosmwasmWatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down
4 changes: 3 additions & 1 deletion watcher/src/watchers/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 6b04ee0

Please sign in to comment.