-
Notifications
You must be signed in to change notification settings - Fork 11
/
config_costwo_voting.toml
55 lines (47 loc) · 1.39 KB
/
config_costwo_voting.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
[db]
host = "localhost" # from env DB_HOST
port = 3306 # from env DB_PORT
database = "flare_indexer" # from env DB_DATABASE
username = "flareindexeruser" # from env DB_USERNAME
password = "" # from env DB_PASSWORD
log_queries = false
[logger]
level = "DEBUG"
file = "./logs/flare-indexer.log"
console = false
[metrics]
# used for prometheus metrics of the indexer
# currently, no specific data are included in the metrics in addition to the default ones
prometheus_address = "localhost:2112"
[chain]
node_url = "https://coston2-api-tracer.flare.network" # from env CHAIN_NODE_URL
address_hrp = "costwo"
chain_id = 114
api_key = "" # from env API_KEY
eth_rpc_url = "https://coston2-api.flare.network/ext/C/rpc" # from env ETH_RPC_URL
private_key_file = "./private_key.txt" # from env PRIVATE_KEY_FILE
[x_chain_indexer]
enabled = false
[p_chain_indexer]
enabled = true
timeout = "5s"
start_index = 0
batch_size = 100
[uptime_cronjob]
enabled = true
timeout = "30s"
enable_voting = true
start = 1662580800
delay = "10s"
period = "3600s"
first = 8848 # from env UPTIME_EPOCH_FIRST
uptime_threshold = 0.8
delete_old_uptimes_epoch_threshold = 5
[voting_cronjob]
enabled = true
timeout = "10s"
first = 183585 # from env EPOCH_FIRST
delay = "10s"
gas_limit = 120000
[contract_addresses]
voting = "0x694905ca5f9F6c49f4748E8193B3e8053FA9E7E4" # from env VOTING_CONTRACT_ADDRESS