@underscore-finance/sdk 1.2.20-next.0 → 1.2.20-next.1

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 (254) hide show
  1. package/.claude/settings.local.json +31 -0
  2. package/.eslintrc.json +27 -0
  3. package/.prettierrc +9 -0
  4. package/.tool-versions +1 -0
  5. package/LICENSE +41 -0
  6. package/LICENSE_DATE.md +34 -0
  7. package/LICENSE_GRANTS.md +33 -0
  8. package/LICENSE_INFO.md +90 -0
  9. package/README.md +116 -17
  10. package/dapp.config.js +154 -0
  11. package/package.json +17 -44
  12. package/src/getSwapInstructions.ts +55 -0
  13. package/src/index.ts +192 -0
  14. package/tsconfig.json +18 -0
  15. package/AGENTS.md +0 -162
  16. package/abis.json +0 -181875
  17. package/addresses.json +0 -76
  18. package/dist/contracts/AaveV3.d.ts +0 -2594
  19. package/dist/contracts/AaveV3.d.ts.map +0 -1
  20. package/dist/contracts/AaveV3.js +0 -3272
  21. package/dist/contracts/AeroClassic.d.ts +0 -2118
  22. package/dist/contracts/AeroClassic.d.ts.map +0 -1
  23. package/dist/contracts/AeroClassic.js +0 -2679
  24. package/dist/contracts/AeroSlipstream.d.ts +0 -2256
  25. package/dist/contracts/AeroSlipstream.d.ts.map +0 -1
  26. package/dist/contracts/AeroSlipstream.js +0 -2848
  27. package/dist/contracts/AgentSenderGeneric.d.ts +0 -4129
  28. package/dist/contracts/AgentSenderGeneric.d.ts.map +0 -1
  29. package/dist/contracts/AgentSenderGeneric.js +0 -5397
  30. package/dist/contracts/AgentSenderSpecial.d.ts +0 -1997
  31. package/dist/contracts/AgentSenderSpecial.d.ts.map +0 -1
  32. package/dist/contracts/AgentSenderSpecial.js +0 -2532
  33. package/dist/contracts/AgentSenderSpecialSigHelper.d.ts +0 -2245
  34. package/dist/contracts/AgentSenderSpecialSigHelper.d.ts.map +0 -1
  35. package/dist/contracts/AgentSenderSpecialSigHelper.js +0 -2971
  36. package/dist/contracts/AgentWrapper.d.ts +0 -2520
  37. package/dist/contracts/AgentWrapper.d.ts.map +0 -1
  38. package/dist/contracts/AgentWrapper.js +0 -3389
  39. package/dist/contracts/AgentWrapperV1.d.ts +0 -3789
  40. package/dist/contracts/AgentWrapperV1.d.ts.map +0 -1
  41. package/dist/contracts/AgentWrapperV1.js +0 -4945
  42. package/dist/contracts/AgentWrapperV2.d.ts +0 -2494
  43. package/dist/contracts/AgentWrapperV2.d.ts.map +0 -1
  44. package/dist/contracts/AgentWrapperV2.js +0 -3354
  45. package/dist/contracts/Appraiser.d.ts +0 -577
  46. package/dist/contracts/Appraiser.d.ts.map +0 -1
  47. package/dist/contracts/Appraiser.js +0 -735
  48. package/dist/contracts/Avantis.d.ts +0 -2606
  49. package/dist/contracts/Avantis.d.ts.map +0 -1
  50. package/dist/contracts/Avantis.js +0 -3282
  51. package/dist/contracts/Billing.d.ts +0 -381
  52. package/dist/contracts/Billing.d.ts.map +0 -1
  53. package/dist/contracts/Billing.js +0 -451
  54. package/dist/contracts/ChequeBook.d.ts +0 -1704
  55. package/dist/contracts/ChequeBook.d.ts.map +0 -1
  56. package/dist/contracts/ChequeBook.js +0 -1922
  57. package/dist/contracts/CompoundV3.d.ts +0 -2622
  58. package/dist/contracts/CompoundV3.d.ts.map +0 -1
  59. package/dist/contracts/CompoundV3.js +0 -3304
  60. package/dist/contracts/ConvertVaultToken.d.ts +0 -64
  61. package/dist/contracts/ConvertVaultToken.d.ts.map +0 -1
  62. package/dist/contracts/ConvertVaultToken.js +0 -75
  63. package/dist/contracts/Curve.d.ts +0 -1107
  64. package/dist/contracts/Curve.d.ts.map +0 -1
  65. package/dist/contracts/Curve.js +0 -1379
  66. package/dist/contracts/DefaultsBase.d.ts +0 -306
  67. package/dist/contracts/DefaultsBase.d.ts.map +0 -1
  68. package/dist/contracts/DefaultsBase.js +0 -331
  69. package/dist/contracts/ERC20.d.ts +0 -288
  70. package/dist/contracts/ERC20.d.ts.map +0 -1
  71. package/dist/contracts/ERC20.js +0 -359
  72. package/dist/contracts/EarnVault.d.ts +0 -1733
  73. package/dist/contracts/EarnVault.d.ts.map +0 -1
  74. package/dist/contracts/EarnVault.js +0 -2235
  75. package/dist/contracts/EarnVaultAgent.d.ts +0 -1033
  76. package/dist/contracts/EarnVaultAgent.d.ts.map +0 -1
  77. package/dist/contracts/EarnVaultAgent.js +0 -1296
  78. package/dist/contracts/EarnVaultAgentSigHelper.d.ts +0 -905
  79. package/dist/contracts/EarnVaultAgentSigHelper.d.ts.map +0 -1
  80. package/dist/contracts/EarnVaultAgentSigHelper.js +0 -1198
  81. package/dist/contracts/Euler.d.ts +0 -2662
  82. package/dist/contracts/Euler.d.ts.map +0 -1
  83. package/dist/contracts/Euler.js +0 -3350
  84. package/dist/contracts/ExtraFi.d.ts +0 -2637
  85. package/dist/contracts/ExtraFi.d.ts.map +0 -1
  86. package/dist/contracts/ExtraFi.js +0 -3323
  87. package/dist/contracts/Fluid.d.ts +0 -2634
  88. package/dist/contracts/Fluid.d.ts.map +0 -1
  89. package/dist/contracts/Fluid.js +0 -3318
  90. package/dist/contracts/FortyAcres.d.ts +0 -2620
  91. package/dist/contracts/FortyAcres.d.ts.map +0 -1
  92. package/dist/contracts/FortyAcres.js +0 -3300
  93. package/dist/contracts/Hatchery.d.ts +0 -392
  94. package/dist/contracts/Hatchery.d.ts.map +0 -1
  95. package/dist/contracts/Hatchery.js +0 -472
  96. package/dist/contracts/Helpers.d.ts +0 -1463
  97. package/dist/contracts/Helpers.d.ts.map +0 -1
  98. package/dist/contracts/Helpers.js +0 -1763
  99. package/dist/contracts/HighCommand.d.ts +0 -2129
  100. package/dist/contracts/HighCommand.d.ts.map +0 -1
  101. package/dist/contracts/HighCommand.js +0 -2429
  102. package/dist/contracts/Kernel.d.ts +0 -387
  103. package/dist/contracts/Kernel.d.ts.map +0 -1
  104. package/dist/contracts/Kernel.js +0 -442
  105. package/dist/contracts/Ledger.d.ts +0 -708
  106. package/dist/contracts/Ledger.d.ts.map +0 -1
  107. package/dist/contracts/Ledger.js +0 -854
  108. package/dist/contracts/LegoBook.d.ts +0 -1463
  109. package/dist/contracts/LegoBook.d.ts.map +0 -1
  110. package/dist/contracts/LegoBook.js +0 -1763
  111. package/dist/contracts/LegoTools.d.ts +0 -1913
  112. package/dist/contracts/LegoTools.d.ts.map +0 -1
  113. package/dist/contracts/LegoTools.js +0 -2402
  114. package/dist/contracts/LevgVault.d.ts +0 -2115
  115. package/dist/contracts/LevgVault.d.ts.map +0 -1
  116. package/dist/contracts/LevgVault.js +0 -2733
  117. package/dist/contracts/LevgVaultAgent.d.ts +0 -1955
  118. package/dist/contracts/LevgVaultAgent.d.ts.map +0 -1
  119. package/dist/contracts/LevgVaultAgent.js +0 -2508
  120. package/dist/contracts/LevgVaultAgentSigHelper.d.ts +0 -2221
  121. package/dist/contracts/LevgVaultAgentSigHelper.d.ts.map +0 -1
  122. package/dist/contracts/LevgVaultAgentSigHelper.js +0 -2963
  123. package/dist/contracts/LevgVaultHelper.d.ts +0 -977
  124. package/dist/contracts/LevgVaultHelper.d.ts.map +0 -1
  125. package/dist/contracts/LevgVaultHelper.js +0 -1289
  126. package/dist/contracts/LevgVaultTools.d.ts +0 -2629
  127. package/dist/contracts/LevgVaultTools.d.ts.map +0 -1
  128. package/dist/contracts/LevgVaultTools.js +0 -3560
  129. package/dist/contracts/LootDistributor.d.ts +0 -1053
  130. package/dist/contracts/LootDistributor.d.ts.map +0 -1
  131. package/dist/contracts/LootDistributor.js +0 -1291
  132. package/dist/contracts/Migrator.d.ts +0 -289
  133. package/dist/contracts/Migrator.d.ts.map +0 -1
  134. package/dist/contracts/Migrator.js +0 -348
  135. package/dist/contracts/MissionControl.d.ts +0 -1405
  136. package/dist/contracts/MissionControl.d.ts.map +0 -1
  137. package/dist/contracts/MissionControl.js +0 -1592
  138. package/dist/contracts/Moonwell.d.ts +0 -2623
  139. package/dist/contracts/Moonwell.d.ts.map +0 -1
  140. package/dist/contracts/Moonwell.js +0 -3304
  141. package/dist/contracts/Morpho.d.ts +0 -2662
  142. package/dist/contracts/Morpho.d.ts.map +0 -1
  143. package/dist/contracts/Morpho.js +0 -3350
  144. package/dist/contracts/Paymaster.d.ts +0 -1714
  145. package/dist/contracts/Paymaster.d.ts.map +0 -1
  146. package/dist/contracts/Paymaster.js +0 -2098
  147. package/dist/contracts/RipeLego.d.ts +0 -2913
  148. package/dist/contracts/RipeLego.d.ts.map +0 -1
  149. package/dist/contracts/RipeLego.js +0 -3643
  150. package/dist/contracts/Sentinel.d.ts +0 -2064
  151. package/dist/contracts/Sentinel.d.ts.map +0 -1
  152. package/dist/contracts/Sentinel.js +0 -2476
  153. package/dist/contracts/SignatureHelper.d.ts +0 -4250
  154. package/dist/contracts/SignatureHelper.d.ts.map +0 -1
  155. package/dist/contracts/SignatureHelper.js +0 -5714
  156. package/dist/contracts/SignatureHelperV1.d.ts +0 -4250
  157. package/dist/contracts/SignatureHelperV1.d.ts.map +0 -1
  158. package/dist/contracts/SignatureHelperV1.js +0 -5714
  159. package/dist/contracts/SkyPsm.d.ts +0 -2667
  160. package/dist/contracts/SkyPsm.d.ts.map +0 -1
  161. package/dist/contracts/SkyPsm.js +0 -3356
  162. package/dist/contracts/Switchboard.d.ts +0 -1483
  163. package/dist/contracts/Switchboard.d.ts.map +0 -1
  164. package/dist/contracts/Switchboard.js +0 -1790
  165. package/dist/contracts/SwitchboardAlpha.d.ts +0 -3161
  166. package/dist/contracts/SwitchboardAlpha.d.ts.map +0 -1
  167. package/dist/contracts/SwitchboardAlpha.js +0 -3771
  168. package/dist/contracts/SwitchboardBravo.d.ts +0 -1591
  169. package/dist/contracts/SwitchboardBravo.d.ts.map +0 -1
  170. package/dist/contracts/SwitchboardBravo.js +0 -1872
  171. package/dist/contracts/SwitchboardCharlie.d.ts +0 -3172
  172. package/dist/contracts/SwitchboardCharlie.d.ts.map +0 -1
  173. package/dist/contracts/SwitchboardCharlie.js +0 -3713
  174. package/dist/contracts/UnderscoreLego.d.ts +0 -2592
  175. package/dist/contracts/UnderscoreLego.d.ts.map +0 -1
  176. package/dist/contracts/UnderscoreLego.js +0 -3264
  177. package/dist/contracts/UndyAero.d.ts +0 -1733
  178. package/dist/contracts/UndyAero.d.ts.map +0 -1
  179. package/dist/contracts/UndyAero.js +0 -2235
  180. package/dist/contracts/UndyBtc.d.ts +0 -1733
  181. package/dist/contracts/UndyBtc.d.ts.map +0 -1
  182. package/dist/contracts/UndyBtc.js +0 -2235
  183. package/dist/contracts/UndyCbeth.d.ts +0 -1733
  184. package/dist/contracts/UndyCbeth.d.ts.map +0 -1
  185. package/dist/contracts/UndyCbeth.js +0 -2235
  186. package/dist/contracts/UndyEth.d.ts +0 -1733
  187. package/dist/contracts/UndyEth.d.ts.map +0 -1
  188. package/dist/contracts/UndyEth.js +0 -2235
  189. package/dist/contracts/UndyEurc.d.ts +0 -1733
  190. package/dist/contracts/UndyEurc.d.ts.map +0 -1
  191. package/dist/contracts/UndyEurc.js +0 -2235
  192. package/dist/contracts/UndyGho.d.ts +0 -1733
  193. package/dist/contracts/UndyGho.d.ts.map +0 -1
  194. package/dist/contracts/UndyGho.js +0 -2235
  195. package/dist/contracts/UndyHq.d.ts +0 -1677
  196. package/dist/contracts/UndyHq.d.ts.map +0 -1
  197. package/dist/contracts/UndyHq.js +0 -2026
  198. package/dist/contracts/UndyRewardsLego.d.ts +0 -1572
  199. package/dist/contracts/UndyRewardsLego.d.ts.map +0 -1
  200. package/dist/contracts/UndyRewardsLego.js +0 -1994
  201. package/dist/contracts/UndyUsd.d.ts +0 -1733
  202. package/dist/contracts/UndyUsd.d.ts.map +0 -1
  203. package/dist/contracts/UndyUsd.js +0 -2235
  204. package/dist/contracts/UndyUsdV2.d.ts +0 -1762
  205. package/dist/contracts/UndyUsdV2.d.ts.map +0 -1
  206. package/dist/contracts/UndyUsdV2.js +0 -2267
  207. package/dist/contracts/UndyUsds.d.ts +0 -1733
  208. package/dist/contracts/UndyUsds.d.ts.map +0 -1
  209. package/dist/contracts/UndyUsds.js +0 -2235
  210. package/dist/contracts/UndyVirtual.d.ts +0 -1762
  211. package/dist/contracts/UndyVirtual.d.ts.map +0 -1
  212. package/dist/contracts/UndyVirtual.js +0 -2267
  213. package/dist/contracts/UniswapV2.d.ts +0 -2118
  214. package/dist/contracts/UniswapV2.d.ts.map +0 -1
  215. package/dist/contracts/UniswapV2.js +0 -2679
  216. package/dist/contracts/UniswapV3.d.ts +0 -2256
  217. package/dist/contracts/UniswapV3.d.ts.map +0 -1
  218. package/dist/contracts/UniswapV3.js +0 -2848
  219. package/dist/contracts/UserWallet.d.ts +0 -2650
  220. package/dist/contracts/UserWallet.d.ts.map +0 -1
  221. package/dist/contracts/UserWallet.js +0 -3520
  222. package/dist/contracts/UserWalletConfig.d.ts +0 -3901
  223. package/dist/contracts/UserWalletConfig.d.ts.map +0 -1
  224. package/dist/contracts/UserWalletConfig.js +0 -4507
  225. package/dist/contracts/UserWalletConfigV1.d.ts +0 -3692
  226. package/dist/contracts/UserWalletConfigV1.d.ts.map +0 -1
  227. package/dist/contracts/UserWalletConfigV1.js +0 -4276
  228. package/dist/contracts/UserWalletSignatureHelper.d.ts +0 -4552
  229. package/dist/contracts/UserWalletSignatureHelper.d.ts.map +0 -1
  230. package/dist/contracts/UserWalletSignatureHelper.js +0 -6123
  231. package/dist/contracts/UserWalletV1.d.ts +0 -2650
  232. package/dist/contracts/UserWalletV1.d.ts.map +0 -1
  233. package/dist/contracts/UserWalletV1.js +0 -3520
  234. package/dist/contracts/VaultRegistry.d.ts +0 -3162
  235. package/dist/contracts/VaultRegistry.d.ts.map +0 -1
  236. package/dist/contracts/VaultRegistry.js +0 -3893
  237. package/dist/contracts/WalletBackpack.d.ts +0 -1248
  238. package/dist/contracts/WalletBackpack.d.ts.map +0 -1
  239. package/dist/contracts/WalletBackpack.js +0 -1519
  240. package/dist/contracts/Wasabi.d.ts +0 -2620
  241. package/dist/contracts/Wasabi.d.ts.map +0 -1
  242. package/dist/contracts/Wasabi.js +0 -3300
  243. package/dist/contracts/index.d.ts +0 -76
  244. package/dist/contracts/index.d.ts.map +0 -1
  245. package/dist/contracts/index.js +0 -79
  246. package/dist/contracts/sdk.d.ts +0 -156
  247. package/dist/contracts/sdk.d.ts.map +0 -1
  248. package/dist/contracts/sdk.js +0 -158
  249. package/dist/getSwapInstructions.d.ts +0 -34
  250. package/dist/getSwapInstructions.d.ts.map +0 -1
  251. package/dist/getSwapInstructions.js +0 -21
  252. package/dist/index.d.ts +0 -135
  253. package/dist/index.d.ts.map +0 -1
  254. package/dist/index.js +0 -137
