@defisaver/sdk 1.0.62 → 1.0.64

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 (62) hide show
  1. package/esm/src/Action.d.ts +2 -2
  2. package/esm/src/actions/checkers/MorphoBlueRatioCheckAction.d.ts +20 -0
  3. package/esm/src/actions/checkers/MorphoBlueRatioCheckAction.js +32 -0
  4. package/esm/src/actions/checkers/index.d.ts +1 -0
  5. package/esm/src/actions/checkers/index.js +1 -0
  6. package/esm/src/actions/flashloan/FLAction.js +3 -0
  7. package/esm/src/actions/flashloan/MorphoBlueFlashLoanAction.d.ts +16 -0
  8. package/esm/src/actions/flashloan/MorphoBlueFlashLoanAction.js +18 -0
  9. package/esm/src/actions/flashloan/MorphoBlueFlashLoanPaybackAction.d.ts +14 -0
  10. package/esm/src/actions/flashloan/MorphoBlueFlashLoanPaybackAction.js +16 -0
  11. package/esm/src/actions/flashloan/index.d.ts +2 -0
  12. package/esm/src/actions/flashloan/index.js +2 -0
  13. package/esm/src/actions/index.d.ts +2 -1
  14. package/esm/src/actions/index.js +2 -1
  15. package/esm/src/actions/morpho-blue/MorphoBlueBorrowAction.d.ts +21 -0
  16. package/esm/src/actions/morpho-blue/MorphoBlueBorrowAction.js +46 -0
  17. package/esm/src/actions/morpho-blue/MorphoBluePaybackAction.d.ts +24 -0
  18. package/esm/src/actions/morpho-blue/MorphoBluePaybackAction.js +46 -0
  19. package/esm/src/actions/morpho-blue/MorphoBlueSetAuthAction.d.ts +12 -0
  20. package/esm/src/actions/morpho-blue/MorphoBlueSetAuthAction.js +18 -0
  21. package/esm/src/actions/morpho-blue/MorphoBlueSetAuthWithSigAction.d.ts +12 -0
  22. package/esm/src/actions/morpho-blue/MorphoBlueSetAuthWithSigAction.js +21 -0
  23. package/esm/src/actions/morpho-blue/MorphoBlueSupplyAction.d.ts +24 -0
  24. package/esm/src/actions/morpho-blue/MorphoBlueSupplyAction.js +46 -0
  25. package/esm/src/actions/morpho-blue/MorphoBlueSupplyCollateralAction.d.ts +24 -0
  26. package/esm/src/actions/morpho-blue/MorphoBlueSupplyCollateralAction.js +46 -0
  27. package/esm/src/actions/morpho-blue/MorphoBlueWithdrawAction.d.ts +21 -0
  28. package/esm/src/actions/morpho-blue/MorphoBlueWithdrawAction.js +46 -0
  29. package/esm/src/actions/morpho-blue/MorphoBlueWithdrawCollateralAction.d.ts +21 -0
  30. package/esm/src/actions/morpho-blue/MorphoBlueWithdrawCollateralAction.js +46 -0
  31. package/esm/src/actions/morpho-blue/index.d.ts +8 -0
  32. package/esm/src/actions/morpho-blue/index.js +8 -0
  33. package/esm/src/addresses.d.ts +39 -3
  34. package/esm/src/addresses.js +12 -0
  35. package/esm/src/index.d.ts +156 -12
  36. package/esm/src/triggers/MorphoBlueRatioTrigger.d.ts +10 -0
  37. package/esm/src/triggers/MorphoBlueRatioTrigger.js +12 -0
  38. package/esm/src/triggers/index.d.ts +1 -0
  39. package/esm/src/triggers/index.js +1 -0
  40. package/esm/src/types.d.ts +20 -20
  41. package/package.json +1 -1
  42. package/src/actions/checkers/MorphoBlueRatioCheckAction.ts +47 -0
  43. package/src/actions/checkers/index.ts +1 -0
  44. package/src/actions/flashloan/FLAction.ts +3 -0
  45. package/src/actions/flashloan/MorphoBlueFlashLoanAction.ts +25 -0
  46. package/src/actions/flashloan/MorphoBlueFlashLoanPaybackAction.ts +18 -0
  47. package/src/actions/flashloan/index.ts +3 -1
  48. package/src/actions/index.ts +2 -0
  49. package/src/actions/morpho-blue/MorphoBlueBorrowAction.ts +54 -0
  50. package/src/actions/morpho-blue/MorphoBluePaybackAction.ts +54 -0
  51. package/src/actions/morpho-blue/MorphoBlueSetAuthAction.ts +25 -0
  52. package/src/actions/morpho-blue/MorphoBlueSetAuthWithSigAction.ts +39 -0
  53. package/src/actions/morpho-blue/MorphoBlueSupplyAction.ts +54 -0
  54. package/src/actions/morpho-blue/MorphoBlueSupplyCollateralAction.ts +54 -0
  55. package/src/actions/morpho-blue/MorphoBlueWithdrawAction.ts +54 -0
  56. package/src/actions/morpho-blue/MorphoBlueWithdrawCollateralAction.ts +54 -0
  57. package/src/actions/morpho-blue/index.ts +8 -0
  58. package/src/addresses.ts +13 -0
  59. package/src/triggers/MorphoBlueRatioTrigger.ts +25 -0
  60. package/src/triggers/index.ts +1 -0
  61. package/umd/index.js +1528 -1028
  62. package/yarn-error.log +0 -3976
