@defisaver/sdk 1.2.28 → 1.2.30

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 (45) hide show
  1. package/esm/src/actions/fluid/FluidDexOpenAction.d.ts +20 -0
  2. package/esm/src/actions/fluid/FluidDexOpenAction.js +45 -0
  3. package/esm/src/actions/fluid/FluidDexRegularBorrowAction.d.ts +17 -0
  4. package/esm/src/actions/fluid/FluidDexRegularBorrowAction.js +36 -0
  5. package/esm/src/actions/fluid/FluidDexRegularPaybackAction.d.ts +16 -0
  6. package/esm/src/actions/fluid/FluidDexRegularPaybackAction.js +34 -0
  7. package/esm/src/actions/fluid/FluidDexRegularSupplyAction.d.ts +16 -0
  8. package/esm/src/actions/fluid/FluidDexRegularSupplyAction.js +33 -0
  9. package/esm/src/actions/fluid/FluidDexRegularWithdrawAction.d.ts +17 -0
  10. package/esm/src/actions/fluid/FluidDexRegularWithdrawAction.js +37 -0
  11. package/esm/src/actions/fluid/FluidDexSmartCollSupplyAction.d.ts +16 -0
  12. package/esm/src/actions/fluid/FluidDexSmartCollSupplyAction.js +33 -0
  13. package/esm/src/actions/fluid/FluidDexSmartCollWithdrawAction.d.ts +17 -0
  14. package/esm/src/actions/fluid/FluidDexSmartCollWithdrawAction.js +37 -0
  15. package/esm/src/actions/fluid/FluidDexSmartDebtBorrowAction.d.ts +17 -0
  16. package/esm/src/actions/fluid/FluidDexSmartDebtBorrowAction.js +36 -0
  17. package/esm/src/actions/fluid/FluidDexSmartDebtPaybackAction.d.ts +16 -0
  18. package/esm/src/actions/fluid/FluidDexSmartDebtPaybackAction.js +34 -0
  19. package/esm/src/actions/fluid/index.d.ts +9 -0
  20. package/esm/src/actions/fluid/index.js +9 -0
  21. package/esm/src/actions/index.d.ts +2 -1
  22. package/esm/src/actions/index.js +2 -1
  23. package/esm/src/actions/pendle/PendleTokenRedeemAction.d.ts +24 -0
  24. package/esm/src/actions/pendle/PendleTokenRedeemAction.js +44 -0
  25. package/esm/src/actions/pendle/index.d.ts +1 -0
  26. package/esm/src/actions/pendle/index.js +1 -0
  27. package/esm/src/addresses.d.ts +24 -0
  28. package/esm/src/addresses.js +16 -3
  29. package/esm/src/index.d.ts +96 -0
  30. package/package.json +2 -2
  31. package/src/actions/fluid/FluidDexOpenAction.ts +61 -0
  32. package/src/actions/fluid/FluidDexRegularBorrowAction.ts +49 -0
  33. package/src/actions/fluid/FluidDexRegularPaybackAction.ts +46 -0
  34. package/src/actions/fluid/FluidDexRegularSupplyAction.ts +45 -0
  35. package/src/actions/fluid/FluidDexRegularWithdrawAction.ts +50 -0
  36. package/src/actions/fluid/FluidDexSmartCollSupplyAction.ts +45 -0
  37. package/src/actions/fluid/FluidDexSmartCollWithdrawAction.ts +50 -0
  38. package/src/actions/fluid/FluidDexSmartDebtBorrowAction.ts +49 -0
  39. package/src/actions/fluid/FluidDexSmartDebtPaybackAction.ts +46 -0
  40. package/src/actions/fluid/index.ts +11 -1
  41. package/src/actions/index.ts +2 -0
  42. package/src/actions/pendle/PendleTokenRedeemAction.ts +51 -0
  43. package/src/actions/pendle/index.ts +1 -0
  44. package/src/addresses.ts +17 -3
  45. package/umd/index.js +453 -72
