@instadapp/interop-x 0.0.0-dev.8cb1c22 → 0.0.0-dev.909c44a

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. package/dist/package.json +9 -2
  2. package/dist/src/abi/aaveV2Resolver.json +832 -0
  3. package/dist/src/abi/aaveV3Resolver.json +628 -0
  4. package/dist/src/abi/balanceResolver.json +211 -0
  5. package/dist/src/abi/connectors/index.js +2 -2
  6. package/dist/src/abi/connectors/v2/1INCH-A.js +39 -1
  7. package/dist/src/abi/connectors/v2/1INCH-V3-A.js +42 -0
  8. package/dist/src/abi/connectors/v2/1INCH-V4-A.js +42 -0
  9. package/dist/src/abi/connectors/v2/AAVE-IMPORT-V2-V3-A.js +57 -0
  10. package/dist/src/abi/connectors/v2/AAVE-V2-A.js +91 -133
  11. package/dist/src/abi/connectors/v2/AAVE-V2-IMPORT-C.js +4 -0
  12. package/dist/src/abi/connectors/v2/AAVE-V3-A.js +322 -0
  13. package/dist/src/abi/connectors/v2/AAVE-V3-CLAIM-A.js +58 -0
  14. package/dist/src/abi/connectors/v2/AAVE-V3-IMPORT-A.js +59 -0
  15. package/dist/src/abi/connectors/v2/AAVE-V3-IMPORT-PERMIT-A.js +81 -0
  16. package/dist/src/abi/connectors/v2/BASIC-A.js +44 -86
  17. package/dist/src/abi/connectors/v2/BENQI-A.js +901 -0
  18. package/dist/src/abi/connectors/v2/COMPOUND-IMPORT-C.js +4 -0
  19. package/dist/src/abi/connectors/v2/COMPOUND-IMPORT-D.js +27 -0
  20. package/dist/src/abi/connectors/v2/DSA-SPELL-A.js +60 -0
  21. package/dist/src/abi/connectors/v2/HOP-A.js +41 -0
  22. package/dist/src/abi/connectors/v2/HOP-MAINNET-A.js +38 -0
  23. package/dist/src/abi/connectors/v2/INSTA-DEX-SIMULATION-A.js +40 -0
  24. package/dist/src/abi/connectors/v2/INSTAPOOL-B.js +4 -0
  25. package/dist/src/abi/connectors/v2/INSTAPOOL-C.js +4 -0
  26. package/dist/src/abi/connectors/v2/INTEROP-A.js +4 -0
  27. package/dist/src/abi/connectors/v2/INTEROP-STAGING-A.js +4 -0
  28. package/dist/src/abi/connectors/v2/LIDO-STETH-A.js +36 -0
  29. package/dist/src/abi/connectors/v2/LITE-A.js +4 -0
  30. package/dist/src/abi/connectors/v2/MSTABLE-A.js +4 -0
  31. package/dist/src/abi/connectors/v2/NOTIONAL-V2-A.js +484 -0
  32. package/dist/src/abi/connectors/v2/PANGOLIN-A.js +136 -0
  33. package/dist/src/abi/connectors/v2/PANGOLIN-STAKE-A.js +227 -0
  34. package/dist/src/abi/connectors/v2/PARASWAP-A.js +26 -1
  35. package/dist/src/abi/connectors/v2/PARASWAP-V5-A.js +29 -0
  36. package/dist/src/abi/connectors/v2/POOLTOGETHER-A.js +4 -0
  37. package/dist/src/abi/connectors/v2/QI-A.js +4 -0
  38. package/dist/src/abi/connectors/v2/QUICKSWAP-A.js +136 -0
  39. package/dist/src/abi/connectors/v2/SUSHISWAP-A.js +136 -0
  40. package/dist/src/abi/connectors/v2/SWAP-AGGREGATOR-A.js +25 -0
  41. package/dist/src/abi/connectors/v2/UBIQUITY-A.js +73 -0
  42. package/dist/src/abi/connectors/v2/UNISWAP-SELL-BETA.js +4 -0
  43. package/dist/src/abi/connectors/v2/UNISWAP-V3-A.js +1 -1
  44. package/dist/src/abi/connectors/v2/UNISWAP-V3-ROUTER-A.js +4 -0
  45. package/dist/src/abi/connectors/v2/UNISWAP-V3-STAKER-B.js +193 -0
  46. package/dist/src/abi/connectors/v2/UNISWAP-V3-SWAP-A.js +74 -0
  47. package/dist/src/abi/connectors/v2/UNIVERSE-A.js +4 -0
  48. package/dist/src/abi/connectors/v2/WAVAX-A.js +4 -0
  49. package/dist/src/abi/connectors/v2/WFTM-A.js +60 -0
  50. package/dist/src/abi/connectors/v2/WMATIC-A.js +4 -0
  51. package/dist/src/abi/connectors/v2/ZEROX-A.js +29 -0
  52. package/dist/src/abi/connectors/v2/ZEROX-V4-A.js +29 -0
  53. package/dist/src/abi/connectors/v2/index.js +128 -44
  54. package/dist/src/abi/index.js +8 -0
  55. package/dist/src/abi/instList.json +232 -0
  56. package/dist/src/api/index.js +7 -0
  57. package/dist/src/constants/addresses.js +9 -1
  58. package/dist/src/constants/capPerChain.js +8 -0
  59. package/dist/src/constants/index.js +2 -0
  60. package/dist/src/constants/tokens.js +44 -44
  61. package/dist/src/constants/wrappedNativeToken.js +8 -0
  62. package/dist/src/crons/index.js +3 -0
  63. package/dist/src/crons/prices.js +16 -0
  64. package/dist/src/db/models/transaction.js +5 -1
  65. package/dist/src/errors/index.js +30 -0
  66. package/dist/src/gnosis/actions/aaveV2/source.js +26 -1
  67. package/dist/src/gnosis/actions/aaveV2/target.js +20 -5
  68. package/dist/src/gnosis/actions/aaveV3/index.js +11 -0
  69. package/dist/src/gnosis/actions/aaveV3/source.js +74 -0
  70. package/dist/src/gnosis/actions/aaveV3/target.js +87 -0
  71. package/dist/src/gnosis/actions/index.js +2 -0
  72. package/dist/src/index.js +2 -1
  73. package/dist/src/providers/index.js +17 -0
  74. package/dist/src/providers/retry-provider.js +45 -0
  75. package/dist/src/services/Prices.js +74 -0
  76. package/dist/src/services/index.js +8 -0
  77. package/dist/src/tasks/InteropX/{ProcessSubmitSubmitEvents.js → ProcessSubmitEvents.js} +110 -16
  78. package/dist/src/tasks/InteropX/ProcessValidateEvents.js +30 -10
  79. package/dist/src/tasks/InteropX/SyncLogExecuteEvents.js +113 -0
  80. package/dist/src/tasks/InteropX/SyncLogSubmitEvents.js +3 -2
  81. package/dist/src/tasks/InteropX/SyncLogValidateEvents.js +6 -5
  82. package/dist/src/tasks/index.js +7 -5
  83. package/dist/src/typechain/AaveV2Resolver.js +2 -0
  84. package/dist/src/typechain/AaveV3Resolver.js +2 -0
  85. package/dist/src/typechain/BalanceResolver.js +2 -0
  86. package/dist/src/typechain/InstList.js +2 -0
  87. package/dist/src/typechain/factories/AaveV2Resolver__factory.js +1191 -0
  88. package/dist/src/typechain/factories/AaveV3Resolver__factory.js +887 -0
  89. package/dist/src/typechain/factories/BalanceResolver__factory.js +228 -0
  90. package/dist/src/typechain/factories/InstList__factory.js +249 -0
  91. package/dist/src/typechain/factories/index.js +9 -1
  92. package/dist/src/typechain/index.js +9 -1
  93. package/dist/src/utils/async.js +18 -0
  94. package/dist/src/utils/dsa.js +36 -0
  95. package/dist/src/utils/formatting.js +67 -0
  96. package/dist/src/utils/gnosis.js +87 -0
  97. package/dist/src/utils/http.js +10 -0
  98. package/dist/src/utils/index.js +22 -220
  99. package/dist/src/utils/interop.js +16 -0
  100. package/dist/src/utils/tokens.js +22 -0
  101. package/dist/src/utils/validate.js +111 -0
  102. package/dist/src/utils/web3.js +93 -0
  103. package/package.json +9 -2
  104. package/src/abi/aaveV2Resolver.json +832 -0
  105. package/src/abi/aaveV3Resolver.json +628 -0
  106. package/src/abi/balanceResolver.json +211 -0
  107. package/src/abi/connectors/index.ts +5 -5
  108. package/src/abi/connectors/v2/1INCH-A.ts +39 -1
  109. package/src/abi/connectors/v2/1INCH-V3-A.ts +41 -0
  110. package/src/abi/connectors/v2/1INCH-V4-A.ts +41 -0
  111. package/src/abi/connectors/v2/AAVE-IMPORT-V2-V3-A.ts +56 -0
  112. package/src/abi/connectors/v2/AAVE-V2-A.ts +93 -135
  113. package/src/abi/connectors/v2/AAVE-V2-IMPORT-C.ts +3 -0
  114. package/src/abi/connectors/v2/AAVE-V3-A.ts +321 -0
  115. package/src/abi/connectors/v2/AAVE-V3-CLAIM-A.ts +57 -0
  116. package/src/abi/connectors/v2/AAVE-V3-IMPORT-A.ts +58 -0
  117. package/src/abi/connectors/v2/AAVE-V3-IMPORT-PERMIT-A.ts +80 -0
  118. package/src/abi/connectors/v2/BASIC-A.ts +44 -86
  119. package/src/abi/connectors/v2/BENQI-A.ts +900 -0
  120. package/src/abi/connectors/v2/COMPOUND-IMPORT-C.ts +3 -0
  121. package/src/abi/connectors/v2/COMPOUND-IMPORT-D.ts +26 -0
  122. package/src/abi/connectors/v2/DSA-SPELL-A.ts +59 -0
  123. package/src/abi/connectors/v2/HOP-A.ts +40 -0
  124. package/src/abi/connectors/v2/HOP-MAINNET-A.ts +37 -0
  125. package/src/abi/connectors/v2/INSTA-DEX-SIMULATION-A.ts +39 -0
  126. package/src/abi/connectors/v2/INSTAPOOL-B.ts +3 -0
  127. package/src/abi/connectors/v2/INSTAPOOL-C.ts +3 -0
  128. package/src/abi/connectors/v2/INTEROP-A.ts +3 -0
  129. package/src/abi/connectors/v2/INTEROP-STAGING-A.ts +3 -0
  130. package/src/abi/connectors/v2/LIDO-STETH-A.ts +35 -0
  131. package/src/abi/connectors/v2/LITE-A.ts +3 -0
  132. package/src/abi/connectors/v2/MSTABLE-A.ts +3 -0
  133. package/src/abi/connectors/v2/NOTIONAL-V2-A.ts +483 -0
  134. package/src/abi/connectors/v2/PANGOLIN-A.ts +135 -0
  135. package/src/abi/connectors/v2/PANGOLIN-STAKE-A.ts +226 -0
  136. package/src/abi/connectors/v2/PARASWAP-A.ts +26 -1
  137. package/src/abi/connectors/v2/PARASWAP-V5-A.ts +28 -0
  138. package/src/abi/connectors/v2/POOLTOGETHER-A.ts +3 -0
  139. package/src/abi/connectors/v2/QI-A.ts +3 -0
  140. package/src/abi/connectors/v2/QUICKSWAP-A.ts +135 -0
  141. package/src/abi/connectors/v2/SUSHISWAP-A.ts +135 -0
  142. package/src/abi/connectors/v2/SWAP-AGGREGATOR-A.ts +24 -0
  143. package/src/abi/connectors/v2/UBIQUITY-A.ts +72 -0
  144. package/src/abi/connectors/v2/UNISWAP-SELL-BETA.ts +3 -0
  145. package/src/abi/connectors/v2/UNISWAP-V3-A.ts +1 -1
  146. package/src/abi/connectors/v2/UNISWAP-V3-ROUTER-A.ts +3 -0
  147. package/src/abi/connectors/v2/UNISWAP-V3-STAKER-B.ts +192 -0
  148. package/src/abi/connectors/v2/UNISWAP-V3-SWAP-A.ts +73 -0
  149. package/src/abi/connectors/v2/UNIVERSE-A.ts +3 -0
  150. package/src/abi/connectors/v2/WAVAX-A.ts +3 -0
  151. package/src/abi/connectors/v2/WFTM-A.ts +59 -0
  152. package/src/abi/connectors/v2/WMATIC-A.ts +3 -0
  153. package/src/abi/connectors/v2/ZEROX-A.ts +28 -0
  154. package/src/abi/connectors/v2/ZEROX-V4-A.ts +28 -0
  155. package/src/abi/connectors/v2/index.ts +171 -85
  156. package/src/abi/index.ts +8 -0
  157. package/src/abi/instList.json +232 -0
  158. package/src/api/index.ts +8 -0
  159. package/src/constants/addresses.ts +21 -2
  160. package/src/constants/capPerChain.ts +5 -0
  161. package/src/constants/index.ts +2 -0
  162. package/src/constants/tokens.ts +44 -44
  163. package/src/constants/wrappedNativeToken.ts +5 -0
  164. package/src/crons/index.ts +1 -0
  165. package/src/crons/prices.ts +12 -0
  166. package/src/db/models/transaction.ts +22 -1
  167. package/src/errors/index.ts +26 -0
  168. package/src/gnosis/actions/aaveV2/source.ts +56 -3
  169. package/src/gnosis/actions/aaveV2/target.ts +35 -7
  170. package/src/gnosis/actions/aaveV3/index.ts +9 -0
  171. package/src/gnosis/actions/aaveV3/source.ts +119 -0
  172. package/src/gnosis/actions/aaveV3/target.ts +142 -0
  173. package/src/gnosis/actions/index.ts +2 -0
  174. package/src/index.ts +1 -0
  175. package/src/providers/index.ts +1 -0
  176. package/src/providers/retry-provider.ts +51 -0
  177. package/src/services/Prices.ts +89 -0
  178. package/src/services/index.ts +1 -0
  179. package/src/tasks/InteropX/{ProcessSubmitSubmitEvents.ts → ProcessSubmitEvents.ts} +139 -22
  180. package/src/tasks/InteropX/ProcessValidateEvents.ts +42 -19
  181. package/src/tasks/InteropX/SyncLogExecuteEvents.ts +161 -0
  182. package/src/tasks/InteropX/SyncLogSubmitEvents.ts +6 -7
  183. package/src/tasks/InteropX/SyncLogValidateEvents.ts +9 -10
  184. package/src/tasks/index.ts +8 -5
  185. package/src/typechain/AaveV2Resolver.ts +1017 -0
  186. package/src/typechain/AaveV3Resolver.ts +935 -0
  187. package/src/typechain/BalanceResolver.ts +266 -0
  188. package/src/typechain/InstList.ts +402 -0
  189. package/src/typechain/factories/AaveV2Resolver__factory.ts +1198 -0
  190. package/src/typechain/factories/AaveV3Resolver__factory.ts +894 -0
  191. package/src/typechain/factories/BalanceResolver__factory.ts +235 -0
  192. package/src/typechain/factories/InstList__factory.ts +253 -0
  193. package/src/typechain/factories/index.ts +4 -0
  194. package/src/typechain/index.ts +8 -0
  195. package/src/utils/async.ts +22 -0
  196. package/src/utils/dsa.ts +56 -0
  197. package/src/utils/formatting.ts +68 -0
  198. package/src/utils/gnosis.ts +166 -0
  199. package/src/utils/http.ts +6 -0
  200. package/src/utils/index.ts +9 -365
  201. package/src/utils/interop.ts +28 -0
  202. package/src/utils/tokens.ts +21 -0
  203. package/src/utils/validate.ts +179 -0
  204. package/src/utils/web3.ts +132 -0
