-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.config.example.toml
More file actions
59 lines (47 loc) · 2.21 KB
/
.config.example.toml
File metadata and controls
59 lines (47 loc) · 2.21 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
#name = "chronicle"
#
#[[indexer]]
#event_name = "lab9"
#state_machine = "EVM"
#rpc_url = "RPC url"
#address = "0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984" # UNI token
#event_signature = "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef" # Transfer(address,address,uint256)
#block_number = 19711184
#db_url = "host=localhost user=postgres"
#
#[server]
#db_url = "host=localhost user=postgres"
#server_url = "127.0.0.1:8010"
#
#MULTI-DATABASE
name = "chronicle"
# ────────────────── INDEXER 1 (UNI) ──────────────────
[[indexer]]
event_name = "unitransfer"
state_machine = "EVM"
rpc_url = "wss://eth-mainnet.g.alchemy.com/v2/PP5-km-xd8s0Ui0FrVxyBSEfD_UhS0e9"
address = "0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984"
event_signature = "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
block_number = 29889633
db_url = "host=localhost user=postgres password=secret dbname=uni_index port=5432"
# ────────────────── INDEXER 2 (WETH) ──────────────────
[[indexer]]
event_name = "wethtransfer"
state_machine = "EVM"
rpc_url = "wss://eth-mainnet.g.alchemy.com/v2/PP5-km-xd8s0Ui0FrVxyBSEfD_UhS0e9"
address = "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
event_signature = "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
block_number = 29889633
db_url = "host=localhost user=postgres password=secret dbname=weth_index port=5432"
# ────────────────── SERVER (single source of truth) ──────────────────
[server]
# ONE connection string → the server will route queries using event_name
#db_url = "host=localhost user=postgres password=secret dbname=chronicle_meta port=5432"
server_url = "127.0.0.1:8010"
# Map event_name → database
[[server.db_routes]]
event_name = "unitransfer"
db_url = "host=localhost user=postgres password=secret dbname=uni_index port=5432"
[[server.db_routes]]
event_name = "wethtransfer"
db_url = "host=localhost user=postgres password=secret dbname=weth_index port=5432"