@defisaver/sdk 1.0.65 → 1.0.66-dev-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 (63) hide show
  1. package/esm/src/actions/basic/ExecuteSafeTxAction.d.ts +23 -0
  2. package/esm/src/actions/basic/ExecuteSafeTxAction.js +60 -0
  3. package/esm/src/actions/basic/LimitSellAction.d.ts +24 -0
  4. package/esm/src/actions/basic/LimitSellAction.js +63 -0
  5. package/esm/src/actions/basic/RemoveTokenApprovalAction.d.ts +15 -0
  6. package/esm/src/actions/{llamalend/LlamaLendSelfLiquidateAction.js → basic/RemoveTokenApprovalAction.js} +19 -15
  7. package/esm/src/actions/basic/index.d.ts +3 -0
  8. package/esm/src/actions/basic/index.js +3 -0
  9. package/esm/src/actions/checkers/index.d.ts +0 -1
  10. package/esm/src/actions/checkers/index.js +0 -1
  11. package/esm/src/actions/index.d.ts +1 -2
  12. package/esm/src/actions/index.js +1 -2
  13. package/esm/src/actions/maker/MakerGiveAction.d.ts +1 -2
  14. package/esm/src/actions/maker/MakerGiveAction.js +2 -3
  15. package/esm/src/addresses.d.ts +3 -27
  16. package/esm/src/addresses.js +3 -13
  17. package/esm/src/index.d.ts +12 -108
  18. package/esm/src/triggers/OffchainPriceTrigger.d.ts +10 -0
  19. package/esm/src/triggers/OffchainPriceTrigger.js +12 -0
  20. package/esm/src/triggers/index.d.ts +1 -1
  21. package/esm/src/triggers/index.js +1 -1
  22. package/esm/src/utils/index.d.ts +1 -2
  23. package/esm/src/utils/index.js +1 -2
  24. package/package.json +1 -1
  25. package/src/actions/basic/ExecuteSafeTxAction.ts +85 -0
  26. package/src/actions/basic/LimitSellAction.ts +63 -0
  27. package/src/actions/basic/RemoveTokenApprovalAction.ts +39 -0
  28. package/src/actions/basic/WrapEthAction.ts +4 -3
  29. package/src/actions/basic/index.ts +3 -0
  30. package/src/actions/index.ts +0 -2
  31. package/src/actions/maker/MakerGiveAction.ts +2 -3
  32. package/src/addresses.ts +3 -11
  33. package/src/triggers/OffchainPriceTrigger.ts +14 -0
  34. package/src/triggers/index.ts +2 -0
  35. package/src/utils/index.ts +0 -2
  36. package/umd/index.js +631 -821
  37. package/esm/src/actions/checkers/MorphoBlueRatioCheckAction.d.ts +0 -20
  38. package/esm/src/actions/checkers/MorphoBlueRatioCheckAction.js +0 -32
  39. package/esm/src/actions/llamalend/LlamaLendBorrowAction.d.ts +0 -15
  40. package/esm/src/actions/llamalend/LlamaLendBorrowAction.js +0 -22
  41. package/esm/src/actions/llamalend/LlamaLendCreateAction.d.ts +0 -22
  42. package/esm/src/actions/llamalend/LlamaLendCreateAction.js +0 -44
  43. package/esm/src/actions/llamalend/LlamaLendPaybackAction.d.ts +0 -22
  44. package/esm/src/actions/llamalend/LlamaLendPaybackAction.js +0 -43
  45. package/esm/src/actions/llamalend/LlamaLendSelfLiquidateAction.d.ts +0 -19
  46. package/esm/src/actions/llamalend/LlamaLendSupplyAction.d.ts +0 -20
  47. package/esm/src/actions/llamalend/LlamaLendSupplyAction.js +0 -40
  48. package/esm/src/actions/llamalend/LlamaLendWithdrawAction.d.ts +0 -15
  49. package/esm/src/actions/llamalend/LlamaLendWithdrawAction.js +0 -22
  50. package/esm/src/actions/llamalend/index.d.ts +0 -6
  51. package/esm/src/actions/llamalend/index.js +0 -6
  52. package/esm/src/triggers/MorphoBlueRatioTrigger.d.ts +0 -10
  53. package/esm/src/triggers/MorphoBlueRatioTrigger.js +0 -12
  54. package/esm/src/utils/llamalend-utils.d.ts +0 -10
  55. package/esm/src/utils/llamalend-utils.js +0 -10
  56. package/src/actions/llamalend/LlamaLendBorrowAction.ts +0 -34
  57. package/src/actions/llamalend/LlamaLendCreateAction.ts +0 -49
  58. package/src/actions/llamalend/LlamaLendPaybackAction.ts +0 -48
  59. package/src/actions/llamalend/LlamaLendSelfLiquidateAction.ts +0 -41
  60. package/src/actions/llamalend/LlamaLendSupplyAction.ts +0 -44
  61. package/src/actions/llamalend/LlamaLendWithdrawAction.ts +0 -34
  62. package/src/actions/llamalend/index.ts +0 -6
  63. package/src/utils/llamalend-utils.ts +0 -11