@@ -0,0 +1,901 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BENQI_A = void 0;
4
+ exports.BENQI_A = [
5
+ {
6
+ "type": "event",
7
+ "name": "LogBorrow",
8
+ "inputs": [
9
+ {
10
+ "type": "address",
11
+ "name": "token",
12
+ "internalType": "address",
13
+ "indexed": true
14
+ },
15
+ {
16
+ "type": "address",
17
+ "name": "qiToken",
18
+ "internalType": "address",
19
+ "indexed": false
20
+ },
21
+ {
22
+ "type": "uint256",
23
+ "name": "tokenAmt",
24
+ "internalType": "uint256",
25
+ "indexed": false
26
+ },
27
+ {
28
+ "type": "uint256",
29
+ "name": "getId",
30
+ "internalType": "uint256",
31
+ "indexed": false
32
+ },
33
+ {
34
+ "type": "uint256",
35
+ "name": "setId",
36
+ "internalType": "uint256",
37
+ "indexed": false
38
+ }
39
+ ],
40
+ "anonymous": false
41
+ },
42
+ {
43
+ "type": "event",
44
+ "name": "LogDeposit",
45
+ "inputs": [
46
+ {
47
+ "type": "address",
48
+ "name": "token",
49
+ "internalType": "address",
50
+ "indexed": true
51
+ },
52
+ {
53
+ "type": "address",
54
+ "name": "qiToken",
55
+ "internalType": "address",
56
+ "indexed": false
57
+ },
58
+ {
59
+ "type": "uint256",
60
+ "name": "tokenAmt",
61
+ "internalType": "uint256",
62
+ "indexed": false
63
+ },
64
+ {
65
+ "type": "uint256",
66
+ "name": "getId",
67
+ "internalType": "uint256",
68
+ "indexed": false
69
+ },
70
+ {
71
+ "type": "uint256",
72
+ "name": "setId",
73
+ "internalType": "uint256",
74
+ "indexed": false
75
+ }
76
+ ],
77
+ "anonymous": false
78
+ },
79
+ {
80
+ "type": "event",
81
+ "name": "LogDepositQiToken",
82
+ "inputs": [
83
+ {
84
+ "type": "address",
85
+ "name": "token",
86
+ "internalType": "address",
87
+ "indexed": true
88
+ },
89
+ {
90
+ "type": "address",
91
+ "name": "qiToken",
92
+ "internalType": "address",
93
+ "indexed": false
94
+ },
95
+ {
96
+ "type": "uint256",
97
+ "name": "tokenAmt",
98
+ "internalType": "uint256",
99
+ "indexed": false
100
+ },
101
+ {
102
+ "type": "uint256",
103
+ "name": "qiTokenAmt",
104
+ "internalType": "uint256",
105
+ "indexed": false
106
+ },
107
+ {
108
+ "type": "uint256",
109
+ "name": "getId",
110
+ "internalType": "uint256",
111
+ "indexed": false
112
+ },
113
+ {
114
+ "type": "uint256",
115
+ "name": "setId",
116
+ "internalType": "uint256",
117
+ "indexed": false
118
+ }
119
+ ],
120
+ "anonymous": false
121
+ },
122
+ {
123
+ "type": "event",
124
+ "name": "LogLiquidate",
125
+ "inputs": [
126
+ {
127
+ "type": "address",
128
+ "name": "borrower",
129
+ "internalType": "address",
130
+ "indexed": true
131
+ },
132
+ {
133
+ "type": "address",
134
+ "name": "tokenToPay",
135
+ "internalType": "address",
136
+ "indexed": true
137
+ },
138
+ {
139
+ "type": "address",
140
+ "name": "tokenInReturn",
141
+ "internalType": "address",
142
+ "indexed": true
143
+ },
144
+ {
145
+ "type": "uint256",
146
+ "name": "tokenAmt",
147
+ "internalType": "uint256",
148
+ "indexed": false
149
+ },
150
+ {
151
+ "type": "uint256",
152
+ "name": "getId",
153
+ "internalType": "uint256",
154
+ "indexed": false
155
+ },
156
+ {
157
+ "type": "uint256",
158
+ "name": "setId",
159
+ "internalType": "uint256",
160
+ "indexed": false
161
+ }
162
+ ],
163
+ "anonymous": false
164
+ },
165
+ {
166
+ "type": "event",
167
+ "name": "LogPayback",
168
+ "inputs": [
169
+ {
170
+ "type": "address",
171
+ "name": "token",
172
+ "internalType": "address",
173
+ "indexed": true
174
+ },
175
+ {
176
+ "type": "address",
177
+ "name": "qiToken",
178
+ "internalType": "address",
179
+ "indexed": false
180
+ },
181
+ {
182
+ "type": "uint256",
183
+ "name": "tokenAmt",
184
+ "internalType": "uint256",
185
+ "indexed": false
186
+ },
187
+ {
188
+ "type": "uint256",
189
+ "name": "getId",
190
+ "internalType": "uint256",
191
+ "indexed": false
192
+ },
193
+ {
194
+ "type": "uint256",
195
+ "name": "setId",
196
+ "internalType": "uint256",
197
+ "indexed": false
198
+ }
199
+ ],
200
+ "anonymous": false
201
+ },
202
+ {
203
+ "type": "event",
204
+ "name": "LogWithdraw",
205
+ "inputs": [
206
+ {
207
+ "type": "address",
208
+ "name": "token",
209
+ "internalType": "address",
210
+ "indexed": true
211
+ },
212
+ {
213
+ "type": "address",
214
+ "name": "qiToken",
215
+ "internalType": "address",
216
+ "indexed": false
217
+ },
218
+ {
219
+ "type": "uint256",
220
+ "name": "tokenAmt",
221
+ "internalType": "uint256",
222
+ "indexed": false
223
+ },
224
+ {
225
+ "type": "uint256",
226
+ "name": "getId",
227
+ "internalType": "uint256",
228
+ "indexed": false
229
+ },
230
+ {
231
+ "type": "uint256",
232
+ "name": "setId",
233
+ "internalType": "uint256",
234
+ "indexed": false
235
+ }
236
+ ],
237
+ "anonymous": false
238
+ },
239
+ {
240
+ "type": "event",
241
+ "name": "LogWithdrawQiToken",
242
+ "inputs": [
243
+ {
244
+ "type": "address",
245
+ "name": "token",
246
+ "internalType": "address",
247
+ "indexed": true
248
+ },
249
+ {
250
+ "type": "address",
251
+ "name": "qiToken",
252
+ "internalType": "address",
253
+ "indexed": false
254
+ },
255
+ {
256
+ "type": "uint256",
257
+ "name": "tokenAmt",
258
+ "internalType": "uint256",
259
+ "indexed": false
260
+ },
261
+ {
262
+ "type": "uint256",
263
+ "name": "qiTokenAmt",
264
+ "internalType": "uint256",
265
+ "indexed": false
266
+ },
267
+ {
268
+ "type": "uint256",
269
+ "name": "getId",
270
+ "internalType": "uint256",
271
+ "indexed": false
272
+ },
273
+ {
274
+ "type": "uint256",
275
+ "name": "setId",
276
+ "internalType": "uint256",
277
+ "indexed": false
278
+ }
279
+ ],
280
+ "anonymous": false
281
+ },
282
+ {
283
+ "type": "function",
284
+ "stateMutability": "payable",
285
+ "outputs": [
286
+ {
287
+ "type": "string",
288
+ "name": "_eventName",
289
+ "internalType": "string"
290
+ },
291
+ {
292
+ "type": "bytes",
293
+ "name": "_eventParam",
294
+ "internalType": "bytes"
295
+ }
296
+ ],
297
+ "name": "borrow",
298
+ "inputs": [
299
+ {
300
+ "type": "string",
301
+ "name": "tokenId",
302
+ "internalType": "string"
303
+ },
304
+ {
305
+ "type": "uint256",
306
+ "name": "amt",
307
+ "internalType": "uint256"
308
+ },
309
+ {
310
+ "type": "uint256",
311
+ "name": "getId",
312
+ "internalType": "uint256"
313
+ },
314
+ {
315
+ "type": "uint256",
316
+ "name": "setId",
317
+ "internalType": "uint256"
318
+ }
319
+ ]
320
+ },
321
+ {
322
+ "type": "function",
323
+ "stateMutability": "payable",
324
+ "outputs": [
325
+ {
326
+ "type": "string",
327
+ "name": "_eventName",
328
+ "internalType": "string"
329
+ },
330
+ {
331
+ "type": "bytes",
332
+ "name": "_eventParam",
333
+ "internalType": "bytes"
334
+ }
335
+ ],
336
+ "name": "borrowRaw",
337
+ "inputs": [
338
+ {
339
+ "type": "address",
340
+ "name": "token",
341
+ "internalType": "address"
342
+ },
343
+ {
344
+ "type": "address",
345
+ "name": "qiToken",
346
+ "internalType": "address"
347
+ },
348
+ {
349
+ "type": "uint256",
350
+ "name": "amt",
351
+ "internalType": "uint256"
352
+ },
353
+ {
354
+ "type": "uint256",
355
+ "name": "getId",
356
+ "internalType": "uint256"
357
+ },
358
+ {
359
+ "type": "uint256",
360
+ "name": "setId",
361
+ "internalType": "uint256"
362
+ }
363
+ ]
364
+ },
365
+ {
366
+ "type": "function",
367
+ "stateMutability": "payable",
368
+ "outputs": [
369
+ {
370
+ "type": "string",
371
+ "name": "_eventName",
372
+ "internalType": "string"
373
+ },
374
+ {
375
+ "type": "bytes",
376
+ "name": "_eventParam",
377
+ "internalType": "bytes"
378
+ }
379
+ ],
380
+ "name": "deposit",
381
+ "inputs": [
382
+ {
383
+ "type": "string",
384
+ "name": "tokenId",
385
+ "internalType": "string"
386
+ },
387
+ {
388
+ "type": "uint256",
389
+ "name": "amt",
390
+ "internalType": "uint256"
391
+ },
392
+ {
393
+ "type": "uint256",
394
+ "name": "getId",
395
+ "internalType": "uint256"
396
+ },
397
+ {
398
+ "type": "uint256",
399
+ "name": "setId",
400
+ "internalType": "uint256"
401
+ }
402
+ ]
403
+ },
404
+ {
405
+ "type": "function",
406
+ "stateMutability": "payable",
407
+ "outputs": [
408
+ {
409
+ "type": "string",
410
+ "name": "_eventName",
411
+ "internalType": "string"
412
+ },
413
+ {
414
+ "type": "bytes",
415
+ "name": "_eventParam",
416
+ "internalType": "bytes"
417
+ }
418
+ ],
419
+ "name": "depositQiToken",
420
+ "inputs": [
421
+ {
422
+ "type": "string",
423
+ "name": "tokenId",
424
+ "internalType": "string"
425
+ },
426
+ {
427
+ "type": "uint256",
428
+ "name": "amt",
429
+ "internalType": "uint256"
430
+ },
431
+ {
432
+ "type": "uint256",
433
+ "name": "getId",
434
+ "internalType": "uint256"
435
+ },
436
+ {
437
+ "type": "uint256",
438
+ "name": "setId",
439
+ "internalType": "uint256"
440
+ }
441
+ ]
442
+ },
443
+ {
444
+ "type": "function",
445
+ "stateMutability": "payable",
446
+ "outputs": [
447
+ {
448
+ "type": "string",
449
+ "name": "_eventName",
450
+ "internalType": "string"
451
+ },
452
+ {
453
+ "type": "bytes",
454
+ "name": "_eventParam",
455
+ "internalType": "bytes"
456
+ }
457
+ ],
458
+ "name": "depositQiTokenRaw",
459
+ "inputs": [
460
+ {
461
+ "type": "address",
462
+ "name": "token",
463
+ "internalType": "address"
464
+ },
465
+ {
466
+ "type": "address",
467
+ "name": "qiToken",
468
+ "internalType": "address"
469
+ },
470
+ {
471
+ "type": "uint256",
472
+ "name": "amt",
473
+ "internalType": "uint256"
474
+ },
475
+ {
476
+ "type": "uint256",
477
+ "name": "getId",
478
+ "internalType": "uint256"
479
+ },
480
+ {
481
+ "type": "uint256",
482
+ "name": "setId",
483
+ "internalType": "uint256"
484
+ }
485
+ ]
486
+ },
487
+ {
488
+ "type": "function",
489
+ "stateMutability": "payable",
490
+ "outputs": [
491
+ {
492
+ "type": "string",
493
+ "name": "_eventName",
494
+ "internalType": "string"
495
+ },
496
+ {
497
+ "type": "bytes",
498
+ "name": "_eventParam",
499
+ "internalType": "bytes"
500
+ }
501
+ ],
502
+ "name": "depositRaw",
503
+ "inputs": [
504
+ {
505
+ "type": "address",
506
+ "name": "token",
507
+ "internalType": "address"
508
+ },
509
+ {
510
+ "type": "address",
511
+ "name": "qiToken",
512
+ "internalType": "address"
513
+ },
514
+ {
515
+ "type": "uint256",
516
+ "name": "amt",
517
+ "internalType": "uint256"
518
+ },
519
+ {
520
+ "type": "uint256",
521
+ "name": "getId",
522
+ "internalType": "uint256"
523
+ },
524
+ {
525
+ "type": "uint256",
526
+ "name": "setId",
527
+ "internalType": "uint256"
528
+ }
529
+ ]
530
+ },
531
+ {
532
+ "type": "function",
533
+ "stateMutability": "payable",
534
+ "outputs": [
535
+ {
536
+ "type": "string",
537
+ "name": "_eventName",
538
+ "internalType": "string"
539
+ },
540
+ {
541
+ "type": "bytes",
542
+ "name": "_eventParam",
543
+ "internalType": "bytes"
544
+ }
545
+ ],
546
+ "name": "liquidate",
547
+ "inputs": [
548
+ {
549
+ "type": "address",
550
+ "name": "borrower",
551
+ "internalType": "address"
552
+ },
553
+ {
554
+ "type": "string",
555
+ "name": "tokenIdToPay",
556
+ "internalType": "string"
557
+ },
558
+ {
559
+ "type": "string",
560
+ "name": "tokenIdInReturn",
561
+ "internalType": "string"
562
+ },
563
+ {
564
+ "type": "uint256",
565
+ "name": "amt",
566
+ "internalType": "uint256"
567
+ },
568
+ {
569
+ "type": "uint256",
570
+ "name": "getId",
571
+ "internalType": "uint256"
572
+ },
573
+ {
574
+ "type": "uint256",
575
+ "name": "setId",
576
+ "internalType": "uint256"
577
+ }
578
+ ]
579
+ },
580
+ {
581
+ "type": "function",
582
+ "stateMutability": "payable",
583
+ "outputs": [
584
+ {
585
+ "type": "string",
586
+ "name": "_eventName",
587
+ "internalType": "string"
588
+ },
589
+ {
590
+ "type": "bytes",
591
+ "name": "_eventParam",
592
+ "internalType": "bytes"
593
+ }
594
+ ],
595
+ "name": "liquidateRaw",
596
+ "inputs": [
597
+ {
598
+ "type": "address",
599
+ "name": "borrower",
600
+ "internalType": "address"
601
+ },
602
+ {
603
+ "type": "address",
604
+ "name": "tokenToPay",
605
+ "internalType": "address"
606
+ },
607
+ {
608
+ "type": "address",
609
+ "name": "qiTokenPay",
610
+ "internalType": "address"
611
+ },
612
+ {
613
+ "type": "address",
614
+ "name": "tokenInReturn",
615
+ "internalType": "address"
616
+ },
617
+ {
618
+ "type": "address",
619
+ "name": "qiTokenColl",
620
+ "internalType": "address"
621
+ },
622
+ {
623
+ "type": "uint256",
624
+ "name": "amt",
625
+ "internalType": "uint256"
626
+ },
627
+ {
628
+ "type": "uint256",
629
+ "name": "getId",
630
+ "internalType": "uint256"
631
+ },
632
+ {
633
+ "type": "uint256",
634
+ "name": "setId",
635
+ "internalType": "uint256"
636
+ }
637
+ ]
638
+ },
639
+ {
640
+ "type": "function",
641
+ "stateMutability": "view",
642
+ "outputs": [
643
+ {
644
+ "type": "string",
645
+ "name": "",
646
+ "internalType": "string"
647
+ }
648
+ ],
649
+ "name": "name",
650
+ "inputs": []
651
+ },
652
+ {
653
+ "type": "function",
654
+ "stateMutability": "payable",
655
+ "outputs": [
656
+ {
657
+ "type": "string",
658
+ "name": "_eventName",
659
+ "internalType": "string"
660
+ },
661
+ {
662
+ "type": "bytes",
663
+ "name": "_eventParam",
664
+ "internalType": "bytes"
665
+ }
666
+ ],
667
+ "name": "payback",
668
+ "inputs": [
669
+ {
670
+ "type": "string",
671
+ "name": "tokenId",
672
+ "internalType": "string"
673
+ },
674
+ {
675
+ "type": "uint256",
676
+ "name": "amt",
677
+ "internalType": "uint256"
678
+ },
679
+ {
680
+ "type": "uint256",
681
+ "name": "getId",
682
+ "internalType": "uint256"
683
+ },
684
+ {
685
+ "type": "uint256",
686
+ "name": "setId",
687
+ "internalType": "uint256"
688
+ }
689
+ ]
690
+ },
691
+ {
692
+ "type": "function",
693
+ "stateMutability": "payable",
694
+ "outputs": [
695
+ {
696
+ "type": "string",
697
+ "name": "_eventName",
698
+ "internalType": "string"
699
+ },
700
+ {
701
+ "type": "bytes",
702
+ "name": "_eventParam",
703
+ "internalType": "bytes"
704
+ }
705
+ ],
706
+ "name": "paybackRaw",
707
+ "inputs": [
708
+ {
709
+ "type": "address",
710
+ "name": "token",
711
+ "internalType": "address"
712
+ },
713
+ {
714
+ "type": "address",
715
+ "name": "qiToken",
716
+ "internalType": "address"
717
+ },
718
+ {
719
+ "type": "uint256",
720
+ "name": "amt",
721
+ "internalType": "uint256"
722
+ },
723
+ {
724
+ "type": "uint256",
725
+ "name": "getId",
726
+ "internalType": "uint256"
727
+ },
728
+ {
729
+ "type": "uint256",
730
+ "name": "setId",
731
+ "internalType": "uint256"
732
+ }
733
+ ]
734
+ },
735
+ {
736
+ "type": "function",
737
+ "stateMutability": "payable",
738
+ "outputs": [
739
+ {
740
+ "type": "string",
741
+ "name": "_eventName",
742
+ "internalType": "string"
743
+ },
744
+ {
745
+ "type": "bytes",
746
+ "name": "_eventParam",
747
+ "internalType": "bytes"
748
+ }
749
+ ],
750
+ "name": "withdraw",
751
+ "inputs": [
752
+ {
753
+ "type": "string",
754
+ "name": "tokenId",
755
+ "internalType": "string"
756
+ },
757
+ {
758
+ "type": "uint256",
759
+ "name": "amt",
760
+ "internalType": "uint256"
761
+ },
762
+ {
763
+ "type": "uint256",
764
+ "name": "getId",
765
+ "internalType": "uint256"
766
+ },
767
+ {
768
+ "type": "uint256",
769
+ "name": "setId",
770
+ "internalType": "uint256"
771
+ }
772
+ ]
773
+ },
774
+ {
775
+ "type": "function",
776
+ "stateMutability": "payable",
777
+ "outputs": [
778
+ {
779
+ "type": "string",
780
+ "name": "_eventName",
781
+ "internalType": "string"
782
+ },
783
+ {
784
+ "type": "bytes",
785
+ "name": "_eventParam",
786
+ "internalType": "bytes"
787
+ }
788
+ ],
789
+ "name": "withdrawQiToken",
790
+ "inputs": [
791
+ {
792
+ "type": "string",
793
+ "name": "tokenId",
794
+ "internalType": "string"
795
+ },
796
+ {
797
+ "type": "uint256",
798
+ "name": "qiTokenAmt",
799
+ "internalType": "uint256"
800
+ },
801
+ {
802
+ "type": "uint256",
803
+ "name": "getId",
804
+ "internalType": "uint256"
805
+ },
806
+ {
807
+ "type": "uint256",
808
+ "name": "setId",
809
+ "internalType": "uint256"
810
+ }
811
+ ]
812
+ },
813
+ {
814
+ "type": "function",
815
+ "stateMutability": "payable",
816
+ "outputs": [
817
+ {
818
+ "type": "string",
819
+ "name": "_eventName",
820
+ "internalType": "string"
821
+ },
822
+ {
823
+ "type": "bytes",
824
+ "name": "_eventParam",
825
+ "internalType": "bytes"
826
+ }
827
+ ],
828
+ "name": "withdrawQiTokenRaw",
829
+ "inputs": [
830
+ {
831
+ "type": "address",
832
+ "name": "token",
833
+ "internalType": "address"
834
+ },
835
+ {
836
+ "type": "address",
837
+ "name": "qiToken",
838
+ "internalType": "address"
839
+ },
840
+ {
841
+ "type": "uint256",
842
+ "name": "qiTokenAmt",
843
+ "internalType": "uint256"
844
+ },
845
+ {
846
+ "type": "uint256",
847
+ "name": "getId",
848
+ "internalType": "uint256"
849
+ },
850
+ {
851
+ "type": "uint256",
852
+ "name": "setId",
853
+ "internalType": "uint256"
854
+ }
855
+ ]
856
+ },
857
+ {
858
+ "type": "function",
859
+ "stateMutability": "payable",
860
+ "outputs": [
861
+ {
862
+ "type": "string",
863
+ "name": "_eventName",
864
+ "internalType": "string"
865
+ },
866
+ {
867
+ "type": "bytes",
868
+ "name": "_eventParam",
869
+ "internalType": "bytes"
870
+ }
871
+ ],
872
+ "name": "withdrawRaw",
873
+ "inputs": [
874
+ {
875
+ "type": "address",
876
+ "name": "token",
877
+ "internalType": "address"
878
+ },
879
+ {
880
+ "type": "address",
881
+ "name": "qiToken",
882
+ "internalType": "address"
883
+ },
884
+ {
885
+ "type": "uint256",
886
+ "name": "amt",
887
+ "internalType": "uint256"
888
+ },
889
+ {
890
+ "type": "uint256",
891
+ "name": "getId",
892
+ "internalType": "uint256"
893
+ },
894
+ {
895
+ "type": "uint256",
896
+ "name": "setId",
897
+ "internalType": "uint256"
898
+ }
899
+ ]
900
+ }
901
+ ];