|
1 | | -spec_version: 0.0.1 |
2 | | -package: demo_quipuswap |
3 | | - |
4 | 1 | database: |
5 | 2 | kind: postgres |
6 | 3 | host: db |
7 | 4 | port: 5432 |
8 | | - user: dipdup |
9 | | - password: changeme |
10 | | - database: dipdup |
| 5 | + user: ${POSTGRES_USER:-dipdup} |
| 6 | + password: ${POSTGRES_PASSWORD:-changeme} |
| 7 | + database: ${POSTGRES_DB:-dipdup} |
11 | 8 | schema_name: quipuswap |
12 | 9 |
|
13 | 10 | hasura: |
14 | 11 | url: http://hasura:8080 |
15 | | - admin_secret: changeme |
16 | | - |
17 | | -contracts: |
18 | | - kusd_dex_mainnet: |
19 | | - address: KT1CiSKXR68qYSxnbzjwvfeMCRburaSDonT2 |
20 | | - typename: quipu_fa12 |
21 | | - tzbtc_dex_mainnet: |
22 | | - address: KT1N1wwNPqT5jGhM91GQ2ae5uY8UzFaXHMJS |
23 | | - typename: quipu_fa12 |
24 | | - kusd_token_mainnet: |
25 | | - address: KT1K9gCRgaLRFKTErYt1wVxA3Frb9FjasjTV |
26 | | - typename: fa12_token |
27 | | - tzbtc_token_mainnet: |
28 | | - address: KT1PWx2mnDueood7fEmfbBDKx1D9BAnnXitn |
29 | | - typename: fa12_token |
30 | | - hdao_dex_mainnet: |
31 | | - address: KT1V41fGzkdTJki4d11T1Rp9yPkCmDhB7jph |
32 | | - typename: quipu_fa2 |
33 | | - hdao_token_mainnet: |
34 | | - address: KT1AFA2mwNUMNd4SsujE1YYp29vd8BZejyKW |
35 | | - typename: fa2_token |
36 | | - |
37 | | -datasources: |
38 | | - tzkt_staging_mainnet: |
39 | | - kind: tzkt |
40 | | - url: https://staging.api.tzkt.io |
41 | | - |
42 | | -templates: |
43 | | - quipuswap_fa12: |
44 | | - kind: operation |
45 | | - datasource: tzkt_staging_mainnet |
46 | | - contract: <dex_contract> |
47 | | - handlers: |
48 | | - - callback: on_fa12_token_to_tez |
49 | | - pattern: |
50 | | - - destination: <dex_contract> |
51 | | - entrypoint: tokenToTezPayment |
52 | | - - destination: <token_contract> |
53 | | - entrypoint: transfer |
54 | | - - callback: on_fa12_tez_to_token |
55 | | - pattern: |
56 | | - - destination: <dex_contract> |
57 | | - entrypoint: tezToTokenPayment |
58 | | - - destination: <token_contract> |
59 | | - entrypoint: transfer |
60 | | - - callback: on_fa12_invest_liquidity |
61 | | - pattern: |
62 | | - - destination: <dex_contract> |
63 | | - entrypoint: investLiquidity |
64 | | - - destination: <token_contract> |
65 | | - entrypoint: transfer |
66 | | - - callback: on_fa12_divest_liquidity |
67 | | - pattern: |
68 | | - - destination: <dex_contract> |
69 | | - entrypoint: divestLiquidity |
70 | | - - destination: <token_contract> |
71 | | - entrypoint: transfer |
72 | | - - callback: on_fa12_withdraw_profit |
73 | | - pattern: |
74 | | - - destination: <dex_contract> |
75 | | - entrypoint: withdrawProfit |
76 | | - |
77 | | - quipuswap_fa2: |
78 | | - kind: operation |
79 | | - datasource: tzkt_staging_mainnet |
80 | | - contract: <dex_contract> |
81 | | - handlers: |
82 | | - - callback: on_fa2_token_to_tez |
83 | | - pattern: |
84 | | - - destination: <dex_contract> |
85 | | - entrypoint: tokenToTezPayment |
86 | | - - destination: <token_contract> |
87 | | - entrypoint: transfer |
88 | | - - callback: on_fa2_tez_to_token |
89 | | - pattern: |
90 | | - - destination: <dex_contract> |
91 | | - entrypoint: tezToTokenPayment |
92 | | - - destination: <token_contract> |
93 | | - entrypoint: transfer |
94 | | - - callback: on_fa20_invest_liquidity |
95 | | - pattern: |
96 | | - - destination: <dex_contract> |
97 | | - entrypoint: investLiquidity |
98 | | - - destination: <token_contract> |
99 | | - entrypoint: transfer |
100 | | - - callback: on_fa20_divest_liquidity |
101 | | - pattern: |
102 | | - - destination: <dex_contract> |
103 | | - entrypoint: divestLiquidity |
104 | | - - destination: <token_contract> |
105 | | - entrypoint: transfer |
106 | | - - callback: on_fa20_withdraw_profit |
107 | | - pattern: |
108 | | - - destination: <dex_contract> |
109 | | - entrypoint: withdrawProfit |
110 | | - |
111 | | -indexes: |
112 | | - kusd_mainnet: |
113 | | - template: quipuswap_fa12 |
114 | | - values: |
115 | | - dex_contract: kusd_dex_mainnet |
116 | | - token_contract: kusd_token_mainnet |
117 | | - symbol: kUSD |
118 | | - decimals: 18 |
119 | | - |
120 | | - # tzbtc_mainnet: |
121 | | - # template: quipuswap_fa12 |
122 | | - # values: |
123 | | - # dex_contract: tzbtc_dex_mainnet |
124 | | - # token_contract: tzbtc_token_mainnet |
125 | | - # symbol: tzBTC |
126 | | - # decimals: 8 |
127 | | - |
128 | | - hdao_mainnet: |
129 | | - template: quipuswap_fa2 |
130 | | - values: |
131 | | - dex_contract: hdao_dex_mainnet |
132 | | - token_contract: hdao_token_mainnet |
133 | | - symbol: hDAO |
134 | | - decimals: 6 |
| 12 | + admin_secret: ${ADMIN_SECRET:-changeme} |
0 commit comments