|
| 1 | +spec_version: 0.0.1 |
| 2 | +package: demo_quipuswap |
| 3 | + |
| 4 | +database: |
| 5 | + kind: postgres |
| 6 | + host: db |
| 7 | + port: 5432 |
| 8 | + user: dipdup |
| 9 | + password: changeme |
| 10 | + database: dipdup |
| 11 | + schema_name: quipuswap |
| 12 | + |
| 13 | +hasura: |
| 14 | + 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 | + |
| 73 | + quipuswap_fa2: |
| 74 | + kind: operation |
| 75 | + datasource: tzkt_staging_mainnet |
| 76 | + contract: <dex_contract> |
| 77 | + handlers: |
| 78 | + - callback: on_fa2_token_to_tez |
| 79 | + pattern: |
| 80 | + - destination: <dex_contract> |
| 81 | + entrypoint: tokenToTezPayment |
| 82 | + - destination: <token_contract> |
| 83 | + entrypoint: transfer |
| 84 | + - callback: on_fa2_tez_to_token |
| 85 | + pattern: |
| 86 | + - destination: <dex_contract> |
| 87 | + entrypoint: tezToTokenPayment |
| 88 | + - destination: <token_contract> |
| 89 | + entrypoint: transfer |
| 90 | + - callback: on_fa20_invest_liquidity |
| 91 | + pattern: |
| 92 | + - destination: <dex_contract> |
| 93 | + entrypoint: investLiquidity |
| 94 | + - destination: <token_contract> |
| 95 | + entrypoint: transfer |
| 96 | + - callback: on_fa20_divest_liquidity |
| 97 | + pattern: |
| 98 | + - destination: <dex_contract> |
| 99 | + entrypoint: divestLiquidity |
| 100 | + - destination: <token_contract> |
| 101 | + entrypoint: transfer |
| 102 | + |
| 103 | +indexes: |
| 104 | + kusd_mainnet: |
| 105 | + template: quipuswap_fa12 |
| 106 | + values: |
| 107 | + dex_contract: kusd_dex_mainnet |
| 108 | + token_contract: kusd_token_mainnet |
| 109 | + symbol: kUSD |
| 110 | + decimals: 18 |
| 111 | + |
| 112 | + # tzbtc_mainnet: |
| 113 | + # template: quipuswap_fa12 |
| 114 | + # values: |
| 115 | + # dex_contract: tzbtc_dex_mainnet |
| 116 | + # token_contract: tzbtc_token_mainnet |
| 117 | + # symbol: tzBTC |
| 118 | + # decimals: 8 |
| 119 | + |
| 120 | + hdao_mainnet: |
| 121 | + template: quipuswap_fa2 |
| 122 | + values: |
| 123 | + dex_contract: hdao_dex_mainnet |
| 124 | + token_contract: hdao_token_mainnet |
| 125 | + symbol: hDAO |
| 126 | + decimals: 6 |
0 commit comments