-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.yaml
More file actions
48 lines (47 loc) · 1.07 KB
/
config.yaml
File metadata and controls
48 lines (47 loc) · 1.07 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
version: 1
global:
db_path: "./watch_tower.db"
confirmations:
evm: 12
algorand: 10
sources:
- id: evm_main
type: evm
rpc_url: ${EVM_RPC_URL}
start_block: "latest-5000"
abi_dirs: ["./abis"]
- id: algo_main
type: algorand
algod_url: ${ALGOD_URL}
indexer_url: ${ALGO_INDEXER_URL}
start_round: "latest-10000"
rules:
- id: usdc_whale
source: evm_main
match:
type: log
contract: "0xA0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
event: "Transfer(address,address,uint256)"
where:
- "value >= 1_000_000 * 1e6"
sinks: ["slack_ops", "risk_webhook"]
dedupe:
key: "txhash:logIndex"
ttl: "24h"
- id: algo_app_watch
source: algo_main
match:
type: app_call
app_id: 12345678
where:
- "sender in env(ALLOWED_SENDERS)"
sinks: ["slack_ops"]
sinks:
- id: slack_ops
type: slack
webhook_url: ${SLACK_WEBHOOK_URL}
template: "ALERT {{rule_id}} {{chain}} {{txhash}} {{pretty_json}}"
- id: risk_webhook
type: webhook
url: ${RISK_WEBHOOK}
method: POST