forked from tellor-io/layer-daemons
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
67 lines (54 loc) · 2.36 KB
/
Copy pathenv.example
File metadata and controls
67 lines (54 loc) · 2.36 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
# Copy to .env and fill in values for the features you want.
# .env is loaded from the current directory, or ../.env from subdirectories.
## REQUIRED VARIABLES ##
LAYER_HOME=/home/<reporter-username>/.layer
FROM=your-key-name
KEYRING_BACKEND=test
# KEYRING_PASSWORD_FILE=/etc/layer-daemons/reporter-keyring-password
# Layer endpoints (comma-separated primary, then fallbacks)
RPC_NODES=http://node_endpoint1:26657,https://node_endpoint2:26657
GRPC_NODES=0.0.0.0:9090,node2_ip:9090
# Bridge-chain RPC endpoints for token bridge reads
BRIDGE_CHAIN_RPC_NODES=https://mainnet.infura.io/v3/YOUR_INFURA_API_KEY,https://eth-mainnet.g.alchemy.com/v2/YOUR_ALCHEMY_API_KEY
# Ethereum mainnet RPC endpoints for custom query contract reads.
ETH_MAINNET_RPC_NODES=https://mainnet.infura.io/v3/YOUR_INFURA_API_KEY,https://eth-mainnet.g.alchemy.com/v2/YOUR_ALCHEMY_API_KEY
# Custom query API keys (endpoint auth and Ethereum mainnet RPC template expansion)
CMC_PRO_API_KEY=your_coinmarketcap_api_key
CGPRO_API_KEY=your_coingecko_pro_api_key
SUBGRAPH_API_KEY=your_the_graph_api_key
# Used by built-in Ethereum mainnet RPC templates when ETH_MAINNET_RPC_NODES is unset
INFURA_API_KEY=YOUR_INFURA_API_KEY
ALCHEMY_API_KEY=YOUR_ALCHEMY_API_KEY
## OPTIONAL VARIABLES ##
# daemon settings:
# BROADCAST_MODE=sync
# LOG_LEVEL=info
# PROMETHEUS_PORT=26661
# Set Automatic Reward withdrawals:
# REPORTERS_VALIDATOR_ADDRESS=tellorvaloper1...
# WITHDRAW_FREQUENCY=43200
# Price guard:
# PRICE_GUARD_ENABLED=false
# PRICE_GUARD_THRESHOLD=0.5 # 50%
# PRICE_GUARD_MAX_AGE=1h
# PRICE_GUARD_UPDATE_ON_BLOCKED=false
# Auto-unbonding:
# AUTO_UNBONDING_FREQUENCY=7
# AUTO_UNBONDING_AMOUNT=1000000
# AUTO_UNBONDING_MAX_STAKE_PERCENTAGE=0.1
# Auto balance-to-keep bridge:
# AUTO_BALANCE_TO_KEEP=5000000
# AUTO_BALANCE_EXECUTION_TIME=03:00
# AUTO_BALANCE_BRIDGE_TO_ETH_ADDR=0x0000000000000000000000000000000000000000
# Gas estimate cache refresh:
# REFRESH_GAS_ESTIMATES_INTERVAL=12h
# Daemon internals:
# UNIX_SOCKET_ADDRESS=/tmp/daemons.sock
# PANIC_ON_DAEMON_FAILURE_ENABLED=true
# MAX_DAEMON_UNHEALTHY_SECONDS=300
# PRICE_DAEMON_LOOP_DELAY_MS=3000
# for testing: local/custom-chain token bridge contract override:
# TOKEN_BRIDGE_TEST_CONTRACT=0x0000000000000000000000000000000000000000
# Test mode (verify configs without starting the daemon):
# TEST=true
# TEST_QUERY_ID=0000000000000000000000000000000000000000000000000000000000000000