-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.yaml
More file actions
38 lines (33 loc) · 1.74 KB
/
Copy pathconfig.example.yaml
File metadata and controls
38 lines (33 loc) · 1.74 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
# Values wrapped in ${...} are expanded from the environment (.env is auto-loaded).
# Copy to config.yaml to customise; if config.yaml is absent this example is used.
server:
api_addr: "${API_ADDR}"
database:
# GORM MySQL DSN
dsn: "${DB_USER}:${DB_PASSWORD}@tcp(${DB_HOST}:${DB_PORT})/${DB_NAME}?charset=utf8mb4&parseTime=true&loc=Local"
log_level: warn # silent | error | warn | info
crypto:
# 32-byte key-encryption-key as 64 hex chars. Wraps private keys at rest.
kek_hex: "${WALLET_KEK}"
# Each entry is one chain the system talks to. Adding a chain = adding an entry
# plus a Chain adapter; the rest of the system is chain-agnostic.
chains:
- name: SEPOLIA
kind: evm
chain_id: 11155111
rpc: "${SEPOLIA_RPC}"
explorer: "https://sepolia.etherscan.io" # block explorer base URL for the ops console
confirmations: 3 # blocks required before a deposit/withdrawal is "confirmed"
reorg_depth: 6 # blocks to roll back / re-verify when a reorg is detected
start_block: 0 # 0 = start from chain head when the cursor is empty
poll_interval_ms: 4000
block_batch: 5 # max blocks scanned per continuous-loop iteration
- name: SOLANA_DEVNET
kind: solana
commitment: finalized # finalized (no reorgs) | confirmed; the indexer scans at this level
rpc: "${SOLANA_RPC}" # e.g. https://api.devnet.solana.com
explorer: "https://solscan.io?cluster=devnet" # cluster query is preserved in links; Solscan uses /account/ + /tx/
confirmations: 1 # at finalized commitment a scanned slot is already final
start_block: 0 # 0 = start from the current finalized slot
poll_interval_ms: 2000
block_batch: 10 # max slots scanned per iteration (skipped slots are cheap)