-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestnet_config.yml
502 lines (496 loc) · 14 KB
/
testnet_config.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
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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
spec_version: 1.2
package: youves
database:
kind: postgres
host: ${DB_HOST:-db}
port: 5432
user: ${DB_USER:-dipdup}
password: ${POSTGRES_PASSWORD:-dipdup}
database: ${DB_NAME:-dipdup}
contracts:
tez_uusd_engine:
address: KT1MBu8ZU2gRdkC4Ahg54Zc33Q8CrT2ZVmnB
typename: youves_tez_engine_v2
tzbtclp_uusd_engine:
address: KT1LHhNhxa7sPXtUmie7p6VbLiCtyYbU5GF8
typename: youves_token_engine_v2
uusd_uxau_engine:
address: KT1Lmy1SyjeFj8DNxvbHnmMjtbmmBHL9ETr4
typename: youves_token_engine_v2
udefi_engine:
address: KT1AzpPgkZ7QK1MTe14H8eKPPKzrBW3Npvy6
typename: youves_token_engine_v1
uusd_target_oracle:
address: KT1KDrE5XfWxrSTY1d9P8Z7iCxThxiWWZzRb
typename: target_price_oracle_v4
udefi_target_oracle:
address: KT1KDrE5XfWxrSTY1d9P8Z7iCxThxiWWZzRb
typename: target_price_oracle_v4
udefi_intents:
address: KT1FK1i7QYK7X7252nqCzf5pcicxC33FZ1v8
typename: youves_fa2_intents
tzbtclp_uusd_intents:
address: KT1PB4pFRGLLdhgfLjfZ9TKc13Ev6Mznh5TQ
typename: youves_fa2_intents
tez_uusd_intents:
address: KT1HAT9FSkzA3mDqg3MwX5Eyh7qMTDsxNVm9
typename: youves_tez_intents
uusd_uxau_intents:
address: KT1AhQqRf2tBUcyL3CUqVgEJKZGPxnG2kELQ
typename: youves_fa2_intents
uusd_savings:
address: KT1Wc6yZMfoy2kkdZAf8mQJhBku2AdcY4Jhv
typename: youves_savings
udefi_savings:
address: KT1NY67v4iyM2tHXkBLPed69GqyvMEF6sano
typename: youves_savings
quipuswap_uusd_amm:
address: KT1DYx1uoEfKKYhJm4gAZBBHpuWVzwMzWdCV
typename: quipuswap_amm
quipuswap_governance_amm:
address: KT1D6DLJgG4kJ7A5JgT4mENtcQh9Tp3BLMVQ
typename: quipuswap_amm
quipuswap_udefi_amm:
address: KT1RgmsYqUSDdsQUhEmf4sKiBKWAX6KsVwkn
typename: quipuswap_amm
# plenty_uusd_amm:
# address: ${PLENTY_UUSD_AMM:-KT1JbUFVGrMCpW39UtH97dMkG2nMMrefQLLa}
# typename: plenty_amm
# plenty_udefi_amm:
# address: ${PLENTY_UDEFI_AMM:-KT1EAw8hL5zseB3SLpJhBqPQfP9aWrWh8iMW}
# typename: plenty_amm
# plenty_governance_amm:
# address: ${PLENTY_GOVERNANCE_AMM:-KT1TnrLFrdemNZ1AnnWNfi21rXg7eknS484C}
# typename: plenty_amm
governance_token_contract:
address: KT1C2sbavT9BuMnKEBCm9bot6HSUuCKDfK3s
typename: governance_token_contract
assets_token_contract:
address: KT1PiqMJSEsZkFruWMKMpoAmRVumKk9LavX3
typename: assets_token_contract
datasources:
tzkt_data:
kind: tzkt
url: ${TZKT_URL:-https://api.hangzhou2net.tzkt.io}
templates:
youves_savings:
kind: operation
datasource: <datasource>
contracts:
- <savings>
handlers:
- callback: on_savings_deposit
pattern:
- type: transaction
destination: <savings>
entrypoint: internal_deposit
- callback: on_savings_withdraw
pattern:
- type: transaction
destination: <savings>
entrypoint: internal_withdraw
- callback: on_savings_bailout
pattern:
- type: transaction
destination: <savings>
entrypoint: internal_bailout
- callback: on_savings_default
pattern:
- type: transaction
destination: <savings>
entrypoint: default
quipuswap_amm:
kind: operation
datasource: <datasource>
contracts:
- <amm>
handlers:
- callback: on_tez_to_token
pattern:
- type: transaction
destination: <amm>
entrypoint: tezToTokenPayment
- callback: on_token_to_tez
pattern:
- type: transaction
destination: <amm>
entrypoint: tokenToTezPayment
- callback: on_invest_liquidity
pattern:
- type: transaction
destination: <amm>
entrypoint: investLiquidity
- callback: on_divest_liquidity
pattern:
- type: transaction
destination: <amm>
entrypoint: divestLiquidity
plenty_amm:
kind: operation
datasource: <datasource>
contracts:
- <amm>
handlers:
- callback: on_add_liquidity
pattern:
- type: transaction
destination: <amm>
entrypoint: AddLiquidity
- callback: on_remove_liquidity
pattern:
- type: transaction
destination: <amm>
entrypoint: RemoveLiquidity
- callback: on_swap
pattern:
- type: transaction
destination: <amm>
entrypoint: Swap
youves_tez_engine:
kind: operation
datasource: <datasource>
contracts:
- <intents>
- <engine>
handlers:
- callback: on_advertise_intent
pattern:
- type: transaction
destination: <intents>
entrypoint: advertise_intent
- callback: on_fullfill_intent
pattern:
- type: transaction
destination: <intents>
entrypoint: internal_fulfill_intent
- callback: on_remove_intent
pattern:
- type: transaction
destination: <intents>
entrypoint: remove_intent
- callback: on_execute_intent
pattern:
- type: transaction
destination: <intents>
entrypoint: execute_intent
- callback: on_bailout_vault
pattern:
- type: transaction
destination: <engine>
entrypoint: internal_bailout
- callback: on_burn_vault
pattern:
- type: transaction
destination: <engine>
entrypoint: burn
- callback: on_create_vault
pattern:
- type: transaction
destination: <engine>
entrypoint: create_vault
- callback: on_liquidate_vault
pattern:
- type: transaction
destination: <engine>
entrypoint: internal_liquidate
- callback: on_mint_vault
pattern:
- type: transaction
destination: <engine>
entrypoint: mint
- callback: on_set_vault_balance
pattern:
- type: transaction
destination: <engine>
entrypoint: set_vault_balance
- callback: on_settle_with_vault
pattern:
- type: transaction
destination: <engine>
entrypoint: internal_settle_with_vault
- callback: on_withdraw
pattern:
- type: transaction
destination: <engine>
entrypoint: internal_withdraw
youves_token_engine:
kind: operation
datasource: <datasource>
contracts:
- <intents>
- <engine>
handlers:
- callback: on_advertise_intent
pattern:
- type: transaction
destination: <intents>
entrypoint: advertise_intent
- callback: on_fullfill_intent
pattern:
- type: transaction
destination: <intents>
entrypoint: internal_fulfill_intent
- callback: on_remove_intent
pattern:
- type: transaction
destination: <intents>
entrypoint: remove_intent
- callback: on_execute_intent
pattern:
- type: transaction
destination: <intents>
entrypoint: execute_intent
- callback: on_bailout_vault
pattern:
- type: transaction
destination: <engine>
entrypoint: internal_bailout
- callback: on_burn_vault
pattern:
- type: transaction
destination: <engine>
entrypoint: burn
- callback: on_create_vault
pattern:
- type: transaction
destination: <engine>
entrypoint: create_vault
- callback: on_liquidate_vault
pattern:
- type: transaction
destination: <engine>
entrypoint: internal_liquidate
- callback: on_mint_vault
pattern:
- type: transaction
destination: <engine>
entrypoint: mint
- callback: on_settle_with_vault
pattern:
- type: transaction
destination: <engine>
entrypoint: internal_settle_with_vault
- callback: on_deposit_fa2
pattern:
- type: transaction
destination: <engine>
entrypoint: deposit
- callback: on_withdraw
pattern:
- type: transaction
destination: <engine>
entrypoint: internal_withdraw
youves_token_engine_v2:
kind: operation
datasource: <datasource>
contracts:
- <intents>
- <engine>
handlers:
- callback: on_advertise_intent
pattern:
- type: transaction
destination: <intents>
entrypoint: advertise_intent
- callback: on_fullfill_intent
pattern:
- type: transaction
destination: <intents>
entrypoint: internal_fulfill_intent
- callback: on_remove_intent
pattern:
- type: transaction
destination: <intents>
entrypoint: remove_intent
- callback: on_execute_intent
pattern:
- type: transaction
destination: <intents>
entrypoint: execute_intent
- callback: on_bailout_vault
pattern:
- type: transaction
destination: <engine>
entrypoint: bailout
- callback: on_burn_vault
pattern:
- type: transaction
destination: <engine>
entrypoint: burn
- callback: on_create_vault
pattern:
- type: transaction
destination: <engine>
entrypoint: create_vault
- callback: on_liquidate_vault
pattern:
- type: transaction
destination: <engine>
entrypoint: liquidate
- callback: on_mint_vault
pattern:
- type: transaction
destination: <engine>
entrypoint: mint
- callback: on_settle_with_vault
pattern:
- type: transaction
destination: <engine>
entrypoint: settle_with_vault
- callback: on_deposit_fa2
pattern:
- type: transaction
destination: <engine>
entrypoint: deposit
- callback: on_withdraw
pattern:
- type: transaction
destination: <engine>
entrypoint: withdraw
target_price_oracle_v1:
kind: operation
datasource: <datasource>
contracts:
- <target_oracle>
handlers:
- callback: on_set_price
pattern:
- type: transaction
destination: <target_oracle>
entrypoint: set_price
target_price_oracle_v3:
kind: operation
datasource: <datasource>
contracts:
- <target_oracle>
handlers:
- callback: on_set_price
pattern:
- type: transaction
destination: <target_oracle>
entrypoint: fulfill
governance_token_contract:
kind: operation
datasource: <datasource>
contracts:
- <fa2>
handlers:
- callback: on_governance_token_transfer
pattern:
- type: transaction
destination: <fa2>
entrypoint: transfer
assets_token_contract:
kind: operation
datasource: <datasource>
contracts:
- <fa2>
handlers:
- callback: on_assets_token_transfer
pattern:
- type: transaction
destination: <fa2>
entrypoint: transfer
- callback: on_assets_token_mint
pattern:
- type: transaction
destination: <fa2>
entrypoint: mint
- callback: on_assets_token_burn
pattern:
- type: transaction
destination: <fa2>
entrypoint: burn
indexes:
tez_uusd_engine:
template: youves_tez_engine
values:
datasource: tzkt_data
intents: tez_uusd_intents
engine: tez_uusd_engine
tzbtclp_uusd_engine:
template: youves_token_engine_v2
values:
datasource: tzkt_data
intents: tzbtclp_uusd_intents
engine: tzbtclp_uusd_engine
uusd_uxau_engine:
template: youves_token_engine_v2
values:
datasource: tzkt_data
intents: uusd_uxau_intents
engine: uusd_uxau_engine
udefi_engine:
template: youves_token_engine
values:
datasource: tzkt_data
intents: udefi_intents
engine: udefi_engine
# uusd_target_oracle:
# template: target_price_oracle_v1
# values:
# datasource: tzkt_data
# target_oracle: uusd_target_oracle
# udefi_target_oracle:
# template: target_price_oracle_v3
# values:
# datasource: tzkt_data
# target_oracle: udefi_target_oracle
uusd_savings:
template: youves_savings
values:
datasource: tzkt_data
savings: uusd_savings
udefi_savings:
template: youves_savings
values:
datasource: tzkt_data
savings: udefi_savings
quipuswap_uusd_amm:
template: quipuswap_amm
values:
datasource: tzkt_data
amm: quipuswap_uusd_amm
quipuswap_udefi_amm:
template: quipuswap_amm
values:
datasource: tzkt_data
amm: quipuswap_udefi_amm
quipuswap_governance_amm:
template: quipuswap_amm
values:
datasource: tzkt_data
amm: quipuswap_governance_amm
# plenty_uusd_amm:
# template: plenty_amm
# values:
# datasource: tzkt_data
# amm: plenty_uusd_amm
# plenty_udefi_amm:
# template: plenty_amm
# values:
# datasource: tzkt_data
# amm: plenty_udefi_amm
# plenty_governance_amm:
# template: plenty_amm
# values:
# datasource: tzkt_data
# amm: plenty_governance_amm
governance_token_contract:
template: governance_token_contract
values:
datasource: tzkt_data
fa2: governance_token_contract
assets_token_contract:
template: assets_token_contract
values:
datasource: tzkt_data
fa2: assets_token_contract
hasura:
url: ${HASURA_HOST:-http://hasura:8080}
admin_secret: ${HASURA_ADMIN_SECRET:-changeme}
# with v4.0.0 the following should be valid
# advanced:
# MIGRATION: wipe
# CONFIG_HASH_MISMATCH: wipe
# SCHEMA_HASH_MISMATCH: wipe