forked from anshuman008/solana-liquidation-detection
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.toml
More file actions
60 lines (54 loc) · 1.49 KB
/
Copy pathconfig.example.toml
File metadata and controls
60 lines (54 loc) · 1.49 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
[database]
url = "postgresql://username:password@localhost:5432/liquidation_indexer"
max_connections = 20
min_connections = 5
connection_timeout_seconds = 30
idle_timeout_seconds = 600
max_lifetime_seconds = 1800
[grpc]
endpoint = "https://api.mainnet-beta.solana.com"
x_token = "your_grpc_token_here"
connect_timeout_seconds = 10
request_timeout_seconds = 10
max_message_size_bytes = 1073741824 # 1GB
retry_attempts = 3
retry_base_delay_ms = 1000
[notifications]
webhook_urls = [
"https://your-webhook-endpoint.com/liquidation",
"https://backup-webhook.com/alerts"
]
discord_webhook_url = "https://discord.com/api/webhooks/123456789/abcdefghijklmnop"
telegram_bot_token = "your_telegram_bot_token"
telegram_chat_id = "your_telegram_chat_id"
timeout_seconds = 30
batch_size = 10
batch_timeout_ms = 500
[notifications.retry_config]
max_retries = 3
base_delay_ms = 1000
max_delay_ms = 30000
backoff_multiplier = 2.0
[notifications.email_config]
smtp_server = "smtp.gmail.com"
smtp_port = 587
username = "your_email@gmail.com"
password = "your_app_password"
from_address = "liquidation-bot@yourdomain.com"
to_addresses = [
"alerts@yourdomain.com",
"team@yourdomain.com"
]
[processing]
max_concurrent_events = 50
event_timeout_seconds = 30
retry_interval_seconds = 60
notification_queue_size = 1000
liquidation_queue_size = 1000
dead_letter_queue_interval_seconds = 300
[monitoring]
metrics_enabled = true
health_check_interval_seconds = 30
log_level = "info"
tracing_enabled = true
prometheus_port = 9090