@@ -1,2848 +0,0 @@
1
- /* Autogenerated file. Do not edit manually. */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /* @ts-nocheck */
5
- import { singleQuery, mutate } from '@dappql/async';
6
- import { encodeEventTopics, parseEventLogs } from 'viem';
7
- export const abi = [
8
- {
9
- "name": "AeroSlipStreamSwap",
10
- "inputs": [
11
- {
12
- "name": "sender",
13
- "type": "address",
14
- "indexed": true
15
- },
16
- {
17
- "name": "tokenIn",
18
- "type": "address",
19
- "indexed": true
20
- },
21
- {
22
- "name": "tokenOut",
23
- "type": "address",
24
- "indexed": true
25
- },
26
- {
27
- "name": "amountIn",
28
- "type": "uint256",
29
- "indexed": false
30
- },
31
- {
32
- "name": "amountOut",
33
- "type": "uint256",
34
- "indexed": false
35
- },
36
- {
37
- "name": "usdValue",
38
- "type": "uint256",
39
- "indexed": false
40
- },
41
- {
42
- "name": "numTokens",
43
- "type": "uint256",
44
- "indexed": false
45
- },
46
- {
47
- "name": "recipient",
48
- "type": "address",
49
- "indexed": false
50
- }
51
- ],
52
- "anonymous": false,
53
- "type": "event"
54
- },
55
- {
56
- "name": "AeroSlipStreamLiquidityAdded",
57
- "inputs": [
58
- {
59
- "name": "sender",
60
- "type": "address",
61
- "indexed": true
62
- },
63
- {
64
- "name": "tokenA",
65
- "type": "address",
66
- "indexed": true
67
- },
68
- {
69
- "name": "tokenB",
70
- "type": "address",
71
- "indexed": true
72
- },
73
- {
74
- "name": "amountA",
75
- "type": "uint256",
76
- "indexed": false
77
- },
78
- {
79
- "name": "amountB",
80
- "type": "uint256",
81
- "indexed": false
82
- },
83
- {
84
- "name": "liquidityAdded",
85
- "type": "uint256",
86
- "indexed": false
87
- },
88
- {
89
- "name": "nftTokenId",
90
- "type": "uint256",
91
- "indexed": false
92
- },
93
- {
94
- "name": "usdValue",
95
- "type": "uint256",
96
- "indexed": false
97
- },
98
- {
99
- "name": "recipient",
100
- "type": "address",
101
- "indexed": false
102
- }
103
- ],
104
- "anonymous": false,
105
- "type": "event"
106
- },
107
- {
108
- "name": "AeroSlipStreamLiquidityRemoved",
109
- "inputs": [
110
- {
111
- "name": "sender",
112
- "type": "address",
113
- "indexed": false
114
- },
115
- {
116
- "name": "pool",
117
- "type": "address",
118
- "indexed": true
119
- },
120
- {
121
- "name": "nftTokenId",
122
- "type": "uint256",
123
- "indexed": false
124
- },
125
- {
126
- "name": "tokenA",
127
- "type": "address",
128
- "indexed": true
129
- },
130
- {
131
- "name": "tokenB",
132
- "type": "address",
133
- "indexed": true
134
- },
135
- {
136
- "name": "amountA",
137
- "type": "uint256",
138
- "indexed": false
139
- },
140
- {
141
- "name": "amountB",
142
- "type": "uint256",
143
- "indexed": false
144
- },
145
- {
146
- "name": "liquidityRemoved",
147
- "type": "uint256",
148
- "indexed": false
149
- },
150
- {
151
- "name": "usdValue",
152
- "type": "uint256",
153
- "indexed": false
154
- },
155
- {
156
- "name": "recipient",
157
- "type": "address",
158
- "indexed": false
159
- }
160
- ],
161
- "anonymous": false,
162
- "type": "event"
163
- },
164
- {
165
- "name": "AeroSlipStreamNftRecovered",
166
- "inputs": [
167
- {
168
- "name": "collection",
169
- "type": "address",
170
- "indexed": true
171
- },
172
- {
173
- "name": "nftTokenId",
174
- "type": "uint256",
175
- "indexed": false
176
- },
177
- {
178
- "name": "recipient",
179
- "type": "address",
180
- "indexed": true
181
- }
182
- ],
183
- "anonymous": false,
184
- "type": "event"
185
- },
186
- {
187
- "name": "AeroSlipstreamFeesCollected",
188
- "inputs": [
189
- {
190
- "name": "sender",
191
- "type": "address",
192
- "indexed": true
193
- },
194
- {
195
- "name": "nftTokenId",
196
- "type": "uint256",
197
- "indexed": false
198
- },
199
- {
200
- "name": "token0",
201
- "type": "address",
202
- "indexed": true
203
- },
204
- {
205
- "name": "token1",
206
- "type": "address",
207
- "indexed": true
208
- },
209
- {
210
- "name": "amount0",
211
- "type": "uint256",
212
- "indexed": false
213
- },
214
- {
215
- "name": "amount1",
216
- "type": "uint256",
217
- "indexed": false
218
- },
219
- {
220
- "name": "recipient",
221
- "type": "address",
222
- "indexed": false
223
- }
224
- ],
225
- "anonymous": false,
226
- "type": "event"
227
- },
228
- {
229
- "name": "LegoPauseModified",
230
- "inputs": [
231
- {
232
- "name": "isPaused",
233
- "type": "bool",
234
- "indexed": false
235
- }
236
- ],
237
- "anonymous": false,
238
- "type": "event"
239
- },
240
- {
241
- "name": "LegoFundsRecovered",
242
- "inputs": [
243
- {
244
- "name": "asset",
245
- "type": "address",
246
- "indexed": true
247
- },
248
- {
249
- "name": "recipient",
250
- "type": "address",
251
- "indexed": true
252
- },
253
- {
254
- "name": "balance",
255
- "type": "uint256",
256
- "indexed": false
257
- }
258
- ],
259
- "anonymous": false,
260
- "type": "event"
261
- },
262
- {
263
- "stateMutability": "view",
264
- "type": "function",
265
- "name": "getAddys",
266
- "inputs": [],
267
- "outputs": [
268
- {
269
- "name": "",
270
- "type": "tuple",
271
- "components": [
272
- {
273
- "name": "hq",
274
- "type": "address"
275
- },
276
- {
277
- "name": "undyToken",
278
- "type": "address"
279
- },
280
- {
281
- "name": "ledger",
282
- "type": "address"
283
- },
284
- {
285
- "name": "missionControl",
286
- "type": "address"
287
- },
288
- {
289
- "name": "legoBook",
290
- "type": "address"
291
- },
292
- {
293
- "name": "switchboard",
294
- "type": "address"
295
- },
296
- {
297
- "name": "hatchery",
298
- "type": "address"
299
- },
300
- {
301
- "name": "lootDistributor",
302
- "type": "address"
303
- },
304
- {
305
- "name": "appraiser",
306
- "type": "address"
307
- },
308
- {
309
- "name": "walletBackpack",
310
- "type": "address"
311
- },
312
- {
313
- "name": "billing",
314
- "type": "address"
315
- },
316
- {
317
- "name": "vaultRegistry",
318
- "type": "address"
319
- }
320
- ]
321
- }
322
- ]
323
- },
324
- {
325
- "stateMutability": "view",
326
- "type": "function",
327
- "name": "getUndyHq",
328
- "inputs": [],
329
- "outputs": [
330
- {
331
- "name": "",
332
- "type": "address"
333
- }
334
- ]
335
- },
336
- {
337
- "stateMutability": "nonpayable",
338
- "type": "function",
339
- "name": "pause",
340
- "inputs": [
341
- {
342
- "name": "_shouldPause",
343
- "type": "bool"
344
- }
345
- ],
346
- "outputs": []
347
- },
348
- {
349
- "stateMutability": "nonpayable",
350
- "type": "function",
351
- "name": "recoverFunds",
352
- "inputs": [
353
- {
354
- "name": "_recipient",
355
- "type": "address"
356
- },
357
- {
358
- "name": "_asset",
359
- "type": "address"
360
- }
361
- ],
362
- "outputs": []
363
- },
364
- {
365
- "stateMutability": "nonpayable",
366
- "type": "function",
367
- "name": "recoverFundsMany",
368
- "inputs": [
369
- {
370
- "name": "_recipient",
371
- "type": "address"
372
- },
373
- {
374
- "name": "_assets",
375
- "type": "address[]"
376
- }
377
- ],
378
- "outputs": []
379
- },
380
- {
381
- "stateMutability": "view",
382
- "type": "function",
383
- "name": "legoId",
384
- "inputs": [],
385
- "outputs": [
386
- {
387
- "name": "",
388
- "type": "uint256"
389
- }
390
- ]
391
- },
392
- {
393
- "stateMutability": "view",
394
- "type": "function",
395
- "name": "isPaused",
396
- "inputs": [],
397
- "outputs": [
398
- {
399
- "name": "",
400
- "type": "bool"
401
- }
402
- ]
403
- },
404
- {
405
- "stateMutability": "view",
406
- "type": "function",
407
- "name": "hasCapability",
408
- "inputs": [
409
- {
410
- "name": "_action",
411
- "type": "uint256"
412
- }
413
- ],
414
- "outputs": [
415
- {
416
- "name": "",
417
- "type": "bool"
418
- }
419
- ]
420
- },
421
- {
422
- "stateMutability": "view",
423
- "type": "function",
424
- "name": "onERC721Received",
425
- "inputs": [
426
- {
427
- "name": "_operator",
428
- "type": "address"
429
- },
430
- {
431
- "name": "_owner",
432
- "type": "address"
433
- },
434
- {
435
- "name": "_tokenId",
436
- "type": "uint256"
437
- },
438
- {
439
- "name": "_data",
440
- "type": "bytes"
441
- }
442
- ],
443
- "outputs": [
444
- {
445
- "name": "",
446
- "type": "bytes4"
447
- }
448
- ]
449
- },
450
- {
451
- "stateMutability": "view",
452
- "type": "function",
453
- "name": "getRegistries",
454
- "inputs": [],
455
- "outputs": [
456
- {
457
- "name": "",
458
- "type": "address[]"
459
- }
460
- ]
461
- },
462
- {
463
- "stateMutability": "view",
464
- "type": "function",
465
- "name": "isYieldLego",
466
- "inputs": [],
467
- "outputs": [
468
- {
469
- "name": "",
470
- "type": "bool"
471
- }
472
- ]
473
- },
474
- {
475
- "stateMutability": "view",
476
- "type": "function",
477
- "name": "isDexLego",
478
- "inputs": [],
479
- "outputs": [
480
- {
481
- "name": "",
482
- "type": "bool"
483
- }
484
- ]
485
- },
486
- {
487
- "stateMutability": "nonpayable",
488
- "type": "function",
489
- "name": "swapTokens",
490
- "inputs": [
491
- {
492
- "name": "_amountIn",
493
- "type": "uint256"
494
- },
495
- {
496
- "name": "_minAmountOut",
497
- "type": "uint256"
498
- },
499
- {
500
- "name": "_tokenPath",
501
- "type": "address[]"
502
- },
503
- {
504
- "name": "_poolPath",
505
- "type": "address[]"
506
- },
507
- {
508
- "name": "_recipient",
509
- "type": "address"
510
- }
511
- ],
512
- "outputs": [
513
- {
514
- "name": "",
515
- "type": "uint256"
516
- },
517
- {
518
- "name": "",
519
- "type": "uint256"
520
- },
521
- {
522
- "name": "",
523
- "type": "uint256"
524
- }
525
- ]
526
- },
527
- {
528
- "stateMutability": "nonpayable",
529
- "type": "function",
530
- "name": "swapTokens",
531
- "inputs": [
532
- {
533
- "name": "_amountIn",
534
- "type": "uint256"
535
- },
536
- {
537
- "name": "_minAmountOut",
538
- "type": "uint256"
539
- },
540
- {
541
- "name": "_tokenPath",
542
- "type": "address[]"
543
- },
544
- {
545
- "name": "_poolPath",
546
- "type": "address[]"
547
- },
548
- {
549
- "name": "_recipient",
550
- "type": "address"
551
- },
552
- {
553
- "name": "_miniAddys",
554
- "type": "tuple",
555
- "components": [
556
- {
557
- "name": "ledger",
558
- "type": "address"
559
- },
560
- {
561
- "name": "missionControl",
562
- "type": "address"
563
- },
564
- {
565
- "name": "legoBook",
566
- "type": "address"
567
- },
568
- {
569
- "name": "appraiser",
570
- "type": "address"
571
- }
572
- ]
573
- }
574
- ],
575
- "outputs": [
576
- {
577
- "name": "",
578
- "type": "uint256"
579
- },
580
- {
581
- "name": "",
582
- "type": "uint256"
583
- },
584
- {
585
- "name": "",
586
- "type": "uint256"
587
- }
588
- ]
589
- },
590
- {
591
- "stateMutability": "nonpayable",
592
- "type": "function",
593
- "name": "uniswapV3SwapCallback",
594
- "inputs": [
595
- {
596
- "name": "_amount0Delta",
597
- "type": "int256"
598
- },
599
- {
600
- "name": "_amount1Delta",
601
- "type": "int256"
602
- },
603
- {
604
- "name": "_data",
605
- "type": "bytes"
606
- }
607
- ],
608
- "outputs": []
609
- },
610
- {
611
- "stateMutability": "nonpayable",
612
- "type": "function",
613
- "name": "addLiquidityConcentrated",
614
- "inputs": [
615
- {
616
- "name": "_nftTokenId",
617
- "type": "uint256"
618
- },
619
- {
620
- "name": "_pool",
621
- "type": "address"
622
- },
623
- {
624
- "name": "_tokenA",
625
- "type": "address"
626
- },
627
- {
628
- "name": "_tokenB",
629
- "type": "address"
630
- },
631
- {
632
- "name": "_tickLower",
633
- "type": "int24"
634
- },
635
- {
636
- "name": "_tickUpper",
637
- "type": "int24"
638
- },
639
- {
640
- "name": "_amountA",
641
- "type": "uint256"
642
- },
643
- {
644
- "name": "_amountB",
645
- "type": "uint256"
646
- },
647
- {
648
- "name": "_minAmountA",
649
- "type": "uint256"
650
- },
651
- {
652
- "name": "_minAmountB",
653
- "type": "uint256"
654
- },
655
- {
656
- "name": "_extraData",
657
- "type": "bytes32"
658
- },
659
- {
660
- "name": "_recipient",
661
- "type": "address"
662
- }
663
- ],
664
- "outputs": [
665
- {
666
- "name": "",
667
- "type": "uint256"
668
- },
669
- {
670
- "name": "",
671
- "type": "uint256"
672
- },
673
- {
674
- "name": "",
675
- "type": "uint256"
676
- },
677
- {
678
- "name": "",
679
- "type": "uint256"
680
- },
681
- {
682
- "name": "",
683
- "type": "uint256"
684
- }
685
- ]
686
- },
687
- {
688
- "stateMutability": "nonpayable",
689
- "type": "function",
690
- "name": "addLiquidityConcentrated",
691
- "inputs": [
692
- {
693
- "name": "_nftTokenId",
694
- "type": "uint256"
695
- },
696
- {
697
- "name": "_pool",
698
- "type": "address"
699
- },
700
- {
701
- "name": "_tokenA",
702
- "type": "address"
703
- },
704
- {
705
- "name": "_tokenB",
706
- "type": "address"
707
- },
708
- {
709
- "name": "_tickLower",
710
- "type": "int24"
711
- },
712
- {
713
- "name": "_tickUpper",
714
- "type": "int24"
715
- },
716
- {
717
- "name": "_amountA",
718
- "type": "uint256"
719
- },
720
- {
721
- "name": "_amountB",
722
- "type": "uint256"
723
- },
724
- {
725
- "name": "_minAmountA",
726
- "type": "uint256"
727
- },
728
- {
729
- "name": "_minAmountB",
730
- "type": "uint256"
731
- },
732
- {
733
- "name": "_extraData",
734
- "type": "bytes32"
735
- },
736
- {
737
- "name": "_recipient",
738
- "type": "address"
739
- },
740
- {
741
- "name": "_miniAddys",
742
- "type": "tuple",
743
- "components": [
744
- {
745
- "name": "ledger",
746
- "type": "address"
747
- },
748
- {
749
- "name": "missionControl",
750
- "type": "address"
751
- },
752
- {
753
- "name": "legoBook",
754
- "type": "address"
755
- },
756
- {
757
- "name": "appraiser",
758
- "type": "address"
759
- }
760
- ]
761
- }
762
- ],
763
- "outputs": [
764
- {
765
- "name": "",
766
- "type": "uint256"
767
- },
768
- {
769
- "name": "",
770
- "type": "uint256"
771
- },
772
- {
773
- "name": "",
774
- "type": "uint256"
775
- },
776
- {
777
- "name": "",
778
- "type": "uint256"
779
- },
780
- {
781
- "name": "",
782
- "type": "uint256"
783
- }
784
- ]
785
- },
786
- {
787
- "stateMutability": "nonpayable",
788
- "type": "function",
789
- "name": "removeLiquidityConcentrated",
790
- "inputs": [
791
- {
792
- "name": "_nftTokenId",
793
- "type": "uint256"
794
- },
795
- {
796
- "name": "_pool",
797
- "type": "address"
798
- },
799
- {
800
- "name": "_tokenA",
801
- "type": "address"
802
- },
803
- {
804
- "name": "_tokenB",
805
- "type": "address"
806
- },
807
- {
808
- "name": "_liqToRemove",
809
- "type": "uint256"
810
- },
811
- {
812
- "name": "_minAmountA",
813
- "type": "uint256"
814
- },
815
- {
816
- "name": "_minAmountB",
817
- "type": "uint256"
818
- },
819
- {
820
- "name": "_extraData",
821
- "type": "bytes32"
822
- },
823
- {
824
- "name": "_recipient",
825
- "type": "address"
826
- }
827
- ],
828
- "outputs": [
829
- {
830
- "name": "",
831
- "type": "uint256"
832
- },
833
- {
834
- "name": "",
835
- "type": "uint256"
836
- },
837
- {
838
- "name": "",
839
- "type": "uint256"
840
- },
841
- {
842
- "name": "",
843
- "type": "bool"
844
- },
845
- {
846
- "name": "",
847
- "type": "uint256"
848
- }
849
- ]
850
- },
851
- {
852
- "stateMutability": "nonpayable",
853
- "type": "function",
854
- "name": "removeLiquidityConcentrated",
855
- "inputs": [
856
- {
857
- "name": "_nftTokenId",
858
- "type": "uint256"
859
- },
860
- {
861
- "name": "_pool",
862
- "type": "address"
863
- },
864
- {
865
- "name": "_tokenA",
866
- "type": "address"
867
- },
868
- {
869
- "name": "_tokenB",
870
- "type": "address"
871
- },
872
- {
873
- "name": "_liqToRemove",
874
- "type": "uint256"
875
- },
876
- {
877
- "name": "_minAmountA",
878
- "type": "uint256"
879
- },
880
- {
881
- "name": "_minAmountB",
882
- "type": "uint256"
883
- },
884
- {
885
- "name": "_extraData",
886
- "type": "bytes32"
887
- },
888
- {
889
- "name": "_recipient",
890
- "type": "address"
891
- },
892
- {
893
- "name": "_miniAddys",
894
- "type": "tuple",
895
- "components": [
896
- {
897
- "name": "ledger",
898
- "type": "address"
899
- },
900
- {
901
- "name": "missionControl",
902
- "type": "address"
903
- },
904
- {
905
- "name": "legoBook",
906
- "type": "address"
907
- },
908
- {
909
- "name": "appraiser",
910
- "type": "address"
911
- }
912
- ]
913
- }
914
- ],
915
- "outputs": [
916
- {
917
- "name": "",
918
- "type": "uint256"
919
- },
920
- {
921
- "name": "",
922
- "type": "uint256"
923
- },
924
- {
925
- "name": "",
926
- "type": "uint256"
927
- },
928
- {
929
- "name": "",
930
- "type": "bool"
931
- },
932
- {
933
- "name": "",
934
- "type": "uint256"
935
- }
936
- ]
937
- },
938
- {
939
- "stateMutability": "view",
940
- "type": "function",
941
- "name": "getLpToken",
942
- "inputs": [
943
- {
944
- "name": "_pool",
945
- "type": "address"
946
- }
947
- ],
948
- "outputs": [
949
- {
950
- "name": "",
951
- "type": "address"
952
- }
953
- ]
954
- },
955
- {
956
- "stateMutability": "view",
957
- "type": "function",
958
- "name": "getPoolForLpToken",
959
- "inputs": [
960
- {
961
- "name": "_lpToken",
962
- "type": "address"
963
- }
964
- ],
965
- "outputs": [
966
- {
967
- "name": "",
968
- "type": "address"
969
- }
970
- ]
971
- },
972
- {
973
- "stateMutability": "view",
974
- "type": "function",
975
- "name": "getCoreRouterPool",
976
- "inputs": [],
977
- "outputs": [
978
- {
979
- "name": "",
980
- "type": "address"
981
- }
982
- ]
983
- },
984
- {
985
- "stateMutability": "view",
986
- "type": "function",
987
- "name": "getDeepestLiqPool",
988
- "inputs": [
989
- {
990
- "name": "_tokenA",
991
- "type": "address"
992
- },
993
- {
994
- "name": "_tokenB",
995
- "type": "address"
996
- }
997
- ],
998
- "outputs": [
999
- {
1000
- "name": "",
1001
- "type": "tuple",
1002
- "components": [
1003
- {
1004
- "name": "pool",
1005
- "type": "address"
1006
- },
1007
- {
1008
- "name": "fee",
1009
- "type": "uint256"
1010
- },
1011
- {
1012
- "name": "liquidity",
1013
- "type": "uint256"
1014
- },
1015
- {
1016
- "name": "numCoins",
1017
- "type": "uint256"
1018
- }
1019
- ]
1020
- }
1021
- ]
1022
- },
1023
- {
1024
- "stateMutability": "nonpayable",
1025
- "type": "function",
1026
- "name": "getBestSwapAmountOut",
1027
- "inputs": [
1028
- {
1029
- "name": "_tokenIn",
1030
- "type": "address"
1031
- },
1032
- {
1033
- "name": "_tokenOut",
1034
- "type": "address"
1035
- },
1036
- {
1037
- "name": "_amountIn",
1038
- "type": "uint256"
1039
- }
1040
- ],
1041
- "outputs": [
1042
- {
1043
- "name": "",
1044
- "type": "address"
1045
- },
1046
- {
1047
- "name": "",
1048
- "type": "uint256"
1049
- }
1050
- ]
1051
- },
1052
- {
1053
- "stateMutability": "nonpayable",
1054
- "type": "function",
1055
- "name": "getSwapAmountOut",
1056
- "inputs": [
1057
- {
1058
- "name": "_pool",
1059
- "type": "address"
1060
- },
1061
- {
1062
- "name": "_tokenIn",
1063
- "type": "address"
1064
- },
1065
- {
1066
- "name": "_tokenOut",
1067
- "type": "address"
1068
- },
1069
- {
1070
- "name": "_amountIn",
1071
- "type": "uint256"
1072
- }
1073
- ],
1074
- "outputs": [
1075
- {
1076
- "name": "",
1077
- "type": "uint256"
1078
- }
1079
- ]
1080
- },
1081
- {
1082
- "stateMutability": "nonpayable",
1083
- "type": "function",
1084
- "name": "getBestSwapAmountIn",
1085
- "inputs": [
1086
- {
1087
- "name": "_tokenIn",
1088
- "type": "address"
1089
- },
1090
- {
1091
- "name": "_tokenOut",
1092
- "type": "address"
1093
- },
1094
- {
1095
- "name": "_amountOut",
1096
- "type": "uint256"
1097
- }
1098
- ],
1099
- "outputs": [
1100
- {
1101
- "name": "",
1102
- "type": "address"
1103
- },
1104
- {
1105
- "name": "",
1106
- "type": "uint256"
1107
- }
1108
- ]
1109
- },
1110
- {
1111
- "stateMutability": "nonpayable",
1112
- "type": "function",
1113
- "name": "getSwapAmountIn",
1114
- "inputs": [
1115
- {
1116
- "name": "_pool",
1117
- "type": "address"
1118
- },
1119
- {
1120
- "name": "_tokenIn",
1121
- "type": "address"
1122
- },
1123
- {
1124
- "name": "_tokenOut",
1125
- "type": "address"
1126
- },
1127
- {
1128
- "name": "_amountOut",
1129
- "type": "uint256"
1130
- }
1131
- ],
1132
- "outputs": [
1133
- {
1134
- "name": "",
1135
- "type": "uint256"
1136
- }
1137
- ]
1138
- },
1139
- {
1140
- "stateMutability": "view",
1141
- "type": "function",
1142
- "name": "getAddLiqAmountsIn",
1143
- "inputs": [
1144
- {
1145
- "name": "_pool",
1146
- "type": "address"
1147
- },
1148
- {
1149
- "name": "_tokenA",
1150
- "type": "address"
1151
- },
1152
- {
1153
- "name": "_tokenB",
1154
- "type": "address"
1155
- },
1156
- {
1157
- "name": "_availAmountA",
1158
- "type": "uint256"
1159
- },
1160
- {
1161
- "name": "_availAmountB",
1162
- "type": "uint256"
1163
- }
1164
- ],
1165
- "outputs": [
1166
- {
1167
- "name": "",
1168
- "type": "uint256"
1169
- },
1170
- {
1171
- "name": "",
1172
- "type": "uint256"
1173
- },
1174
- {
1175
- "name": "",
1176
- "type": "uint256"
1177
- }
1178
- ]
1179
- },
1180
- {
1181
- "stateMutability": "view",
1182
- "type": "function",
1183
- "name": "getRemoveLiqAmountsOut",
1184
- "inputs": [
1185
- {
1186
- "name": "_pool",
1187
- "type": "address"
1188
- },
1189
- {
1190
- "name": "_tokenA",
1191
- "type": "address"
1192
- },
1193
- {
1194
- "name": "_tokenB",
1195
- "type": "address"
1196
- },
1197
- {
1198
- "name": "_lpAmount",
1199
- "type": "uint256"
1200
- }
1201
- ],
1202
- "outputs": [
1203
- {
1204
- "name": "",
1205
- "type": "uint256"
1206
- },
1207
- {
1208
- "name": "",
1209
- "type": "uint256"
1210
- }
1211
- ]
1212
- },
1213
- {
1214
- "stateMutability": "view",
1215
- "type": "function",
1216
- "name": "getPrice",
1217
- "inputs": [
1218
- {
1219
- "name": "_asset",
1220
- "type": "address"
1221
- },
1222
- {
1223
- "name": "_decimals",
1224
- "type": "uint256"
1225
- }
1226
- ],
1227
- "outputs": [
1228
- {
1229
- "name": "",
1230
- "type": "uint256"
1231
- }
1232
- ]
1233
- },
1234
- {
1235
- "stateMutability": "view",
1236
- "type": "function",
1237
- "name": "getPriceUnsafe",
1238
- "inputs": [
1239
- {
1240
- "name": "_pool",
1241
- "type": "address"
1242
- },
1243
- {
1244
- "name": "_targetToken",
1245
- "type": "address"
1246
- }
1247
- ],
1248
- "outputs": [
1249
- {
1250
- "name": "",
1251
- "type": "uint256"
1252
- }
1253
- ]
1254
- },
1255
- {
1256
- "stateMutability": "view",
1257
- "type": "function",
1258
- "name": "getPriceUnsafe",
1259
- "inputs": [
1260
- {
1261
- "name": "_pool",
1262
- "type": "address"
1263
- },
1264
- {
1265
- "name": "_targetToken",
1266
- "type": "address"
1267
- },
1268
- {
1269
- "name": "_appraiser",
1270
- "type": "address"
1271
- }
1272
- ],
1273
- "outputs": [
1274
- {
1275
- "name": "",
1276
- "type": "uint256"
1277
- }
1278
- ]
1279
- },
1280
- {
1281
- "stateMutability": "nonpayable",
1282
- "type": "function",
1283
- "name": "recoverNft",
1284
- "inputs": [
1285
- {
1286
- "name": "_collection",
1287
- "type": "address"
1288
- },
1289
- {
1290
- "name": "_nftTokenId",
1291
- "type": "uint256"
1292
- },
1293
- {
1294
- "name": "_recipient",
1295
- "type": "address"
1296
- }
1297
- ],
1298
- "outputs": [
1299
- {
1300
- "name": "",
1301
- "type": "bool"
1302
- }
1303
- ]
1304
- },
1305
- {
1306
- "stateMutability": "nonpayable",
1307
- "type": "function",
1308
- "name": "depositForYield",
1309
- "inputs": [
1310
- {
1311
- "name": "_asset",
1312
- "type": "address"
1313
- },
1314
- {
1315
- "name": "_amount",
1316
- "type": "uint256"
1317
- },
1318
- {
1319
- "name": "_vaultAddr",
1320
- "type": "address"
1321
- },
1322
- {
1323
- "name": "_extraData",
1324
- "type": "bytes32"
1325
- },
1326
- {
1327
- "name": "_recipient",
1328
- "type": "address"
1329
- }
1330
- ],
1331
- "outputs": [
1332
- {
1333
- "name": "",
1334
- "type": "uint256"
1335
- },
1336
- {
1337
- "name": "",
1338
- "type": "address"
1339
- },
1340
- {
1341
- "name": "",
1342
- "type": "uint256"
1343
- },
1344
- {
1345
- "name": "",
1346
- "type": "uint256"
1347
- }
1348
- ]
1349
- },
1350
- {
1351
- "stateMutability": "nonpayable",
1352
- "type": "function",
1353
- "name": "depositForYield",
1354
- "inputs": [
1355
- {
1356
- "name": "_asset",
1357
- "type": "address"
1358
- },
1359
- {
1360
- "name": "_amount",
1361
- "type": "uint256"
1362
- },
1363
- {
1364
- "name": "_vaultAddr",
1365
- "type": "address"
1366
- },
1367
- {
1368
- "name": "_extraData",
1369
- "type": "bytes32"
1370
- },
1371
- {
1372
- "name": "_recipient",
1373
- "type": "address"
1374
- },
1375
- {
1376
- "name": "_miniAddys",
1377
- "type": "tuple",
1378
- "components": [
1379
- {
1380
- "name": "ledger",
1381
- "type": "address"
1382
- },
1383
- {
1384
- "name": "missionControl",
1385
- "type": "address"
1386
- },
1387
- {
1388
- "name": "legoBook",
1389
- "type": "address"
1390
- },
1391
- {
1392
- "name": "appraiser",
1393
- "type": "address"
1394
- }
1395
- ]
1396
- }
1397
- ],
1398
- "outputs": [
1399
- {
1400
- "name": "",
1401
- "type": "uint256"
1402
- },
1403
- {
1404
- "name": "",
1405
- "type": "address"
1406
- },
1407
- {
1408
- "name": "",
1409
- "type": "uint256"
1410
- },
1411
- {
1412
- "name": "",
1413
- "type": "uint256"
1414
- }
1415
- ]
1416
- },
1417
- {
1418
- "stateMutability": "nonpayable",
1419
- "type": "function",
1420
- "name": "withdrawFromYield",
1421
- "inputs": [
1422
- {
1423
- "name": "_vaultToken",
1424
- "type": "address"
1425
- },
1426
- {
1427
- "name": "_amount",
1428
- "type": "uint256"
1429
- },
1430
- {
1431
- "name": "_extraData",
1432
- "type": "bytes32"
1433
- },
1434
- {
1435
- "name": "_recipient",
1436
- "type": "address"
1437
- }
1438
- ],
1439
- "outputs": [
1440
- {
1441
- "name": "",
1442
- "type": "uint256"
1443
- },
1444
- {
1445
- "name": "",
1446
- "type": "address"
1447
- },
1448
- {
1449
- "name": "",
1450
- "type": "uint256"
1451
- },
1452
- {
1453
- "name": "",
1454
- "type": "uint256"
1455
- }
1456
- ]
1457
- },
1458
- {
1459
- "stateMutability": "nonpayable",
1460
- "type": "function",
1461
- "name": "withdrawFromYield",
1462
- "inputs": [
1463
- {
1464
- "name": "_vaultToken",
1465
- "type": "address"
1466
- },
1467
- {
1468
- "name": "_amount",
1469
- "type": "uint256"
1470
- },
1471
- {
1472
- "name": "_extraData",
1473
- "type": "bytes32"
1474
- },
1475
- {
1476
- "name": "_recipient",
1477
- "type": "address"
1478
- },
1479
- {
1480
- "name": "_miniAddys",
1481
- "type": "tuple",
1482
- "components": [
1483
- {
1484
- "name": "ledger",
1485
- "type": "address"
1486
- },
1487
- {
1488
- "name": "missionControl",
1489
- "type": "address"
1490
- },
1491
- {
1492
- "name": "legoBook",
1493
- "type": "address"
1494
- },
1495
- {
1496
- "name": "appraiser",
1497
- "type": "address"
1498
- }
1499
- ]
1500
- }
1501
- ],
1502
- "outputs": [
1503
- {
1504
- "name": "",
1505
- "type": "uint256"
1506
- },
1507
- {
1508
- "name": "",
1509
- "type": "address"
1510
- },
1511
- {
1512
- "name": "",
1513
- "type": "uint256"
1514
- },
1515
- {
1516
- "name": "",
1517
- "type": "uint256"
1518
- }
1519
- ]
1520
- },
1521
- {
1522
- "stateMutability": "nonpayable",
1523
- "type": "function",
1524
- "name": "mintOrRedeemAsset",
1525
- "inputs": [
1526
- {
1527
- "name": "_tokenIn",
1528
- "type": "address"
1529
- },
1530
- {
1531
- "name": "_tokenOut",
1532
- "type": "address"
1533
- },
1534
- {
1535
- "name": "_tokenInAmount",
1536
- "type": "uint256"
1537
- },
1538
- {
1539
- "name": "_minAmountOut",
1540
- "type": "uint256"
1541
- },
1542
- {
1543
- "name": "_extraData",
1544
- "type": "bytes32"
1545
- },
1546
- {
1547
- "name": "_recipient",
1548
- "type": "address"
1549
- }
1550
- ],
1551
- "outputs": [
1552
- {
1553
- "name": "",
1554
- "type": "uint256"
1555
- },
1556
- {
1557
- "name": "",
1558
- "type": "uint256"
1559
- },
1560
- {
1561
- "name": "",
1562
- "type": "bool"
1563
- },
1564
- {
1565
- "name": "",
1566
- "type": "uint256"
1567
- }
1568
- ]
1569
- },
1570
- {
1571
- "stateMutability": "nonpayable",
1572
- "type": "function",
1573
- "name": "mintOrRedeemAsset",
1574
- "inputs": [
1575
- {
1576
- "name": "_tokenIn",
1577
- "type": "address"
1578
- },
1579
- {
1580
- "name": "_tokenOut",
1581
- "type": "address"
1582
- },
1583
- {
1584
- "name": "_tokenInAmount",
1585
- "type": "uint256"
1586
- },
1587
- {
1588
- "name": "_minAmountOut",
1589
- "type": "uint256"
1590
- },
1591
- {
1592
- "name": "_extraData",
1593
- "type": "bytes32"
1594
- },
1595
- {
1596
- "name": "_recipient",
1597
- "type": "address"
1598
- },
1599
- {
1600
- "name": "_miniAddys",
1601
- "type": "tuple",
1602
- "components": [
1603
- {
1604
- "name": "ledger",
1605
- "type": "address"
1606
- },
1607
- {
1608
- "name": "missionControl",
1609
- "type": "address"
1610
- },
1611
- {
1612
- "name": "legoBook",
1613
- "type": "address"
1614
- },
1615
- {
1616
- "name": "appraiser",
1617
- "type": "address"
1618
- }
1619
- ]
1620
- }
1621
- ],
1622
- "outputs": [
1623
- {
1624
- "name": "",
1625
- "type": "uint256"
1626
- },
1627
- {
1628
- "name": "",
1629
- "type": "uint256"
1630
- },
1631
- {
1632
- "name": "",
1633
- "type": "bool"
1634
- },
1635
- {
1636
- "name": "",
1637
- "type": "uint256"
1638
- }
1639
- ]
1640
- },
1641
- {
1642
- "stateMutability": "nonpayable",
1643
- "type": "function",
1644
- "name": "confirmMintOrRedeemAsset",
1645
- "inputs": [
1646
- {
1647
- "name": "_tokenIn",
1648
- "type": "address"
1649
- },
1650
- {
1651
- "name": "_tokenOut",
1652
- "type": "address"
1653
- },
1654
- {
1655
- "name": "_extraData",
1656
- "type": "bytes32"
1657
- },
1658
- {
1659
- "name": "_recipient",
1660
- "type": "address"
1661
- }
1662
- ],
1663
- "outputs": [
1664
- {
1665
- "name": "",
1666
- "type": "uint256"
1667
- },
1668
- {
1669
- "name": "",
1670
- "type": "uint256"
1671
- }
1672
- ]
1673
- },
1674
- {
1675
- "stateMutability": "nonpayable",
1676
- "type": "function",
1677
- "name": "confirmMintOrRedeemAsset",
1678
- "inputs": [
1679
- {
1680
- "name": "_tokenIn",
1681
- "type": "address"
1682
- },
1683
- {
1684
- "name": "_tokenOut",
1685
- "type": "address"
1686
- },
1687
- {
1688
- "name": "_extraData",
1689
- "type": "bytes32"
1690
- },
1691
- {
1692
- "name": "_recipient",
1693
- "type": "address"
1694
- },
1695
- {
1696
- "name": "_miniAddys",
1697
- "type": "tuple",
1698
- "components": [
1699
- {
1700
- "name": "ledger",
1701
- "type": "address"
1702
- },
1703
- {
1704
- "name": "missionControl",
1705
- "type": "address"
1706
- },
1707
- {
1708
- "name": "legoBook",
1709
- "type": "address"
1710
- },
1711
- {
1712
- "name": "appraiser",
1713
- "type": "address"
1714
- }
1715
- ]
1716
- }
1717
- ],
1718
- "outputs": [
1719
- {
1720
- "name": "",
1721
- "type": "uint256"
1722
- },
1723
- {
1724
- "name": "",
1725
- "type": "uint256"
1726
- }
1727
- ]
1728
- },
1729
- {
1730
- "stateMutability": "nonpayable",
1731
- "type": "function",
1732
- "name": "addCollateral",
1733
- "inputs": [
1734
- {
1735
- "name": "_asset",
1736
- "type": "address"
1737
- },
1738
- {
1739
- "name": "_amount",
1740
- "type": "uint256"
1741
- },
1742
- {
1743
- "name": "_extraData",
1744
- "type": "bytes32"
1745
- },
1746
- {
1747
- "name": "_recipient",
1748
- "type": "address"
1749
- }
1750
- ],
1751
- "outputs": [
1752
- {
1753
- "name": "",
1754
- "type": "uint256"
1755
- },
1756
- {
1757
- "name": "",
1758
- "type": "uint256"
1759
- }
1760
- ]
1761
- },
1762
- {
1763
- "stateMutability": "nonpayable",
1764
- "type": "function",
1765
- "name": "addCollateral",
1766
- "inputs": [
1767
- {
1768
- "name": "_asset",
1769
- "type": "address"
1770
- },
1771
- {
1772
- "name": "_amount",
1773
- "type": "uint256"
1774
- },
1775
- {
1776
- "name": "_extraData",
1777
- "type": "bytes32"
1778
- },
1779
- {
1780
- "name": "_recipient",
1781
- "type": "address"
1782
- },
1783
- {
1784
- "name": "_miniAddys",
1785
- "type": "tuple",
1786
- "components": [
1787
- {
1788
- "name": "ledger",
1789
- "type": "address"
1790
- },
1791
- {
1792
- "name": "missionControl",
1793
- "type": "address"
1794
- },
1795
- {
1796
- "name": "legoBook",
1797
- "type": "address"
1798
- },
1799
- {
1800
- "name": "appraiser",
1801
- "type": "address"
1802
- }
1803
- ]
1804
- }
1805
- ],
1806
- "outputs": [
1807
- {
1808
- "name": "",
1809
- "type": "uint256"
1810
- },
1811
- {
1812
- "name": "",
1813
- "type": "uint256"
1814
- }
1815
- ]
1816
- },
1817
- {
1818
- "stateMutability": "nonpayable",
1819
- "type": "function",
1820
- "name": "removeCollateral",
1821
- "inputs": [
1822
- {
1823
- "name": "_asset",
1824
- "type": "address"
1825
- },
1826
- {
1827
- "name": "_amount",
1828
- "type": "uint256"
1829
- },
1830
- {
1831
- "name": "_extraData",
1832
- "type": "bytes32"
1833
- },
1834
- {
1835
- "name": "_recipient",
1836
- "type": "address"
1837
- }
1838
- ],
1839
- "outputs": [
1840
- {
1841
- "name": "",
1842
- "type": "uint256"
1843
- },
1844
- {
1845
- "name": "",
1846
- "type": "uint256"
1847
- }
1848
- ]
1849
- },
1850
- {
1851
- "stateMutability": "nonpayable",
1852
- "type": "function",
1853
- "name": "removeCollateral",
1854
- "inputs": [
1855
- {
1856
- "name": "_asset",
1857
- "type": "address"
1858
- },
1859
- {
1860
- "name": "_amount",
1861
- "type": "uint256"
1862
- },
1863
- {
1864
- "name": "_extraData",
1865
- "type": "bytes32"
1866
- },
1867
- {
1868
- "name": "_recipient",
1869
- "type": "address"
1870
- },
1871
- {
1872
- "name": "_miniAddys",
1873
- "type": "tuple",
1874
- "components": [
1875
- {
1876
- "name": "ledger",
1877
- "type": "address"
1878
- },
1879
- {
1880
- "name": "missionControl",
1881
- "type": "address"
1882
- },
1883
- {
1884
- "name": "legoBook",
1885
- "type": "address"
1886
- },
1887
- {
1888
- "name": "appraiser",
1889
- "type": "address"
1890
- }
1891
- ]
1892
- }
1893
- ],
1894
- "outputs": [
1895
- {
1896
- "name": "",
1897
- "type": "uint256"
1898
- },
1899
- {
1900
- "name": "",
1901
- "type": "uint256"
1902
- }
1903
- ]
1904
- },
1905
- {
1906
- "stateMutability": "nonpayable",
1907
- "type": "function",
1908
- "name": "borrow",
1909
- "inputs": [
1910
- {
1911
- "name": "_borrowAsset",
1912
- "type": "address"
1913
- },
1914
- {
1915
- "name": "_amount",
1916
- "type": "uint256"
1917
- },
1918
- {
1919
- "name": "_extraData",
1920
- "type": "bytes32"
1921
- },
1922
- {
1923
- "name": "_recipient",
1924
- "type": "address"
1925
- }
1926
- ],
1927
- "outputs": [
1928
- {
1929
- "name": "",
1930
- "type": "uint256"
1931
- },
1932
- {
1933
- "name": "",
1934
- "type": "uint256"
1935
- }
1936
- ]
1937
- },
1938
- {
1939
- "stateMutability": "nonpayable",
1940
- "type": "function",
1941
- "name": "borrow",
1942
- "inputs": [
1943
- {
1944
- "name": "_borrowAsset",
1945
- "type": "address"
1946
- },
1947
- {
1948
- "name": "_amount",
1949
- "type": "uint256"
1950
- },
1951
- {
1952
- "name": "_extraData",
1953
- "type": "bytes32"
1954
- },
1955
- {
1956
- "name": "_recipient",
1957
- "type": "address"
1958
- },
1959
- {
1960
- "name": "_miniAddys",
1961
- "type": "tuple",
1962
- "components": [
1963
- {
1964
- "name": "ledger",
1965
- "type": "address"
1966
- },
1967
- {
1968
- "name": "missionControl",
1969
- "type": "address"
1970
- },
1971
- {
1972
- "name": "legoBook",
1973
- "type": "address"
1974
- },
1975
- {
1976
- "name": "appraiser",
1977
- "type": "address"
1978
- }
1979
- ]
1980
- }
1981
- ],
1982
- "outputs": [
1983
- {
1984
- "name": "",
1985
- "type": "uint256"
1986
- },
1987
- {
1988
- "name": "",
1989
- "type": "uint256"
1990
- }
1991
- ]
1992
- },
1993
- {
1994
- "stateMutability": "nonpayable",
1995
- "type": "function",
1996
- "name": "repayDebt",
1997
- "inputs": [
1998
- {
1999
- "name": "_paymentAsset",
2000
- "type": "address"
2001
- },
2002
- {
2003
- "name": "_paymentAmount",
2004
- "type": "uint256"
2005
- },
2006
- {
2007
- "name": "_extraData",
2008
- "type": "bytes32"
2009
- },
2010
- {
2011
- "name": "_recipient",
2012
- "type": "address"
2013
- }
2014
- ],
2015
- "outputs": [
2016
- {
2017
- "name": "",
2018
- "type": "uint256"
2019
- },
2020
- {
2021
- "name": "",
2022
- "type": "uint256"
2023
- }
2024
- ]
2025
- },
2026
- {
2027
- "stateMutability": "nonpayable",
2028
- "type": "function",
2029
- "name": "repayDebt",
2030
- "inputs": [
2031
- {
2032
- "name": "_paymentAsset",
2033
- "type": "address"
2034
- },
2035
- {
2036
- "name": "_paymentAmount",
2037
- "type": "uint256"
2038
- },
2039
- {
2040
- "name": "_extraData",
2041
- "type": "bytes32"
2042
- },
2043
- {
2044
- "name": "_recipient",
2045
- "type": "address"
2046
- },
2047
- {
2048
- "name": "_miniAddys",
2049
- "type": "tuple",
2050
- "components": [
2051
- {
2052
- "name": "ledger",
2053
- "type": "address"
2054
- },
2055
- {
2056
- "name": "missionControl",
2057
- "type": "address"
2058
- },
2059
- {
2060
- "name": "legoBook",
2061
- "type": "address"
2062
- },
2063
- {
2064
- "name": "appraiser",
2065
- "type": "address"
2066
- }
2067
- ]
2068
- }
2069
- ],
2070
- "outputs": [
2071
- {
2072
- "name": "",
2073
- "type": "uint256"
2074
- },
2075
- {
2076
- "name": "",
2077
- "type": "uint256"
2078
- }
2079
- ]
2080
- },
2081
- {
2082
- "stateMutability": "nonpayable",
2083
- "type": "function",
2084
- "name": "claimRewards",
2085
- "inputs": [
2086
- {
2087
- "name": "_user",
2088
- "type": "address"
2089
- },
2090
- {
2091
- "name": "_rewardToken",
2092
- "type": "address"
2093
- },
2094
- {
2095
- "name": "_rewardAmount",
2096
- "type": "uint256"
2097
- },
2098
- {
2099
- "name": "_extraData",
2100
- "type": "bytes32"
2101
- }
2102
- ],
2103
- "outputs": [
2104
- {
2105
- "name": "",
2106
- "type": "uint256"
2107
- },
2108
- {
2109
- "name": "",
2110
- "type": "uint256"
2111
- }
2112
- ]
2113
- },
2114
- {
2115
- "stateMutability": "nonpayable",
2116
- "type": "function",
2117
- "name": "claimRewards",
2118
- "inputs": [
2119
- {
2120
- "name": "_user",
2121
- "type": "address"
2122
- },
2123
- {
2124
- "name": "_rewardToken",
2125
- "type": "address"
2126
- },
2127
- {
2128
- "name": "_rewardAmount",
2129
- "type": "uint256"
2130
- },
2131
- {
2132
- "name": "_extraData",
2133
- "type": "bytes32"
2134
- },
2135
- {
2136
- "name": "_miniAddys",
2137
- "type": "tuple",
2138
- "components": [
2139
- {
2140
- "name": "ledger",
2141
- "type": "address"
2142
- },
2143
- {
2144
- "name": "missionControl",
2145
- "type": "address"
2146
- },
2147
- {
2148
- "name": "legoBook",
2149
- "type": "address"
2150
- },
2151
- {
2152
- "name": "appraiser",
2153
- "type": "address"
2154
- }
2155
- ]
2156
- }
2157
- ],
2158
- "outputs": [
2159
- {
2160
- "name": "",
2161
- "type": "uint256"
2162
- },
2163
- {
2164
- "name": "",
2165
- "type": "uint256"
2166
- }
2167
- ]
2168
- },
2169
- {
2170
- "stateMutability": "nonpayable",
2171
- "type": "function",
2172
- "name": "claimIncentives",
2173
- "inputs": [
2174
- {
2175
- "name": "_user",
2176
- "type": "address"
2177
- },
2178
- {
2179
- "name": "_rewardToken",
2180
- "type": "address"
2181
- },
2182
- {
2183
- "name": "_rewardAmount",
2184
- "type": "uint256"
2185
- },
2186
- {
2187
- "name": "_proofs",
2188
- "type": "bytes32[]"
2189
- }
2190
- ],
2191
- "outputs": [
2192
- {
2193
- "name": "",
2194
- "type": "uint256"
2195
- },
2196
- {
2197
- "name": "",
2198
- "type": "uint256"
2199
- }
2200
- ]
2201
- },
2202
- {
2203
- "stateMutability": "nonpayable",
2204
- "type": "function",
2205
- "name": "claimIncentives",
2206
- "inputs": [
2207
- {
2208
- "name": "_user",
2209
- "type": "address"
2210
- },
2211
- {
2212
- "name": "_rewardToken",
2213
- "type": "address"
2214
- },
2215
- {
2216
- "name": "_rewardAmount",
2217
- "type": "uint256"
2218
- },
2219
- {
2220
- "name": "_proofs",
2221
- "type": "bytes32[]"
2222
- },
2223
- {
2224
- "name": "_miniAddys",
2225
- "type": "tuple",
2226
- "components": [
2227
- {
2228
- "name": "ledger",
2229
- "type": "address"
2230
- },
2231
- {
2232
- "name": "missionControl",
2233
- "type": "address"
2234
- },
2235
- {
2236
- "name": "legoBook",
2237
- "type": "address"
2238
- },
2239
- {
2240
- "name": "appraiser",
2241
- "type": "address"
2242
- }
2243
- ]
2244
- }
2245
- ],
2246
- "outputs": [
2247
- {
2248
- "name": "",
2249
- "type": "uint256"
2250
- },
2251
- {
2252
- "name": "",
2253
- "type": "uint256"
2254
- }
2255
- ]
2256
- },
2257
- {
2258
- "stateMutability": "nonpayable",
2259
- "type": "function",
2260
- "name": "addLiquidity",
2261
- "inputs": [
2262
- {
2263
- "name": "_pool",
2264
- "type": "address"
2265
- },
2266
- {
2267
- "name": "_tokenA",
2268
- "type": "address"
2269
- },
2270
- {
2271
- "name": "_tokenB",
2272
- "type": "address"
2273
- },
2274
- {
2275
- "name": "_amountA",
2276
- "type": "uint256"
2277
- },
2278
- {
2279
- "name": "_amountB",
2280
- "type": "uint256"
2281
- },
2282
- {
2283
- "name": "_minAmountA",
2284
- "type": "uint256"
2285
- },
2286
- {
2287
- "name": "_minAmountB",
2288
- "type": "uint256"
2289
- },
2290
- {
2291
- "name": "_minLpAmount",
2292
- "type": "uint256"
2293
- },
2294
- {
2295
- "name": "_extraData",
2296
- "type": "bytes32"
2297
- },
2298
- {
2299
- "name": "_recipient",
2300
- "type": "address"
2301
- }
2302
- ],
2303
- "outputs": [
2304
- {
2305
- "name": "",
2306
- "type": "address"
2307
- },
2308
- {
2309
- "name": "",
2310
- "type": "uint256"
2311
- },
2312
- {
2313
- "name": "",
2314
- "type": "uint256"
2315
- },
2316
- {
2317
- "name": "",
2318
- "type": "uint256"
2319
- },
2320
- {
2321
- "name": "",
2322
- "type": "uint256"
2323
- }
2324
- ]
2325
- },
2326
- {
2327
- "stateMutability": "nonpayable",
2328
- "type": "function",
2329
- "name": "addLiquidity",
2330
- "inputs": [
2331
- {
2332
- "name": "_pool",
2333
- "type": "address"
2334
- },
2335
- {
2336
- "name": "_tokenA",
2337
- "type": "address"
2338
- },
2339
- {
2340
- "name": "_tokenB",
2341
- "type": "address"
2342
- },
2343
- {
2344
- "name": "_amountA",
2345
- "type": "uint256"
2346
- },
2347
- {
2348
- "name": "_amountB",
2349
- "type": "uint256"
2350
- },
2351
- {
2352
- "name": "_minAmountA",
2353
- "type": "uint256"
2354
- },
2355
- {
2356
- "name": "_minAmountB",
2357
- "type": "uint256"
2358
- },
2359
- {
2360
- "name": "_minLpAmount",
2361
- "type": "uint256"
2362
- },
2363
- {
2364
- "name": "_extraData",
2365
- "type": "bytes32"
2366
- },
2367
- {
2368
- "name": "_recipient",
2369
- "type": "address"
2370
- },
2371
- {
2372
- "name": "_miniAddys",
2373
- "type": "tuple",
2374
- "components": [
2375
- {
2376
- "name": "ledger",
2377
- "type": "address"
2378
- },
2379
- {
2380
- "name": "missionControl",
2381
- "type": "address"
2382
- },
2383
- {
2384
- "name": "legoBook",
2385
- "type": "address"
2386
- },
2387
- {
2388
- "name": "appraiser",
2389
- "type": "address"
2390
- }
2391
- ]
2392
- }
2393
- ],
2394
- "outputs": [
2395
- {
2396
- "name": "",
2397
- "type": "address"
2398
- },
2399
- {
2400
- "name": "",
2401
- "type": "uint256"
2402
- },
2403
- {
2404
- "name": "",
2405
- "type": "uint256"
2406
- },
2407
- {
2408
- "name": "",
2409
- "type": "uint256"
2410
- },
2411
- {
2412
- "name": "",
2413
- "type": "uint256"
2414
- }
2415
- ]
2416
- },
2417
- {
2418
- "stateMutability": "nonpayable",
2419
- "type": "function",
2420
- "name": "removeLiquidity",
2421
- "inputs": [
2422
- {
2423
- "name": "_pool",
2424
- "type": "address"
2425
- },
2426
- {
2427
- "name": "_tokenA",
2428
- "type": "address"
2429
- },
2430
- {
2431
- "name": "_tokenB",
2432
- "type": "address"
2433
- },
2434
- {
2435
- "name": "_lpToken",
2436
- "type": "address"
2437
- },
2438
- {
2439
- "name": "_lpAmount",
2440
- "type": "uint256"
2441
- },
2442
- {
2443
- "name": "_minAmountA",
2444
- "type": "uint256"
2445
- },
2446
- {
2447
- "name": "_minAmountB",
2448
- "type": "uint256"
2449
- },
2450
- {
2451
- "name": "_extraData",
2452
- "type": "bytes32"
2453
- },
2454
- {
2455
- "name": "_recipient",
2456
- "type": "address"
2457
- }
2458
- ],
2459
- "outputs": [
2460
- {
2461
- "name": "",
2462
- "type": "uint256"
2463
- },
2464
- {
2465
- "name": "",
2466
- "type": "uint256"
2467
- },
2468
- {
2469
- "name": "",
2470
- "type": "uint256"
2471
- },
2472
- {
2473
- "name": "",
2474
- "type": "uint256"
2475
- }
2476
- ]
2477
- },
2478
- {
2479
- "stateMutability": "nonpayable",
2480
- "type": "function",
2481
- "name": "removeLiquidity",
2482
- "inputs": [
2483
- {
2484
- "name": "_pool",
2485
- "type": "address"
2486
- },
2487
- {
2488
- "name": "_tokenA",
2489
- "type": "address"
2490
- },
2491
- {
2492
- "name": "_tokenB",
2493
- "type": "address"
2494
- },
2495
- {
2496
- "name": "_lpToken",
2497
- "type": "address"
2498
- },
2499
- {
2500
- "name": "_lpAmount",
2501
- "type": "uint256"
2502
- },
2503
- {
2504
- "name": "_minAmountA",
2505
- "type": "uint256"
2506
- },
2507
- {
2508
- "name": "_minAmountB",
2509
- "type": "uint256"
2510
- },
2511
- {
2512
- "name": "_extraData",
2513
- "type": "bytes32"
2514
- },
2515
- {
2516
- "name": "_recipient",
2517
- "type": "address"
2518
- },
2519
- {
2520
- "name": "_miniAddys",
2521
- "type": "tuple",
2522
- "components": [
2523
- {
2524
- "name": "ledger",
2525
- "type": "address"
2526
- },
2527
- {
2528
- "name": "missionControl",
2529
- "type": "address"
2530
- },
2531
- {
2532
- "name": "legoBook",
2533
- "type": "address"
2534
- },
2535
- {
2536
- "name": "appraiser",
2537
- "type": "address"
2538
- }
2539
- ]
2540
- }
2541
- ],
2542
- "outputs": [
2543
- {
2544
- "name": "",
2545
- "type": "uint256"
2546
- },
2547
- {
2548
- "name": "",
2549
- "type": "uint256"
2550
- },
2551
- {
2552
- "name": "",
2553
- "type": "uint256"
2554
- },
2555
- {
2556
- "name": "",
2557
- "type": "uint256"
2558
- }
2559
- ]
2560
- },
2561
- {
2562
- "stateMutability": "view",
2563
- "type": "function",
2564
- "name": "getAccessForLego",
2565
- "inputs": [
2566
- {
2567
- "name": "_user",
2568
- "type": "address"
2569
- },
2570
- {
2571
- "name": "_action",
2572
- "type": "uint256"
2573
- }
2574
- ],
2575
- "outputs": [
2576
- {
2577
- "name": "",
2578
- "type": "address"
2579
- },
2580
- {
2581
- "name": "",
2582
- "type": "string"
2583
- },
2584
- {
2585
- "name": "",
2586
- "type": "uint256"
2587
- }
2588
- ]
2589
- },
2590
- {
2591
- "stateMutability": "view",
2592
- "type": "function",
2593
- "name": "AERO_SLIPSTREAM_FACTORY",
2594
- "inputs": [],
2595
- "outputs": [
2596
- {
2597
- "name": "",
2598
- "type": "address"
2599
- }
2600
- ]
2601
- },
2602
- {
2603
- "stateMutability": "view",
2604
- "type": "function",
2605
- "name": "AERO_SLIPSTREAM_NFT_MANAGER",
2606
- "inputs": [],
2607
- "outputs": [
2608
- {
2609
- "name": "",
2610
- "type": "address"
2611
- }
2612
- ]
2613
- },
2614
- {
2615
- "stateMutability": "view",
2616
- "type": "function",
2617
- "name": "AERO_SLIPSTREAM_QUOTER",
2618
- "inputs": [],
2619
- "outputs": [
2620
- {
2621
- "name": "",
2622
- "type": "address"
2623
- }
2624
- ]
2625
- },
2626
- {
2627
- "stateMutability": "view",
2628
- "type": "function",
2629
- "name": "RIPE_REGISTRY",
2630
- "inputs": [],
2631
- "outputs": [
2632
- {
2633
- "name": "",
2634
- "type": "address"
2635
- }
2636
- ]
2637
- },
2638
- {
2639
- "stateMutability": "view",
2640
- "type": "function",
2641
- "name": "coreRouterPool",
2642
- "inputs": [],
2643
- "outputs": [
2644
- {
2645
- "name": "",
2646
- "type": "address"
2647
- }
2648
- ]
2649
- },
2650
- {
2651
- "stateMutability": "nonpayable",
2652
- "type": "constructor",
2653
- "inputs": [
2654
- {
2655
- "name": "_undyHq",
2656
- "type": "address"
2657
- },
2658
- {
2659
- "name": "_aeroFactory",
2660
- "type": "address"
2661
- },
2662
- {
2663
- "name": "_aeroNftPositionManager",
2664
- "type": "address"
2665
- },
2666
- {
2667
- "name": "_aeroQuoter",
2668
- "type": "address"
2669
- },
2670
- {
2671
- "name": "_coreRouterPool",
2672
- "type": "address"
2673
- },
2674
- {
2675
- "name": "_ripeRegistry",
2676
- "type": "address"
2677
- }
2678
- ],
2679
- "outputs": []
2680
- }
2681
- ];
2682
- export const deployAddress = '0x2DD267Ab1BA631E93e7c6a9EA6fbcc48882770bd';
2683
- function getRequest(method, args, contractAddressOrOptions) {
2684
- const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
2685
- const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
2686
- const call = {
2687
- contractName: 'AeroSlipstream',
2688
- method,
2689
- args,
2690
- address,
2691
- deployAddress,
2692
- defaultValue,
2693
- getAbi: () => abi,
2694
- with: (options) => {
2695
- call.address = options.contractAddress;
2696
- call.defaultValue = options.defaultValue;
2697
- return call;
2698
- },
2699
- defaultTo: (defaultValue) => {
2700
- call.defaultValue = defaultValue;
2701
- return call;
2702
- },
2703
- at: (address) => {
2704
- call.address = address;
2705
- return call;
2706
- },
2707
- };
2708
- return call;
2709
- }
2710
- export const call = {
2711
- getAddys: (...args) => getRequest('getAddys', args),
2712
- getUndyHq: (...args) => getRequest('getUndyHq', args),
2713
- legoId: (...args) => getRequest('legoId', args),
2714
- isPaused: (...args) => getRequest('isPaused', args),
2715
- hasCapability: (...args) => getRequest('hasCapability', args),
2716
- onERC721Received: (...args) => getRequest('onERC721Received', args),
2717
- getRegistries: (...args) => getRequest('getRegistries', args),
2718
- isYieldLego: (...args) => getRequest('isYieldLego', args),
2719
- isDexLego: (...args) => getRequest('isDexLego', args),
2720
- getLpToken: (...args) => getRequest('getLpToken', args),
2721
- getPoolForLpToken: (...args) => getRequest('getPoolForLpToken', args),
2722
- getCoreRouterPool: (...args) => getRequest('getCoreRouterPool', args),
2723
- getDeepestLiqPool: (...args) => getRequest('getDeepestLiqPool', args),
2724
- getAddLiqAmountsIn: (...args) => getRequest('getAddLiqAmountsIn', args),
2725
- getRemoveLiqAmountsOut: (...args) => getRequest('getRemoveLiqAmountsOut', args),
2726
- getPrice: (...args) => getRequest('getPrice', args),
2727
- getPriceUnsafe: (...args) => getRequest('getPriceUnsafe', args),
2728
- getAccessForLego: (...args) => getRequest('getAccessForLego', args),
2729
- AERO_SLIPSTREAM_FACTORY: (...args) => getRequest('AERO_SLIPSTREAM_FACTORY', args),
2730
- AERO_SLIPSTREAM_NFT_MANAGER: (...args) => getRequest('AERO_SLIPSTREAM_NFT_MANAGER', args),
2731
- AERO_SLIPSTREAM_QUOTER: (...args) => getRequest('AERO_SLIPSTREAM_QUOTER', args),
2732
- RIPE_REGISTRY: (...args) => getRequest('RIPE_REGISTRY', args),
2733
- coreRouterPool: (...args) => getRequest('coreRouterPool', args),
2734
- };
2735
- function getMutation(functionName) {
2736
- return {
2737
- contractName: 'AeroSlipstream',
2738
- functionName,
2739
- deployAddress,
2740
- argsType: undefined,
2741
- getAbi: () => abi,
2742
- };
2743
- }
2744
- export const mutation = {
2745
- pause: getMutation('pause'),
2746
- recoverFunds: getMutation('recoverFunds'),
2747
- recoverFundsMany: getMutation('recoverFundsMany'),
2748
- swapTokens: getMutation('swapTokens'),
2749
- uniswapV3SwapCallback: getMutation('uniswapV3SwapCallback'),
2750
- addLiquidityConcentrated: getMutation('addLiquidityConcentrated'),
2751
- removeLiquidityConcentrated: getMutation('removeLiquidityConcentrated'),
2752
- getBestSwapAmountOut: getMutation('getBestSwapAmountOut'),
2753
- getSwapAmountOut: getMutation('getSwapAmountOut'),
2754
- getBestSwapAmountIn: getMutation('getBestSwapAmountIn'),
2755
- getSwapAmountIn: getMutation('getSwapAmountIn'),
2756
- recoverNft: getMutation('recoverNft'),
2757
- depositForYield: getMutation('depositForYield'),
2758
- withdrawFromYield: getMutation('withdrawFromYield'),
2759
- mintOrRedeemAsset: getMutation('mintOrRedeemAsset'),
2760
- confirmMintOrRedeemAsset: getMutation('confirmMintOrRedeemAsset'),
2761
- addCollateral: getMutation('addCollateral'),
2762
- removeCollateral: getMutation('removeCollateral'),
2763
- borrow: getMutation('borrow'),
2764
- repayDebt: getMutation('repayDebt'),
2765
- claimRewards: getMutation('claimRewards'),
2766
- claimIncentives: getMutation('claimIncentives'),
2767
- addLiquidity: getMutation('addLiquidity'),
2768
- removeLiquidity: getMutation('removeLiquidity'),
2769
- };
2770
- export function parseEvents(eventName, events) {
2771
- return events.map((event) => {
2772
- return {
2773
- event,
2774
- parsed: parseEventLogs({
2775
- abi,
2776
- eventName,
2777
- logs: [event],
2778
- }),
2779
- };
2780
- });
2781
- }
2782
- export function getEventTopic(eventName) {
2783
- return encodeEventTopics({ abi, eventName })[0];
2784
- }
2785
- export function toSdk(publicClient, walletClient, addressResolver) {
2786
- return {
2787
- deployAddress,
2788
- abi,
2789
- events: {
2790
- AeroSlipStreamSwap: { topic: getEventTopic('AeroSlipStreamSwap'), parse: (events) => parseEvents('AeroSlipStreamSwap', events) },
2791
- AeroSlipStreamLiquidityAdded: { topic: getEventTopic('AeroSlipStreamLiquidityAdded'), parse: (events) => parseEvents('AeroSlipStreamLiquidityAdded', events) },
2792
- AeroSlipStreamLiquidityRemoved: { topic: getEventTopic('AeroSlipStreamLiquidityRemoved'), parse: (events) => parseEvents('AeroSlipStreamLiquidityRemoved', events) },
2793
- AeroSlipStreamNftRecovered: { topic: getEventTopic('AeroSlipStreamNftRecovered'), parse: (events) => parseEvents('AeroSlipStreamNftRecovered', events) },
2794
- AeroSlipstreamFeesCollected: { topic: getEventTopic('AeroSlipstreamFeesCollected'), parse: (events) => parseEvents('AeroSlipstreamFeesCollected', events) },
2795
- LegoPauseModified: { topic: getEventTopic('LegoPauseModified'), parse: (events) => parseEvents('LegoPauseModified', events) },
2796
- LegoFundsRecovered: { topic: getEventTopic('LegoFundsRecovered'), parse: (events) => parseEvents('LegoFundsRecovered', events) },
2797
- },
2798
- // Queries
2799
- getAddys: (...args) => singleQuery(publicClient, call.getAddys(...args), {}, addressResolver),
2800
- getUndyHq: (...args) => singleQuery(publicClient, call.getUndyHq(...args), {}, addressResolver),
2801
- legoId: (...args) => singleQuery(publicClient, call.legoId(...args), {}, addressResolver),
2802
- isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args), {}, addressResolver),
2803
- hasCapability: (...args) => singleQuery(publicClient, call.hasCapability(...args), {}, addressResolver),
2804
- onERC721Received: (...args) => singleQuery(publicClient, call.onERC721Received(...args), {}, addressResolver),
2805
- getRegistries: (...args) => singleQuery(publicClient, call.getRegistries(...args), {}, addressResolver),
2806
- isYieldLego: (...args) => singleQuery(publicClient, call.isYieldLego(...args), {}, addressResolver),
2807
- isDexLego: (...args) => singleQuery(publicClient, call.isDexLego(...args), {}, addressResolver),
2808
- getLpToken: (...args) => singleQuery(publicClient, call.getLpToken(...args), {}, addressResolver),
2809
- getPoolForLpToken: (...args) => singleQuery(publicClient, call.getPoolForLpToken(...args), {}, addressResolver),
2810
- getCoreRouterPool: (...args) => singleQuery(publicClient, call.getCoreRouterPool(...args), {}, addressResolver),
2811
- getDeepestLiqPool: (...args) => singleQuery(publicClient, call.getDeepestLiqPool(...args), {}, addressResolver),
2812
- getAddLiqAmountsIn: (...args) => singleQuery(publicClient, call.getAddLiqAmountsIn(...args), {}, addressResolver),
2813
- getRemoveLiqAmountsOut: (...args) => singleQuery(publicClient, call.getRemoveLiqAmountsOut(...args), {}, addressResolver),
2814
- getPrice: (...args) => singleQuery(publicClient, call.getPrice(...args), {}, addressResolver),
2815
- getPriceUnsafe: (...args) => singleQuery(publicClient, call.getPriceUnsafe(...args), {}, addressResolver),
2816
- getAccessForLego: (...args) => singleQuery(publicClient, call.getAccessForLego(...args), {}, addressResolver),
2817
- AERO_SLIPSTREAM_FACTORY: (...args) => singleQuery(publicClient, call.AERO_SLIPSTREAM_FACTORY(...args), {}, addressResolver),
2818
- AERO_SLIPSTREAM_NFT_MANAGER: (...args) => singleQuery(publicClient, call.AERO_SLIPSTREAM_NFT_MANAGER(...args), {}, addressResolver),
2819
- AERO_SLIPSTREAM_QUOTER: (...args) => singleQuery(publicClient, call.AERO_SLIPSTREAM_QUOTER(...args), {}, addressResolver),
2820
- RIPE_REGISTRY: (...args) => singleQuery(publicClient, call.RIPE_REGISTRY(...args), {}, addressResolver),
2821
- coreRouterPool: (...args) => singleQuery(publicClient, call.coreRouterPool(...args), {}, addressResolver),
2822
- // Mutations
2823
- pause: (...args) => mutate(walletClient, mutation.pause, { addressResolver })(...args),
2824
- recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds, { addressResolver })(...args),
2825
- recoverFundsMany: (...args) => mutate(walletClient, mutation.recoverFundsMany, { addressResolver })(...args),
2826
- swapTokens: (...args) => mutate(walletClient, mutation.swapTokens, { addressResolver })(...args),
2827
- uniswapV3SwapCallback: (...args) => mutate(walletClient, mutation.uniswapV3SwapCallback, { addressResolver })(...args),
2828
- addLiquidityConcentrated: (...args) => mutate(walletClient, mutation.addLiquidityConcentrated, { addressResolver })(...args),
2829
- removeLiquidityConcentrated: (...args) => mutate(walletClient, mutation.removeLiquidityConcentrated, { addressResolver })(...args),
2830
- getBestSwapAmountOut: (...args) => mutate(walletClient, mutation.getBestSwapAmountOut, { addressResolver })(...args),
2831
- getSwapAmountOut: (...args) => mutate(walletClient, mutation.getSwapAmountOut, { addressResolver })(...args),
2832
- getBestSwapAmountIn: (...args) => mutate(walletClient, mutation.getBestSwapAmountIn, { addressResolver })(...args),
2833
- getSwapAmountIn: (...args) => mutate(walletClient, mutation.getSwapAmountIn, { addressResolver })(...args),
2834
- recoverNft: (...args) => mutate(walletClient, mutation.recoverNft, { addressResolver })(...args),
2835
- depositForYield: (...args) => mutate(walletClient, mutation.depositForYield, { addressResolver })(...args),
2836
- withdrawFromYield: (...args) => mutate(walletClient, mutation.withdrawFromYield, { addressResolver })(...args),
2837
- mintOrRedeemAsset: (...args) => mutate(walletClient, mutation.mintOrRedeemAsset, { addressResolver })(...args),
2838
- confirmMintOrRedeemAsset: (...args) => mutate(walletClient, mutation.confirmMintOrRedeemAsset, { addressResolver })(...args),
2839
- addCollateral: (...args) => mutate(walletClient, mutation.addCollateral, { addressResolver })(...args),
2840
- removeCollateral: (...args) => mutate(walletClient, mutation.removeCollateral, { addressResolver })(...args),
2841
- borrow: (...args) => mutate(walletClient, mutation.borrow, { addressResolver })(...args),
2842
- repayDebt: (...args) => mutate(walletClient, mutation.repayDebt, { addressResolver })(...args),
2843
- claimRewards: (...args) => mutate(walletClient, mutation.claimRewards, { addressResolver })(...args),
2844
- claimIncentives: (...args) => mutate(walletClient, mutation.claimIncentives, { addressResolver })(...args),
2845
- addLiquidity: (...args) => mutate(walletClient, mutation.addLiquidity, { addressResolver })(...args),
2846
- removeLiquidity: (...args) => mutate(walletClient, mutation.removeLiquidity, { addressResolver })(...args),
2847
- };
2848
- }