@underscore-finance/sdk 1.1.2 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +33 -6
  179. package/dist/index.d.ts.map +1 -1
  180. package/dist/index.js +13 -7
  181. package/package.json +2 -2
@@ -200,6 +200,43 @@ export declare const abi: readonly [{
200
200
  }];
201
201
  readonly anonymous: false;
202
202
  readonly type: "event";
203
+ }, {
204
+ readonly name: "RipeEndaomentPsmSwap";
205
+ readonly inputs: readonly [{
206
+ readonly name: "sender";
207
+ readonly type: "address";
208
+ readonly indexed: true;
209
+ }, {
210
+ readonly name: "tokenIn";
211
+ readonly type: "address";
212
+ readonly indexed: true;
213
+ }, {
214
+ readonly name: "tokenOut";
215
+ readonly type: "address";
216
+ readonly indexed: true;
217
+ }, {
218
+ readonly name: "amountIn";
219
+ readonly type: "uint256";
220
+ readonly indexed: false;
221
+ }, {
222
+ readonly name: "amountOut";
223
+ readonly type: "uint256";
224
+ readonly indexed: false;
225
+ }, {
226
+ readonly name: "usdValue";
227
+ readonly type: "uint256";
228
+ readonly indexed: false;
229
+ }, {
230
+ readonly name: "numTokens";
231
+ readonly type: "uint256";
232
+ readonly indexed: false;
233
+ }, {
234
+ readonly name: "recipient";
235
+ readonly type: "address";
236
+ readonly indexed: false;
237
+ }];
238
+ readonly anonymous: false;
239
+ readonly type: "event";
203
240
  }, {
204
241
  readonly name: "LegoPauseModified";
205
242
  readonly inputs: readonly [{
@@ -287,6 +324,10 @@ export declare const abi: readonly [{
287
324
  readonly name: "pricePerShare";
288
325
  readonly type: "uint256";
289
326
  readonly indexed: false;
327
+ }, {
328
+ readonly name: "lastAveragePricePerShare";
329
+ readonly type: "uint256";
330
+ readonly indexed: false;
290
331
  }];
291
332
  readonly anonymous: false;
292
333
  readonly type: "event";
@@ -935,34 +976,43 @@ export declare const abi: readonly [{
935
976
  }, {
936
977
  readonly stateMutability: "view";
937
978
  readonly type: "function";
938
- readonly name: "isEligibleVaultForTrialFunds";
979
+ readonly name: "totalAssets";
939
980
  readonly inputs: readonly [{
940
981
  readonly name: "_vaultToken";
941
982
  readonly type: "address";
942
- }, {
943
- readonly name: "_underlyingAsset";
983
+ }];
984
+ readonly outputs: readonly [{
985
+ readonly name: "";
986
+ readonly type: "uint256";
987
+ }];
988
+ }, {
989
+ readonly stateMutability: "view";
990
+ readonly type: "function";
991
+ readonly name: "totalBorrows";
992
+ readonly inputs: readonly [{
993
+ readonly name: "_vaultToken";
944
994
  readonly type: "address";
945
995
  }];
946
996
  readonly outputs: readonly [{
947
997
  readonly name: "";
948
- readonly type: "bool";
998
+ readonly type: "uint256";
949
999
  }];
950
1000
  }, {
951
1001
  readonly stateMutability: "view";
952
1002
  readonly type: "function";
953
- readonly name: "isEligibleForYieldBonus";
1003
+ readonly name: "getAvailLiquidity";
954
1004
  readonly inputs: readonly [{
955
- readonly name: "_asset";
1005
+ readonly name: "_vaultToken";
956
1006
  readonly type: "address";
957
1007
  }];
958
1008
  readonly outputs: readonly [{
959
1009
  readonly name: "";
960
- readonly type: "bool";
1010
+ readonly type: "uint256";
961
1011
  }];
962
1012
  }, {
963
1013
  readonly stateMutability: "view";
964
1014
  readonly type: "function";
965
- readonly name: "totalAssets";
1015
+ readonly name: "getUtilizationRatio";
966
1016
  readonly inputs: readonly [{
967
1017
  readonly name: "_vaultToken";
968
1018
  readonly type: "address";
@@ -974,10 +1024,25 @@ export declare const abi: readonly [{
974
1024
  }, {
975
1025
  readonly stateMutability: "view";
976
1026
  readonly type: "function";
977
- readonly name: "totalBorrows";
1027
+ readonly name: "isEligibleForYieldBonus";
1028
+ readonly inputs: readonly [{
1029
+ readonly name: "_asset";
1030
+ readonly type: "address";
1031
+ }];
1032
+ readonly outputs: readonly [{
1033
+ readonly name: "";
1034
+ readonly type: "bool";
1035
+ }];
1036
+ }, {
1037
+ readonly stateMutability: "view";
1038
+ readonly type: "function";
1039
+ readonly name: "getWithdrawalFees";
978
1040
  readonly inputs: readonly [{
979
1041
  readonly name: "_vaultToken";
980
1042
  readonly type: "address";
1043
+ }, {
1044
+ readonly name: "_vaultTokenAmount";
1045
+ readonly type: "uint256";
981
1046
  }];
982
1047
  readonly outputs: readonly [{
983
1048
  readonly name: "";
@@ -1205,6 +1270,82 @@ export declare const abi: readonly [{
1205
1270
  readonly name: "";
1206
1271
  readonly type: "uint256";
1207
1272
  }];
1273
+ }, {
1274
+ readonly stateMutability: "nonpayable";
1275
+ readonly type: "function";
1276
+ readonly name: "swapTokens";
1277
+ readonly inputs: readonly [{
1278
+ readonly name: "_amountIn";
1279
+ readonly type: "uint256";
1280
+ }, {
1281
+ readonly name: "_minAmountOut";
1282
+ readonly type: "uint256";
1283
+ }, {
1284
+ readonly name: "_tokenPath";
1285
+ readonly type: "address[]";
1286
+ }, {
1287
+ readonly name: "_poolPath";
1288
+ readonly type: "address[]";
1289
+ }, {
1290
+ readonly name: "_recipient";
1291
+ readonly type: "address";
1292
+ }];
1293
+ readonly outputs: readonly [{
1294
+ readonly name: "";
1295
+ readonly type: "uint256";
1296
+ }, {
1297
+ readonly name: "";
1298
+ readonly type: "uint256";
1299
+ }, {
1300
+ readonly name: "";
1301
+ readonly type: "uint256";
1302
+ }];
1303
+ }, {
1304
+ readonly stateMutability: "nonpayable";
1305
+ readonly type: "function";
1306
+ readonly name: "swapTokens";
1307
+ readonly inputs: readonly [{
1308
+ readonly name: "_amountIn";
1309
+ readonly type: "uint256";
1310
+ }, {
1311
+ readonly name: "_minAmountOut";
1312
+ readonly type: "uint256";
1313
+ }, {
1314
+ readonly name: "_tokenPath";
1315
+ readonly type: "address[]";
1316
+ }, {
1317
+ readonly name: "_poolPath";
1318
+ readonly type: "address[]";
1319
+ }, {
1320
+ readonly name: "_recipient";
1321
+ readonly type: "address";
1322
+ }, {
1323
+ readonly name: "_miniAddys";
1324
+ readonly type: "tuple";
1325
+ readonly components: readonly [{
1326
+ readonly name: "ledger";
1327
+ readonly type: "address";
1328
+ }, {
1329
+ readonly name: "missionControl";
1330
+ readonly type: "address";
1331
+ }, {
1332
+ readonly name: "legoBook";
1333
+ readonly type: "address";
1334
+ }, {
1335
+ readonly name: "appraiser";
1336
+ readonly type: "address";
1337
+ }];
1338
+ }];
1339
+ readonly outputs: readonly [{
1340
+ readonly name: "";
1341
+ readonly type: "uint256";
1342
+ }, {
1343
+ readonly name: "";
1344
+ readonly type: "uint256";
1345
+ }, {
1346
+ readonly name: "";
1347
+ readonly type: "uint256";
1348
+ }];
1208
1349
  }, {
1209
1350
  readonly stateMutability: "nonpayable";
1210
1351
  readonly type: "function";
@@ -1464,7 +1605,32 @@ export declare const abi: readonly [{
1464
1605
  }, {
1465
1606
  readonly stateMutability: "nonpayable";
1466
1607
  readonly type: "function";
1467
- readonly name: "claimRewards";
1608
+ readonly name: "deleverageWithSpecificAssets";
1609
+ readonly inputs: readonly [{
1610
+ readonly name: "_assets";
1611
+ readonly type: "tuple[]";
1612
+ readonly components: readonly [{
1613
+ readonly name: "vaultId";
1614
+ readonly type: "uint256";
1615
+ }, {
1616
+ readonly name: "asset";
1617
+ readonly type: "address";
1618
+ }, {
1619
+ readonly name: "targetRepayAmount";
1620
+ readonly type: "uint256";
1621
+ }];
1622
+ }, {
1623
+ readonly name: "_user";
1624
+ readonly type: "address";
1625
+ }];
1626
+ readonly outputs: readonly [{
1627
+ readonly name: "";
1628
+ readonly type: "uint256";
1629
+ }];
1630
+ }, {
1631
+ readonly stateMutability: "nonpayable";
1632
+ readonly type: "function";
1633
+ readonly name: "claimIncentives";
1468
1634
  readonly inputs: readonly [{
1469
1635
  readonly name: "_user";
1470
1636
  readonly type: "address";
@@ -1475,8 +1641,8 @@ export declare const abi: readonly [{
1475
1641
  readonly name: "_rewardAmount";
1476
1642
  readonly type: "uint256";
1477
1643
  }, {
1478
- readonly name: "_extraData";
1479
- readonly type: "bytes32";
1644
+ readonly name: "_proofs";
1645
+ readonly type: "bytes32[]";
1480
1646
  }];
1481
1647
  readonly outputs: readonly [{
1482
1648
  readonly name: "";
@@ -1488,7 +1654,7 @@ export declare const abi: readonly [{
1488
1654
  }, {
1489
1655
  readonly stateMutability: "nonpayable";
1490
1656
  readonly type: "function";
1491
- readonly name: "claimRewards";
1657
+ readonly name: "claimIncentives";
1492
1658
  readonly inputs: readonly [{
1493
1659
  readonly name: "_user";
1494
1660
  readonly type: "address";
@@ -1499,8 +1665,8 @@ export declare const abi: readonly [{
1499
1665
  readonly name: "_rewardAmount";
1500
1666
  readonly type: "uint256";
1501
1667
  }, {
1502
- readonly name: "_extraData";
1503
- readonly type: "bytes32";
1668
+ readonly name: "_proofs";
1669
+ readonly type: "bytes32[]";
1504
1670
  }, {
1505
1671
  readonly name: "_miniAddys";
1506
1672
  readonly type: "tuple";
@@ -1526,57 +1692,21 @@ export declare const abi: readonly [{
1526
1692
  readonly type: "uint256";
1527
1693
  }];
1528
1694
  }, {
1529
- readonly stateMutability: "view";
1530
- readonly type: "function";
1531
- readonly name: "hasClaimableRewards";
1532
- readonly inputs: readonly [{
1533
- readonly name: "_user";
1534
- readonly type: "address";
1535
- }];
1536
- readonly outputs: readonly [{
1537
- readonly name: "";
1538
- readonly type: "bool";
1539
- }];
1540
- }, {
1541
- readonly stateMutability: "view";
1695
+ readonly stateMutability: "nonpayable";
1542
1696
  readonly type: "function";
1543
- readonly name: "getAccessForLego";
1697
+ readonly name: "claimRewards";
1544
1698
  readonly inputs: readonly [{
1545
1699
  readonly name: "_user";
1546
1700
  readonly type: "address";
1547
1701
  }, {
1548
- readonly name: "_action";
1549
- readonly type: "uint256";
1550
- }];
1551
- readonly outputs: readonly [{
1552
- readonly name: "";
1702
+ readonly name: "_rewardToken";
1553
1703
  readonly type: "address";
1554
1704
  }, {
1555
- readonly name: "";
1556
- readonly type: "string";
1557
- }, {
1558
- readonly name: "";
1559
- readonly type: "uint256";
1560
- }];
1561
- }, {
1562
- readonly stateMutability: "nonpayable";
1563
- readonly type: "function";
1564
- readonly name: "swapTokens";
1565
- readonly inputs: readonly [{
1566
- readonly name: "_amountIn";
1567
- readonly type: "uint256";
1568
- }, {
1569
- readonly name: "_minAmountOut";
1705
+ readonly name: "_rewardAmount";
1570
1706
  readonly type: "uint256";
1571
1707
  }, {
1572
- readonly name: "_tokenPath";
1573
- readonly type: "address[]";
1574
- }, {
1575
- readonly name: "_poolPath";
1576
- readonly type: "address[]";
1577
- }, {
1578
- readonly name: "_recipient";
1579
- readonly type: "address";
1708
+ readonly name: "_extraData";
1709
+ readonly type: "bytes32";
1580
1710
  }];
1581
1711
  readonly outputs: readonly [{
1582
1712
  readonly name: "";
@@ -1584,29 +1714,23 @@ export declare const abi: readonly [{
1584
1714
  }, {
1585
1715
  readonly name: "";
1586
1716
  readonly type: "uint256";
1587
- }, {
1588
- readonly name: "";
1589
- readonly type: "uint256";
1590
1717
  }];
1591
1718
  }, {
1592
1719
  readonly stateMutability: "nonpayable";
1593
1720
  readonly type: "function";
1594
- readonly name: "swapTokens";
1721
+ readonly name: "claimRewards";
1595
1722
  readonly inputs: readonly [{
1596
- readonly name: "_amountIn";
1597
- readonly type: "uint256";
1598
- }, {
1599
- readonly name: "_minAmountOut";
1600
- readonly type: "uint256";
1723
+ readonly name: "_user";
1724
+ readonly type: "address";
1601
1725
  }, {
1602
- readonly name: "_tokenPath";
1603
- readonly type: "address[]";
1726
+ readonly name: "_rewardToken";
1727
+ readonly type: "address";
1604
1728
  }, {
1605
- readonly name: "_poolPath";
1606
- readonly type: "address[]";
1729
+ readonly name: "_rewardAmount";
1730
+ readonly type: "uint256";
1607
1731
  }, {
1608
- readonly name: "_recipient";
1609
- readonly type: "address";
1732
+ readonly name: "_extraData";
1733
+ readonly type: "bytes32";
1610
1734
  }, {
1611
1735
  readonly name: "_miniAddys";
1612
1736
  readonly type: "tuple";
@@ -1630,6 +1754,36 @@ export declare const abi: readonly [{
1630
1754
  }, {
1631
1755
  readonly name: "";
1632
1756
  readonly type: "uint256";
1757
+ }];
1758
+ }, {
1759
+ readonly stateMutability: "view";
1760
+ readonly type: "function";
1761
+ readonly name: "hasClaimableRewards";
1762
+ readonly inputs: readonly [{
1763
+ readonly name: "_user";
1764
+ readonly type: "address";
1765
+ }];
1766
+ readonly outputs: readonly [{
1767
+ readonly name: "";
1768
+ readonly type: "bool";
1769
+ }];
1770
+ }, {
1771
+ readonly stateMutability: "view";
1772
+ readonly type: "function";
1773
+ readonly name: "getAccessForLego";
1774
+ readonly inputs: readonly [{
1775
+ readonly name: "_user";
1776
+ readonly type: "address";
1777
+ }, {
1778
+ readonly name: "_action";
1779
+ readonly type: "uint256";
1780
+ }];
1781
+ readonly outputs: readonly [{
1782
+ readonly name: "";
1783
+ readonly type: "address";
1784
+ }, {
1785
+ readonly name: "";
1786
+ readonly type: "string";
1633
1787
  }, {
1634
1788
  readonly name: "";
1635
1789
  readonly type: "uint256";
@@ -2288,6 +2442,15 @@ export declare const abi: readonly [{
2288
2442
  readonly name: "";
2289
2443
  readonly type: "address";
2290
2444
  }];
2445
+ }, {
2446
+ readonly stateMutability: "view";
2447
+ readonly type: "function";
2448
+ readonly name: "USDC";
2449
+ readonly inputs: readonly [];
2450
+ readonly outputs: readonly [{
2451
+ readonly name: "";
2452
+ readonly type: "address";
2453
+ }];
2291
2454
  }, {
2292
2455
  readonly stateMutability: "nonpayable";
2293
2456
  readonly type: "constructor";
@@ -2297,6 +2460,9 @@ export declare const abi: readonly [{
2297
2460
  }, {
2298
2461
  readonly name: "_ripeRegistry";
2299
2462
  readonly type: "address";
2463
+ }, {
2464
+ readonly name: "_usdc";
2465
+ readonly type: "address";
2300
2466
  }];
2301
2467
  readonly outputs: readonly [];
2302
2468
  }];
@@ -2379,10 +2545,12 @@ export type Contract = {
2379
2545
  isRebasing: () => Promise<boolean>;
2380
2546
  getPricePerShare: (vaultToken: `0x${string}`, decimals?: bigint) => Promise<bigint>;
2381
2547
  getVaultTokenAmount: (asset: `0x${string}`, assetAmount: bigint, vaultToken: `0x${string}`) => Promise<bigint>;
2382
- isEligibleVaultForTrialFunds: (vaultToken: `0x${string}`, underlyingAsset: `0x${string}`) => Promise<boolean>;
2383
- isEligibleForYieldBonus: (asset: `0x${string}`) => Promise<boolean>;
2384
2548
  totalAssets: (vaultToken: `0x${string}`) => Promise<bigint>;
2385
2549
  totalBorrows: (vaultToken: `0x${string}`) => Promise<bigint>;
2550
+ getAvailLiquidity: (vaultToken: `0x${string}`) => Promise<bigint>;
2551
+ getUtilizationRatio: (vaultToken: `0x${string}`) => Promise<bigint>;
2552
+ isEligibleForYieldBonus: (asset: `0x${string}`) => Promise<boolean>;
2553
+ getWithdrawalFees: (vaultToken: `0x${string}`, vaultTokenAmount: bigint) => Promise<bigint>;
2386
2554
  canRegisterVaultToken: (asset: `0x${string}`, vaultToken: `0x${string}`) => Promise<boolean>;
2387
2555
  hasClaimableRewards: (user: `0x${string}`) => Promise<boolean>;
2388
2556
  getAccessForLego: (user: `0x${string}`, action: bigint) => Promise<[`0x${string}`, string, bigint]>;
@@ -2390,6 +2558,7 @@ export type Contract = {
2390
2558
  RIPE_GREEN_TOKEN: () => Promise<`0x${string}`>;
2391
2559
  RIPE_SAVINGS_GREEN: () => Promise<`0x${string}`>;
2392
2560
  RIPE_TOKEN: () => Promise<`0x${string}`>;
2561
+ USDC: () => Promise<`0x${string}`>;
2393
2562
  };
2394
2563
  mutations: {
2395
2564
  pause: (shouldPause: boolean) => Promise<void>;
@@ -2420,6 +2589,12 @@ export type Contract = {
2420
2589
  legoBook: `0x${string}`;
2421
2590
  appraiser: `0x${string}`;
2422
2591
  }) => Promise<[bigint, `0x${string}`, bigint, bigint]>;
2592
+ swapTokens: (amountIn: bigint, minAmountOut: bigint, tokenPath: `0x${string}`[], poolPath: `0x${string}`[], recipient: `0x${string}`, miniAddys?: {
2593
+ ledger: `0x${string}`;
2594
+ missionControl: `0x${string}`;
2595
+ legoBook: `0x${string}`;
2596
+ appraiser: `0x${string}`;
2597
+ }) => Promise<[bigint, bigint, bigint]>;
2423
2598
  addCollateral: (asset: `0x${string}`, amount: bigint, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
2424
2599
  ledger: `0x${string}`;
2425
2600
  missionControl: `0x${string}`;
@@ -2444,18 +2619,23 @@ export type Contract = {
2444
2619
  legoBook: `0x${string}`;
2445
2620
  appraiser: `0x${string}`;
2446
2621
  }) => Promise<[bigint, bigint]>;
2447
- claimRewards: (user: `0x${string}`, rewardToken: `0x${string}`, rewardAmount: bigint, extraData: `0x${string}`, miniAddys?: {
2622
+ deleverageWithSpecificAssets: (assets: {
2623
+ vaultId: bigint;
2624
+ asset: `0x${string}`;
2625
+ targetRepayAmount: bigint;
2626
+ }[], user: `0x${string}`) => Promise<bigint>;
2627
+ claimIncentives: (user: `0x${string}`, rewardToken: `0x${string}`, rewardAmount: bigint, proofs: `0x${string}`[], miniAddys?: {
2448
2628
  ledger: `0x${string}`;
2449
2629
  missionControl: `0x${string}`;
2450
2630
  legoBook: `0x${string}`;
2451
2631
  appraiser: `0x${string}`;
2452
2632
  }) => Promise<[bigint, bigint]>;
2453
- swapTokens: (amountIn: bigint, minAmountOut: bigint, tokenPath: `0x${string}`[], poolPath: `0x${string}`[], recipient: `0x${string}`, miniAddys?: {
2633
+ claimRewards: (user: `0x${string}`, rewardToken: `0x${string}`, rewardAmount: bigint, extraData: `0x${string}`, miniAddys?: {
2454
2634
  ledger: `0x${string}`;
2455
2635
  missionControl: `0x${string}`;
2456
2636
  legoBook: `0x${string}`;
2457
2637
  appraiser: `0x${string}`;
2458
- }) => Promise<[bigint, bigint, bigint]>;
2638
+ }) => Promise<[bigint, bigint]>;
2459
2639
  mintOrRedeemAsset: (tokenIn: `0x${string}`, tokenOut: `0x${string}`, tokenInAmount: bigint, minAmountOut: bigint, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
2460
2640
  ledger: `0x${string}`;
2461
2641
  missionControl: `0x${string}`;
@@ -2501,12 +2681,13 @@ export type Contract = {
2501
2681
  RipeClaimRewards: (sender: `0x${string}`, asset: `0x${string}`, ripeClaimed: bigint, usdValue: bigint, recipient: `0x${string}`) => Promise<void>;
2502
2682
  RipeSavingsGreenDeposit: (sender: `0x${string}`, asset: `0x${string}`, vaultToken: `0x${string}`, assetAmountDeposited: bigint, usdValue: bigint, vaultTokenAmountReceived: bigint, recipient: `0x${string}`) => Promise<void>;
2503
2683
  RipeSavingsGreenWithdrawal: (sender: `0x${string}`, asset: `0x${string}`, vaultToken: `0x${string}`, assetAmountReceived: bigint, usdValue: bigint, vaultTokenAmountBurned: bigint, recipient: `0x${string}`) => Promise<void>;
2684
+ RipeEndaomentPsmSwap: (sender: `0x${string}`, tokenIn: `0x${string}`, tokenOut: `0x${string}`, amountIn: bigint, amountOut: bigint, usdValue: bigint, numTokens: bigint, recipient: `0x${string}`) => Promise<void>;
2504
2685
  LegoPauseModified: (isPaused: boolean) => Promise<void>;
2505
2686
  LegoFundsRecovered: (asset: `0x${string}`, recipient: `0x${string}`, balance: bigint) => Promise<void>;
2506
2687
  SnapShotPriceConfigSet: (minSnapshotDelay: bigint, maxNumSnapshots: bigint, maxUpsideDeviation: bigint, staleTime: bigint) => Promise<void>;
2507
2688
  AssetOpportunityAdded: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
2508
2689
  AssetOpportunityRemoved: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
2509
- PricePerShareSnapShotAdded: (vaultToken: `0x${string}`, totalSupply: bigint, pricePerShare: bigint) => Promise<void>;
2690
+ PricePerShareSnapShotAdded: (vaultToken: `0x${string}`, totalSupply: bigint, pricePerShare: bigint, lastAveragePricePerShare: bigint) => Promise<void>;
2510
2691
  };
2511
2692
  };
2512
2693
  export type Calls = keyof Contract['calls'];
@@ -2581,10 +2762,12 @@ export type SDK = {
2581
2762
  isRebasing: (...args: ExtractArgs<Contract['calls']['isRebasing']>) => Promise<CallReturn<'isRebasing'>>;
2582
2763
  getPricePerShare: (...args: ExtractArgs<Contract['calls']['getPricePerShare']>) => Promise<CallReturn<'getPricePerShare'>>;
2583
2764
  getVaultTokenAmount: (...args: ExtractArgs<Contract['calls']['getVaultTokenAmount']>) => Promise<CallReturn<'getVaultTokenAmount'>>;
2584
- isEligibleVaultForTrialFunds: (...args: ExtractArgs<Contract['calls']['isEligibleVaultForTrialFunds']>) => Promise<CallReturn<'isEligibleVaultForTrialFunds'>>;
2585
- isEligibleForYieldBonus: (...args: ExtractArgs<Contract['calls']['isEligibleForYieldBonus']>) => Promise<CallReturn<'isEligibleForYieldBonus'>>;
2586
2765
  totalAssets: (...args: ExtractArgs<Contract['calls']['totalAssets']>) => Promise<CallReturn<'totalAssets'>>;
2587
2766
  totalBorrows: (...args: ExtractArgs<Contract['calls']['totalBorrows']>) => Promise<CallReturn<'totalBorrows'>>;
2767
+ getAvailLiquidity: (...args: ExtractArgs<Contract['calls']['getAvailLiquidity']>) => Promise<CallReturn<'getAvailLiquidity'>>;
2768
+ getUtilizationRatio: (...args: ExtractArgs<Contract['calls']['getUtilizationRatio']>) => Promise<CallReturn<'getUtilizationRatio'>>;
2769
+ isEligibleForYieldBonus: (...args: ExtractArgs<Contract['calls']['isEligibleForYieldBonus']>) => Promise<CallReturn<'isEligibleForYieldBonus'>>;
2770
+ getWithdrawalFees: (...args: ExtractArgs<Contract['calls']['getWithdrawalFees']>) => Promise<CallReturn<'getWithdrawalFees'>>;
2588
2771
  canRegisterVaultToken: (...args: ExtractArgs<Contract['calls']['canRegisterVaultToken']>) => Promise<CallReturn<'canRegisterVaultToken'>>;
2589
2772
  hasClaimableRewards: (...args: ExtractArgs<Contract['calls']['hasClaimableRewards']>) => Promise<CallReturn<'hasClaimableRewards'>>;
2590
2773
  getAccessForLego: (...args: ExtractArgs<Contract['calls']['getAccessForLego']>) => Promise<CallReturn<'getAccessForLego'>>;
@@ -2592,6 +2775,7 @@ export type SDK = {
2592
2775
  RIPE_GREEN_TOKEN: (...args: ExtractArgs<Contract['calls']['RIPE_GREEN_TOKEN']>) => Promise<CallReturn<'RIPE_GREEN_TOKEN'>>;
2593
2776
  RIPE_SAVINGS_GREEN: (...args: ExtractArgs<Contract['calls']['RIPE_SAVINGS_GREEN']>) => Promise<CallReturn<'RIPE_SAVINGS_GREEN'>>;
2594
2777
  RIPE_TOKEN: (...args: ExtractArgs<Contract['calls']['RIPE_TOKEN']>) => Promise<CallReturn<'RIPE_TOKEN'>>;
2778
+ USDC: (...args: ExtractArgs<Contract['calls']['USDC']>) => Promise<CallReturn<'USDC'>>;
2595
2779
  pause: (...args: ExtractArgs<Contract['mutations']['pause']>) => Promise<Address>;
2596
2780
  recoverFunds: (...args: ExtractArgs<Contract['mutations']['recoverFunds']>) => Promise<Address>;
2597
2781
  recoverFundsMany: (...args: ExtractArgs<Contract['mutations']['recoverFundsMany']>) => Promise<Address>;
@@ -2601,12 +2785,14 @@ export type SDK = {
2601
2785
  addPriceSnapshot: (...args: ExtractArgs<Contract['mutations']['addPriceSnapshot']>) => Promise<Address>;
2602
2786
  depositForYield: (...args: ExtractArgs<Contract['mutations']['depositForYield']>) => Promise<Address>;
2603
2787
  withdrawFromYield: (...args: ExtractArgs<Contract['mutations']['withdrawFromYield']>) => Promise<Address>;
2788
+ swapTokens: (...args: ExtractArgs<Contract['mutations']['swapTokens']>) => Promise<Address>;
2604
2789
  addCollateral: (...args: ExtractArgs<Contract['mutations']['addCollateral']>) => Promise<Address>;
2605
2790
  removeCollateral: (...args: ExtractArgs<Contract['mutations']['removeCollateral']>) => Promise<Address>;
2606
2791
  borrow: (...args: ExtractArgs<Contract['mutations']['borrow']>) => Promise<Address>;
2607
2792
  repayDebt: (...args: ExtractArgs<Contract['mutations']['repayDebt']>) => Promise<Address>;
2793
+ deleverageWithSpecificAssets: (...args: ExtractArgs<Contract['mutations']['deleverageWithSpecificAssets']>) => Promise<Address>;
2794
+ claimIncentives: (...args: ExtractArgs<Contract['mutations']['claimIncentives']>) => Promise<Address>;
2608
2795
  claimRewards: (...args: ExtractArgs<Contract['mutations']['claimRewards']>) => Promise<Address>;
2609
- swapTokens: (...args: ExtractArgs<Contract['mutations']['swapTokens']>) => Promise<Address>;
2610
2796
  mintOrRedeemAsset: (...args: ExtractArgs<Contract['mutations']['mintOrRedeemAsset']>) => Promise<Address>;
2611
2797
  confirmMintOrRedeemAsset: (...args: ExtractArgs<Contract['mutations']['confirmMintOrRedeemAsset']>) => Promise<Address>;
2612
2798
  addLiquidity: (...args: ExtractArgs<Contract['mutations']['addLiquidity']>) => Promise<Address>;