mirror of
https://github.com/cerc-io/watcher-ts
synced 2025-01-24 03:59:06 +00:00
Nabarun Gogoi
72ec6c8e5b
* Set eslint max-warnings to 0 in codegen generated watcher * Upgrade package versions
77 lines
1.6 KiB
TOML
77 lines
1.6 KiB
TOML
[server]
|
|
host = "127.0.0.1"
|
|
port = 3010
|
|
kind = "lazy"
|
|
|
|
# Checkpointing state.
|
|
checkpointing = true
|
|
|
|
# Checkpoint interval in number of blocks.
|
|
checkpointInterval = 2000
|
|
|
|
# Enable state creation
|
|
enableState = true
|
|
|
|
# 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 = -1
|
|
|
|
[server.p2p]
|
|
enableRelay = true
|
|
enablePeer = true
|
|
|
|
[server.p2p.relay]
|
|
host = "127.0.0.1"
|
|
port = 9090
|
|
relayPeers = []
|
|
peerIdFile = ''
|
|
|
|
[server.p2p.peer]
|
|
relayMultiaddr = ''
|
|
pubSubTopic = 'mobymask'
|
|
peerIdFile = ''
|
|
enableL2Txs = false
|
|
|
|
[server.p2p.peer.l2TxsConfig]
|
|
privateKey = ''
|
|
contractAddress = ''
|
|
|
|
[metrics]
|
|
host = "127.0.0.1"
|
|
port = 9000
|
|
|
|
[metrics.gql]
|
|
port = 9001
|
|
|
|
[database]
|
|
type = "postgres"
|
|
host = "localhost"
|
|
port = 5432
|
|
database = "mobymask-v2-watcher"
|
|
username = "postgres"
|
|
password = "postgres"
|
|
synchronize = true
|
|
logging = false
|
|
|
|
[upstream]
|
|
[upstream.ethServer]
|
|
gqlApiEndpoint = "http://127.0.0.1:8082/graphql"
|
|
rpcProviderEndpoint = "http://127.0.0.1:8081"
|
|
|
|
[upstream.cache]
|
|
name = "requests"
|
|
enabled = false
|
|
deleteOnStart = false
|
|
|
|
[jobQueue]
|
|
dbConnectionString = "postgres://postgres:postgres@localhost/mobymask-v2-watcher-job-queue"
|
|
maxCompletionLagInSecs = 300
|
|
jobDelayInMilliSecs = 100
|
|
eventsInBatch = 50
|
|
blockDelayInMilliSecs = 2000
|
|
prefetchBlocksInMem = true
|
|
prefetchBlockCount = 10
|