@underscore-finance/sdk 1.1.2 → 1.2.2

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