-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdipdup.yml
73 lines (67 loc) · 1.61 KB
/
dipdup.yml
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
61
62
63
64
65
66
67
68
69
70
71
72
73
spec_version: 1.2
package: quipuswap_v3_indexer
logging: verbose
database:
kind: postgres
host: ${POSTGRES_HOST:-localhost}
port: ${POSTGRES_PORT:-5432}
user: ${POSTGRES_USER:-postgres}
password: ${POSTGRES_PASSWORD:-changeme}
database: ${POSTGRES_DB:-postgres}
schema_name: public
contracts:
v3_factory:
address: KT1JNNMMGyNNy36Zo6pcgRTMLUZyqRrttMZ4
typename: v3_factory
datasources:
tzkt:
kind: tzkt
url: https://api.tzkt.io
templates:
swaps:
kind: operation
datasource: tzkt
types:
- transaction
contracts:
- <pool>
handlers:
- callback: on_x_to_y
pattern:
- type: transaction
destination: <pool>
entrypoint: x_to_y
- type: transaction
destination: <token_x>
entrypoint: transfer
- type: transaction
destination: <token_y>
entrypoint: transfer
- callback: on_y_to_x
pattern:
- type: transaction
destination: <pool>
entrypoint: y_to_x
- type: transaction
destination: <token_y>
entrypoint: transfer
- type: transaction
destination: <token_x>
entrypoint: transfer
indexes:
factories:
kind: operation
datasource: tzkt
types:
- origination
- transaction
contracts:
- v3_factory
handlers:
- callback: on_pool_origination
pattern:
- type: transaction
destination: v3_factory
entrypoint: deploy_pool
- type: origination
source: v3_factory