@@ -202,12 +202,6 @@ declare const actionAddressesAllChains: {
202
202
  MorphoBluePayback: string;
203
203
  MorphoBlueSetAuth: string;
204
204
  MorphoBlueSetAuthWithSig: string;
205
- LlamaLendCreate: string;
206
- LlamaLendSupply: string;
207
- LlamaLendBorrow: string;
208
- LlamaLendWithdraw: string;
209
- LlamaLendPayback: string;
210
- LlamaLendSelfLiquidate: string;
211
205
  AaveV3DelegateCredit?: undefined;
212
206
  AaveV3RatioTrigger?: undefined;
213
207
  GasFeeTakerL2?: undefined;
@@ -223,7 +217,6 @@ declare const actionAddressesAllChains: {
223
217
  ToggleSub: string;
224
218
  TokenBalance: string;
225
219
  TokenizedVaultAdapter: string;
226
- ChangeProxyOwner: string;
227
220
  AaveV3ATokenPayback: string;
228
221
  AaveV3Borrow: string;
229
222
  AaveV3CollateralSwitch: string;
@@ -248,6 +241,7 @@ declare const actionAddressesAllChains: {
248
241
  UniCreatePoolV3: string;
249
242
  SumInputs?: undefined;
250
243
  SubInputs?: undefined;
244
+ ChangeProxyOwner?: undefined;
251
245
  AutomationV2Unsub?: undefined;
252
246
  UpdateSub?: undefined;
253
247
  TransferNFT?: undefined;
@@ -407,12 +401,6 @@ declare const actionAddressesAllChains: {
407
401
  MorphoBluePayback?: undefined;
408
402
  MorphoBlueSetAuth?: undefined;
409
403
  MorphoBlueSetAuthWithSig?: undefined;
410
- LlamaLendCreate?: undefined;
411
- LlamaLendSupply?: undefined;
412
- LlamaLendBorrow?: undefined;
413
- LlamaLendWithdraw?: undefined;
414
- LlamaLendPayback?: undefined;
415
- LlamaLendSelfLiquidate?: undefined;
416
404
  } | {
417
405
  DFSSell: string;
418
406
  WrapEth: string;
@@ -423,7 +411,6 @@ declare const actionAddressesAllChains: {
423
411
  ToggleSub: string;
424
412
  TokenBalance: string;
425
413
  TokenizedVaultAdapter: string;
426
- ChangeProxyOwner: string;
427
414
  AaveV3ATokenPayback: string;
428
415
  AaveV3Borrow: string;
429
416
  AaveV3CollateralSwitch: string;
@@ -452,6 +439,7 @@ declare const actionAddressesAllChains: {
452
439
  UniCreatePoolV3: string;
453
440
  SumInputs?: undefined;
454
441
  SubInputs?: undefined;
442
+ ChangeProxyOwner?: undefined;
455
443
  AutomationV2Unsub?: undefined;
456
444
  UpdateSub?: undefined;
457
445
  TransferNFT?: undefined;
@@ -606,12 +594,6 @@ declare const actionAddressesAllChains: {
606
594
  MorphoBluePayback?: undefined;
607
595
  MorphoBlueSetAuth?: undefined;
608
596
  MorphoBlueSetAuthWithSig?: undefined;
609
- LlamaLendCreate?: undefined;
610
- LlamaLendSupply?: undefined;
611
- LlamaLendBorrow?: undefined;
612
- LlamaLendWithdraw?: undefined;
613
- LlamaLendPayback?: undefined;
614
- LlamaLendSelfLiquidate?: undefined;
615
597
  AaveV3DelegateCredit?: undefined;
616
598
  AaveV3RatioTrigger?: undefined;
617
599
  } | {
@@ -621,7 +603,6 @@ declare const actionAddressesAllChains: {
621
603
  SendToken: string;
622
604
  PullToken: string;
623
605
  TokenBalance: string;
624
- ChangeProxyOwner: string;
625
606
  FLAaveV3: string;
626
607
  FLBalancer: string;
627
608
  FLUniV3: string;
@@ -644,6 +625,7 @@ declare const actionAddressesAllChains: {
644
625
  CompV3Withdraw: string;
645
626
  SumInputs?: undefined;
646
627
  SubInputs?: undefined;
628
+ ChangeProxyOwner?: undefined;
647
629
  AutomationV2Unsub?: undefined;
648
630
  SendTokenAndUnwrap?: undefined;
649
631
  ToggleSub?: undefined;
@@ -805,12 +787,6 @@ declare const actionAddressesAllChains: {
805
787
  MorphoBluePayback?: undefined;
806
788
  MorphoBlueSetAuth?: undefined;
807
789
  MorphoBlueSetAuthWithSig?: undefined;
808
- LlamaLendCreate?: undefined;
809
- LlamaLendSupply?: undefined;
810
- LlamaLendBorrow?: undefined;
811
- LlamaLendWithdraw?: undefined;
812
- LlamaLendPayback?: undefined;
813
- LlamaLendSelfLiquidate?: undefined;
814
790
  AaveV3DelegateCredit?: undefined;
815
791
  AaveV3RatioTrigger?: undefined;
816
792
  GasFeeTakerL2?: undefined;
@@ -1008,12 +984,6 @@ declare const actionAddresses: (chainId?: null) => {
1008
984
  MorphoBluePayback: string;
1009
985
  MorphoBlueSetAuth: string;
1010
986
  MorphoBlueSetAuthWithSig: string;
1011
- LlamaLendCreate: string;
1012
- LlamaLendSupply: string;
1013
- LlamaLendBorrow: string;
1014
- LlamaLendWithdraw: string;
1015
- LlamaLendPayback: string;
1016
- LlamaLendSelfLiquidate: string;
1017
987
  AaveV3DelegateCredit?: undefined;
1018
988
  AaveV3RatioTrigger?: undefined;
1019
989
  GasFeeTakerL2?: undefined;
@@ -1029,7 +999,6 @@ declare const actionAddresses: (chainId?: null) => {
1029
999
  ToggleSub: string;
1030
1000
  TokenBalance: string;
1031
1001
  TokenizedVaultAdapter: string;
1032
- ChangeProxyOwner: string;
1033
1002
  AaveV3ATokenPayback: string;
1034
1003
  AaveV3Borrow: string;
1035
1004
  AaveV3CollateralSwitch: string;
@@ -1054,6 +1023,7 @@ declare const actionAddresses: (chainId?: null) => {
1054
1023
  UniCreatePoolV3: string;
1055
1024
  SumInputs?: undefined;
1056
1025
  SubInputs?: undefined;
1026
+ ChangeProxyOwner?: undefined;
1057
1027
  AutomationV2Unsub?: undefined;
1058
1028
  UpdateSub?: undefined;
1059
1029
  TransferNFT?: undefined;
@@ -1213,12 +1183,6 @@ declare const actionAddresses: (chainId?: null) => {
1213
1183
  MorphoBluePayback?: undefined;
1214
1184
  MorphoBlueSetAuth?: undefined;
1215
1185
  MorphoBlueSetAuthWithSig?: undefined;
1216
- LlamaLendCreate?: undefined;
1217
- LlamaLendSupply?: undefined;
1218
- LlamaLendBorrow?: undefined;
1219
- LlamaLendWithdraw?: undefined;
1220
- LlamaLendPayback?: undefined;
1221
- LlamaLendSelfLiquidate?: undefined;
1222
1186
  } | {
1223
1187
  DFSSell: string;
1224
1188
  WrapEth: string;
@@ -1229,7 +1193,6 @@ declare const actionAddresses: (chainId?: null) => {
1229
1193
  ToggleSub: string;
1230
1194
  TokenBalance: string;
1231
1195
  TokenizedVaultAdapter: string;
1232
- ChangeProxyOwner: string;
1233
1196
  AaveV3ATokenPayback: string;
1234
1197
  AaveV3Borrow: string;
1235
1198
  AaveV3CollateralSwitch: string;
@@ -1258,6 +1221,7 @@ declare const actionAddresses: (chainId?: null) => {
1258
1221
  UniCreatePoolV3: string;
1259
1222
  SumInputs?: undefined;
1260
1223
  SubInputs?: undefined;
1224
+ ChangeProxyOwner?: undefined;
1261
1225
  AutomationV2Unsub?: undefined;
1262
1226
  UpdateSub?: undefined;
1263
1227
  TransferNFT?: undefined;
@@ -1412,12 +1376,6 @@ declare const actionAddresses: (chainId?: null) => {
1412
1376
  MorphoBluePayback?: undefined;
1413
1377
  MorphoBlueSetAuth?: undefined;
1414
1378
  MorphoBlueSetAuthWithSig?: undefined;
1415
- LlamaLendCreate?: undefined;
1416
- LlamaLendSupply?: undefined;
1417
- LlamaLendBorrow?: undefined;
1418
- LlamaLendWithdraw?: undefined;
1419
- LlamaLendPayback?: undefined;
1420
- LlamaLendSelfLiquidate?: undefined;
1421
1379
  AaveV3DelegateCredit?: undefined;
1422
1380
  AaveV3RatioTrigger?: undefined;
1423
1381
  } | {
@@ -1427,7 +1385,6 @@ declare const actionAddresses: (chainId?: null) => {
1427
1385
  SendToken: string;
1428
1386
  PullToken: string;
1429
1387
  TokenBalance: string;
1430
- ChangeProxyOwner: string;
1431
1388
  FLAaveV3: string;
1432
1389
  FLBalancer: string;
1433
1390
  FLUniV3: string;
@@ -1450,6 +1407,7 @@ declare const actionAddresses: (chainId?: null) => {
1450
1407
  CompV3Withdraw: string;
1451
1408
  SumInputs?: undefined;
1452
1409
  SubInputs?: undefined;
1410
+ ChangeProxyOwner?: undefined;
1453
1411
  AutomationV2Unsub?: undefined;
1454
1412
  SendTokenAndUnwrap?: undefined;
1455
1413
  ToggleSub?: undefined;
@@ -1611,12 +1569,6 @@ declare const actionAddresses: (chainId?: null) => {
1611
1569
  MorphoBluePayback?: undefined;
1612
1570
  MorphoBlueSetAuth?: undefined;
1613
1571
  MorphoBlueSetAuthWithSig?: undefined;
1614
- LlamaLendCreate?: undefined;
1615
- LlamaLendSupply?: undefined;
1616
- LlamaLendBorrow?: undefined;
1617
- LlamaLendWithdraw?: undefined;
1618
- LlamaLendPayback?: undefined;
1619
- LlamaLendSelfLiquidate?: undefined;
1620
1572
  AaveV3DelegateCredit?: undefined;
1621
1573
  AaveV3RatioTrigger?: undefined;
1622
1574
  GasFeeTakerL2?: undefined;
@@ -1957,12 +1909,6 @@ declare const _default: {
1957
1909
  MorphoBluePayback: string;
1958
1910
  MorphoBlueSetAuth: string;
1959
1911
  MorphoBlueSetAuthWithSig: string;
1960
- LlamaLendCreate: string;
1961
- LlamaLendSupply: string;
1962
- LlamaLendBorrow: string;
1963
- LlamaLendWithdraw: string;
1964
- LlamaLendPayback: string;
1965
- LlamaLendSelfLiquidate: string;
1966
1912
  AaveV3DelegateCredit?: undefined;
1967
1913
  AaveV3RatioTrigger?: undefined;
1968
1914
  GasFeeTakerL2?: undefined;
@@ -1978,7 +1924,6 @@ declare const _default: {
1978
1924
  ToggleSub: string;
1979
1925
  TokenBalance: string;
1980
1926
  TokenizedVaultAdapter: string;
1981
- ChangeProxyOwner: string;
1982
1927
  AaveV3ATokenPayback: string;
1983
1928
  AaveV3Borrow: string;
1984
1929
  AaveV3CollateralSwitch: string;
@@ -2003,6 +1948,7 @@ declare const _default: {
2003
1948
  UniCreatePoolV3: string;
2004
1949
  SumInputs?: undefined;
2005
1950
  SubInputs?: undefined;
1951
+ ChangeProxyOwner?: undefined;
2006
1952
  AutomationV2Unsub?: undefined;
2007
1953
  UpdateSub?: undefined;
2008
1954
  TransferNFT?: undefined;
@@ -2162,12 +2108,6 @@ declare const _default: {
2162
2108
  MorphoBluePayback?: undefined;
2163
2109
  MorphoBlueSetAuth?: undefined;
2164
2110
  MorphoBlueSetAuthWithSig?: undefined;
2165
- LlamaLendCreate?: undefined;
2166
- LlamaLendSupply?: undefined;
2167
- LlamaLendBorrow?: undefined;
2168
- LlamaLendWithdraw?: undefined;
2169
- LlamaLendPayback?: undefined;
2170
- LlamaLendSelfLiquidate?: undefined;
2171
2111
  } | {
2172
2112
  DFSSell: string;
2173
2113
  WrapEth: string;
@@ -2178,7 +2118,6 @@ declare const _default: {
2178
2118
  ToggleSub: string;
2179
2119
  TokenBalance: string;
2180
2120
  TokenizedVaultAdapter: string;
2181
- ChangeProxyOwner: string;
2182
2121
  AaveV3ATokenPayback: string;
2183
2122
  AaveV3Borrow: string;
2184
2123
  AaveV3CollateralSwitch: string;
@@ -2207,6 +2146,7 @@ declare const _default: {
2207
2146
  UniCreatePoolV3: string;
2208
2147
  SumInputs?: undefined;
2209
2148
  SubInputs?: undefined;
2149
+ ChangeProxyOwner?: undefined;
2210
2150
  AutomationV2Unsub?: undefined;
2211
2151
  UpdateSub?: undefined;
2212
2152
  TransferNFT?: undefined;
@@ -2361,12 +2301,6 @@ declare const _default: {
2361
2301
  MorphoBluePayback?: undefined;
2362
2302
  MorphoBlueSetAuth?: undefined;
2363
2303
  MorphoBlueSetAuthWithSig?: undefined;
2364
- LlamaLendCreate?: undefined;
2365
- LlamaLendSupply?: undefined;
2366
- LlamaLendBorrow?: undefined;
2367
- LlamaLendWithdraw?: undefined;
2368
- LlamaLendPayback?: undefined;
2369
- LlamaLendSelfLiquidate?: undefined;
2370
2304
  AaveV3DelegateCredit?: undefined;
2371
2305
  AaveV3RatioTrigger?: undefined;
2372
2306
  } | {
@@ -2376,7 +2310,6 @@ declare const _default: {
2376
2310
  SendToken: string;
2377
2311
  PullToken: string;
2378
2312
  TokenBalance: string;
2379
- ChangeProxyOwner: string;
2380
2313
  FLAaveV3: string;
2381
2314
  FLBalancer: string;
2382
2315
  FLUniV3: string;
@@ -2399,6 +2332,7 @@ declare const _default: {
2399
2332
  CompV3Withdraw: string;
2400
2333
  SumInputs?: undefined;
2401
2334
  SubInputs?: undefined;
2335
+ ChangeProxyOwner?: undefined;
2402
2336
  AutomationV2Unsub?: undefined;
2403
2337
  SendTokenAndUnwrap?: undefined;
2404
2338
  ToggleSub?: undefined;
@@ -2560,12 +2494,6 @@ declare const _default: {
2560
2494
  MorphoBluePayback?: undefined;
2561
2495
  MorphoBlueSetAuth?: undefined;
2562
2496
  MorphoBlueSetAuthWithSig?: undefined;
2563
- LlamaLendCreate?: undefined;
2564
- LlamaLendSupply?: undefined;
2565
- LlamaLendBorrow?: undefined;
2566
- LlamaLendWithdraw?: undefined;
2567
- LlamaLendPayback?: undefined;
2568
- LlamaLendSelfLiquidate?: undefined;
2569
2497
  AaveV3DelegateCredit?: undefined;
2570
2498
  AaveV3RatioTrigger?: undefined;
2571
2499
  GasFeeTakerL2?: undefined;
@@ -2763,12 +2691,6 @@ declare const _default: {
2763
2691
  MorphoBluePayback: string;
2764
2692
  MorphoBlueSetAuth: string;
2765
2693
  MorphoBlueSetAuthWithSig: string;
2766
- LlamaLendCreate: string;
2767
- LlamaLendSupply: string;
2768
- LlamaLendBorrow: string;
2769
- LlamaLendWithdraw: string;
2770
- LlamaLendPayback: string;
2771
- LlamaLendSelfLiquidate: string;
2772
2694
  AaveV3DelegateCredit?: undefined;
2773
2695
  AaveV3RatioTrigger?: undefined;
2774
2696
  GasFeeTakerL2?: undefined;
@@ -2784,7 +2706,6 @@ declare const _default: {
2784
2706
  ToggleSub: string;
2785
2707
  TokenBalance: string;
2786
2708
  TokenizedVaultAdapter: string;
2787
- ChangeProxyOwner: string;
2788
2709
  AaveV3ATokenPayback: string;
2789
2710
  AaveV3Borrow: string;
2790
2711
  AaveV3CollateralSwitch: string;
@@ -2809,6 +2730,7 @@ declare const _default: {
2809
2730
  UniCreatePoolV3: string;
2810
2731
  SumInputs?: undefined;
2811
2732
  SubInputs?: undefined;
2733
+ ChangeProxyOwner?: undefined;
2812
2734
  AutomationV2Unsub?: undefined;
2813
2735
  UpdateSub?: undefined;
2814
2736
  TransferNFT?: undefined;
@@ -2968,12 +2890,6 @@ declare const _default: {
2968
2890
  MorphoBluePayback?: undefined;
2969
2891
  MorphoBlueSetAuth?: undefined;
2970
2892
  MorphoBlueSetAuthWithSig?: undefined;
2971
- LlamaLendCreate?: undefined;
2972
- LlamaLendSupply?: undefined;
2973
- LlamaLendBorrow?: undefined;
2974
- LlamaLendWithdraw?: undefined;
2975
- LlamaLendPayback?: undefined;
2976
- LlamaLendSelfLiquidate?: undefined;
2977
2893
  } | {
2978
2894
  DFSSell: string;
2979
2895
  WrapEth: string;
@@ -2984,7 +2900,6 @@ declare const _default: {
2984
2900
  ToggleSub: string;
2985
2901
  TokenBalance: string;
2986
2902
  TokenizedVaultAdapter: string;
2987
- ChangeProxyOwner: string;
2988
2903
  AaveV3ATokenPayback: string;
2989
2904
  AaveV3Borrow: string;
2990
2905
  AaveV3CollateralSwitch: string;
@@ -3013,6 +2928,7 @@ declare const _default: {
3013
2928
  UniCreatePoolV3: string;
3014
2929
  SumInputs?: undefined;
3015
2930
  SubInputs?: undefined;
2931
+ ChangeProxyOwner?: undefined;
3016
2932
  AutomationV2Unsub?: undefined;
3017
2933
  UpdateSub?: undefined;
3018
2934
  TransferNFT?: undefined;
@@ -3167,12 +3083,6 @@ declare const _default: {
3167
3083
  MorphoBluePayback?: undefined;
3168
3084
  MorphoBlueSetAuth?: undefined;
3169
3085
  MorphoBlueSetAuthWithSig?: undefined;
3170
- LlamaLendCreate?: undefined;
3171
- LlamaLendSupply?: undefined;
3172
- LlamaLendBorrow?: undefined;
3173
- LlamaLendWithdraw?: undefined;
3174
- LlamaLendPayback?: undefined;
3175
- LlamaLendSelfLiquidate?: undefined;
3176
3086
  AaveV3DelegateCredit?: undefined;
3177
3087
  AaveV3RatioTrigger?: undefined;
3178
3088
  } | {
@@ -3182,7 +3092,6 @@ declare const _default: {
3182
3092
  SendToken: string;
3183
3093
  PullToken: string;
3184
3094
  TokenBalance: string;
3185
- ChangeProxyOwner: string;
3186
3095
  FLAaveV3: string;
3187
3096
  FLBalancer: string;
3188
3097
  FLUniV3: string;
@@ -3205,6 +3114,7 @@ declare const _default: {
3205
3114
  CompV3Withdraw: string;
3206
3115
  SumInputs?: undefined;
3207
3116
  SubInputs?: undefined;
3117
+ ChangeProxyOwner?: undefined;
3208
3118
  AutomationV2Unsub?: undefined;
3209
3119
  SendTokenAndUnwrap?: undefined;
3210
3120
  ToggleSub?: undefined;
@@ -3366,12 +3276,6 @@ declare const _default: {
3366
3276
  MorphoBluePayback?: undefined;
3367
3277
  MorphoBlueSetAuth?: undefined;
3368
3278
  MorphoBlueSetAuthWithSig?: undefined;
3369
- LlamaLendCreate?: undefined;
3370
- LlamaLendSupply?: undefined;
3371
- LlamaLendBorrow?: undefined;
3372
- LlamaLendWithdraw?: undefined;
3373
- LlamaLendPayback?: undefined;
3374
- LlamaLendSelfLiquidate?: undefined;
3375
3279
  AaveV3DelegateCredit?: undefined;
3376
3280
  AaveV3RatioTrigger?: undefined;
3377
3281
  GasFeeTakerL2?: undefined;
@@ -0,0 +1,10 @@
1
+ import { Action } from '../Action';
2
+ import { uint256, uint8 } from '../types';
3
+ /**
4
+ *
5
+ *
6
+ * @category Triggers
7
+ */
8
+ export declare class OffchainPriceTrigger extends Action {
9
+ constructor(limitPrice: uint256, limitType: 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 OffchainPriceTrigger extends Action {
9
+ constructor(limitPrice, limitType) {
10
+ super('OffchainPriceTrigger', getAddr('OffchainPriceTrigger'), ['uint256', 'uint8'], [limitPrice, limitType]);
11
+ }
12
+ }
@@ -17,4 +17,4 @@ export * from './SparkRatioTrigger';
17
17
  export * from './SparkQuotePriceTrigger';
18
18
  export * from './LiquityDebtInFrontWithLimitTrigger';
19
19
  export * from './CurveUsdCollRatioTrigger';
20
- export * from './MorphoBlueRatioTrigger';
20
+ export * from './OffchainPriceTrigger';
@@ -17,4 +17,4 @@ export * from './SparkRatioTrigger';
17
17
  export * from './SparkQuotePriceTrigger';
18
18
  export * from './LiquityDebtInFrontWithLimitTrigger';
19
19
  export * from './CurveUsdCollRatioTrigger';
20
- export * from './MorphoBlueRatioTrigger';
20
+ export * from './OffchainPriceTrigger';
@@ -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.0.65",
3
+ "version": "1.0.66-dev-1",
4
4
  "description": "",
5
5
  "main": "./umd/index.js",
6
6
  "module": "./esm/src/index.js",
@@ -0,0 +1,85 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ import {
4
+ EthAddress,
5
+ bytes,
6
+ uint256,
7
+ uint8,
8
+ } from '../../types';
9
+
10
+ /**
11
+ * ExecuteSafeTxAction - Execute Safe transaction
12
+ *
13
+ * @category BasicActions
14
+ */
15
+ export class ExecuteSafeTxAction extends Action {
16
+ /**
17
+ * @param safe Address of the Safe wallet
18
+ * @param to Destination address of Safe transaction
19
+ * @param value Ether value of Safe transaction
20
+ * @param data Data payload of Safe transaction
21
+ * @param operation Operation type of Safe transaction. 0 = call, 1 = delegateCall
22
+ * @param safeTxGas Gas that should be used for the Safe transaction
23
+ * @param baseGas Gas costs that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)
24
+ * @param gasPrice Gas price that should be used for the payment calculation
25
+ * @param gasToken Token address (or 0 if ETH) that is used for the payment
26
+ * @param refundReceiver Address of receiver of gas payment (or 0 if tx.origin
27
+ * @param signatures Packed signature data ({bytes32 r}{bytes32 s}{uint8 v})
28
+ */
29
+ constructor(
30
+ safe: EthAddress,
31
+ to: EthAddress,
32
+ value: uint256,
33
+ data: bytes,
34
+ operation: uint8,
35
+ safeTxGas: uint256,
36
+ baseGas: uint256,
37
+ gasPrice: uint256,
38
+ gasToken: EthAddress,
39
+ refundReceiver: EthAddress,
40
+ signatures: bytes,
41
+ ) {
42
+ super(
43
+ 'ExecuteSafeTx',
44
+ getAddr('ExecuteSafeTx'),
45
+ [
46
+ 'address',
47
+ 'address',
48
+ 'uint256',
49
+ 'bytes',
50
+ 'uint8',
51
+ 'uint256',
52
+ 'uint256',
53
+ 'uint256',
54
+ 'address',
55
+ 'address',
56
+ 'bytes',
57
+ ],
58
+ [
59
+ safe,
60
+ to,
61
+ value,
62
+ data,
63
+ operation,
64
+ safeTxGas,
65
+ baseGas,
66
+ gasPrice,
67
+ gasToken,
68
+ refundReceiver,
69
+ signatures,
70
+ ],
71
+ );
72
+
73
+ this.mappableArgs = [
74
+ this.args[0],
75
+ this.args[1],
76
+ this.args[2],
77
+ this.args[4],
78
+ this.args[5],
79
+ this.args[6],
80
+ this.args[7],
81
+ this.args[8],
82
+ this.args[9],
83
+ ];
84
+ }
85
+ }
@@ -0,0 +1,63 @@
1
+ import AbiCoder from 'web3-eth-abi';
2
+ import { getAssetInfoByAddress } from '@defisaver/tokens';
3
+ import ActionAbi from '../../abis/Action.json';
4
+ import { ActionWithL2 } from '../../ActionWithL2';
5
+ import { requireAddress } from '../../utils/general';
6
+ import { getAddr } from '../../addresses';
7
+ import { EthAddress, uint256 } from '../../types';
8
+
9
+ /**
10
+ * Limit sell action used as part of the LimitSell Strategy
11
+ *
12
+ * @category BasicActions
13
+ */
14
+ export class LimitSellAction extends ActionWithL2 {
15
+ protocolFee:string;
16
+
17
+ /**
18
+ * @param exchangeOrder Standard DFS Exchange data
19
+ * @param from Order sender
20
+ * @param to Order recipient
21
+ * @param gasUsed Amount of gas spent as part of the strategy
22
+ * @param protocolFee 0x fee (amount of ETH in Wei)
23
+ */
24
+ constructor(exchangeOrder:Array<any>, from:EthAddress, to:EthAddress, gasUsed: uint256, protocolFee = '0') {
25
+ requireAddress(to);
26
+ super(
27
+ 'LimitSell',
28
+ getAddr('LimitSell'),
29
+ [
30
+ ['address', 'address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'address', 'bytes', ['address', 'address', 'address', 'uint256', 'uint256', 'bytes']],
31
+ 'address',
32
+ 'address',
33
+ 'uint256',
34
+ ],
35
+ [exchangeOrder, from, to, gasUsed],
36
+ );
37
+
38
+ this.protocolFee = protocolFee;
39
+
40
+ this.mappableArgs = [
41
+ this.args[0][0],
42
+ this.args[0][1],
43
+ this.args[0][2],
44
+ this.args[1],
45
+ this.args[2],
46
+ ];
47
+ }
48
+
49
+ encodeInputs() {
50
+ const executeActionDirectAbi: any = (ActionAbi.find(({ name }) => name === 'executeActionDirect'))!;
51
+ return AbiCoder.encodeFunctionCall(executeActionDirectAbi, this._encodeForCall());
52
+ }
53
+
54
+ async getAssetsToApprove() {
55
+ const asset = getAssetInfoByAddress(this.args[0][0]);
56
+ if (asset.symbol !== 'ETH') return [{ asset: this.args[0][0], owner: this.args[1] }];
57
+ return [];
58
+ }
59
+
60
+ async getEthValue() {
61
+ return this.protocolFee || '0';
62
+ }
63
+ }
@@ -0,0 +1,39 @@
1
+ import { requireAddress } from '../../utils/general';
2
+ import { Action } from '../../Action';
3
+ import { getAddr } from '../../addresses';
4
+ import { EthAddress, uint256 } from '../../types';
5
+
6
+ /**
7
+ * Remove approval for a spender to pull tokens from user wallet
8
+ *
9
+ * @category BasicActions
10
+ */
11
+ export class RemoveTokenApprovalAction extends Action {
12
+ /**
13
+ * @param token Token address
14
+ * @param spender Spender address
15
+ */
16
+ constructor(token:EthAddress, spender:EthAddress) {
17
+ requireAddress(spender);
18
+ super(
19
+ 'RemoveTokenApproval',
20
+ getAddr('RemoveTokenApproval'),
21
+ [
22
+ 'address',
23
+ 'address',
24
+ ],
25
+ [
26
+ token,
27
+ spender,
28
+ ],
29
+ );
30
+ this.mappableArgs = [
31
+ this.args[0],
32
+ this.args[1],
33
+ ];
34
+ }
35
+
36
+ async getAssetsToApprove() {
37
+ return [];
38
+ }
39
+ }
@@ -10,13 +10,14 @@ import { uint256 } from '../../types';
10
10
  export class WrapEthAction extends ActionWithL2 {
11
11
  /**
12
12
  * @param amount Wrap amount
13
+ * @param includeEthInTx If true, the transaction will include the ETH value in the transaction
13
14
  */
14
- constructor(amount:uint256) {
15
- super('WrapEth', getAddr('WrapEth'), ['uint256'], [amount]);
15
+ constructor(amount:uint256, includeEthInTx = true) {
16
+ super('WrapEth', getAddr('WrapEth'), ['uint256', 'bool'], [amount, includeEthInTx]);
16
17
  }
17
18
 
18
19
  async getEthValue() {
19
- return this.args[0];
20
+ return this.args[1] ? this.args[0] : 0;
20
21
  }
21
22
 
22
23
  encodeInputs() {
@@ -24,3 +24,6 @@ export * from './TokenizedVaultAdapterDepositAction';
24
24
  export * from './TokenizedVaultAdapterMintAction';
25
25
  export * from './TokenizedVaultAdapterRedeemAction';
26
26
  export * from './TokenizedVaultAdapterWithdrawAction';
27
+ export * from './LimitSellAction';
28
+ export * from './ExecuteSafeTxAction';
29
+ export * from './RemoveTokenApprovalAction';
@@ -27,7 +27,6 @@ import * as lsv from './lsv';
27
27
  import * as curveusd from './curveusd';
28
28
  import * as spark from './spark';
29
29
  import * as morphoblue from './morpho-blue';
30
- import * as llamalend from './llamalend';
31
30
 
32
31
  export {
33
32
  aave,
@@ -59,5 +58,4 @@ export {
59
58
  spark,
60
59
  curveusd,
61
60
  morphoblue,
62
- llamalend,
63
61
  };