@@ -258,11 +258,17 @@ export declare const actionAddresses: {
258
258
  FluidVaultT1Supply: string;
259
259
  FluidView: string;
260
260
  FluidClaim: string;
261
+ FluidDexOpen: string;
262
+ FluidDexSupply: string;
263
+ FluidDexBorrow: string;
264
+ FluidDexPayback: string;
265
+ FluidDexWithdraw: string;
261
266
  AaveV3DelegateCredit?: undefined;
262
267
  AaveV3RatioTrigger?: undefined;
263
268
  GasFeeTakerL2?: undefined;
264
269
  AaveV3RatioCheck?: undefined;
265
270
  MorphoBlueView?: undefined;
271
+ PendleTokenRedeem?: undefined;
266
272
  } | {
267
273
  DFSSell: string;
268
274
  DFSSellNoFee: string;
@@ -525,7 +531,13 @@ export declare const actionAddresses: {
525
531
  FluidVaultT1Supply?: undefined;
526
532
  FluidView?: undefined;
527
533
  FluidClaim?: undefined;
534
+ FluidDexOpen?: undefined;
535
+ FluidDexSupply?: undefined;
536
+ FluidDexBorrow?: undefined;
537
+ FluidDexPayback?: undefined;
538
+ FluidDexWithdraw?: undefined;
528
539
  MorphoBlueView?: undefined;
540
+ PendleTokenRedeem?: undefined;
529
541
  } | {
530
542
  DFSSell: string;
531
543
  DFSSellNoFee: string;
@@ -595,6 +607,11 @@ export declare const actionAddresses: {
595
607
  FluidVaultT1Withdraw: string;
596
608
  FluidVaultT1Supply: string;
597
609
  FluidView: string;
610
+ FluidDexOpen: string;
611
+ FluidDexSupply: string;
612
+ FluidDexBorrow: string;
613
+ FluidDexPayback: string;
614
+ FluidDexWithdraw: string;
598
615
  AutomationV2Unsub?: undefined;
599
616
  SDaiWrap?: undefined;
600
617
  SDaiUnwrap?: undefined;
@@ -789,6 +806,7 @@ export declare const actionAddresses: {
789
806
  AaveV3DelegateCredit?: undefined;
790
807
  AaveV3RatioTrigger?: undefined;
791
808
  MorphoBlueView?: undefined;
809
+ PendleTokenRedeem?: undefined;
792
810
  } | {
793
811
  DFSSell: string;
794
812
  DFSSellNoFee: string;
@@ -852,6 +870,7 @@ export declare const actionAddresses: {
852
870
  FluidVaultT1Supply: string;
853
871
  FluidView: string;
854
872
  TokenizedVaultAdapter: string;
873
+ PendleTokenRedeem: string;
855
874
  AutomationV2Unsub?: undefined;
856
875
  SendTokenAndUnwrap?: undefined;
857
876
  SDaiWrap?: undefined;
@@ -1049,6 +1068,11 @@ export declare const actionAddresses: {
1049
1068
  EtherFiUnwrap?: undefined;
1050
1069
  KingClaim?: undefined;
1051
1070
  FluidClaim?: undefined;
1071
+ FluidDexOpen?: undefined;
1072
+ FluidDexSupply?: undefined;
1073
+ FluidDexBorrow?: undefined;
1074
+ FluidDexPayback?: undefined;
1075
+ FluidDexWithdraw?: undefined;
1052
1076
  AaveV3DelegateCredit?: undefined;
1053
1077
  AaveV3RatioTrigger?: undefined;
1054
1078
  AaveV3RatioCheck?: undefined;
@@ -293,8 +293,14 @@ export const actionAddresses = {
293
293
  FluidVaultT1Payback: '0xa7A4B84D38CD33F9901922687db24B8aE14f2455',
294
294
  FluidVaultT1Withdraw: '0x5673b9ab4A035C5C7474C344664Be91DaFafa17E',
295
295
  FluidVaultT1Supply: '0x0c6100209D8A0bb14CC7d18e45dA1bd1E7a3a187',
296
- FluidView: '0xf8e3bbf7c95057be1fD5E741a9ADb73E956dC724',
296
+ FluidView: '0xc8df052bD7A8d76a34c09e758Dff3c6298C0115c',
297
297
  FluidClaim: '0x0bC0aeF7702C204DEF308994C84D8fBce676dB47',
298
+ // fluid dex actions
299
+ FluidDexOpen: '0x071e1369E1c9030Aa1a089bDE2F72797a14FE3b3',
300
+ FluidDexSupply: '0xB3BE39850d8939Cceb4Fc49c415c428548FA9f9C',
301
+ FluidDexBorrow: '0x3fa8EF6DA8f5b2BaAee77493a3A3dA68a7Aa75f3',
302
+ FluidDexPayback: '0xD733BD32F4AAEe92a983E2021B85ca5d31236FA0',
303
+ FluidDexWithdraw: '0x14d5bb8E96fbf7C1f9A8E3EFD0eF5fe6832ff3cd',
298
304
  },
299
305
  [NETWORKS.optimism.chainId]: {
300
306
  DFSSell: '0x9f234af5c10c136863a20865ba00b26951ab8269',
@@ -426,7 +432,12 @@ export const actionAddresses = {
426
432
  FluidVaultT1Payback: '0x226c871E0a27B12065c9128b8e7440b054b59155',
427
433
  FluidVaultT1Withdraw: '0xc13d93227d97197e5F1751d0a3e80c1080A5fa2B',
428
434
  FluidVaultT1Supply: '0xBCF0Dc5bb2C4434AD07369207904F5900d391b0B',
429
- FluidView: '0x2d51BB6Ac5c1eC8DD6432e1FF980fC864B626e01',
435
+ FluidView: '0xf9e6d5568887ac8eC6fA33B7eefD2A176A958e71',
436
+ FluidDexOpen: '0xA456f13d358B8B93bE6778be3244111E267C0AaC',
437
+ FluidDexSupply: '0x3E49c4f914E01e5612719a7B4965e4FAfb324762',
438
+ FluidDexBorrow: '0x8626b70CDf64e557fDdcFbcb783833Dc314d95F4',
439
+ FluidDexPayback: '0xA9B46Da016F22cf9F8841A30881bB88E2Ad5CA94',
440
+ FluidDexWithdraw: '0x076D5434793798b153298bF70b014f5E6145aB2E',
430
441
  },
431
442
  [NETWORKS.base.chainId]: {
432
443
  // Basic
@@ -495,8 +506,10 @@ export const actionAddresses = {
495
506
  FluidVaultT1Payback: '0xA65daAa4FB4Fe9feaDF25bf2C062c3Faa2b02e5D',
496
507
  FluidVaultT1Withdraw: '0x26bE6a2EdE97aE826ed9DA8Fb79428037fe55cEB',
497
508
  FluidVaultT1Supply: '0x028ACA45244d4897ff80ef65ed0b735Bb0D4B0A5',
498
- FluidView: '0x5835CaDbA8843CD6d6d55782908351E9c74221aD',
509
+ FluidView: '0x6cd4D6af4F292817eA2A2311F099dF26cd015028',
499
510
  TokenizedVaultAdapter: '0x88cf6cfa51b6f771570f6df450edf1c886212d3e',
511
+ // pendle
512
+ PendleTokenRedeem: '0x94682544aCC5f4D82ECB1ab97998baa0e428EA0f',
500
513
  },
501
514
  };
502
515
  export const otherAddresses = {
@@ -269,11 +269,17 @@ declare const actionAddressesAllChains: {
269
269
  FluidVaultT1Supply: string;
270
270
  FluidView: string;
271
271
  FluidClaim: string;
272
+ FluidDexOpen: string;
273
+ FluidDexSupply: string;
274
+ FluidDexBorrow: string;
275
+ FluidDexPayback: string;
276
+ FluidDexWithdraw: string;
272
277
  AaveV3DelegateCredit?: undefined;
273
278
  AaveV3RatioTrigger?: undefined;
274
279
  GasFeeTakerL2?: undefined;
275
280
  AaveV3RatioCheck?: undefined;
276
281
  MorphoBlueView?: undefined;
282
+ PendleTokenRedeem?: undefined;
277
283
  } | {
278
284
  DFSSell: string;
279
285
  DFSSellNoFee: string;
@@ -536,7 +542,13 @@ declare const actionAddressesAllChains: {
536
542
  FluidVaultT1Supply?: undefined;
537
543
  FluidView?: undefined;
538
544
  FluidClaim?: undefined;
545
+ FluidDexOpen?: undefined;
546
+ FluidDexSupply?: undefined;
547
+ FluidDexBorrow?: undefined;
548
+ FluidDexPayback?: undefined;
549
+ FluidDexWithdraw?: undefined;
539
550
  MorphoBlueView?: undefined;
551
+ PendleTokenRedeem?: undefined;
540
552
  } | {
541
553
  DFSSell: string;
542
554
  DFSSellNoFee: string;
@@ -606,6 +618,11 @@ declare const actionAddressesAllChains: {
606
618
  FluidVaultT1Withdraw: string;
607
619
  FluidVaultT1Supply: string;
608
620
  FluidView: string;
621
+ FluidDexOpen: string;
622
+ FluidDexSupply: string;
623
+ FluidDexBorrow: string;
624
+ FluidDexPayback: string;
625
+ FluidDexWithdraw: string;
609
626
  AutomationV2Unsub?: undefined;
610
627
  SDaiWrap?: undefined;
611
628
  SDaiUnwrap?: undefined;
@@ -800,6 +817,7 @@ declare const actionAddressesAllChains: {
800
817
  AaveV3DelegateCredit?: undefined;
801
818
  AaveV3RatioTrigger?: undefined;
802
819
  MorphoBlueView?: undefined;
820
+ PendleTokenRedeem?: undefined;
803
821
  } | {
804
822
  DFSSell: string;
805
823
  DFSSellNoFee: string;
@@ -863,6 +881,7 @@ declare const actionAddressesAllChains: {
863
881
  FluidVaultT1Supply: string;
864
882
  FluidView: string;
865
883
  TokenizedVaultAdapter: string;
884
+ PendleTokenRedeem: string;
866
885
  AutomationV2Unsub?: undefined;
867
886
  SendTokenAndUnwrap?: undefined;
868
887
  SDaiWrap?: undefined;
@@ -1060,6 +1079,11 @@ declare const actionAddressesAllChains: {
1060
1079
  EtherFiUnwrap?: undefined;
1061
1080
  KingClaim?: undefined;
1062
1081
  FluidClaim?: undefined;
1082
+ FluidDexOpen?: undefined;
1083
+ FluidDexSupply?: undefined;
1084
+ FluidDexBorrow?: undefined;
1085
+ FluidDexPayback?: undefined;
1086
+ FluidDexWithdraw?: undefined;
1063
1087
  AaveV3DelegateCredit?: undefined;
1064
1088
  AaveV3RatioTrigger?: undefined;
1065
1089
  AaveV3RatioCheck?: undefined;
@@ -1323,11 +1347,17 @@ declare const actionAddresses: (chainId?: null) => {
1323
1347
  FluidVaultT1Supply: string;
1324
1348
  FluidView: string;
1325
1349
  FluidClaim: string;
1350
+ FluidDexOpen: string;
1351
+ FluidDexSupply: string;
1352
+ FluidDexBorrow: string;
1353
+ FluidDexPayback: string;
1354
+ FluidDexWithdraw: string;
1326
1355
  AaveV3DelegateCredit?: undefined;
1327
1356
  AaveV3RatioTrigger?: undefined;
1328
1357
  GasFeeTakerL2?: undefined;
1329
1358
  AaveV3RatioCheck?: undefined;
1330
1359
  MorphoBlueView?: undefined;
1360
+ PendleTokenRedeem?: undefined;
1331
1361
  } | {
1332
1362
  DFSSell: string;
1333
1363
  DFSSellNoFee: string;
@@ -1590,7 +1620,13 @@ declare const actionAddresses: (chainId?: null) => {
1590
1620
  FluidVaultT1Supply?: undefined;
1591
1621
  FluidView?: undefined;
1592
1622
  FluidClaim?: undefined;
1623
+ FluidDexOpen?: undefined;
1624
+ FluidDexSupply?: undefined;
1625
+ FluidDexBorrow?: undefined;
1626
+ FluidDexPayback?: undefined;
1627
+ FluidDexWithdraw?: undefined;
1593
1628
  MorphoBlueView?: undefined;
1629
+ PendleTokenRedeem?: undefined;
1594
1630
  } | {
1595
1631
  DFSSell: string;
1596
1632
  DFSSellNoFee: string;
@@ -1660,6 +1696,11 @@ declare const actionAddresses: (chainId?: null) => {
1660
1696
  FluidVaultT1Withdraw: string;
1661
1697
  FluidVaultT1Supply: string;
1662
1698
  FluidView: string;
1699
+ FluidDexOpen: string;
1700
+ FluidDexSupply: string;
1701
+ FluidDexBorrow: string;
1702
+ FluidDexPayback: string;
1703
+ FluidDexWithdraw: string;
1663
1704
  AutomationV2Unsub?: undefined;
1664
1705
  SDaiWrap?: undefined;
1665
1706
  SDaiUnwrap?: undefined;
@@ -1854,6 +1895,7 @@ declare const actionAddresses: (chainId?: null) => {
1854
1895
  AaveV3DelegateCredit?: undefined;
1855
1896
  AaveV3RatioTrigger?: undefined;
1856
1897
  MorphoBlueView?: undefined;
1898
+ PendleTokenRedeem?: undefined;
1857
1899
  } | {
1858
1900
  DFSSell: string;
1859
1901
  DFSSellNoFee: string;
@@ -1917,6 +1959,7 @@ declare const actionAddresses: (chainId?: null) => {
1917
1959
  FluidVaultT1Supply: string;
1918
1960
  FluidView: string;
1919
1961
  TokenizedVaultAdapter: string;
1962
+ PendleTokenRedeem: string;
1920
1963
  AutomationV2Unsub?: undefined;
1921
1964
  SendTokenAndUnwrap?: undefined;
1922
1965
  SDaiWrap?: undefined;
@@ -2114,6 +2157,11 @@ declare const actionAddresses: (chainId?: null) => {
2114
2157
  EtherFiUnwrap?: undefined;
2115
2158
  KingClaim?: undefined;
2116
2159
  FluidClaim?: undefined;
2160
+ FluidDexOpen?: undefined;
2161
+ FluidDexSupply?: undefined;
2162
+ FluidDexBorrow?: undefined;
2163
+ FluidDexPayback?: undefined;
2164
+ FluidDexWithdraw?: undefined;
2117
2165
  AaveV3DelegateCredit?: undefined;
2118
2166
  AaveV3RatioTrigger?: undefined;
2119
2167
  AaveV3RatioCheck?: undefined;
@@ -2520,11 +2568,17 @@ declare const _default: {
2520
2568
  FluidVaultT1Supply: string;
2521
2569
  FluidView: string;
2522
2570
  FluidClaim: string;
2571
+ FluidDexOpen: string;
2572
+ FluidDexSupply: string;
2573
+ FluidDexBorrow: string;
2574
+ FluidDexPayback: string;
2575
+ FluidDexWithdraw: string;
2523
2576
  AaveV3DelegateCredit?: undefined;
2524
2577
  AaveV3RatioTrigger?: undefined;
2525
2578
  GasFeeTakerL2?: undefined;
2526
2579
  AaveV3RatioCheck?: undefined;
2527
2580
  MorphoBlueView?: undefined;
2581
+ PendleTokenRedeem?: undefined;
2528
2582
  } | {
2529
2583
  DFSSell: string;
2530
2584
  DFSSellNoFee: string;
@@ -2787,7 +2841,13 @@ declare const _default: {
2787
2841
  FluidVaultT1Supply?: undefined;
2788
2842
  FluidView?: undefined;
2789
2843
  FluidClaim?: undefined;
2844
+ FluidDexOpen?: undefined;
2845
+ FluidDexSupply?: undefined;
2846
+ FluidDexBorrow?: undefined;
2847
+ FluidDexPayback?: undefined;
2848
+ FluidDexWithdraw?: undefined;
2790
2849
  MorphoBlueView?: undefined;
2850
+ PendleTokenRedeem?: undefined;
2791
2851
  } | {
2792
2852
  DFSSell: string;
2793
2853
  DFSSellNoFee: string;
@@ -2857,6 +2917,11 @@ declare const _default: {
2857
2917
  FluidVaultT1Withdraw: string;
2858
2918
  FluidVaultT1Supply: string;
2859
2919
  FluidView: string;
2920
+ FluidDexOpen: string;
2921
+ FluidDexSupply: string;
2922
+ FluidDexBorrow: string;
2923
+ FluidDexPayback: string;
2924
+ FluidDexWithdraw: string;
2860
2925
  AutomationV2Unsub?: undefined;
2861
2926
  SDaiWrap?: undefined;
2862
2927
  SDaiUnwrap?: undefined;
@@ -3051,6 +3116,7 @@ declare const _default: {
3051
3116
  AaveV3DelegateCredit?: undefined;
3052
3117
  AaveV3RatioTrigger?: undefined;
3053
3118
  MorphoBlueView?: undefined;
3119
+ PendleTokenRedeem?: undefined;
3054
3120
  } | {
3055
3121
  DFSSell: string;
3056
3122
  DFSSellNoFee: string;
@@ -3114,6 +3180,7 @@ declare const _default: {
3114
3180
  FluidVaultT1Supply: string;
3115
3181
  FluidView: string;
3116
3182
  TokenizedVaultAdapter: string;
3183
+ PendleTokenRedeem: string;
3117
3184
  AutomationV2Unsub?: undefined;
3118
3185
  SendTokenAndUnwrap?: undefined;
3119
3186
  SDaiWrap?: undefined;
@@ -3311,6 +3378,11 @@ declare const _default: {
3311
3378
  EtherFiUnwrap?: undefined;
3312
3379
  KingClaim?: undefined;
3313
3380
  FluidClaim?: undefined;
3381
+ FluidDexOpen?: undefined;
3382
+ FluidDexSupply?: undefined;
3383
+ FluidDexBorrow?: undefined;
3384
+ FluidDexPayback?: undefined;
3385
+ FluidDexWithdraw?: undefined;
3314
3386
  AaveV3DelegateCredit?: undefined;
3315
3387
  AaveV3RatioTrigger?: undefined;
3316
3388
  AaveV3RatioCheck?: undefined;
@@ -3574,11 +3646,17 @@ declare const _default: {
3574
3646
  FluidVaultT1Supply: string;
3575
3647
  FluidView: string;
3576
3648
  FluidClaim: string;
3649
+ FluidDexOpen: string;
3650
+ FluidDexSupply: string;
3651
+ FluidDexBorrow: string;
3652
+ FluidDexPayback: string;
3653
+ FluidDexWithdraw: string;
3577
3654
  AaveV3DelegateCredit?: undefined;
3578
3655
  AaveV3RatioTrigger?: undefined;
3579
3656
  GasFeeTakerL2?: undefined;
3580
3657
  AaveV3RatioCheck?: undefined;
3581
3658
  MorphoBlueView?: undefined;
3659
+ PendleTokenRedeem?: undefined;
3582
3660
  } | {
3583
3661
  DFSSell: string;
3584
3662
  DFSSellNoFee: string;
@@ -3841,7 +3919,13 @@ declare const _default: {
3841
3919
  FluidVaultT1Supply?: undefined;
3842
3920
  FluidView?: undefined;
3843
3921
  FluidClaim?: undefined;
3922
+ FluidDexOpen?: undefined;
3923
+ FluidDexSupply?: undefined;
3924
+ FluidDexBorrow?: undefined;
3925
+ FluidDexPayback?: undefined;
3926
+ FluidDexWithdraw?: undefined;
3844
3927
  MorphoBlueView?: undefined;
3928
+ PendleTokenRedeem?: undefined;
3845
3929
  } | {
3846
3930
  DFSSell: string;
3847
3931
  DFSSellNoFee: string;
@@ -3911,6 +3995,11 @@ declare const _default: {
3911
3995
  FluidVaultT1Withdraw: string;
3912
3996
  FluidVaultT1Supply: string;
3913
3997
  FluidView: string;
3998
+ FluidDexOpen: string;
3999
+ FluidDexSupply: string;
4000
+ FluidDexBorrow: string;
4001
+ FluidDexPayback: string;
4002
+ FluidDexWithdraw: string;
3914
4003
  AutomationV2Unsub?: undefined;
3915
4004
  SDaiWrap?: undefined;
3916
4005
  SDaiUnwrap?: undefined;
@@ -4105,6 +4194,7 @@ declare const _default: {
4105
4194
  AaveV3DelegateCredit?: undefined;
4106
4195
  AaveV3RatioTrigger?: undefined;
4107
4196
  MorphoBlueView?: undefined;
4197
+ PendleTokenRedeem?: undefined;
4108
4198
  } | {
4109
4199
  DFSSell: string;
4110
4200
  DFSSellNoFee: string;
@@ -4168,6 +4258,7 @@ declare const _default: {
4168
4258
  FluidVaultT1Supply: string;
4169
4259
  FluidView: string;
4170
4260
  TokenizedVaultAdapter: string;
4261
+ PendleTokenRedeem: string;
4171
4262
  AutomationV2Unsub?: undefined;
4172
4263
  SendTokenAndUnwrap?: undefined;
4173
4264
  SDaiWrap?: undefined;
@@ -4365,6 +4456,11 @@ declare const _default: {
4365
4456
  EtherFiUnwrap?: undefined;
4366
4457
  KingClaim?: undefined;
4367
4458
  FluidClaim?: undefined;
4459
+ FluidDexOpen?: undefined;
4460
+ FluidDexSupply?: undefined;
4461
+ FluidDexBorrow?: undefined;
4462
+ FluidDexPayback?: undefined;
4463
+ FluidDexWithdraw?: undefined;
4368
4464
  AaveV3DelegateCredit?: undefined;
4369
4465
  AaveV3RatioTrigger?: undefined;
4370
4466
  AaveV3RatioCheck?: undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/sdk",
3
- "version": "1.2.28",
3
+ "version": "1.2.30",
4
4
  "description": "",
5
5
  "main": "./umd/index.js",
6
6
  "module": "./esm/src/index.js",
@@ -23,7 +23,7 @@
23
23
  "license": "ISC",
24
24
  "dependencies": {
25
25
  "@defisaver/eslint-config": "^1.0.0",
26
- "@defisaver/tokens": "^1.6.5",
26
+ "@defisaver/tokens": "^1.6.8",
27
27
  "@ethersproject/address": "^5.0.10",
28
28
  "@ethersproject/solidity": "^5.0.9",
29
29
  "@types/web3-eth-abi": "^1.2.2",
@@ -0,0 +1,61 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ import { EthAddress, uint256 } from '../../types';
4
+
5
+ /**
6
+ * FluidDexOpenAction - Open a new position in the Fluid DEX vault.
7
+ *
8
+ * @category Fluid
9
+ */
10
+ export class FluidDexOpenAction extends Action {
11
+ /**
12
+ * @param vault The address of the Fluid DEX vault.
13
+ * @param from Address to pull the collateral from.
14
+ * @param to Address to send the borrowed assets to.
15
+ * @param supplyAmount Amount of collateral to deposit. Used if vault is T3.
16
+ * @param supplyVariableData Variable data for supply action. Used if vault is T2 or T4.
17
+ * @param borrowAmount Amount of debt to borrow. Used if vault is T2.
18
+ * @param borrowVariableData Variable data for borrow action. Used if vault is T3 or T4.
19
+ * @param wrapBorrowedEth Whether to wrap the borrowed ETH into WETH if one of the borrowed assets is ETH.
20
+ */
21
+ constructor(
22
+ vault: EthAddress,
23
+ from: EthAddress,
24
+ to: EthAddress,
25
+ supplyAmount: uint256,
26
+ supplyVariableData: Array<any>,
27
+ borrowAmount: uint256,
28
+ borrowVariableData: Array<any>,
29
+ wrapBorrowedEth: boolean,
30
+ ) {
31
+ super(
32
+ 'FluidDexOpen',
33
+ getAddr('FluidDexOpen'),
34
+ [
35
+ 'address',
36
+ 'address',
37
+ 'address',
38
+ 'uint256',
39
+ ['uint256', 'uint256', 'uint256'],
40
+ 'uint256',
41
+ ['uint256', 'uint256', 'uint256'],
42
+ 'bool',
43
+ ],
44
+ [vault, from, to, supplyAmount, supplyVariableData, borrowAmount, borrowVariableData, wrapBorrowedEth],
45
+ );
46
+ this.mappableArgs = [
47
+ this.args[0],
48
+ this.args[1],
49
+ this.args[2],
50
+ this.args[3],
51
+ this.args[4][0],
52
+ this.args[4][1],
53
+ this.args[4][2],
54
+ this.args[5],
55
+ this.args[6][0],
56
+ this.args[6][1],
57
+ this.args[6][2],
58
+ this.args[7],
59
+ ];
60
+ }
61
+ }
@@ -0,0 +1,49 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ import { EthAddress, uint256 } from '../../types';
4
+
5
+ /**
6
+ * FluidDexRegularBorrowAction - Borrow assets from the Fluid DEX T2 vault.
7
+ *
8
+ * @category Fluid
9
+ */
10
+ export class FluidDexRegularBorrowAction extends Action {
11
+ /**
12
+ * @param vault The address of the Fluid DEX vault.
13
+ * @param to Address to send the borrowed assets to.
14
+ * @param nftId The NFT ID of the position.
15
+ * @param borrowAmount Amount of debt to borrow
16
+ * @param wrapBorrowedEth Whether to wrap the borrowed ETH into WETH if one of the borrowed assets is ETH.
17
+ */
18
+ constructor(
19
+ vault: EthAddress,
20
+ to: EthAddress,
21
+ nftId: uint256,
22
+ borrowAmount: uint256,
23
+ wrapBorrowedEth: boolean,
24
+ ) {
25
+ super(
26
+ 'FluidDexBorrow',
27
+ getAddr('FluidDexBorrow'),
28
+ [
29
+ 'address',
30
+ 'address',
31
+ 'uint256',
32
+ 'uint256',
33
+ ['uint256', 'uint256', 'uint256'],
34
+ 'bool',
35
+ ],
36
+ [vault, to, nftId, borrowAmount, ['0', '0', '0'], wrapBorrowedEth],
37
+ );
38
+ this.mappableArgs = [
39
+ this.args[0],
40
+ this.args[1],
41
+ this.args[2],
42
+ this.args[3],
43
+ this.args[4][0],
44
+ this.args[4][1],
45
+ this.args[4][2],
46
+ this.args[5],
47
+ ];
48
+ }
49
+ }
@@ -0,0 +1,46 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ import { EthAddress, uint256 } from '../../types';
4
+
5
+ /**
6
+ * FluidDexRegularPaybackAction - Payback debt on the Fluid DEX T2 vault.
7
+ *
8
+ * @category Fluid
9
+ */
10
+ export class FluidDexRegularPaybackAction extends Action {
11
+ /**
12
+ * @param vault The address of the Fluid DEX vault.
13
+ * @param from Address to pull the debt tokens from.
14
+ * @param nftId The NFT ID of the position.
15
+ * @param paybackAmount The amount of debt to payback.
16
+ */
17
+ constructor(
18
+ vault: EthAddress,
19
+ from: EthAddress,
20
+ nftId: uint256,
21
+ paybackAmount: uint256,
22
+ ) {
23
+ super(
24
+ 'FluidDexPayback',
25
+ getAddr('FluidDexPayback'),
26
+ [
27
+ 'address',
28
+ 'address',
29
+ 'uint256',
30
+ 'uint256',
31
+ ['uint256', 'uint256', 'uint256', 'uint256'],
32
+ ],
33
+ [vault, from, nftId, paybackAmount, ['0', '0', '0', '0']],
34
+ );
35
+ this.mappableArgs = [
36
+ this.args[0],
37
+ this.args[1],
38
+ this.args[2],
39
+ this.args[3],
40
+ this.args[4][0],
41
+ this.args[4][1],
42
+ this.args[4][2],
43
+ this.args[4][3],
44
+ ];
45
+ }
46
+ }
@@ -0,0 +1,45 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ import { EthAddress, uint256 } from '../../types';
4
+
5
+ /**
6
+ * FluidDexRegularSupplyAction - Supply collateral to the Fluid DEX T3 vault.
7
+ *
8
+ * @category Fluid
9
+ */
10
+ export class FluidDexRegularSupplyAction extends Action {
11
+ /**
12
+ * @param vault The address of the Fluid DEX vault.
13
+ * @param from Address to pull the collateral from.
14
+ * @param nftId The NFT ID of the position.
15
+ * @param supplyAmount Amount of collateral to deposit.
16
+ */
17
+ constructor(
18
+ vault: EthAddress,
19
+ from: EthAddress,
20
+ nftId: uint256,
21
+ supplyAmount: uint256,
22
+ ) {
23
+ super(
24
+ 'FluidDexSupply',
25
+ getAddr('FluidDexSupply'),
26
+ [
27
+ 'address',
28
+ 'address',
29
+ 'uint256',
30
+ 'uint256',
31
+ ['uint256', 'uint256', 'uint256'],
32
+ ],
33
+ [vault, from, nftId, supplyAmount, ['0', '0', '0']],
34
+ );
35
+ this.mappableArgs = [
36
+ this.args[0],
37
+ this.args[1],
38
+ this.args[2],
39
+ this.args[3],
40
+ this.args[4][0],
41
+ this.args[4][1],
42
+ this.args[4][2],
43
+ ];
44
+ }
45
+ }
@@ -0,0 +1,50 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ import { EthAddress, uint256 } from '../../types';
4
+
5
+ /**
6
+ * FluidDexRegularWithdrawAction - Withdraw assets from the Fluid DEX T3 vault.
7
+ *
8
+ * @category Fluid
9
+ */
10
+ export class FluidDexRegularWithdrawAction extends Action {
11
+ /**
12
+ * @param vault The address of the Fluid DEX vault.
13
+ * @param to Address to send the withdrawn assets to.
14
+ * @param nftId The NFT ID of the position.
15
+ * @param withdrawAmount Amount of collateral to withdraw.
16
+ * @param wrapWithdrawnEth Whether to wrap the withdrawn ETH into WETH if one of the withdrawn assets is ETH.
17
+ */
18
+ constructor(
19
+ vault: EthAddress,
20
+ to: EthAddress,
21
+ nftId: uint256,
22
+ withdrawAmount: uint256,
23
+ wrapWithdrawnEth: boolean,
24
+ ) {
25
+ super(
26
+ 'FluidDexWithdraw',
27
+ getAddr('FluidDexWithdraw'),
28
+ [
29
+ 'address',
30
+ 'address',
31
+ 'uint256',
32
+ 'uint256',
33
+ ['uint256', 'uint256', 'uint256', 'uint256'],
34
+ 'bool',
35
+ ],
36
+ [vault, to, nftId, withdrawAmount, ['0', '0', '0', '0'], wrapWithdrawnEth],
37
+ );
38
+ this.mappableArgs = [
39
+ this.args[0],
40
+ this.args[1],
41
+ this.args[2],
42
+ this.args[3],
43
+ this.args[4][0],
44
+ this.args[4][1],
45
+ this.args[4][2],
46
+ this.args[4][3],
47
+ this.args[5],
48
+ ];
49
+ }
50
+ }