@defisaver/sdk 1.1.0 → 1.1.2-dev

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 (48) hide show
  1. package/esm/src/actions/llamalend/LlamaLendBoostAction.d.ts +8 -0
  2. package/esm/src/actions/llamalend/LlamaLendBoostAction.js +18 -0
  3. package/esm/src/actions/llamalend/LlamaLendCreateAction.d.ts +2 -2
  4. package/esm/src/actions/llamalend/LlamaLendCreateAction.js +2 -3
  5. package/esm/src/actions/llamalend/LlamaLendGetDebtAction.d.ts +8 -0
  6. package/esm/src/actions/llamalend/LlamaLendGetDebtAction.js +13 -0
  7. package/esm/src/actions/llamalend/LlamaLendLevCreateAction.d.ts +12 -0
  8. package/esm/src/actions/llamalend/LlamaLendLevCreateAction.js +41 -0
  9. package/esm/src/actions/llamalend/LlamaLendPaybackAction.d.ts +2 -10
  10. package/esm/src/actions/llamalend/LlamaLendPaybackAction.js +2 -11
  11. package/esm/src/actions/llamalend/LlamaLendRepayAction.d.ts +8 -0
  12. package/esm/src/actions/llamalend/LlamaLendRepayAction.js +20 -0
  13. package/esm/src/actions/llamalend/LlamaLendSelfLiquidateAction.d.ts +2 -2
  14. package/esm/src/actions/llamalend/LlamaLendSelfLiquidateAction.js +2 -3
  15. package/esm/src/actions/llamalend/LlamaLendSelfLiquidateWithCollAction.d.ts +8 -0
  16. package/esm/src/actions/llamalend/LlamaLendSelfLiquidateWithCollAction.js +25 -0
  17. package/esm/src/actions/llamalend/LlamaLendSupplyAction.d.ts +2 -2
  18. package/esm/src/actions/llamalend/LlamaLendSupplyAction.js +2 -3
  19. package/esm/src/actions/llamalend/index.d.ts +5 -0
  20. package/esm/src/actions/llamalend/index.js +5 -0
  21. package/esm/src/actions/reflexer/ReflexerWithdrawStuckFunds.d.ts +14 -0
  22. package/esm/src/actions/reflexer/ReflexerWithdrawStuckFunds.js +18 -0
  23. package/esm/src/actions/reflexer/index.d.ts +1 -0
  24. package/esm/src/actions/reflexer/index.js +1 -0
  25. package/esm/src/addresses.d.ts +31 -7
  26. package/esm/src/addresses.js +20 -1
  27. package/esm/src/index.d.ts +124 -28
  28. package/esm/src/utils/index.d.ts +1 -2
  29. package/esm/src/utils/index.js +1 -2
  30. package/package.json +1 -1
  31. package/src/actions/llamalend/LlamaLendBoostAction.ts +26 -0
  32. package/src/actions/llamalend/LlamaLendCreateAction.ts +3 -2
  33. package/src/actions/llamalend/LlamaLendGetDebtAction.ts +21 -0
  34. package/src/actions/llamalend/LlamaLendLevCreateAction.ts +39 -0
  35. package/src/actions/llamalend/LlamaLendPaybackAction.ts +2 -10
  36. package/src/actions/llamalend/LlamaLendRepayAction.ts +28 -0
  37. package/src/actions/llamalend/LlamaLendSelfLiquidateAction.ts +3 -2
  38. package/src/actions/llamalend/LlamaLendSelfLiquidateWithCollAction.ts +33 -0
  39. package/src/actions/llamalend/LlamaLendSupplyAction.ts +2 -2
  40. package/src/actions/llamalend/index.ts +6 -1
  41. package/src/actions/reflexer/ReflexerWithdrawStuckFunds.ts +20 -0
  42. package/src/actions/reflexer/index.ts +2 -1
  43. package/src/addresses.ts +21 -1
  44. package/src/utils/index.ts +0 -2
  45. package/umd/index.js +594 -450
  46. package/esm/src/utils/llamalend-utils.d.ts +0 -10
  47. package/esm/src/utils/llamalend-utils.js +0 -10
  48. package/src/utils/llamalend-utils.ts +0 -11