@@ -110,6 +110,7 @@ declare const actionAddressesAllChains: {
110
110
  FLAction: string;
111
111
  FLUniV3: string;
112
112
  FLGho: string;
113
+ FLMorphoBlue: string;
113
114
  UniSupply: string;
114
115
  UniWithdraw: string;
115
116
  UniCollectV3: string;
@@ -193,6 +194,14 @@ declare const actionAddressesAllChains: {
193
194
  CurveUsdGetDebt: string;
194
195
  CurveUsdCollRatioTrigger: string;
195
196
  CurveUsdCollRatioCheck: string;
197
+ MorphoBlueSupply: string;
198
+ MorphoBlueSupplyCollateral: string;
199
+ MorphoBlueWithdraw: string;
200
+ MorphoBlueWithdrawCollateral: string;
201
+ MorphoBlueBorrow: string;
202
+ MorphoBluePayback: string;
203
+ MorphoBlueSetAuth: string;
204
+ MorphoBlueSetAuthWithSig: string;
196
205
  AaveV3DelegateCredit?: undefined;
197
206
  AaveV3RatioTrigger?: undefined;
198
207
  GasFeeTakerL2?: undefined;
@@ -208,6 +217,7 @@ declare const actionAddressesAllChains: {
208
217
  ToggleSub: string;
209
218
  TokenBalance: string;
210
219
  TokenizedVaultAdapter: string;
220
+ ChangeProxyOwner: string;
211
221
  AaveV3ATokenPayback: string;
212
222
  AaveV3Borrow: string;
213
223
  AaveV3CollateralSwitch: string;
@@ -232,7 +242,6 @@ declare const actionAddressesAllChains: {
232
242
  UniCreatePoolV3: string;
233
243
  SumInputs?: undefined;
234
244
  SubInputs?: undefined;
235
- ChangeProxyOwner?: undefined;
236
245
  AutomationV2Unsub?: undefined;
237
246
  UpdateSub?: undefined;
238
247
  TransferNFT?: undefined;
@@ -305,6 +314,7 @@ declare const actionAddressesAllChains: {
305
314
  FLSpark?: undefined;
306
315
  FLUniV3?: undefined;
307
316
  FLGho?: undefined;
317
+ FLMorphoBlue?: undefined;
308
318
  UniSupply?: undefined;
309
319
  UniWithdraw?: undefined;
310
320
  DyDxWithdraw?: undefined;
@@ -383,6 +393,14 @@ declare const actionAddressesAllChains: {
383
393
  CurveUsdGetDebt?: undefined;
384
394
  CurveUsdCollRatioTrigger?: undefined;
385
395
  CurveUsdCollRatioCheck?: undefined;
396
+ MorphoBlueSupply?: undefined;
397
+ MorphoBlueSupplyCollateral?: undefined;
398
+ MorphoBlueWithdraw?: undefined;
399
+ MorphoBlueWithdrawCollateral?: undefined;
400
+ MorphoBlueBorrow?: undefined;
401
+ MorphoBluePayback?: undefined;
402
+ MorphoBlueSetAuth?: undefined;
403
+ MorphoBlueSetAuthWithSig?: undefined;
386
404
  } | {
387
405
  DFSSell: string;
388
406
  WrapEth: string;
@@ -393,6 +411,7 @@ declare const actionAddressesAllChains: {
393
411
  ToggleSub: string;
394
412
  TokenBalance: string;
395
413
  TokenizedVaultAdapter: string;
414
+ ChangeProxyOwner: string;
396
415
  AaveV3ATokenPayback: string;
397
416
  AaveV3Borrow: string;
398
417
  AaveV3CollateralSwitch: string;
@@ -421,7 +440,6 @@ declare const actionAddressesAllChains: {
421
440
  UniCreatePoolV3: string;
422
441
  SumInputs?: undefined;
423
442
  SubInputs?: undefined;
424
- ChangeProxyOwner?: undefined;
425
443
  AutomationV2Unsub?: undefined;
426
444
  UpdateSub?: undefined;
427
445
  TransferNFT?: undefined;
@@ -496,6 +514,7 @@ declare const actionAddressesAllChains: {
496
514
  FLSpark?: undefined;
497
515
  FLUniV3?: undefined;
498
516
  FLGho?: undefined;
517
+ FLMorphoBlue?: undefined;
499
518
  UniSupply?: undefined;
500
519
  UniWithdraw?: undefined;
501
520
  DyDxWithdraw?: undefined;
@@ -567,6 +586,14 @@ declare const actionAddressesAllChains: {
567
586
  CurveUsdGetDebt?: undefined;
568
587
  CurveUsdCollRatioTrigger?: undefined;
569
588
  CurveUsdCollRatioCheck?: undefined;
589
+ MorphoBlueSupply?: undefined;
590
+ MorphoBlueSupplyCollateral?: undefined;
591
+ MorphoBlueWithdraw?: undefined;
592
+ MorphoBlueWithdrawCollateral?: undefined;
593
+ MorphoBlueBorrow?: undefined;
594
+ MorphoBluePayback?: undefined;
595
+ MorphoBlueSetAuth?: undefined;
596
+ MorphoBlueSetAuthWithSig?: undefined;
570
597
  AaveV3DelegateCredit?: undefined;
571
598
  AaveV3RatioTrigger?: undefined;
572
599
  } | {
@@ -576,6 +603,7 @@ declare const actionAddressesAllChains: {
576
603
  SendToken: string;
577
604
  PullToken: string;
578
605
  TokenBalance: string;
606
+ ChangeProxyOwner: string;
579
607
  FLAaveV3: string;
580
608
  FLBalancer: string;
581
609
  FLUniV3: string;
@@ -598,7 +626,6 @@ declare const actionAddressesAllChains: {
598
626
  CompV3Withdraw: string;
599
627
  SumInputs?: undefined;
600
628
  SubInputs?: undefined;
601
- ChangeProxyOwner?: undefined;
602
629
  AutomationV2Unsub?: undefined;
603
630
  SendTokenAndUnwrap?: undefined;
604
631
  ToggleSub?: undefined;
@@ -675,6 +702,7 @@ declare const actionAddressesAllChains: {
675
702
  FLSpark?: undefined;
676
703
  FLAction?: undefined;
677
704
  FLGho?: undefined;
705
+ FLMorphoBlue?: undefined;
678
706
  UniSupply?: undefined;
679
707
  UniWithdraw?: undefined;
680
708
  UniCollectV3?: undefined;
@@ -751,6 +779,14 @@ declare const actionAddressesAllChains: {
751
779
  CurveUsdGetDebt?: undefined;
752
780
  CurveUsdCollRatioTrigger?: undefined;
753
781
  CurveUsdCollRatioCheck?: undefined;
782
+ MorphoBlueSupply?: undefined;
783
+ MorphoBlueSupplyCollateral?: undefined;
784
+ MorphoBlueWithdraw?: undefined;
785
+ MorphoBlueWithdrawCollateral?: undefined;
786
+ MorphoBlueBorrow?: undefined;
787
+ MorphoBluePayback?: undefined;
788
+ MorphoBlueSetAuth?: undefined;
789
+ MorphoBlueSetAuthWithSig?: undefined;
754
790
  AaveV3DelegateCredit?: undefined;
755
791
  AaveV3RatioTrigger?: undefined;
756
792
  GasFeeTakerL2?: undefined;
@@ -856,6 +892,7 @@ declare const actionAddresses: (chainId?: null) => {
856
892
  FLAction: string;
857
893
  FLUniV3: string;
858
894
  FLGho: string;
895
+ FLMorphoBlue: string;
859
896
  UniSupply: string;
860
897
  UniWithdraw: string;
861
898
  UniCollectV3: string;
@@ -939,6 +976,14 @@ declare const actionAddresses: (chainId?: null) => {
939
976
  CurveUsdGetDebt: string;
940
977
  CurveUsdCollRatioTrigger: string;
941
978
  CurveUsdCollRatioCheck: string;
979
+ MorphoBlueSupply: string;
980
+ MorphoBlueSupplyCollateral: string;
981
+ MorphoBlueWithdraw: string;
982
+ MorphoBlueWithdrawCollateral: string;
983
+ MorphoBlueBorrow: string;
984
+ MorphoBluePayback: string;
985
+ MorphoBlueSetAuth: string;
986
+ MorphoBlueSetAuthWithSig: string;
942
987
  AaveV3DelegateCredit?: undefined;
943
988
  AaveV3RatioTrigger?: undefined;
944
989
  GasFeeTakerL2?: undefined;
@@ -954,6 +999,7 @@ declare const actionAddresses: (chainId?: null) => {
954
999
  ToggleSub: string;
955
1000
  TokenBalance: string;
956
1001
  TokenizedVaultAdapter: string;
1002
+ ChangeProxyOwner: string;
957
1003
  AaveV3ATokenPayback: string;
958
1004
  AaveV3Borrow: string;
959
1005
  AaveV3CollateralSwitch: string;
@@ -978,7 +1024,6 @@ declare const actionAddresses: (chainId?: null) => {
978
1024
  UniCreatePoolV3: string;
979
1025
  SumInputs?: undefined;
980
1026
  SubInputs?: undefined;
981
- ChangeProxyOwner?: undefined;
982
1027
  AutomationV2Unsub?: undefined;
983
1028
  UpdateSub?: undefined;
984
1029
  TransferNFT?: undefined;
@@ -1051,6 +1096,7 @@ declare const actionAddresses: (chainId?: null) => {
1051
1096
  FLSpark?: undefined;
1052
1097
  FLUniV3?: undefined;
1053
1098
  FLGho?: undefined;
1099
+ FLMorphoBlue?: undefined;
1054
1100
  UniSupply?: undefined;
1055
1101
  UniWithdraw?: undefined;
1056
1102
  DyDxWithdraw?: undefined;
@@ -1129,6 +1175,14 @@ declare const actionAddresses: (chainId?: null) => {
1129
1175
  CurveUsdGetDebt?: undefined;
1130
1176
  CurveUsdCollRatioTrigger?: undefined;
1131
1177
  CurveUsdCollRatioCheck?: undefined;
1178
+ MorphoBlueSupply?: undefined;
1179
+ MorphoBlueSupplyCollateral?: undefined;
1180
+ MorphoBlueWithdraw?: undefined;
1181
+ MorphoBlueWithdrawCollateral?: undefined;
1182
+ MorphoBlueBorrow?: undefined;
1183
+ MorphoBluePayback?: undefined;
1184
+ MorphoBlueSetAuth?: undefined;
1185
+ MorphoBlueSetAuthWithSig?: undefined;
1132
1186
  } | {
1133
1187
  DFSSell: string;
1134
1188
  WrapEth: string;
@@ -1139,6 +1193,7 @@ declare const actionAddresses: (chainId?: null) => {
1139
1193
  ToggleSub: string;
1140
1194
  TokenBalance: string;
1141
1195
  TokenizedVaultAdapter: string;
1196
+ ChangeProxyOwner: string;
1142
1197
  AaveV3ATokenPayback: string;
1143
1198
  AaveV3Borrow: string;
1144
1199
  AaveV3CollateralSwitch: string;
@@ -1167,7 +1222,6 @@ declare const actionAddresses: (chainId?: null) => {
1167
1222
  UniCreatePoolV3: string;
1168
1223
  SumInputs?: undefined;
1169
1224
  SubInputs?: undefined;
1170
- ChangeProxyOwner?: undefined;
1171
1225
  AutomationV2Unsub?: undefined;
1172
1226
  UpdateSub?: undefined;
1173
1227
  TransferNFT?: undefined;
@@ -1242,6 +1296,7 @@ declare const actionAddresses: (chainId?: null) => {
1242
1296
  FLSpark?: undefined;
1243
1297
  FLUniV3?: undefined;
1244
1298
  FLGho?: undefined;
1299
+ FLMorphoBlue?: undefined;
1245
1300
  UniSupply?: undefined;
1246
1301
  UniWithdraw?: undefined;
1247
1302
  DyDxWithdraw?: undefined;
@@ -1313,6 +1368,14 @@ declare const actionAddresses: (chainId?: null) => {
1313
1368
  CurveUsdGetDebt?: undefined;
1314
1369
  CurveUsdCollRatioTrigger?: undefined;
1315
1370
  CurveUsdCollRatioCheck?: undefined;
1371
+ MorphoBlueSupply?: undefined;
1372
+ MorphoBlueSupplyCollateral?: undefined;
1373
+ MorphoBlueWithdraw?: undefined;
1374
+ MorphoBlueWithdrawCollateral?: undefined;
1375
+ MorphoBlueBorrow?: undefined;
1376
+ MorphoBluePayback?: undefined;
1377
+ MorphoBlueSetAuth?: undefined;
1378
+ MorphoBlueSetAuthWithSig?: undefined;
1316
1379
  AaveV3DelegateCredit?: undefined;
1317
1380
  AaveV3RatioTrigger?: undefined;
1318
1381
  } | {
@@ -1322,6 +1385,7 @@ declare const actionAddresses: (chainId?: null) => {
1322
1385
  SendToken: string;
1323
1386
  PullToken: string;
1324
1387
  TokenBalance: string;
1388
+ ChangeProxyOwner: string;
1325
1389
  FLAaveV3: string;
1326
1390
  FLBalancer: string;
1327
1391
  FLUniV3: string;
@@ -1344,7 +1408,6 @@ declare const actionAddresses: (chainId?: null) => {
1344
1408
  CompV3Withdraw: string;
1345
1409
  SumInputs?: undefined;
1346
1410
  SubInputs?: undefined;
1347
- ChangeProxyOwner?: undefined;
1348
1411
  AutomationV2Unsub?: undefined;
1349
1412
  SendTokenAndUnwrap?: undefined;
1350
1413
  ToggleSub?: undefined;
@@ -1421,6 +1484,7 @@ declare const actionAddresses: (chainId?: null) => {
1421
1484
  FLSpark?: undefined;
1422
1485
  FLAction?: undefined;
1423
1486
  FLGho?: undefined;
1487
+ FLMorphoBlue?: undefined;
1424
1488
  UniSupply?: undefined;
1425
1489
  UniWithdraw?: undefined;
1426
1490
  UniCollectV3?: undefined;
@@ -1497,6 +1561,14 @@ declare const actionAddresses: (chainId?: null) => {
1497
1561
  CurveUsdGetDebt?: undefined;
1498
1562
  CurveUsdCollRatioTrigger?: undefined;
1499
1563
  CurveUsdCollRatioCheck?: undefined;
1564
+ MorphoBlueSupply?: undefined;
1565
+ MorphoBlueSupplyCollateral?: undefined;
1566
+ MorphoBlueWithdraw?: undefined;
1567
+ MorphoBlueWithdrawCollateral?: undefined;
1568
+ MorphoBlueBorrow?: undefined;
1569
+ MorphoBluePayback?: undefined;
1570
+ MorphoBlueSetAuth?: undefined;
1571
+ MorphoBlueSetAuthWithSig?: undefined;
1500
1572
  AaveV3DelegateCredit?: undefined;
1501
1573
  AaveV3RatioTrigger?: undefined;
1502
1574
  GasFeeTakerL2?: undefined;
@@ -1745,6 +1817,7 @@ declare const _default: {
1745
1817
  FLAction: string;
1746
1818
  FLUniV3: string;
1747
1819
  FLGho: string;
1820
+ FLMorphoBlue: string;
1748
1821
  UniSupply: string;
1749
1822
  UniWithdraw: string;
1750
1823
  UniCollectV3: string;
@@ -1828,6 +1901,14 @@ declare const _default: {
1828
1901
  CurveUsdGetDebt: string;
1829
1902
  CurveUsdCollRatioTrigger: string;
1830
1903
  CurveUsdCollRatioCheck: string;
1904
+ MorphoBlueSupply: string;
1905
+ MorphoBlueSupplyCollateral: string;
1906
+ MorphoBlueWithdraw: string;
1907
+ MorphoBlueWithdrawCollateral: string;
1908
+ MorphoBlueBorrow: string;
1909
+ MorphoBluePayback: string;
1910
+ MorphoBlueSetAuth: string;
1911
+ MorphoBlueSetAuthWithSig: string;
1831
1912
  AaveV3DelegateCredit?: undefined;
1832
1913
  AaveV3RatioTrigger?: undefined;
1833
1914
  GasFeeTakerL2?: undefined;
@@ -1843,6 +1924,7 @@ declare const _default: {
1843
1924
  ToggleSub: string;
1844
1925
  TokenBalance: string;
1845
1926
  TokenizedVaultAdapter: string;
1927
+ ChangeProxyOwner: string;
1846
1928
  AaveV3ATokenPayback: string;
1847
1929
  AaveV3Borrow: string;
1848
1930
  AaveV3CollateralSwitch: string;
@@ -1867,7 +1949,6 @@ declare const _default: {
1867
1949
  UniCreatePoolV3: string;
1868
1950
  SumInputs?: undefined;
1869
1951
  SubInputs?: undefined;
1870
- ChangeProxyOwner?: undefined;
1871
1952
  AutomationV2Unsub?: undefined;
1872
1953
  UpdateSub?: undefined;
1873
1954
  TransferNFT?: undefined;
@@ -1940,6 +2021,7 @@ declare const _default: {
1940
2021
  FLSpark?: undefined;
1941
2022
  FLUniV3?: undefined;
1942
2023
  FLGho?: undefined;
2024
+ FLMorphoBlue?: undefined;
1943
2025
  UniSupply?: undefined;
1944
2026
  UniWithdraw?: undefined;
1945
2027
  DyDxWithdraw?: undefined;
@@ -2018,6 +2100,14 @@ declare const _default: {
2018
2100
  CurveUsdGetDebt?: undefined;
2019
2101
  CurveUsdCollRatioTrigger?: undefined;
2020
2102
  CurveUsdCollRatioCheck?: undefined;
2103
+ MorphoBlueSupply?: undefined;
2104
+ MorphoBlueSupplyCollateral?: undefined;
2105
+ MorphoBlueWithdraw?: undefined;
2106
+ MorphoBlueWithdrawCollateral?: undefined;
2107
+ MorphoBlueBorrow?: undefined;
2108
+ MorphoBluePayback?: undefined;
2109
+ MorphoBlueSetAuth?: undefined;
2110
+ MorphoBlueSetAuthWithSig?: undefined;
2021
2111
  } | {
2022
2112
  DFSSell: string;
2023
2113
  WrapEth: string;
@@ -2028,6 +2118,7 @@ declare const _default: {
2028
2118
  ToggleSub: string;
2029
2119
  TokenBalance: string;
2030
2120
  TokenizedVaultAdapter: string;
2121
+ ChangeProxyOwner: string;
2031
2122
  AaveV3ATokenPayback: string;
2032
2123
  AaveV3Borrow: string;
2033
2124
  AaveV3CollateralSwitch: string;
@@ -2056,7 +2147,6 @@ declare const _default: {
2056
2147
  UniCreatePoolV3: string;
2057
2148
  SumInputs?: undefined;
2058
2149
  SubInputs?: undefined;
2059
- ChangeProxyOwner?: undefined;
2060
2150
  AutomationV2Unsub?: undefined;
2061
2151
  UpdateSub?: undefined;
2062
2152
  TransferNFT?: undefined;
@@ -2131,6 +2221,7 @@ declare const _default: {
2131
2221
  FLSpark?: undefined;
2132
2222
  FLUniV3?: undefined;
2133
2223
  FLGho?: undefined;
2224
+ FLMorphoBlue?: undefined;
2134
2225
  UniSupply?: undefined;
2135
2226
  UniWithdraw?: undefined;
2136
2227
  DyDxWithdraw?: undefined;
@@ -2202,6 +2293,14 @@ declare const _default: {
2202
2293
  CurveUsdGetDebt?: undefined;
2203
2294
  CurveUsdCollRatioTrigger?: undefined;
2204
2295
  CurveUsdCollRatioCheck?: undefined;
2296
+ MorphoBlueSupply?: undefined;
2297
+ MorphoBlueSupplyCollateral?: undefined;
2298
+ MorphoBlueWithdraw?: undefined;
2299
+ MorphoBlueWithdrawCollateral?: undefined;
2300
+ MorphoBlueBorrow?: undefined;
2301
+ MorphoBluePayback?: undefined;
2302
+ MorphoBlueSetAuth?: undefined;
2303
+ MorphoBlueSetAuthWithSig?: undefined;
2205
2304
  AaveV3DelegateCredit?: undefined;
2206
2305
  AaveV3RatioTrigger?: undefined;
2207
2306
  } | {
@@ -2211,6 +2310,7 @@ declare const _default: {
2211
2310
  SendToken: string;
2212
2311
  PullToken: string;
2213
2312
  TokenBalance: string;
2313
+ ChangeProxyOwner: string;
2214
2314
  FLAaveV3: string;
2215
2315
  FLBalancer: string;
2216
2316
  FLUniV3: string;
@@ -2233,7 +2333,6 @@ declare const _default: {
2233
2333
  CompV3Withdraw: string;
2234
2334
  SumInputs?: undefined;
2235
2335
  SubInputs?: undefined;
2236
- ChangeProxyOwner?: undefined;
2237
2336
  AutomationV2Unsub?: undefined;
2238
2337
  SendTokenAndUnwrap?: undefined;
2239
2338
  ToggleSub?: undefined;
@@ -2310,6 +2409,7 @@ declare const _default: {
2310
2409
  FLSpark?: undefined;
2311
2410
  FLAction?: undefined;
2312
2411
  FLGho?: undefined;
2412
+ FLMorphoBlue?: undefined;
2313
2413
  UniSupply?: undefined;
2314
2414
  UniWithdraw?: undefined;
2315
2415
  UniCollectV3?: undefined;
@@ -2386,6 +2486,14 @@ declare const _default: {
2386
2486
  CurveUsdGetDebt?: undefined;
2387
2487
  CurveUsdCollRatioTrigger?: undefined;
2388
2488
  CurveUsdCollRatioCheck?: undefined;
2489
+ MorphoBlueSupply?: undefined;
2490
+ MorphoBlueSupplyCollateral?: undefined;
2491
+ MorphoBlueWithdraw?: undefined;
2492
+ MorphoBlueWithdrawCollateral?: undefined;
2493
+ MorphoBlueBorrow?: undefined;
2494
+ MorphoBluePayback?: undefined;
2495
+ MorphoBlueSetAuth?: undefined;
2496
+ MorphoBlueSetAuthWithSig?: undefined;
2389
2497
  AaveV3DelegateCredit?: undefined;
2390
2498
  AaveV3RatioTrigger?: undefined;
2391
2499
  GasFeeTakerL2?: undefined;
@@ -2491,6 +2599,7 @@ declare const _default: {
2491
2599
  FLAction: string;
2492
2600
  FLUniV3: string;
2493
2601
  FLGho: string;
2602
+ FLMorphoBlue: string;
2494
2603
  UniSupply: string;
2495
2604
  UniWithdraw: string;
2496
2605
  UniCollectV3: string;
@@ -2574,6 +2683,14 @@ declare const _default: {
2574
2683
  CurveUsdGetDebt: string;
2575
2684
  CurveUsdCollRatioTrigger: string;
2576
2685
  CurveUsdCollRatioCheck: string;
2686
+ MorphoBlueSupply: string;
2687
+ MorphoBlueSupplyCollateral: string;
2688
+ MorphoBlueWithdraw: string;
2689
+ MorphoBlueWithdrawCollateral: string;
2690
+ MorphoBlueBorrow: string;
2691
+ MorphoBluePayback: string;
2692
+ MorphoBlueSetAuth: string;
2693
+ MorphoBlueSetAuthWithSig: string;
2577
2694
  AaveV3DelegateCredit?: undefined;
2578
2695
  AaveV3RatioTrigger?: undefined;
2579
2696
  GasFeeTakerL2?: undefined;
@@ -2589,6 +2706,7 @@ declare const _default: {
2589
2706
  ToggleSub: string;
2590
2707
  TokenBalance: string;
2591
2708
  TokenizedVaultAdapter: string;
2709
+ ChangeProxyOwner: string;
2592
2710
  AaveV3ATokenPayback: string;
2593
2711
  AaveV3Borrow: string;
2594
2712
  AaveV3CollateralSwitch: string;
@@ -2613,7 +2731,6 @@ declare const _default: {
2613
2731
  UniCreatePoolV3: string;
2614
2732
  SumInputs?: undefined;
2615
2733
  SubInputs?: undefined;
2616
- ChangeProxyOwner?: undefined;
2617
2734
  AutomationV2Unsub?: undefined;
2618
2735
  UpdateSub?: undefined;
2619
2736
  TransferNFT?: undefined;
@@ -2686,6 +2803,7 @@ declare const _default: {
2686
2803
  FLSpark?: undefined;
2687
2804
  FLUniV3?: undefined;
2688
2805
  FLGho?: undefined;
2806
+ FLMorphoBlue?: undefined;
2689
2807
  UniSupply?: undefined;
2690
2808
  UniWithdraw?: undefined;
2691
2809
  DyDxWithdraw?: undefined;
@@ -2764,6 +2882,14 @@ declare const _default: {
2764
2882
  CurveUsdGetDebt?: undefined;
2765
2883
  CurveUsdCollRatioTrigger?: undefined;
2766
2884
  CurveUsdCollRatioCheck?: undefined;
2885
+ MorphoBlueSupply?: undefined;
2886
+ MorphoBlueSupplyCollateral?: undefined;
2887
+ MorphoBlueWithdraw?: undefined;
2888
+ MorphoBlueWithdrawCollateral?: undefined;
2889
+ MorphoBlueBorrow?: undefined;
2890
+ MorphoBluePayback?: undefined;
2891
+ MorphoBlueSetAuth?: undefined;
2892
+ MorphoBlueSetAuthWithSig?: undefined;
2767
2893
  } | {
2768
2894
  DFSSell: string;
2769
2895
  WrapEth: string;
@@ -2774,6 +2900,7 @@ declare const _default: {
2774
2900
  ToggleSub: string;
2775
2901
  TokenBalance: string;
2776
2902
  TokenizedVaultAdapter: string;
2903
+ ChangeProxyOwner: string;
2777
2904
  AaveV3ATokenPayback: string;
2778
2905
  AaveV3Borrow: string;
2779
2906
  AaveV3CollateralSwitch: string;
@@ -2802,7 +2929,6 @@ declare const _default: {
2802
2929
  UniCreatePoolV3: string;
2803
2930
  SumInputs?: undefined;
2804
2931
  SubInputs?: undefined;
2805
- ChangeProxyOwner?: undefined;
2806
2932
  AutomationV2Unsub?: undefined;
2807
2933
  UpdateSub?: undefined;
2808
2934
  TransferNFT?: undefined;
@@ -2877,6 +3003,7 @@ declare const _default: {
2877
3003
  FLSpark?: undefined;
2878
3004
  FLUniV3?: undefined;
2879
3005
  FLGho?: undefined;
3006
+ FLMorphoBlue?: undefined;
2880
3007
  UniSupply?: undefined;
2881
3008
  UniWithdraw?: undefined;
2882
3009
  DyDxWithdraw?: undefined;
@@ -2948,6 +3075,14 @@ declare const _default: {
2948
3075
  CurveUsdGetDebt?: undefined;
2949
3076
  CurveUsdCollRatioTrigger?: undefined;
2950
3077
  CurveUsdCollRatioCheck?: undefined;
3078
+ MorphoBlueSupply?: undefined;
3079
+ MorphoBlueSupplyCollateral?: undefined;
3080
+ MorphoBlueWithdraw?: undefined;
3081
+ MorphoBlueWithdrawCollateral?: undefined;
3082
+ MorphoBlueBorrow?: undefined;
3083
+ MorphoBluePayback?: undefined;
3084
+ MorphoBlueSetAuth?: undefined;
3085
+ MorphoBlueSetAuthWithSig?: undefined;
2951
3086
  AaveV3DelegateCredit?: undefined;
2952
3087
  AaveV3RatioTrigger?: undefined;
2953
3088
  } | {
@@ -2957,6 +3092,7 @@ declare const _default: {
2957
3092
  SendToken: string;
2958
3093
  PullToken: string;
2959
3094
  TokenBalance: string;
3095
+ ChangeProxyOwner: string;
2960
3096
  FLAaveV3: string;
2961
3097
  FLBalancer: string;
2962
3098
  FLUniV3: string;
@@ -2979,7 +3115,6 @@ declare const _default: {
2979
3115
  CompV3Withdraw: string;
2980
3116
  SumInputs?: undefined;
2981
3117
  SubInputs?: undefined;
2982
- ChangeProxyOwner?: undefined;
2983
3118
  AutomationV2Unsub?: undefined;
2984
3119
  SendTokenAndUnwrap?: undefined;
2985
3120
  ToggleSub?: undefined;
@@ -3056,6 +3191,7 @@ declare const _default: {
3056
3191
  FLSpark?: undefined;
3057
3192
  FLAction?: undefined;
3058
3193
  FLGho?: undefined;
3194
+ FLMorphoBlue?: undefined;
3059
3195
  UniSupply?: undefined;
3060
3196
  UniWithdraw?: undefined;
3061
3197
  UniCollectV3?: undefined;
@@ -3132,6 +3268,14 @@ declare const _default: {
3132
3268
  CurveUsdGetDebt?: undefined;
3133
3269
  CurveUsdCollRatioTrigger?: undefined;
3134
3270
  CurveUsdCollRatioCheck?: undefined;
3271
+ MorphoBlueSupply?: undefined;
3272
+ MorphoBlueSupplyCollateral?: undefined;
3273
+ MorphoBlueWithdraw?: undefined;
3274
+ MorphoBlueWithdrawCollateral?: undefined;
3275
+ MorphoBlueBorrow?: undefined;
3276
+ MorphoBluePayback?: undefined;
3277
+ MorphoBlueSetAuth?: undefined;
3278
+ MorphoBlueSetAuthWithSig?: undefined;
3135
3279
  AaveV3DelegateCredit?: undefined;
3136
3280
  AaveV3RatioTrigger?: undefined;
3137
3281
  GasFeeTakerL2?: undefined;
@@ -0,0 +1,10 @@
1
+ import { Action } from '../Action';
2
+ import { EthAddress, bytes32, uint256, uint8 } from '../types';
3
+ /**
4
+ *
5
+ *
6
+ * @category Triggers
7
+ */
8
+ export declare class MorphoBlueRatioTrigger extends Action {
9
+ constructor(marketId: bytes32, user: EthAddress, ratio: uint256, state: uint8);
10
+ }
@@ -0,0 +1,12 @@
1
+ import { Action } from '../Action';
2
+ import { getAddr } from '../addresses';
3
+ /**
4
+ *
5
+ *
6
+ * @category Triggers
7
+ */
8
+ export class MorphoBlueRatioTrigger extends Action {
9
+ constructor(marketId, user, ratio, state) {
10
+ super('MorphoBlueRatioTrigger', getAddr('MorphoBlueRatioTrigger'), [['bytes32', 'address', 'uint256', 'uint8']], [[marketId, user, ratio, state]]);
11
+ }
12
+ }
@@ -17,3 +17,4 @@ export * from './SparkRatioTrigger';
17
17
  export * from './SparkQuotePriceTrigger';
18
18
  export * from './LiquityDebtInFrontWithLimitTrigger';
19
19
  export * from './CurveUsdCollRatioTrigger';
20
+ export * from './MorphoBlueRatioTrigger';
@@ -17,3 +17,4 @@ export * from './SparkRatioTrigger';
17
17
  export * from './SparkQuotePriceTrigger';
18
18
  export * from './LiquityDebtInFrontWithLimitTrigger';
19
19
  export * from './CurveUsdCollRatioTrigger';
20
+ export * from './MorphoBlueRatioTrigger';
@@ -1,17 +1,17 @@
1
- type AccessListItem = {
1
+ declare type AccessListItem = {
2
2
  address: EthAddress;
3
3
  storageKeys: Array<any>;
4
4
  };
5
- type AccessList = Array<Array<any>>;
6
- type AccessLists = {
5
+ declare type AccessList = Array<Array<any>>;
6
+ declare type AccessLists = {
7
7
  [key: string]: AccessList;
8
8
  };
9
- type Config = {
9
+ declare type Config = {
10
10
  chainId: number;
11
11
  testingMode: boolean;
12
12
  [key: string]: any;
13
13
  };
14
- type Network = {
14
+ declare type Network = {
15
15
  chainId: number;
16
16
  chainName: string;
17
17
  blockExplorerUrls: Array<string>;
@@ -23,24 +23,24 @@ type Network = {
23
23
  symbol: string;
24
24
  };
25
25
  };
26
- type Networks = {
26
+ declare type Networks = {
27
27
  ethereum: Network;
28
28
  optimism: Network;
29
29
  arbitrum: Network;
30
30
  base: Network;
31
31
  };
32
- type EthAddress = string;
33
- type bytes32 = string;
34
- type bytes = string | Array<any>;
35
- type uint256 = string;
36
- type uint32 = string;
37
- type uint160 = string;
38
- type uint128 = string;
39
- type uint80 = string;
40
- type uint64 = string;
41
- type uint24 = string;
42
- type uint16 = string;
43
- type uint8 = string;
44
- type int256 = string;
45
- type int24 = string;
32
+ declare type EthAddress = string;
33
+ declare type bytes32 = string;
34
+ declare type bytes = string | Array<any>;
35
+ declare type uint256 = string;
36
+ declare type uint32 = string;
37
+ declare type uint160 = string;
38
+ declare type uint128 = string;
39
+ declare type uint80 = string;
40
+ declare type uint64 = string;
41
+ declare type uint24 = string;
42
+ declare type uint16 = string;
43
+ declare type uint8 = string;
44
+ declare type int256 = string;
45
+ declare type int24 = string;
46
46
  export { AccessList, AccessListItem, AccessLists, Config, Network, Networks, EthAddress, bytes32, bytes, uint256, uint160, uint32, uint128, uint80, uint64, uint24, uint16, uint8, int256, int24, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/sdk",
3
- "version": "1.0.62",
3
+ "version": "1.0.64",
4
4
  "description": "",
5
5
  "main": "./umd/index.js",
6
6
  "module": "./esm/src/index.js",
@@ -0,0 +1,47 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ import { uint8, uint256, EthAddress } from '../../types';
4
+
5
+ /**
6
+ * MorphoBlueRatioCheckAction - Checks MorphoBlue ratio for user position and reverts if faulty
7
+ *
8
+ * @category Checkers
9
+ */
10
+ export class MorphoBlueRatioCheckAction extends Action {
11
+ /**
12
+ * @param loanToken - MarketParams loanToken
13
+ * @param collateralToken - MarketParams collateralToken
14
+ * @param oracle - MarketParams oracle
15
+ * @param irm - MarketParams irm
16
+ * @param lltv - MarketParams lltv
17
+ * @param user Address of the user we are checking the ratio for
18
+ * @param ratioState If it should lower/higher
19
+ * @param targetRatio The ratio user want to be at
20
+ */
21
+ constructor(
22
+ loanToken:EthAddress,
23
+ collateralToken:EthAddress,
24
+ oracle:EthAddress,
25
+ irm:EthAddress,
26
+ lltv:uint256,
27
+ user:EthAddress,
28
+ ratioState:uint8,
29
+ targetRatio:uint256,
30
+ ) {
31
+ super('MorphoBlueRatioCheck',
32
+ getAddr('MorphoBlueRatioCheck'),
33
+ [['address', 'address', 'address', 'address', 'uint256'], 'address', 'uint8', 'uint256'],
34
+ [[loanToken, collateralToken, oracle, irm, lltv], user, ratioState, targetRatio]);
35
+
36
+ this.mappableArgs = [
37
+ this.args[0][0],
38
+ this.args[0][1],
39
+ this.args[0][2],
40
+ this.args[0][3],
41
+ this.args[0][4],
42
+ this.args[1],
43
+ this.args[2],
44
+ this.args[3],
45
+ ];
46
+ }
47
+ }