Update watcher stack for latest watcher changes (#1)
Part of [Generate secured-finance subgraph watcher with codegen](https://www.notion.so/Generate-secured-finance-subgraph-watcher-with-codegen-2923413e0af54ea787c5435d6966f3bb) Reviewed-on: #1 Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com> Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
This commit is contained in:
parent
b41b1fc315
commit
f6ed97a044
@ -60,6 +60,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ../config/watcher-secured-finance/watcher-config-template.toml:/app/environments/watcher-config-template.toml
|
- ../config/watcher-secured-finance/watcher-config-template.toml:/app/environments/watcher-config-template.toml
|
||||||
- ../config/watcher-secured-finance/start-server.sh:/app/start-server.sh
|
- ../config/watcher-secured-finance/start-server.sh:/app/start-server.sh
|
||||||
|
- secured_finance_watcher_gql_logs_data:/app/gql-logs
|
||||||
ports:
|
ports:
|
||||||
- "3008"
|
- "3008"
|
||||||
- "9001"
|
- "9001"
|
||||||
@ -74,3 +75,4 @@ services:
|
|||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
secured_finance_watcher_db_data:
|
secured_finance_watcher_db_data:
|
||||||
|
secured_finance_watcher_gql_logs_data:
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
host = "0.0.0.0"
|
host = "0.0.0.0"
|
||||||
port = 3008
|
port = 3008
|
||||||
kind = "active"
|
kind = "active"
|
||||||
gqlPath = "/"
|
|
||||||
|
|
||||||
# Checkpointing state.
|
# Checkpointing state.
|
||||||
checkpointing = true
|
checkpointing = true
|
||||||
@ -22,15 +21,22 @@
|
|||||||
# Interval in number of blocks at which to clear entities cache.
|
# Interval in number of blocks at which to clear entities cache.
|
||||||
clearEntitiesCacheInterval = 1000
|
clearEntitiesCacheInterval = 1000
|
||||||
|
|
||||||
|
# Flag to specify whether RPC endpoint supports block hash as block tag parameter
|
||||||
|
rpcSupportsBlockHashParam = false
|
||||||
|
|
||||||
|
# Server GQL config
|
||||||
|
[server.gql]
|
||||||
|
path = "/"
|
||||||
|
|
||||||
# Max block range for which to return events in eventsInRange GQL query.
|
# Max block range for which to return events in eventsInRange GQL query.
|
||||||
# Use -1 for skipping check on block range.
|
# Use -1 for skipping check on block range.
|
||||||
maxEventsBlockRange = 1000
|
maxEventsBlockRange = 1000
|
||||||
|
|
||||||
# Flag to specify whether RPC endpoint supports block hash as block tag parameter
|
# Log directory for GQL requests
|
||||||
rpcSupportsBlockHashParam = false
|
logDir = "./gql-logs"
|
||||||
|
|
||||||
# GQL cache settings
|
# GQL cache settings
|
||||||
[server.gqlCache]
|
[server.gql.cache]
|
||||||
enabled = true
|
enabled = true
|
||||||
|
|
||||||
# Max in-memory cache size (in bytes) (default 8 MB)
|
# Max in-memory cache size (in bytes) (default 8 MB)
|
||||||
@ -85,6 +91,9 @@
|
|||||||
# Filecoin block time: https://docs.filecoin.io/basics/the-blockchain/blocks-and-tipsets#blocktime
|
# Filecoin block time: https://docs.filecoin.io/basics/the-blockchain/blocks-and-tipsets#blocktime
|
||||||
blockDelayInMilliSecs = 30000
|
blockDelayInMilliSecs = 30000
|
||||||
|
|
||||||
|
# Number of blocks by which block processing lags behind head
|
||||||
|
blockProcessingOffset = 0
|
||||||
|
|
||||||
# Boolean to switch between modes of processing events when starting the server.
|
# Boolean to switch between modes of processing events when starting the server.
|
||||||
# Setting to true will fetch filtered events and required blocks in a range of blocks and then process them.
|
# Setting to true will fetch filtered events and required blocks in a range of blocks and then process them.
|
||||||
# Setting to false will fetch blocks consecutively with its events and then process them (Behaviour is followed in realtime processing near head).
|
# Setting to false will fetch blocks consecutively with its events and then process them (Behaviour is followed in realtime processing near head).
|
||||||
|
@ -6,5 +6,10 @@ WORKDIR /app
|
|||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
# Get the latest Git commit hash and set in package.json
|
||||||
|
RUN COMMIT_HASH=$(git rev-parse HEAD) && \
|
||||||
|
jq --arg commitHash "$COMMIT_HASH" '.commitHash = $commitHash' package.json > tmp.json && \
|
||||||
|
mv tmp.json package.json
|
||||||
|
|
||||||
RUN echo "Installing dependencies and building secured-finance-watcher-ts" && \
|
RUN echo "Installing dependencies and building secured-finance-watcher-ts" && \
|
||||||
yarn && yarn build
|
yarn && yarn build
|
||||||
|
@ -2,7 +2,7 @@ version: "1.0"
|
|||||||
name: secured-finance
|
name: secured-finance
|
||||||
description: "Secured finance watcher stack"
|
description: "Secured finance watcher stack"
|
||||||
repos:
|
repos:
|
||||||
- git.vdb.to/cerc-io/secured-finance-watcher-ts@v0.1.0
|
- git.vdb.to/cerc-io/secured-finance-watcher-ts@v0.1.1
|
||||||
containers:
|
containers:
|
||||||
- cerc/watcher-secured-finance
|
- cerc/watcher-secured-finance
|
||||||
pods:
|
pods:
|
||||||
|
Loading…
Reference in New Issue
Block a user