@@ -47,6 +47,7 @@ declare const actionAddressesAllChains: {
47
47
  ReflexerPayback: string;
48
48
  ReflexerGenerate: string;
49
49
  ReflexerOpen: string;
50
+ ReflexerWithdrawStuckFunds: string;
50
51
  ReflexerNativeUniV2SaviourDeposit: string;
51
52
  ReflexerNativeUniV2SaviourGetReserves: string;
52
53
  ReflexerNativeUniV2SaviourWithdraw: string;
@@ -210,6 +211,11 @@ declare const actionAddressesAllChains: {
210
211
  LlamaLendWithdraw: string;
211
212
  LlamaLendPayback: string;
212
213
  LlamaLendSelfLiquidate: string;
214
+ LlamaLendGetDebt: string;
215
+ LlamaLendBoost: string;
216
+ LlamaLendRepay: string;
217
+ LlamaLendLevCreate: string;
218
+ LlamaLendSelfLiquidateWithColl: string;
213
219
  MerklClaim: string;
214
220
  AaveV3DelegateCredit?: undefined;
215
221
  AaveV3RatioTrigger?: undefined;
@@ -274,6 +280,7 @@ declare const actionAddressesAllChains: {
274
280
  ReflexerPayback?: undefined;
275
281
  ReflexerGenerate?: undefined;
276
282
  ReflexerOpen?: undefined;
283
+ ReflexerWithdrawStuckFunds?: undefined;
277
284
  ReflexerNativeUniV2SaviourDeposit?: undefined;
278
285
  ReflexerNativeUniV2SaviourGetReserves?: undefined;
279
286
  ReflexerNativeUniV2SaviourWithdraw?: undefined;
@@ -418,6 +425,11 @@ declare const actionAddressesAllChains: {
418
425
  LlamaLendWithdraw?: undefined;
419
426
  LlamaLendPayback?: undefined;
420
427
  LlamaLendSelfLiquidate?: undefined;
428
+ LlamaLendGetDebt?: undefined;
429
+ LlamaLendBoost?: undefined;
430
+ LlamaLendRepay?: undefined;
431
+ LlamaLendLevCreate?: undefined;
432
+ LlamaLendSelfLiquidateWithColl?: undefined;
421
433
  MerklClaim?: undefined;
422
434
  } | {
423
435
  DFSSell: string;
@@ -441,6 +453,7 @@ declare const actionAddressesAllChains: {
441
453
  AaveV3Supply: string;
442
454
  AaveV3SwapBorrowRateMode: string;
443
455
  AaveV3Withdraw: string;
456
+ AaveV3ClaimRewards: string;
444
457
  CompV3Allow: string;
445
458
  CompV3Borrow: string;
446
459
  CompV3Claim: string;
@@ -460,6 +473,17 @@ declare const actionAddressesAllChains: {
460
473
  UniSupplyV3: string;
461
474
  UniWithdrawV3: string;
462
475
  UniCreatePoolV3: string;
476
+ LlamaLendCreate: string;
477
+ LlamaLendSupply: string;
478
+ LlamaLendBorrow: string;
479
+ LlamaLendWithdraw: string;
480
+ LlamaLendPayback: string;
481
+ LlamaLendSelfLiquidate: string;
482
+ LlamaLendGetDebt: string;
483
+ LlamaLendBoost: string;
484
+ LlamaLendRepay: string;
485
+ LlamaLendLevCreate: string;
486
+ LlamaLendSelfLiquidateWithColl: string;
463
487
  AutomationV2Unsub?: undefined;
464
488
  UpdateSub?: undefined;
465
489
  TransferNFT?: undefined;
@@ -482,6 +506,7 @@ declare const actionAddressesAllChains: {
482
506
  ReflexerPayback?: undefined;
483
507
  ReflexerGenerate?: undefined;
484
508
  ReflexerOpen?: undefined;
509
+ ReflexerWithdrawStuckFunds?: undefined;
485
510
  ReflexerNativeUniV2SaviourDeposit?: undefined;
486
511
  ReflexerNativeUniV2SaviourGetReserves?: undefined;
487
512
  ReflexerNativeUniV2SaviourWithdraw?: undefined;
@@ -493,7 +518,6 @@ declare const actionAddressesAllChains: {
493
518
  AaveUnstake?: undefined;
494
519
  AaveClaimAAVE?: undefined;
495
520
  AaveClaimStkAave?: undefined;
496
- AaveV3ClaimRewards?: undefined;
497
521
  AaveV3View?: undefined;
498
522
  LSVWithdraw?: undefined;
499
523
  LSVBorrow?: undefined;
@@ -614,12 +638,6 @@ declare const actionAddressesAllChains: {
614
638
  MorphoBluePayback?: undefined;
615
639
  MorphoBlueSetAuth?: undefined;
616
640
  MorphoBlueSetAuthWithSig?: undefined;
617
- LlamaLendCreate?: undefined;
618
- LlamaLendSupply?: undefined;
619
- LlamaLendBorrow?: undefined;
620
- LlamaLendWithdraw?: undefined;
621
- LlamaLendPayback?: undefined;
622
- LlamaLendSelfLiquidate?: undefined;
623
641
  MerklClaim?: undefined;
624
642
  AaveV3DelegateCredit?: undefined;
625
643
  AaveV3RatioTrigger?: undefined;
@@ -681,6 +699,7 @@ declare const actionAddressesAllChains: {
681
699
  ReflexerPayback?: undefined;
682
700
  ReflexerGenerate?: undefined;
683
701
  ReflexerOpen?: undefined;
702
+ ReflexerWithdrawStuckFunds?: undefined;
684
703
  ReflexerNativeUniV2SaviourDeposit?: undefined;
685
704
  ReflexerNativeUniV2SaviourGetReserves?: undefined;
686
705
  ReflexerNativeUniV2SaviourWithdraw?: undefined;
@@ -822,6 +841,11 @@ declare const actionAddressesAllChains: {
822
841
  LlamaLendWithdraw?: undefined;
823
842
  LlamaLendPayback?: undefined;
824
843
  LlamaLendSelfLiquidate?: undefined;
844
+ LlamaLendGetDebt?: undefined;
845
+ LlamaLendBoost?: undefined;
846
+ LlamaLendRepay?: undefined;
847
+ LlamaLendLevCreate?: undefined;
848
+ LlamaLendSelfLiquidateWithColl?: undefined;
825
849
  MerklClaim?: undefined;
826
850
  AaveV3DelegateCredit?: undefined;
827
851
  AaveV3RatioTrigger?: undefined;
@@ -865,6 +889,7 @@ declare const actionAddresses: (chainId?: null) => {
865
889
  ReflexerPayback: string;
866
890
  ReflexerGenerate: string;
867
891
  ReflexerOpen: string;
892
+ ReflexerWithdrawStuckFunds: string;
868
893
  ReflexerNativeUniV2SaviourDeposit: string;
869
894
  ReflexerNativeUniV2SaviourGetReserves: string;
870
895
  ReflexerNativeUniV2SaviourWithdraw: string;
@@ -1028,6 +1053,11 @@ declare const actionAddresses: (chainId?: null) => {
1028
1053
  LlamaLendWithdraw: string;
1029
1054
  LlamaLendPayback: string;
1030
1055
  LlamaLendSelfLiquidate: string;
1056
+ LlamaLendGetDebt: string;
1057
+ LlamaLendBoost: string;
1058
+ LlamaLendRepay: string;
1059
+ LlamaLendLevCreate: string;
1060
+ LlamaLendSelfLiquidateWithColl: string;
1031
1061
  MerklClaim: string;
1032
1062
  AaveV3DelegateCredit?: undefined;
1033
1063
  AaveV3RatioTrigger?: undefined;
@@ -1092,6 +1122,7 @@ declare const actionAddresses: (chainId?: null) => {
1092
1122
  ReflexerPayback?: undefined;
1093
1123
  ReflexerGenerate?: undefined;
1094
1124
  ReflexerOpen?: undefined;
1125
+ ReflexerWithdrawStuckFunds?: undefined;
1095
1126
  ReflexerNativeUniV2SaviourDeposit?: undefined;
1096
1127
  ReflexerNativeUniV2SaviourGetReserves?: undefined;
1097
1128
  ReflexerNativeUniV2SaviourWithdraw?: undefined;
@@ -1236,6 +1267,11 @@ declare const actionAddresses: (chainId?: null) => {
1236
1267
  LlamaLendWithdraw?: undefined;
1237
1268
  LlamaLendPayback?: undefined;
1238
1269
  LlamaLendSelfLiquidate?: undefined;
1270
+ LlamaLendGetDebt?: undefined;
1271
+ LlamaLendBoost?: undefined;
1272
+ LlamaLendRepay?: undefined;
1273
+ LlamaLendLevCreate?: undefined;
1274
+ LlamaLendSelfLiquidateWithColl?: undefined;
1239
1275
  MerklClaim?: undefined;
1240
1276
  } | {
1241
1277
  DFSSell: string;
@@ -1259,6 +1295,7 @@ declare const actionAddresses: (chainId?: null) => {
1259
1295
  AaveV3Supply: string;
1260
1296
  AaveV3SwapBorrowRateMode: string;
1261
1297
  AaveV3Withdraw: string;
1298
+ AaveV3ClaimRewards: string;
1262
1299
  CompV3Allow: string;
1263
1300
  CompV3Borrow: string;
1264
1301
  CompV3Claim: string;
@@ -1278,6 +1315,17 @@ declare const actionAddresses: (chainId?: null) => {
1278
1315
  UniSupplyV3: string;
1279
1316
  UniWithdrawV3: string;
1280
1317
  UniCreatePoolV3: string;
1318
+ LlamaLendCreate: string;
1319
+ LlamaLendSupply: string;
1320
+ LlamaLendBorrow: string;
1321
+ LlamaLendWithdraw: string;
1322
+ LlamaLendPayback: string;
1323
+ LlamaLendSelfLiquidate: string;
1324
+ LlamaLendGetDebt: string;
1325
+ LlamaLendBoost: string;
1326
+ LlamaLendRepay: string;
1327
+ LlamaLendLevCreate: string;
1328
+ LlamaLendSelfLiquidateWithColl: string;
1281
1329
  AutomationV2Unsub?: undefined;
1282
1330
  UpdateSub?: undefined;
1283
1331
  TransferNFT?: undefined;
@@ -1300,6 +1348,7 @@ declare const actionAddresses: (chainId?: null) => {
1300
1348
  ReflexerPayback?: undefined;
1301
1349
  ReflexerGenerate?: undefined;
1302
1350
  ReflexerOpen?: undefined;
1351
+ ReflexerWithdrawStuckFunds?: undefined;
1303
1352
  ReflexerNativeUniV2SaviourDeposit?: undefined;
1304
1353
  ReflexerNativeUniV2SaviourGetReserves?: undefined;
1305
1354
  ReflexerNativeUniV2SaviourWithdraw?: undefined;
@@ -1311,7 +1360,6 @@ declare const actionAddresses: (chainId?: null) => {
1311
1360
  AaveUnstake?: undefined;
1312
1361
  AaveClaimAAVE?: undefined;
1313
1362
  AaveClaimStkAave?: undefined;
1314
- AaveV3ClaimRewards?: undefined;
1315
1363
  AaveV3View?: undefined;
1316
1364
  LSVWithdraw?: undefined;
1317
1365
  LSVBorrow?: undefined;
@@ -1432,12 +1480,6 @@ declare const actionAddresses: (chainId?: null) => {
1432
1480
  MorphoBluePayback?: undefined;
1433
1481
  MorphoBlueSetAuth?: undefined;
1434
1482
  MorphoBlueSetAuthWithSig?: undefined;
1435
- LlamaLendCreate?: undefined;
1436
- LlamaLendSupply?: undefined;
1437
- LlamaLendBorrow?: undefined;
1438
- LlamaLendWithdraw?: undefined;
1439
- LlamaLendPayback?: undefined;
1440
- LlamaLendSelfLiquidate?: undefined;
1441
1483
  MerklClaim?: undefined;
1442
1484
  AaveV3DelegateCredit?: undefined;
1443
1485
  AaveV3RatioTrigger?: undefined;
@@ -1499,6 +1541,7 @@ declare const actionAddresses: (chainId?: null) => {
1499
1541
  ReflexerPayback?: undefined;
1500
1542
  ReflexerGenerate?: undefined;
1501
1543
  ReflexerOpen?: undefined;
1544
+ ReflexerWithdrawStuckFunds?: undefined;
1502
1545
  ReflexerNativeUniV2SaviourDeposit?: undefined;
1503
1546
  ReflexerNativeUniV2SaviourGetReserves?: undefined;
1504
1547
  ReflexerNativeUniV2SaviourWithdraw?: undefined;
@@ -1640,6 +1683,11 @@ declare const actionAddresses: (chainId?: null) => {
1640
1683
  LlamaLendWithdraw?: undefined;
1641
1684
  LlamaLendPayback?: undefined;
1642
1685
  LlamaLendSelfLiquidate?: undefined;
1686
+ LlamaLendGetDebt?: undefined;
1687
+ LlamaLendBoost?: undefined;
1688
+ LlamaLendRepay?: undefined;
1689
+ LlamaLendLevCreate?: undefined;
1690
+ LlamaLendSelfLiquidateWithColl?: undefined;
1643
1691
  MerklClaim?: undefined;
1644
1692
  AaveV3DelegateCredit?: undefined;
1645
1693
  AaveV3RatioTrigger?: undefined;
@@ -1826,6 +1874,7 @@ declare const _default: {
1826
1874
  ReflexerPayback: string;
1827
1875
  ReflexerGenerate: string;
1828
1876
  ReflexerOpen: string;
1877
+ ReflexerWithdrawStuckFunds: string;
1829
1878
  ReflexerNativeUniV2SaviourDeposit: string;
1830
1879
  ReflexerNativeUniV2SaviourGetReserves: string;
1831
1880
  ReflexerNativeUniV2SaviourWithdraw: string;
@@ -1989,6 +2038,11 @@ declare const _default: {
1989
2038
  LlamaLendWithdraw: string;
1990
2039
  LlamaLendPayback: string;
1991
2040
  LlamaLendSelfLiquidate: string;
2041
+ LlamaLendGetDebt: string;
2042
+ LlamaLendBoost: string;
2043
+ LlamaLendRepay: string;
2044
+ LlamaLendLevCreate: string;
2045
+ LlamaLendSelfLiquidateWithColl: string;
1992
2046
  MerklClaim: string;
1993
2047
  AaveV3DelegateCredit?: undefined;
1994
2048
  AaveV3RatioTrigger?: undefined;
@@ -2053,6 +2107,7 @@ declare const _default: {
2053
2107
  ReflexerPayback?: undefined;
2054
2108
  ReflexerGenerate?: undefined;
2055
2109
  ReflexerOpen?: undefined;
2110
+ ReflexerWithdrawStuckFunds?: undefined;
2056
2111
  ReflexerNativeUniV2SaviourDeposit?: undefined;
2057
2112
  ReflexerNativeUniV2SaviourGetReserves?: undefined;
2058
2113
  ReflexerNativeUniV2SaviourWithdraw?: undefined;
@@ -2197,6 +2252,11 @@ declare const _default: {
2197
2252
  LlamaLendWithdraw?: undefined;
2198
2253
  LlamaLendPayback?: undefined;
2199
2254
  LlamaLendSelfLiquidate?: undefined;
2255
+ LlamaLendGetDebt?: undefined;
2256
+ LlamaLendBoost?: undefined;
2257
+ LlamaLendRepay?: undefined;
2258
+ LlamaLendLevCreate?: undefined;
2259
+ LlamaLendSelfLiquidateWithColl?: undefined;
2200
2260
  MerklClaim?: undefined;
2201
2261
  } | {
2202
2262
  DFSSell: string;
@@ -2220,6 +2280,7 @@ declare const _default: {
2220
2280
  AaveV3Supply: string;
2221
2281
  AaveV3SwapBorrowRateMode: string;
2222
2282
  AaveV3Withdraw: string;
2283
+ AaveV3ClaimRewards: string;
2223
2284
  CompV3Allow: string;
2224
2285
  CompV3Borrow: string;
2225
2286
  CompV3Claim: string;
@@ -2239,6 +2300,17 @@ declare const _default: {
2239
2300
  UniSupplyV3: string;
2240
2301
  UniWithdrawV3: string;
2241
2302
  UniCreatePoolV3: string;
2303
+ LlamaLendCreate: string;
2304
+ LlamaLendSupply: string;
2305
+ LlamaLendBorrow: string;
2306
+ LlamaLendWithdraw: string;
2307
+ LlamaLendPayback: string;
2308
+ LlamaLendSelfLiquidate: string;
2309
+ LlamaLendGetDebt: string;
2310
+ LlamaLendBoost: string;
2311
+ LlamaLendRepay: string;
2312
+ LlamaLendLevCreate: string;
2313
+ LlamaLendSelfLiquidateWithColl: string;
2242
2314
  AutomationV2Unsub?: undefined;
2243
2315
  UpdateSub?: undefined;
2244
2316
  TransferNFT?: undefined;
@@ -2261,6 +2333,7 @@ declare const _default: {
2261
2333
  ReflexerPayback?: undefined;
2262
2334
  ReflexerGenerate?: undefined;
2263
2335
  ReflexerOpen?: undefined;
2336
+ ReflexerWithdrawStuckFunds?: undefined;
2264
2337
  ReflexerNativeUniV2SaviourDeposit?: undefined;
2265
2338
  ReflexerNativeUniV2SaviourGetReserves?: undefined;
2266
2339
  ReflexerNativeUniV2SaviourWithdraw?: undefined;
@@ -2272,7 +2345,6 @@ declare const _default: {
2272
2345
  AaveUnstake?: undefined;
2273
2346
  AaveClaimAAVE?: undefined;
2274
2347
  AaveClaimStkAave?: undefined;
2275
- AaveV3ClaimRewards?: undefined;
2276
2348
  AaveV3View?: undefined;
2277
2349
  LSVWithdraw?: undefined;
2278
2350
  LSVBorrow?: undefined;
@@ -2393,12 +2465,6 @@ declare const _default: {
2393
2465
  MorphoBluePayback?: undefined;
2394
2466
  MorphoBlueSetAuth?: undefined;
2395
2467
  MorphoBlueSetAuthWithSig?: undefined;
2396
- LlamaLendCreate?: undefined;
2397
- LlamaLendSupply?: undefined;
2398
- LlamaLendBorrow?: undefined;
2399
- LlamaLendWithdraw?: undefined;
2400
- LlamaLendPayback?: undefined;
2401
- LlamaLendSelfLiquidate?: undefined;
2402
2468
  MerklClaim?: undefined;
2403
2469
  AaveV3DelegateCredit?: undefined;
2404
2470
  AaveV3RatioTrigger?: undefined;
@@ -2460,6 +2526,7 @@ declare const _default: {
2460
2526
  ReflexerPayback?: undefined;
2461
2527
  ReflexerGenerate?: undefined;
2462
2528
  ReflexerOpen?: undefined;
2529
+ ReflexerWithdrawStuckFunds?: undefined;
2463
2530
  ReflexerNativeUniV2SaviourDeposit?: undefined;
2464
2531
  ReflexerNativeUniV2SaviourGetReserves?: undefined;
2465
2532
  ReflexerNativeUniV2SaviourWithdraw?: undefined;
@@ -2601,6 +2668,11 @@ declare const _default: {
2601
2668
  LlamaLendWithdraw?: undefined;
2602
2669
  LlamaLendPayback?: undefined;
2603
2670
  LlamaLendSelfLiquidate?: undefined;
2671
+ LlamaLendGetDebt?: undefined;
2672
+ LlamaLendBoost?: undefined;
2673
+ LlamaLendRepay?: undefined;
2674
+ LlamaLendLevCreate?: undefined;
2675
+ LlamaLendSelfLiquidateWithColl?: undefined;
2604
2676
  MerklClaim?: undefined;
2605
2677
  AaveV3DelegateCredit?: undefined;
2606
2678
  AaveV3RatioTrigger?: undefined;
@@ -2644,6 +2716,7 @@ declare const _default: {
2644
2716
  ReflexerPayback: string;
2645
2717
  ReflexerGenerate: string;
2646
2718
  ReflexerOpen: string;
2719
+ ReflexerWithdrawStuckFunds: string;
2647
2720
  ReflexerNativeUniV2SaviourDeposit: string;
2648
2721
  ReflexerNativeUniV2SaviourGetReserves: string;
2649
2722
  ReflexerNativeUniV2SaviourWithdraw: string;
@@ -2807,6 +2880,11 @@ declare const _default: {
2807
2880
  LlamaLendWithdraw: string;
2808
2881
  LlamaLendPayback: string;
2809
2882
  LlamaLendSelfLiquidate: string;
2883
+ LlamaLendGetDebt: string;
2884
+ LlamaLendBoost: string;
2885
+ LlamaLendRepay: string;
2886
+ LlamaLendLevCreate: string;
2887
+ LlamaLendSelfLiquidateWithColl: string;
2810
2888
  MerklClaim: string;
2811
2889
  AaveV3DelegateCredit?: undefined;
2812
2890
  AaveV3RatioTrigger?: undefined;
@@ -2871,6 +2949,7 @@ declare const _default: {
2871
2949
  ReflexerPayback?: undefined;
2872
2950
  ReflexerGenerate?: undefined;
2873
2951
  ReflexerOpen?: undefined;
2952
+ ReflexerWithdrawStuckFunds?: undefined;
2874
2953
  ReflexerNativeUniV2SaviourDeposit?: undefined;
2875
2954
  ReflexerNativeUniV2SaviourGetReserves?: undefined;
2876
2955
  ReflexerNativeUniV2SaviourWithdraw?: undefined;
@@ -3015,6 +3094,11 @@ declare const _default: {
3015
3094
  LlamaLendWithdraw?: undefined;
3016
3095
  LlamaLendPayback?: undefined;
3017
3096
  LlamaLendSelfLiquidate?: undefined;
3097
+ LlamaLendGetDebt?: undefined;
3098
+ LlamaLendBoost?: undefined;
3099
+ LlamaLendRepay?: undefined;
3100
+ LlamaLendLevCreate?: undefined;
3101
+ LlamaLendSelfLiquidateWithColl?: undefined;
3018
3102
  MerklClaim?: undefined;
3019
3103
  } | {
3020
3104
  DFSSell: string;
@@ -3038,6 +3122,7 @@ declare const _default: {
3038
3122
  AaveV3Supply: string;
3039
3123
  AaveV3SwapBorrowRateMode: string;
3040
3124
  AaveV3Withdraw: string;
3125
+ AaveV3ClaimRewards: string;
3041
3126
  CompV3Allow: string;
3042
3127
  CompV3Borrow: string;
3043
3128
  CompV3Claim: string;
@@ -3057,6 +3142,17 @@ declare const _default: {
3057
3142
  UniSupplyV3: string;
3058
3143
  UniWithdrawV3: string;
3059
3144
  UniCreatePoolV3: string;
3145
+ LlamaLendCreate: string;
3146
+ LlamaLendSupply: string;
3147
+ LlamaLendBorrow: string;
3148
+ LlamaLendWithdraw: string;
3149
+ LlamaLendPayback: string;
3150
+ LlamaLendSelfLiquidate: string;
3151
+ LlamaLendGetDebt: string;
3152
+ LlamaLendBoost: string;
3153
+ LlamaLendRepay: string;
3154
+ LlamaLendLevCreate: string;
3155
+ LlamaLendSelfLiquidateWithColl: string;
3060
3156
  AutomationV2Unsub?: undefined;
3061
3157
  UpdateSub?: undefined;
3062
3158
  TransferNFT?: undefined;
@@ -3079,6 +3175,7 @@ declare const _default: {
3079
3175
  ReflexerPayback?: undefined;
3080
3176
  ReflexerGenerate?: undefined;
3081
3177
  ReflexerOpen?: undefined;
3178
+ ReflexerWithdrawStuckFunds?: undefined;
3082
3179
  ReflexerNativeUniV2SaviourDeposit?: undefined;
3083
3180
  ReflexerNativeUniV2SaviourGetReserves?: undefined;
3084
3181
  ReflexerNativeUniV2SaviourWithdraw?: undefined;
@@ -3090,7 +3187,6 @@ declare const _default: {
3090
3187
  AaveUnstake?: undefined;
3091
3188
  AaveClaimAAVE?: undefined;
3092
3189
  AaveClaimStkAave?: undefined;
3093
- AaveV3ClaimRewards?: undefined;
3094
3190
  AaveV3View?: undefined;
3095
3191
  LSVWithdraw?: undefined;
3096
3192
  LSVBorrow?: undefined;
@@ -3211,12 +3307,6 @@ declare const _default: {
3211
3307
  MorphoBluePayback?: undefined;
3212
3308
  MorphoBlueSetAuth?: undefined;
3213
3309
  MorphoBlueSetAuthWithSig?: undefined;
3214
- LlamaLendCreate?: undefined;
3215
- LlamaLendSupply?: undefined;
3216
- LlamaLendBorrow?: undefined;
3217
- LlamaLendWithdraw?: undefined;
3218
- LlamaLendPayback?: undefined;
3219
- LlamaLendSelfLiquidate?: undefined;
3220
3310
  MerklClaim?: undefined;
3221
3311
  AaveV3DelegateCredit?: undefined;
3222
3312
  AaveV3RatioTrigger?: undefined;
@@ -3278,6 +3368,7 @@ declare const _default: {
3278
3368
  ReflexerPayback?: undefined;
3279
3369
  ReflexerGenerate?: undefined;
3280
3370
  ReflexerOpen?: undefined;
3371
+ ReflexerWithdrawStuckFunds?: undefined;
3281
3372
  ReflexerNativeUniV2SaviourDeposit?: undefined;
3282
3373
  ReflexerNativeUniV2SaviourGetReserves?: undefined;
3283
3374
  ReflexerNativeUniV2SaviourWithdraw?: undefined;
@@ -3419,6 +3510,11 @@ declare const _default: {
3419
3510
  LlamaLendWithdraw?: undefined;
3420
3511
  LlamaLendPayback?: undefined;
3421
3512
  LlamaLendSelfLiquidate?: undefined;
3513
+ LlamaLendGetDebt?: undefined;
3514
+ LlamaLendBoost?: undefined;
3515
+ LlamaLendRepay?: undefined;
3516
+ LlamaLendLevCreate?: undefined;
3517
+ LlamaLendSelfLiquidateWithColl?: undefined;
3422
3518
  MerklClaim?: undefined;
3423
3519
  AaveV3DelegateCredit?: undefined;
3424
3520
  AaveV3RatioTrigger?: undefined;
@@ -6,5 +6,4 @@ import mstableAssetPairs from './mstableAssetPairs';
6
6
  import * as curveUtils from './curve-utils';
7
7
  import * as curveusdUtils from './curveusd-utils';
8
8
  import * as basicUtils from './basic-utils';
9
- import * as llamaLenUtils from './llamalend-utils';
10
- export { zeroExExchange, uniswapLP, uniswapV3LP, mstableAssetPairs, convexUtils, curveUtils, curveusdUtils, basicUtils, llamaLenUtils, };
9
+ export { zeroExExchange, uniswapLP, uniswapV3LP, mstableAssetPairs, convexUtils, curveUtils, curveusdUtils, basicUtils, };
@@ -6,5 +6,4 @@ import mstableAssetPairs from './mstableAssetPairs';
6
6
  import * as curveUtils from './curve-utils';
7
7
  import * as curveusdUtils from './curveusd-utils';
8
8
  import * as basicUtils from './basic-utils';
9
- import * as llamaLenUtils from './llamalend-utils';
10
- export { zeroExExchange, uniswapLP, uniswapV3LP, mstableAssetPairs, convexUtils, curveUtils, curveusdUtils, basicUtils, llamaLenUtils, };
9
+ export { zeroExExchange, uniswapLP, uniswapV3LP, mstableAssetPairs, convexUtils, curveUtils, curveusdUtils, basicUtils, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/sdk",
3
- "version": "1.1.0",
3
+ "version": "1.1.2-dev",
4
4
  "description": "",
5
5
  "main": "./umd/index.js",
6
6
  "module": "./esm/src/index.js",
@@ -0,0 +1,26 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ import { EthAddress, uint256, uint32 } from '../../types';
4
+
5
+
6
+ /**
7
+ * @category LlamaLend
8
+ */
9
+ export class LlamaLendBoostAction extends Action {
10
+ constructor(controller: EthAddress, controllerId: uint256, exchangeOrder: Array<any>, gasUsed: uint32) {
11
+ super(
12
+ 'LlamaLendBoost',
13
+ getAddr('LlamaLendBoost'),
14
+ [
15
+ 'address',
16
+ 'uint256',
17
+ ['address', 'address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'address', 'bytes', ['address', 'address', 'address', 'uint256', 'uint256', 'bytes']],
18
+ 'uint32',
19
+ ],
20
+ [controller, controllerId, exchangeOrder, gasUsed],
21
+ );
22
+ this.mappableArgs = [
23
+ this.args[0],
24
+ ];
25
+ }
26
+ }
@@ -2,7 +2,7 @@ import { Action } from '../../Action';
2
2
  import { requireAddress } from '../../utils/general';
3
3
  import { getAddr } from '../../addresses';
4
4
  import { EthAddress, uint256 } from '../../types';
5
- import { controllerToCollateralAssetMap } from '../../utils/llamalend-utils';
5
+ import { CONFIG } from '../../config';
6
6
 
7
7
  /**
8
8
  * LlamaLendCreateAction - Action that creates a llamalend position on behalf of proxy
@@ -26,6 +26,7 @@ export class LlamaLendCreateAction extends Action {
26
26
  collateralAmount: uint256,
27
27
  debtAmount: uint256,
28
28
  nBands: uint256,
29
+ debtAsset: EthAddress,
29
30
  ) {
30
31
  requireAddress(to);
31
32
  super(
@@ -43,7 +44,7 @@ export class LlamaLendCreateAction extends Action {
43
44
  async getAssetsToApprove() {
44
45
  return [{
45
46
  owner: this.args[1],
46
- asset: controllerToCollateralAssetMap[this.args[0] as keyof typeof controllerToCollateralAssetMap],
47
+ asset: this.args[6],
47
48
  }];
48
49
  }
49
50
  }
@@ -0,0 +1,21 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ import { EthAddress } from '../../types';
4
+
5
+
6
+ /**
7
+ * @category LlamaLend
8
+ */
9
+ export class LlamaLendGetDebtAction extends Action {
10
+ constructor(controllerAddr:EthAddress, debtor:EthAddress) {
11
+ super(
12
+ 'LlamaLendGetDebt',
13
+ getAddr('LlamaLendGetDebt'),
14
+ [
15
+ 'address',
16
+ 'address',
17
+ ],
18
+ [controllerAddr, debtor],
19
+ );
20
+ }
21
+ }
@@ -0,0 +1,39 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ import { EthAddress, uint256, uint32 } from '../../types';
4
+
5
+
6
+ /**
7
+ * @category LlamaLend
8
+ */
9
+ export class LlamaLendLevCreateAction extends Action {
10
+ constructor(controller: EthAddress, controllerId: uint256, from: EthAddress, collAmount: uint256, nBands: uint256, exchangeOrder: Array<any>, gasUsed: uint32) {
11
+ super(
12
+ 'LlamaLendLevCreate',
13
+ getAddr('LlamaLendLevCreate'),
14
+ [
15
+ 'address',
16
+ 'uint256',
17
+ 'address',
18
+ 'uint256',
19
+ 'uint256',
20
+ ['address', 'address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'address', 'bytes', ['address', 'address', 'address', 'uint256', 'uint256', 'bytes']],
21
+ 'uint32',
22
+ ],
23
+ [controller, controllerId, from, collAmount, nBands, exchangeOrder, gasUsed],
24
+ );
25
+ this.mappableArgs = [
26
+ this.args[0],
27
+ this.args[1],
28
+ this.args[2],
29
+ this.args[3],
30
+ ];
31
+ }
32
+
33
+ async getAssetsToApprove() {
34
+ return [{
35
+ owner: this.args[1],
36
+ asset: this.args[5][1],
37
+ }];
38
+ }
39
+ }
@@ -1,7 +1,6 @@
1
1
  import { Action } from '../../Action';
2
2
  import { getAddr } from '../../addresses';
3
3
  import { EthAddress, uint256, int256 } from '../../types';
4
- import { controllerToDebtAssetMap } from '../../utils/llamalend-utils';
5
4
 
6
5
  /**
7
6
  * LlamaLendPaybackAction - Action that pays back debt asset to a llamalend position
@@ -9,14 +8,6 @@ import { controllerToDebtAssetMap } from '../../utils/llamalend-utils';
9
8
  * @category LlamaLend
10
9
  */
11
10
  export class LlamaLendPaybackAction extends Action {
12
- /**
13
- * address controllerAddress - Address of the llamalend market controller
14
- * address from - Address from which to pull debt asset, will default to proxy
15
- * address onBehalfOf - Address for which we are paying back debt, will default to proxy
16
- * address to - Address that will receive the debt asset and collateral asset if close, will default to proxy
17
- * uint256 debtAmount - Amount of debt asset to payback
18
- * int256 maxActiveBand - Don't allow active band to be higher than this (to prevent front-running the repay)
19
- */
20
11
  /// @dev debtAmount must be non-zero
21
12
  /// @dev if debtAmount >= debt will repay whole debt and close the position, transfering collateral
22
13
  constructor(
@@ -26,6 +17,7 @@ export class LlamaLendPaybackAction extends Action {
26
17
  to: EthAddress,
27
18
  debtAmount: uint256,
28
19
  maxActiveBand: int256,
20
+ debtAsset: EthAddress,
29
21
  ) {
30
22
  super(
31
23
  'LlamaLendPayback',
@@ -42,7 +34,7 @@ export class LlamaLendPaybackAction extends Action {
42
34
  async getAssetsToApprove() {
43
35
  return [{
44
36
  owner: this.args[1],
45
- asset: controllerToDebtAssetMap[this.args[0] as keyof typeof controllerToDebtAssetMap],
37
+ asset: this.args[6],
46
38
  }];
47
39
  }
48
40
  }
@@ -0,0 +1,28 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ import { EthAddress, uint256, uint32 } from '../../types';
4
+
5
+
6
+ /**
7
+ * @category LlamaLend
8
+ */
9
+ export class LlamaLendRepayAction extends Action {
10
+ constructor(controller: EthAddress, controllerId: uint256, exchangeOrder: Array<any>, to: EthAddress, gasUsed: uint32) {
11
+ super(
12
+ 'LlamaLendRepay',
13
+ getAddr('LlamaLendRepay'),
14
+ [
15
+ 'address',
16
+ 'uint256',
17
+ ['address', 'address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'address', 'bytes', ['address', 'address', 'address', 'uint256', 'uint256', 'bytes']],
18
+ 'address',
19
+ 'uint32',
20
+ ],
21
+ [controller, controllerId, exchangeOrder, to, gasUsed],
22
+ );
23
+ this.mappableArgs = [
24
+ this.args[0],
25
+ this.args[2],
26
+ ];
27
+ }
28
+ }
@@ -1,7 +1,7 @@
1
1
  import { Action } from '../../Action';
2
2
  import { getAddr } from '../../addresses';
3
+ import { CONFIG } from '../../config';
3
4
  import { EthAddress, uint256 } from '../../types';
4
- import { controllerToDebtAssetMap } from '../../utils/llamalend-utils';
5
5
 
6
6
  /**
7
7
  *
@@ -19,6 +19,7 @@ export class LlamaLendSelfLiquidateAction extends Action {
19
19
  minDebtAssetExpected: uint256,
20
20
  from: EthAddress,
21
21
  to: EthAddress,
22
+ debtAsset: EthAddress,
22
23
  ) {
23
24
  super(
24
25
  'LlamaLendSelfLiquidate',
@@ -35,7 +36,7 @@ export class LlamaLendSelfLiquidateAction extends Action {
35
36
  async getAssetsToApprove() {
36
37
  return [{
37
38
  owner: this.args[2],
38
- asset: controllerToDebtAssetMap[this.args[0] as keyof typeof controllerToDebtAssetMap],
39
+ asset: this.args[4],
39
40
  }];
40
41
  }
41
42
  }