forked from QuokkaStake/cosmos-wallets-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.example.toml
72 lines (64 loc) · 3.07 KB
/
config.example.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# The address (host:port) the app will listen on. Defaults to ":9550".
listen-address = ":9550"
# Logging options
[log]
# Log level. Defaults to "info".
# You can set it to "debug" or even "trace" to make it more verbose for debugging.
level = "debug"
# Display output as JSON. Useful for logging aggregation solutions like ELK.
# Defaults to false.
json = false
# Per-chain config. You can specify multiple chains.
[[chains]]
# Chain name, the one that will go into metric "chain" label.
name = "bitsong"
# LCD host to query balances against.
lcd-endpoint = "https://lcd-bitsong-app.cosmostation.io"
# Coingecko currency, specify it if you want to also get the wallet balance
# in total in USD.
# Denoms info. There can be multiple denoms.
denoms = [
# Each denom has the following params: denom, display-denom, coingecko-currency, denom-coefficient.
# 1) denom - the base denom (like uatom for Cosmos Hub)
# 2) display - denom - the denom name to display it (like atom for Cosmos Hub)
# 3) coingecko-currency - a Coinecko API codename for a currency
# 4) denom-coefficient - the coefficient you need to multiply base denom to to get 1 token on Coingecko.
# Example: on Cosmos network the base denom is uatom, 1 atom = 1_000_000 uatom
# and 1 atom on Coingecko = $10, and your wallet has 10 atom, or 10_000_000 uatom.
# Then you need to specify the following parameters:
# coingecko-currency = "cosmos-hub"
# base-denom = "uatom"
# denom-coefficient = 1000000
# and after that, the /metrics endpoint will return your total balance as $100.
# Defaults to 1000000
{ denom = "ubtsg", display-denom = "btsg", coingecko-currency = "bitsong", denom-coefficient = 1000000 }
]
# Per-wallet config. You can specify multiple wallet configs per each chain.
wallets = [
# Wallet address.
# Each wallet has 3 labels: chain (taken from chain config), group and name.
# 1) Chain is, well, the chain name.
# 2) Group can be used to group wallets depending on their type/purpose
# (like "dvpn" for dVPN node/"restake" for ReStake bot wallets/etc.)
# Name can be used to identify a single wallet.
# This can be used conveniently for building alerts, for example, you can
# build different alert to fire if, for example, some Cosmos wallets used for restake
# have balance less than a specififed threshold.
# 3) A wallet's unique name, also returned in metric labels.
{ address = "bitsongxxxxxxxxx", group = "validator", name = "bitsong-validator" },
# You can have multiple wallets per each chain...
{ address = "bitsongyyyyyyyyyyy", group = "restake", name = "bitsong-restake" }
]
# ... as well as multiple chains ...
[[chains]]
name = "sentinel"
lcd-endpoint = "https://lcd-sentinel-app.cosmostation.io"
coingecko-currency = "sentinel"
denoms = [
{ denom = "udvpn", display-denom = "dvpn", coingecko-currency = "sentinel" }
]
# ... each having multiple wallets.
wallets = [
{ address = "sentxxxxx", group = "validator", name = "sentinel-validator" },
{ address = "sentyyyyyy", group = "restake", name = "sentinel-restake" }
]