mirror of
https://github.com/cerc-io/watcher-ts
synced 2024-11-20 04:46:20 +00:00
e30af92901
* Add a CLI to fill state for a given range * Refactor code * Add a CLI to reset IPLD state * Replace ORDER BY clause in the query to get latest IPLD block * Optimize delete query in CLI to reset IPLD state * Add an option to decouple subgraph state creation from mapping code * Use a raw SQL query to delete IPLD blocks in a block range * Accomodate changes in codegen
63 lines
1.5 KiB
TOML
63 lines
1.5 KiB
TOML
[server]
|
|
host = "127.0.0.1"
|
|
port = 3012
|
|
kind = "active"
|
|
|
|
# Checkpointing state.
|
|
checkpointing = true
|
|
|
|
# Checkpoint interval in number of blocks.
|
|
checkpointInterval = 2000
|
|
|
|
# IPFS API address (can be taken from the output on running the IPFS daemon).
|
|
# ipfsApiAddr = "/ip4/127.0.0.1/tcp/5001"
|
|
|
|
subgraphPath = "../graph-node/test/subgraph/eden"
|
|
|
|
# Disable creation of state from subgraph entity updates
|
|
# CAUTION: Disable only if subgraph state is not desired or can be filled subsequently
|
|
disableSubgraphState = false
|
|
|
|
# Interval to restart wasm instance periodically
|
|
wasmRestartBlocksInterval = 20
|
|
|
|
# Boolean to filter logs by contract.
|
|
filterLogs = true
|
|
|
|
# Max block range for which to return events in eventsInRange GQL query.
|
|
# Use -1 for skipping check on block range.
|
|
maxEventsBlockRange = 1000
|
|
|
|
[metrics]
|
|
host = "127.0.0.1"
|
|
port = 9000
|
|
[metrics.gql]
|
|
port = 9001
|
|
|
|
[database]
|
|
type = "postgres"
|
|
host = "localhost"
|
|
port = 5432
|
|
database = "eden-watcher"
|
|
username = "postgres"
|
|
password = "postgres"
|
|
synchronize = true
|
|
logging = false
|
|
|
|
[upstream]
|
|
[upstream.ethServer]
|
|
gqlApiEndpoint = "http://127.0.0.1:8083/graphql"
|
|
rpcProviderEndpoint = "http://127.0.0.1:8082"
|
|
blockDelayInMilliSecs = 2000
|
|
|
|
[upstream.cache]
|
|
name = "requests"
|
|
enabled = false
|
|
deleteOnStart = false
|
|
|
|
[jobQueue]
|
|
dbConnectionString = "postgres://postgres:postgres@localhost/eden-watcher-job-queue"
|
|
maxCompletionLagInSecs = 300
|
|
jobDelayInMilliSecs = 100
|
|
eventsInBatch = 50
|