|
1 | | -# Relay configuration |
2 | | -[relay] |
3 | | -bootstrap_relays = [ |
4 | | - "ws://62.72.41.239:8000", |
5 | | - # "wss://relay.damus.io", |
6 | | - # "wss://nostr.wine", |
7 | | - # "wss://relay.snort.social", |
8 | | -] |
9 | | -max_connections = 10000 |
10 | | -health_check_interval = 30 |
11 | | - |
12 | | -# Deduplication configuration |
13 | 1 | [deduplication] |
14 | | -hotset_size = 1_000_000 |
15 | | -bloom_capacity = 10_000_000 |
16 | | -lru_size = 100_000 |
| 2 | +bloom_capacity = 10000000 |
| 3 | +hotset_size = 1000000 |
| 4 | +lru_size = 100000 |
17 | 5 | rocksdb_path = "./data/rocksdb" |
18 | 6 |
|
19 | | -# Nostr filtering configuration |
20 | 7 | [filters] |
21 | | -allowed_kinds = [30931, 30932, 30933, 30934] |
| 8 | +allowed_kinds = [ |
| 9 | + 30931, |
| 10 | + 30932, |
| 11 | + 30933, |
| 12 | + 30934, |
| 13 | +] |
| 14 | + |
| 15 | +[monitoring] |
| 16 | +log_level = "debug" |
| 17 | +prometheus_port = 9090 |
| 18 | + |
| 19 | +[nostr] |
| 20 | +secret_key = "nsec1kk97xcsmpdnh9e009f5987gtwh2jm0p3syvcva55ua98hvv3sk5sw2rt7k" |
22 | 21 |
|
23 | | -# Output configuration |
24 | 22 | [output] |
25 | | -websocket_enabled = false |
26 | | -websocket_port = 8080 |
27 | 23 | batch_size = 100 |
| 24 | +bind_address = "127.0.0.1" |
28 | 25 | max_latency_ms = 50 |
| 26 | +websocket_enabled = false |
| 27 | +websocket_port = 8080 |
29 | 28 |
|
30 | | -# Postgres configuration (used for subscriptions/fanout) |
31 | 29 | [postgres] |
32 | 30 | dsn = "postgres://postgres:postgres@localhost:5432/moltrade" |
33 | 31 | max_connections = 5 |
34 | 32 |
|
35 | | -# Nostr platform key (used to decrypt inbound and encrypt outbound) |
36 | | -[nostr] |
37 | | -# nsec... or hex sk |
38 | | -secret_key = "nsec1..." |
| 33 | +[relay] |
| 34 | +bootstrap_relays = ["ws://62.72.41.239:8000"] |
| 35 | +health_check_interval = 30 |
| 36 | +max_connections = 10000 |
39 | 37 |
|
40 | | -# Settlement worker (Hyperliquid tx hash polling) |
41 | 38 | [settlement] |
42 | | -# Base URL for tx lookup (defaults to Hyperliquid explorer tx endpoint) |
| 39 | +batch_limit = 50 |
43 | 40 | explorer_base = "https://app.hyperliquid.xyz/explorer/transaction" |
44 | | -# Polling interval seconds |
45 | 41 | poll_secs = 30 |
46 | | -# Max pending trades to check per tick |
47 | | -batch_limit = 50 |
48 | | -# Optional shared token for settlement/reporting endpoints |
49 | 42 | token = "" |
50 | 43 |
|
51 | | -# Credit issuance config |
52 | 44 | [settlement.credit] |
53 | | -# Applied to leader trades (uses notional size * price * rate) |
54 | | -leader_rate = 0.002 |
55 | | -# Applied to follower trades |
| 45 | +enable = true |
56 | 46 | follower_rate = 0.001 |
57 | | -# Floor credit per confirmed trade |
| 47 | +leader_rate = 0.002 |
58 | 48 | min_credit = 0.5 |
59 | | -# Multiplier when pnl_usd > 0 (profit-making trades) |
60 | 49 | profit_multiplier = 1.2 |
61 | | -enable = true |
62 | 50 |
|
63 | | -# Subscription limits |
64 | 51 | [subscriptions] |
65 | | -# Daily POST limit for subscription endpoints (per bot eth_address). 0 disables limiting. |
66 | 52 | daily_limit = 1000 |
67 | | - |
68 | | -# Monitoring configuration |
69 | | -[monitoring] |
70 | | -prometheus_port = 9090 |
71 | | -log_level = "debug" |
0 commit comments