2023-09-20 04:18:15 +00:00
|
|
|
[server]
|
|
|
|
host = "0.0.0.0"
|
|
|
|
port = 3001
|
|
|
|
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
|
|
|
|
|
2023-10-03 12:10:34 +00:00
|
|
|
# Flag to specify whether RPC endpoint supports block hash as block tag parameter
|
|
|
|
rpcSupportsBlockHashParam = true
|
|
|
|
|
2023-09-20 04:18:15 +00:00
|
|
|
[server.p2p]
|
|
|
|
enableRelay = true
|
|
|
|
enablePeer = true
|
|
|
|
|
|
|
|
[server.p2p.relay]
|
|
|
|
host = "0.0.0.0"
|
|
|
|
port = 9090
|
|
|
|
relayPeers = REPLACE_WITH_CERC_RELAY_PEERS
|
|
|
|
denyMultiaddrs = REPLACE_WITH_CERC_DENY_MULTIADDRS
|
|
|
|
peerIdFile = './peers/relay-id.json'
|
|
|
|
announce = 'REPLACE_WITH_CERC_RELAY_ANNOUNCE_DOMAIN'
|
|
|
|
pubsub = 'REPLACE_WITH_CERC_PUBSUB'
|
|
|
|
enableDebugInfo = true
|
|
|
|
|
|
|
|
[server.p2p.peer]
|
|
|
|
relayMultiaddr = 'REPLACE_WITH_CERC_RELAY_MULTIADDR'
|
|
|
|
pubSubTopic = 'mobymask'
|
|
|
|
denyMultiaddrs = REPLACE_WITH_CERC_DENY_MULTIADDRS
|
|
|
|
peerIdFile = 'REPLACE_WITH_PEER_ID_FILE'
|
|
|
|
pubsub = 'REPLACE_WITH_CERC_PUBSUB'
|
|
|
|
enableDebugInfo = true
|
|
|
|
enableL2Txs = REPLACE_WITH_CERC_ENABLE_PEER_L2_TXS
|
2023-10-03 12:10:34 +00:00
|
|
|
pingInterval = 4000
|
|
|
|
pingTimeout = 1500
|
|
|
|
maxRelayConnections = 10
|
2023-09-20 04:18:15 +00:00
|
|
|
|
|
|
|
[server.p2p.peer.l2TxsConfig]
|
|
|
|
privateKey = 'REPLACE_WITH_CERC_PRIVATE_KEY_PEER'
|
|
|
|
contractAddress = 'REPLACE_WITH_CONTRACT_ADDRESS'
|
|
|
|
|
|
|
|
[server.p2p.nitro]
|
2023-10-05 09:27:47 +00:00
|
|
|
chainUrl = 'REPLACE_WITH_CERC_NITRO_CHAIN_URL'
|
2023-09-20 04:18:15 +00:00
|
|
|
store = './out/nitro-db'
|
2023-10-03 12:10:34 +00:00
|
|
|
privateKey = 'REPLACE_WITH_CERC_WATCHER_NITRO_PK'
|
2023-09-20 04:18:15 +00:00
|
|
|
chainPrivateKey = 'REPLACE_WITH_CERC_PRIVATE_KEY_PEER'
|
|
|
|
|
|
|
|
[server.p2p.nitro.payments]
|
|
|
|
ratesFile = './environments/rates.toml'
|
|
|
|
requestTimeoutInSecs = 10
|
|
|
|
|
|
|
|
[server.p2p.nitro.payments.cache]
|
|
|
|
maxAccounts = 1000
|
|
|
|
accountTTLInSecs = 1800
|
|
|
|
maxVouchersPerAccount = 1000
|
|
|
|
voucherTTLInSecs = 300
|
|
|
|
maxPaymentChannels = 10000
|
|
|
|
paymentChannelTTLInSecs = 1800
|
|
|
|
|
|
|
|
[server.p2p.consensus]
|
|
|
|
enabled = REPLACE_WITH_CONSENSUS_ENABLED
|
|
|
|
publicKey = 'REPLACE_WITH_CONSENSUS_PUBLIC_KEY'
|
|
|
|
privateKey = 'REPLACE_WITH_CONSENSUS_PRIVATE_KEY'
|
2023-10-03 12:10:34 +00:00
|
|
|
watcherPartyPeersFile = 'REPLACE_WITH_WATCHER_PARTY_PEERS_FILE'
|
2023-09-20 04:18:15 +00:00
|
|
|
|
|
|
|
[metrics]
|
|
|
|
host = "0.0.0.0"
|
|
|
|
port = 9000
|
|
|
|
[metrics.gql]
|
|
|
|
port = 9001
|
|
|
|
|
|
|
|
[database]
|
|
|
|
type = "postgres"
|
|
|
|
host = "mobymask-watcher-db"
|
|
|
|
port = 5432
|
|
|
|
database = "mobymask-watcher"
|
|
|
|
username = "vdbm"
|
|
|
|
password = "password"
|
|
|
|
synchronize = true
|
|
|
|
logging = false
|
|
|
|
|
|
|
|
[upstream]
|
|
|
|
[upstream.ethServer]
|
2023-10-05 09:27:47 +00:00
|
|
|
gqlApiEndpoint = "http://ipld-eth-server:8083/graphql"
|
2023-10-03 12:10:34 +00:00
|
|
|
rpcProviderEndpoint = 'REPLACE_WITH_CERC_ETH_RPC_QUERY_ENDPOINT'
|
|
|
|
rpcProviderMutationEndpoint = 'REPLACE_WITH_CERC_ETH_RPC_MUTATION_ENDPOINT'
|
|
|
|
|
2023-10-05 09:27:47 +00:00
|
|
|
[upstream.ethServer.payments]
|
|
|
|
paidRPCMethods = ["eth_getBlockByHash", "eth_getBlockByNumber", "eth_getStorageAt"]
|
2023-10-03 12:10:34 +00:00
|
|
|
amount = 'REPLACE_WITH_UPSTREAM_NITRO_PAY_AMOUNT'
|
2023-09-20 04:18:15 +00:00
|
|
|
|
2023-10-05 09:27:47 +00:00
|
|
|
[upstream.ethServer.payments.nitro]
|
|
|
|
address = 'REPLACE_WITH_UPSTREAM_NITRO_ADDRESS'
|
|
|
|
multiAddr = 'REPLACE_WITH_UPSTREAM_NITRO_MULTIADDR'
|
|
|
|
|
|
|
|
[upstream.ethServer.payments.nitro.fundingAmounts]
|
|
|
|
directFund = "1000000000000"
|
|
|
|
virtualFund = "1000000000"
|
|
|
|
|
2023-09-20 04:18:15 +00:00
|
|
|
[upstream.cache]
|
|
|
|
name = "requests"
|
|
|
|
enabled = false
|
|
|
|
deleteOnStart = false
|
|
|
|
|
|
|
|
[jobQueue]
|
|
|
|
dbConnectionString = "postgres://vdbm:password@mobymask-watcher-db/mobymask-watcher-job-queue"
|
|
|
|
maxCompletionLagInSecs = 300
|
|
|
|
jobDelayInMilliSecs = 100
|
|
|
|
eventsInBatch = 50
|
2023-10-03 12:10:34 +00:00
|
|
|
blockDelayInMilliSecs = 60000
|