From 9c0680e5b411b3c8f79731084c56e331ff52211e Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Thu, 10 Oct 2024 18:23:07 +0530 Subject: [PATCH] Update sushiswap-v3 watcher config template --- .../watcher-config-template.toml | 15 +++++++++++++-- .../data/stacks/sushiswap-v3/stack.yml | 2 +- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/stack_orchestrator/data/config/watcher-sushiswap-v3/watcher-config-template.toml b/stack_orchestrator/data/config/watcher-sushiswap-v3/watcher-config-template.toml index 817d5323..9af82df7 100644 --- a/stack_orchestrator/data/config/watcher-sushiswap-v3/watcher-config-template.toml +++ b/stack_orchestrator/data/config/watcher-sushiswap-v3/watcher-config-template.toml @@ -10,7 +10,6 @@ checkpointInterval = 2000 # Enable state creation - # CAUTION: Disable only if state creation is not desired or can be filled subsequently enableState = false subgraphPath = "./subgraph-build" @@ -24,7 +23,7 @@ # Flag to specify whether RPC endpoint supports block hash as block tag parameter rpcSupportsBlockHashParam = false - # Server GQL config + # GQL server config [server.gql] path = "/" @@ -46,6 +45,14 @@ maxAge = 15 timeTravelMaxAge = 86400 # 1 day + # ETH RPC server config + [server.ethRPC] + enabled = true + path = "/rpc" + + # Max number of logs that can be returned in a single getLogs request (default: 10000) + getLogsResultLimit = 10000 + [metrics] host = "0.0.0.0" port = 9000 @@ -77,6 +84,10 @@ # Boolean flag to filter event logs by topics filterLogsByTopics = true + # Switch clients if eth_getLogs call takes more than threshold (in secs) + # Set to 0 for disabling switching + getLogsClientSwitchThresholdInSecs = 30 + [upstream.cache] name = "requests" enabled = false diff --git a/stack_orchestrator/data/stacks/sushiswap-v3/stack.yml b/stack_orchestrator/data/stacks/sushiswap-v3/stack.yml index ac29632b..9b6b7bb7 100644 --- a/stack_orchestrator/data/stacks/sushiswap-v3/stack.yml +++ b/stack_orchestrator/data/stacks/sushiswap-v3/stack.yml @@ -2,7 +2,7 @@ version: "1.0" name: sushiswap-v3 description: "SushiSwap v3 watcher stack" repos: - - github.com/cerc-io/sushiswap-v3-watcher-ts@v0.1.14 + - github.com/cerc-io/sushiswap-v3-watcher-ts@v0.1.17 containers: - cerc/watcher-sushiswap-v3 pods: