-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathconfig.example.toml
More file actions
106 lines (98 loc) · 4.65 KB
/
config.example.toml
File metadata and controls
106 lines (98 loc) · 4.65 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# Interval to check and notify.
# Can be a cron-like interval (like "0 * * * *" for every hour),
# "@hourly"/"@daily" for hourly/daily intervals, or "@every 1h"
# for specifying intervals more granularly.
# See https://pkg.go.dev/github.com/robfig/cron?utm_source=godoc#hdr-CRON_Expression_Format for examples.
# Defaults to "@hourly"
interval = "@hourly"
# Timezone in which time (like undelegation finish time) will be displayed. Defaults to "Etc/GMT", so UTC+0
timezone = "Europe/Moscow"
# Database config.
[database]
# Path to SQLite database to store state in.
path = "database.sqlite"
# Logging configuration
[log]
# Log level. Defaults to "info". Set it to "debug" or "trace" to add more verbosity and for debugging.
level = "trace"
# Whether to write all logs in JSON instead of pretty-printing. Useful if you use a centralised logging
# solition, like ELK. Defaults to false.
json = false
# Tracing configuration.
# If enabled, all reports traces are going to be sent to a remote storage
# via OpenTelemetry HTTP protocol.
# You probably don't need this, so feel free to omit this whole block.
[tracing]
# Whether tracing reporting is enabled. Defaults to false.
enabled = false
# OpenTelemetry HTTP host to send traces to
open-telemetry-http-host = "localhost:4123"
# If true, then requests would be done via HTTP rather than HTTPS. Defaults to true.
open-telemetry-http-insecure = true
# OTLP login and password, if needed.
open-telemetry-http-user = "admin"
open-telemetry-http-password = "password"
# Per-chain config. There can be multiple chains.
[[chains]]
# Chain name, used internally. Required. Should be unique.
name = "bitsong"
# Pretty name that is used when reporting. Optional.
pretty-name = "Bitsong"
# Chain name in Keplr wallet, to generate links to a proposal. Optional.
keplr-name = "bitsong"
# Mintscan prefix, to generate links to a proposal/wallet. Optional.
mintscan-prefix = "bitsong"
# List of LCD endpoints to get data from. At least 1 is required. You can use
# multiple LCD endpoints, in case a single one fails.
lcd-endpoints = ["https://lcd-bitsong-app.cosmostation.io"]
# List of wallets to monitor. At least 1 is required.
wallets = [
# Each wallet can have an address (required) and an alias (optional).
{ address = "bitsong14rvn7anf22e00vj5x3al4w50ns78s7n4t8yxcy", alias = "Validator wallet" },
{ address = "bitsong125hdkukw4pu2urhj4nv366q0avdqv24t0vprxs" },
]
# Type. Currently can be either "cosmos" or "neutron". Optional, defaults to "cosmos.
type = "cosmos"
# Neutron smart contract address. Defaults to "neutron1436kxs0w2es6xlqpp9rd35e3d0cjnw4sv8j3a7483sgks29jqwgshlt6zh"
# (mainnet contract address).
neutron-smart-contract = "neutron1436kxs0w2es6xlqpp9rd35e3d0cjnw4sv8j3a7483sgks29jqwgshlt6zh"
# Some chains have a new proposals structure (v1) compared to an older one (v1beta1),
# when there are 2 or more actual proposals inside a single one (namely, Quicksilver).
# On such chains, querying proposals with an older endpoint when there are proposals
# with 2 or more proposals inside causes an error like this:
# "codespace sdk code 29: invalid type: can't convert a gov/v1 Proposal to gov/v1beta1 Proposal
# when amount of proposal messages is more than one". If you see this error, consider switching to
# a newer endpoint. Keep in mind that some chains do not implement the newer format.
# The possible values are: "v1" (newer format), "v1beta1" (older format).
# Defaults to "v1beta1"
proposals-type = "v1beta1"
# Custom explorer links patterns. They are overridden if mintscan-prefix is specified.
[chains.explorer]
# A pattern for proposal link for explorer, if there's no Mintscan support
# for the chain, but there is a custom explorer. %s is replaced by the proposal ID.
# Also optional.
proposal-link-pattern = "https://mintscan.io/bitsong/proposals/%s"
# A pattern for wallet links for the explorer. Also optional.
wallet-link-pattern = "https://mintscan.io/bitsong/account/%s"
[[chains]]
name = "sentinel"
pretty-name = "Sentinel"
keplr-name = "sentinel"
mintscan-prefix = "sentinel"
lcd-endpoints = ["https://lcd-sentinel-app.cosmostation.io", "https://lcd-sentinel.whispernode.com"]
wallets = [
{ address = "sent1rw9wtyhsus7jvx55v3qv5nzun054ma6kas4u3l" }
]
# PagerDuty notifier config.
[pagerduty]
# PagerDuty URL. You may need to override it if you use EU version of Pagerduty.
# Defaults to "https://events.pagerduty.com"
url = "https://events.eu.pagerduty.com"
# PagerDuty API key. If omitted, the PagerDuty reporter will be disabled.
api-key = "xxxyyyzzz"
# Telegram notifier config.
[telegram]
# Telegram bot token. If omitted, the Telegram reporter will be disabled.
token = "aaaa:bbbbb"
# Chat ID to write to. Check README for integration info.
chat = 123456