-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdipdup.yaml
169 lines (163 loc) · 4.75 KB
/
dipdup.yaml
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
spec_version: 2.0
package: dipdup_indexer_dex_test_2
contracts:
kusd_dex_mainnet:
kind: tezos
address: KT1K4EwTpbvYN9agJdjpyJm4ZZdhpUNKB3F6
typename: quipu_fa12
kusd_token_mainnet:
kind: tezos
address: KT1K9gCRgaLRFKTErYt1wVxA3Frb9FjasjTV
typename: fa12_token
hdao_dex_mainnet:
kind: tezos
address: KT1QxLqukyfohPV5kPkw97Rs6cw1DDDvYgbB
typename: quipu_fa2
hdao_token_mainnet:
kind: tezos
address: KT1AFA2mwNUMNd4SsujE1YYp29vd8BZejyKW
typename: fa2_token
datasources:
tzkt_mainnet:
kind: tezos.tzkt
url: https://api.tzkt.io
templates:
quipuswap_fa12:
kind: tezos.tzkt.operations
datasource: tzkt_mainnet
contracts:
- <dex_contract>
types:
- transaction
- origination
handlers:
- callback: on_fa12_origination
pattern:
- type: origination
originated_contract: <dex_contract>
- callback: on_fa12_token_to_tez
pattern:
- type: transaction
destination: <dex_contract>
entrypoint: tokenToTezPayment
- type: transaction
destination: <token_contract>
entrypoint: transfer
- type: transaction
source: <dex_contract>
- callback: on_fa12_tez_to_token
pattern:
- type: transaction
destination: <dex_contract>
entrypoint: tezToTokenPayment
- type: transaction
destination: <token_contract>
entrypoint: transfer
- callback: on_fa12_invest_liquidity
pattern:
- type: transaction
destination: <dex_contract>
entrypoint: investLiquidity
- type: transaction
destination: <token_contract>
entrypoint: transfer
- callback: on_fa12_transfer
pattern:
- type: transaction
destination: <dex_contract>
entrypoint: transfer
- callback: on_fa12_divest_liquidity
pattern:
- type: transaction
destination: <dex_contract>
entrypoint: divestLiquidity
- type: transaction
destination: <token_contract>
entrypoint: transfer
- type: transaction
source: <dex_contract>
- callback: on_fa12_withdraw_profit
pattern:
- type: transaction
destination: <dex_contract>
entrypoint: withdrawProfit
- type: transaction
source: <dex_contract>
optional: True
quipuswap_fa2:
kind: tezos.tzkt.operations
datasource: tzkt_mainnet
contracts:
- <dex_contract>
types:
- transaction
- origination
handlers:
- callback: on_fa2_origination
pattern:
- type: origination
originated_contract: <dex_contract>
- callback: on_fa2_token_to_tez
pattern:
- type: transaction
destination: <dex_contract>
entrypoint: tokenToTezPayment
- type: transaction
destination: <token_contract>
entrypoint: transfer
- type: transaction
source: <dex_contract>
- callback: on_fa2_tez_to_token
pattern:
- type: transaction
destination: <dex_contract>
entrypoint: tezToTokenPayment
- type: transaction
destination: <token_contract>
entrypoint: transfer
- callback: on_fa2_invest_liquidity
pattern:
- type: transaction
destination: <dex_contract>
entrypoint: investLiquidity
- type: transaction
destination: <token_contract>
entrypoint: transfer
- callback: on_fa2_transfer
pattern:
- type: transaction
destination: <dex_contract>
entrypoint: transfer
- callback: on_fa2_divest_liquidity
pattern:
- type: transaction
destination: <dex_contract>
entrypoint: divestLiquidity
- type: transaction
destination: <token_contract>
entrypoint: transfer
- type: transaction
source: <dex_contract>
- callback: on_fa2_withdraw_profit
pattern:
- type: transaction
destination: <dex_contract>
entrypoint: withdrawProfit
- type: transaction
source: <dex_contract>
optional: True
indexes:
kusd_mainnet:
template: quipuswap_fa12
values:
dex_contract: kusd_dex_mainnet
token_contract: kusd_token_mainnet
symbol: kUSD
decimals: 18
hdao_mainnet:
template: quipuswap_fa2
values:
dex_contract: hdao_dex_mainnet
token_contract: hdao_token_mainnet
symbol: hDAO
decimals: 6