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