-
Notifications
You must be signed in to change notification settings - Fork 11
/
config_flare_voting.toml
56 lines (48 loc) · 1.26 KB
/
config_flare_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
56
[db]
host = "localhost" # env DB_HOST
port = 3306 # env DB_PORT
database = "" # env DB_DATABASE
username = "" # env DB_USERNAME
password = "" # env DB_PASSWORD
log_queries = false
[logger]
level = "DEBUG"
file = "./logs/flare-indexer.log"
console = false
[metrics]
prometheus_address = "localhost:2112"
[chain]
# address of indexing node, e.g., http://xxx.xx.xxx.xxx:xxxx; env CHAIN_NODE_URL
node_url = "indexing node address"
address_hrp = "flare"
chain_id = 14
# rpc url, can be the same as node_url, but with /ext/C/rpc extension, e.g.,
# http://xxx.xx.xxx.xxx:xxxx/ext/C/rpc; env ETH_RPC_URL;
eth_rpc_url = "node rpc address"
api_key = "" # from env API_KEY
private_key_file = "./private_key.txt" # env PRIVATE_KEY_FILE
[x_chain_indexer]
enabled = false
[p_chain_indexer]
enabled = true
timeout_millis = "1000ms"
start_index = 0
batch_size = 100
[uptime_cronjob]
enabled = true
timeout = "30s"
enable_voting = true
start = 1658430000
period = "302400s"
delay = "10s"
first = 123
uptime_threshold = 0.8
delete_old_uptimes_epoch_threshold = 5
[voting_cronjob]
enabled = true
timeout = "10s"
first = 211500
delay = "10s"
gas_limit = 120000
[contract_addresses]
voting = "0x12b3079D5b65a17EFD1665d9731FB0Adb46F14e4" # env VOTING_CONTRACT_ADDRESS