-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.env.example
More file actions
76 lines (66 loc) · 3.16 KB
/
.env.example
File metadata and controls
76 lines (66 loc) · 3.16 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
# RPC Configuration
RPC_URL=https://eth-mainnet.g.alchemy.com/v2/your-api-key
CHAIN_ID=1 # 1 for mainnet, 11155111 for sepolia
NETWORK_NAME=mainnet # mainnet, sepolia, etc.
# Contract Addresses
STAKER_CONTRACT_ADDRESS=0x... # Required: Address of the Staker contract
LST_ADDRESS=0x... # Required: Address of the LST token contract
OBOL_TOKEN_ADDRESS=0x... # Optional: Address of the OBOL token
REWARD_NOTIFIER_ADDRESS=0x... # Optional: Address of the reward notifier
REWARD_TOKEN_ADDRESS=0x... # Optional: Address of the reward token
DEFAULT_DELEGATEE=0x... # Optional: Default delegatee address
# Database Configuration
DATABASE_TYPE=json # 'json' or 'supabase'
# Required only if using Supabase:
SUPABASE_URL=your_supabase_url
SUPABASE_KEY=your_supabase_key
# Monitor Configuration
START_BLOCK=0 # Block number to start monitoring from
LOG_LEVEL=info # debug, info, warn, error
POLL_INTERVAL=15 # Seconds between blockchain polls
MAX_BLOCK_RANGE=2000 # Maximum block range to query at once
MAX_RETRIES=5 # Maximum retry attempts for failed operations
REORG_DEPTH=64 # Number of blocks to check for reorgs
CONFIRMATIONS=20 # Required block confirmations
HEALTH_CHECK_INTERVAL=60 # Seconds between health checks
# Executor Configuration
EXECUTOR_TYPE=wallet # wallet, defender, or relayer
PRIVATE_KEY=your_private_key # Required for wallet executor
TIP_RECEIVER=0x... # Optional: Address to receive tips
# Defender Configuration (Required if using defender executor)
DEFENDER_API_KEY=your_defender_api_key
DEFENDER_SECRET_KEY=your_defender_secret_key
PUBLIC_ADDRESS_DEFENDER=0x...
DEFENDER_MIN_BALANCE=10000000000000000 # 0.01 ETH in wei
DEFENDER_MAX_PENDING_TXS=5
DEFENDER_MAX_FEE=100000000000 # Optional: Max fee per gas in wei
DEFENDER_PRIORITY_FEE=2000000000 # Optional: Max priority fee in wei
# Price Feed Configuration
COINMARKETCAP_API_KEY=your_api_key_here
PRICE_FEED_TOKEN_ADDRESS=0x... # Optional: Token address for price feed
# GovLst Configuration
GOVLST_ADDRESS=0x... # Comma-separated list of GovLst contract addresses
GOVLST_PAYOUT_AMOUNT=1000000000000000000 # 1 ETH in wei
GOVLST_MIN_PROFIT_MARGIN=100000000000000 # Minimum profit required (in wei)
GOVLST_MAX_BATCH_SIZE=5 # Maximum number of deposits to process in a batch
GOVLST_CLAIM_INTERVAL=1800 # Seconds between reward claim checks
GOVLST_GAS_PRICE_BUFFER=30 # Percentage buffer for gas price estimates
GOVLST_MIN_EARNING_POWER=10000 # Minimum earning power threshold
# Component Selection
COMPONENTS=monitor,profitability,executor,govlst # Comma-separated list of components to run
PROFITABILITY_INCLUDE_GAS_COST=true # Include gas cost in profitability calculations
GOVLST_MIN_PROFIT_MARGIN_PERCENT=10 # Minimum profit margin percentage
GOVLST_REWARD_CHECK_INTERVAL=30000 # Interval for checking rewards in milliseconds# Tenderly Configuration
# Tenderly
TENDERLY_USE_SIMULATE=true or false based on if you want it or not.
TENDERLY_ACCESS_KEY=your_access_key_here
TENDERLY_ACCOUNT_NAME=your_account_name_here
TENDERLY_PROJECT_NAME=your_project_name_here
# Swap
EXECUTOR_SWAP_TO_ETH=
UNISWAP_ROUTER_ADDRESS=
SWAP_SLIPPAGE_TOLERANCE=
SWAP_DEADLINE_MINUTES=
SWAP_MIN_AMOUNT_IN=
SWAP_MAX_AMOUNT_IN=
SWAP_TOKEN_DECIMALS=18