@defisaver/sdk 1.2.30 → 1.2.31-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.
@@ -27,6 +27,7 @@ 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 summerfi from './summerfi';
30
31
  import * as llamalend from './llamalend';
31
32
  import * as merkl from './merkl';
32
33
  import * as eulerV2 from './eulerV2';
@@ -37,4 +38,4 @@ import * as renzo from './renzo';
37
38
  import * as etherfi from './etherfi';
38
39
  import * as fluid from './fluid';
39
40
  import * as pendle from './pendle';
40
- export { aave, maker, compound, basic, flashloan, uniswap, reflexer, dydx, uniswapV3, checkers, liquity, yearn, lido, insta, balancer, curve, guni, mstable, rari, aaveV3, convex, chickenBonds, compoundV3, morpho, bprotocol, lsv, spark, curveusd, morphoblue, llamalend, merkl, eulerV2, sky, liquityV2, stkgho, renzo, etherfi, fluid, pendle, };
41
+ export { aave, maker, compound, basic, flashloan, uniswap, reflexer, dydx, uniswapV3, checkers, liquity, yearn, lido, insta, balancer, curve, guni, mstable, rari, aaveV3, convex, chickenBonds, compoundV3, morpho, bprotocol, lsv, spark, curveusd, morphoblue, summerfi, llamalend, merkl, eulerV2, sky, liquityV2, stkgho, renzo, etherfi, fluid, pendle, };
@@ -27,6 +27,7 @@ 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 summerfi from './summerfi';
30
31
  import * as llamalend from './llamalend';
31
32
  import * as merkl from './merkl';
32
33
  import * as eulerV2 from './eulerV2';
@@ -37,4 +38,4 @@ import * as renzo from './renzo';
37
38
  import * as etherfi from './etherfi';
38
39
  import * as fluid from './fluid';
39
40
  import * as pendle from './pendle';
40
- export { aave, maker, compound, basic, flashloan, uniswap, reflexer, dydx, uniswapV3, checkers, liquity, yearn, lido, insta, balancer, curve, guni, mstable, rari, aaveV3, convex, chickenBonds, compoundV3, morpho, bprotocol, lsv, spark, curveusd, morphoblue, llamalend, merkl, eulerV2, sky, liquityV2, stkgho, renzo, etherfi, fluid, pendle, };
41
+ export { aave, maker, compound, basic, flashloan, uniswap, reflexer, dydx, uniswapV3, checkers, liquity, yearn, lido, insta, balancer, curve, guni, mstable, rari, aaveV3, convex, chickenBonds, compoundV3, morpho, bprotocol, lsv, spark, curveusd, morphoblue, summerfi, llamalend, merkl, eulerV2, sky, liquityV2, stkgho, renzo, etherfi, fluid, pendle, };
@@ -0,0 +1,14 @@
1
+ import { Action } from '../../Action';
2
+ import { EthAddress, uint256 } from '../../types';
3
+ /**
4
+ * @category Summerfi
5
+ */
6
+ export declare class SFApproveTokensAction extends Action {
7
+ /**
8
+ * @param sfProxy Summerfi proxy address
9
+ * @param spender DSProxy address
10
+ * @param tokens List of assets to approve
11
+ * @param allowances Approve amounts
12
+ */
13
+ constructor(sfProxy: EthAddress, spender: EthAddress, tokens: EthAddress[], allowances: uint256[]);
14
+ }
@@ -0,0 +1,17 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ /**
4
+ * @category Summerfi
5
+ */
6
+ export class SFApproveTokensAction extends Action {
7
+ /**
8
+ * @param sfProxy Summerfi proxy address
9
+ * @param spender DSProxy address
10
+ * @param tokens List of assets to approve
11
+ * @param allowances Approve amounts
12
+ */
13
+ constructor(sfProxy, spender, tokens, allowances) {
14
+ super('SFApproveTokens', getAddr('SFApproveTokens'), ['address', 'address', 'address[]', 'uint256[]'], [sfProxy, spender, tokens, allowances]);
15
+ this.mappableArgs = [];
16
+ }
17
+ }
@@ -0,0 +1 @@
1
+ export * from './SFApproveTokensAction';
@@ -0,0 +1 @@
1
+ export * from './SFApproveTokensAction';
@@ -263,12 +263,13 @@ export declare const actionAddresses: {
263
263
  FluidDexBorrow: string;
264
264
  FluidDexPayback: string;
265
265
  FluidDexWithdraw: string;
266
+ PendleTokenRedeem: string;
267
+ SFApproveTokens: string;
266
268
  AaveV3DelegateCredit?: undefined;
267
269
  AaveV3RatioTrigger?: undefined;
268
270
  GasFeeTakerL2?: undefined;
269
271
  AaveV3RatioCheck?: undefined;
270
272
  MorphoBlueView?: undefined;
271
- PendleTokenRedeem?: undefined;
272
273
  } | {
273
274
  DFSSell: string;
274
275
  DFSSellNoFee: string;
@@ -536,8 +537,9 @@ export declare const actionAddresses: {
536
537
  FluidDexBorrow?: undefined;
537
538
  FluidDexPayback?: undefined;
538
539
  FluidDexWithdraw?: undefined;
539
- MorphoBlueView?: undefined;
540
540
  PendleTokenRedeem?: undefined;
541
+ SFApproveTokens?: undefined;
542
+ MorphoBlueView?: undefined;
541
543
  } | {
542
544
  DFSSell: string;
543
545
  DFSSellNoFee: string;
@@ -803,10 +805,11 @@ export declare const actionAddresses: {
803
805
  EtherFiUnwrap?: undefined;
804
806
  KingClaim?: undefined;
805
807
  FluidClaim?: undefined;
808
+ PendleTokenRedeem?: undefined;
809
+ SFApproveTokens?: undefined;
806
810
  AaveV3DelegateCredit?: undefined;
807
811
  AaveV3RatioTrigger?: undefined;
808
812
  MorphoBlueView?: undefined;
809
- PendleTokenRedeem?: undefined;
810
813
  } | {
811
814
  DFSSell: string;
812
815
  DFSSellNoFee: string;
@@ -870,7 +873,6 @@ export declare const actionAddresses: {
870
873
  FluidVaultT1Supply: string;
871
874
  FluidView: string;
872
875
  TokenizedVaultAdapter: string;
873
- PendleTokenRedeem: string;
874
876
  AutomationV2Unsub?: undefined;
875
877
  SendTokenAndUnwrap?: undefined;
876
878
  SDaiWrap?: undefined;
@@ -1073,6 +1075,8 @@ export declare const actionAddresses: {
1073
1075
  FluidDexBorrow?: undefined;
1074
1076
  FluidDexPayback?: undefined;
1075
1077
  FluidDexWithdraw?: undefined;
1078
+ PendleTokenRedeem?: undefined;
1079
+ SFApproveTokens?: undefined;
1076
1080
  AaveV3DelegateCredit?: undefined;
1077
1081
  AaveV3RatioTrigger?: undefined;
1078
1082
  AaveV3RatioCheck?: undefined;
@@ -301,6 +301,10 @@ export const actionAddresses = {
301
301
  FluidDexBorrow: '0x3fa8EF6DA8f5b2BaAee77493a3A3dA68a7Aa75f3',
302
302
  FluidDexPayback: '0xD733BD32F4AAEe92a983E2021B85ca5d31236FA0',
303
303
  FluidDexWithdraw: '0x14d5bb8E96fbf7C1f9A8E3EFD0eF5fe6832ff3cd',
304
+ // pendle
305
+ PendleTokenRedeem: '0x94682544aCC5f4D82ECB1ab97998baa0e428EA0f',
306
+ // summer.fi
307
+ SFApproveTokens: '0x10b748dc504c2515bb6a9e23cb2f686090b6c584',
304
308
  },
305
309
  [NETWORKS.optimism.chainId]: {
306
310
  DFSSell: '0x9f234af5c10c136863a20865ba00b26951ab8269',
@@ -508,8 +512,6 @@ export const actionAddresses = {
508
512
  FluidVaultT1Supply: '0x028ACA45244d4897ff80ef65ed0b735Bb0D4B0A5',
509
513
  FluidView: '0x6cd4D6af4F292817eA2A2311F099dF26cd015028',
510
514
  TokenizedVaultAdapter: '0x88cf6cfa51b6f771570f6df450edf1c886212d3e',
511
- // pendle
512
- PendleTokenRedeem: '0x94682544aCC5f4D82ECB1ab97998baa0e428EA0f',
513
515
  },
514
516
  };
515
517
  export const otherAddresses = {
@@ -274,12 +274,13 @@ declare const actionAddressesAllChains: {
274
274
  FluidDexBorrow: string;
275
275
  FluidDexPayback: string;
276
276
  FluidDexWithdraw: string;
277
+ PendleTokenRedeem: string;
278
+ SFApproveTokens: string;
277
279
  AaveV3DelegateCredit?: undefined;
278
280
  AaveV3RatioTrigger?: undefined;
279
281
  GasFeeTakerL2?: undefined;
280
282
  AaveV3RatioCheck?: undefined;
281
283
  MorphoBlueView?: undefined;
282
- PendleTokenRedeem?: undefined;
283
284
  } | {
284
285
  DFSSell: string;
285
286
  DFSSellNoFee: string;
@@ -547,8 +548,9 @@ declare const actionAddressesAllChains: {
547
548
  FluidDexBorrow?: undefined;
548
549
  FluidDexPayback?: undefined;
549
550
  FluidDexWithdraw?: undefined;
550
- MorphoBlueView?: undefined;
551
551
  PendleTokenRedeem?: undefined;
552
+ SFApproveTokens?: undefined;
553
+ MorphoBlueView?: undefined;
552
554
  } | {
553
555
  DFSSell: string;
554
556
  DFSSellNoFee: string;
@@ -814,10 +816,11 @@ declare const actionAddressesAllChains: {
814
816
  EtherFiUnwrap?: undefined;
815
817
  KingClaim?: undefined;
816
818
  FluidClaim?: undefined;
819
+ PendleTokenRedeem?: undefined;
820
+ SFApproveTokens?: undefined;
817
821
  AaveV3DelegateCredit?: undefined;
818
822
  AaveV3RatioTrigger?: undefined;
819
823
  MorphoBlueView?: undefined;
820
- PendleTokenRedeem?: undefined;
821
824
  } | {
822
825
  DFSSell: string;
823
826
  DFSSellNoFee: string;
@@ -881,7 +884,6 @@ declare const actionAddressesAllChains: {
881
884
  FluidVaultT1Supply: string;
882
885
  FluidView: string;
883
886
  TokenizedVaultAdapter: string;
884
- PendleTokenRedeem: string;
885
887
  AutomationV2Unsub?: undefined;
886
888
  SendTokenAndUnwrap?: undefined;
887
889
  SDaiWrap?: undefined;
@@ -1084,6 +1086,8 @@ declare const actionAddressesAllChains: {
1084
1086
  FluidDexBorrow?: undefined;
1085
1087
  FluidDexPayback?: undefined;
1086
1088
  FluidDexWithdraw?: undefined;
1089
+ PendleTokenRedeem?: undefined;
1090
+ SFApproveTokens?: undefined;
1087
1091
  AaveV3DelegateCredit?: undefined;
1088
1092
  AaveV3RatioTrigger?: undefined;
1089
1093
  AaveV3RatioCheck?: undefined;
@@ -1352,12 +1356,13 @@ declare const actionAddresses: (chainId?: null) => {
1352
1356
  FluidDexBorrow: string;
1353
1357
  FluidDexPayback: string;
1354
1358
  FluidDexWithdraw: string;
1359
+ PendleTokenRedeem: string;
1360
+ SFApproveTokens: string;
1355
1361
  AaveV3DelegateCredit?: undefined;
1356
1362
  AaveV3RatioTrigger?: undefined;
1357
1363
  GasFeeTakerL2?: undefined;
1358
1364
  AaveV3RatioCheck?: undefined;
1359
1365
  MorphoBlueView?: undefined;
1360
- PendleTokenRedeem?: undefined;
1361
1366
  } | {
1362
1367
  DFSSell: string;
1363
1368
  DFSSellNoFee: string;
@@ -1625,8 +1630,9 @@ declare const actionAddresses: (chainId?: null) => {
1625
1630
  FluidDexBorrow?: undefined;
1626
1631
  FluidDexPayback?: undefined;
1627
1632
  FluidDexWithdraw?: undefined;
1628
- MorphoBlueView?: undefined;
1629
1633
  PendleTokenRedeem?: undefined;
1634
+ SFApproveTokens?: undefined;
1635
+ MorphoBlueView?: undefined;
1630
1636
  } | {
1631
1637
  DFSSell: string;
1632
1638
  DFSSellNoFee: string;
@@ -1892,10 +1898,11 @@ declare const actionAddresses: (chainId?: null) => {
1892
1898
  EtherFiUnwrap?: undefined;
1893
1899
  KingClaim?: undefined;
1894
1900
  FluidClaim?: undefined;
1901
+ PendleTokenRedeem?: undefined;
1902
+ SFApproveTokens?: undefined;
1895
1903
  AaveV3DelegateCredit?: undefined;
1896
1904
  AaveV3RatioTrigger?: undefined;
1897
1905
  MorphoBlueView?: undefined;
1898
- PendleTokenRedeem?: undefined;
1899
1906
  } | {
1900
1907
  DFSSell: string;
1901
1908
  DFSSellNoFee: string;
@@ -1959,7 +1966,6 @@ declare const actionAddresses: (chainId?: null) => {
1959
1966
  FluidVaultT1Supply: string;
1960
1967
  FluidView: string;
1961
1968
  TokenizedVaultAdapter: string;
1962
- PendleTokenRedeem: string;
1963
1969
  AutomationV2Unsub?: undefined;
1964
1970
  SendTokenAndUnwrap?: undefined;
1965
1971
  SDaiWrap?: undefined;
@@ -2162,6 +2168,8 @@ declare const actionAddresses: (chainId?: null) => {
2162
2168
  FluidDexBorrow?: undefined;
2163
2169
  FluidDexPayback?: undefined;
2164
2170
  FluidDexWithdraw?: undefined;
2171
+ PendleTokenRedeem?: undefined;
2172
+ SFApproveTokens?: undefined;
2165
2173
  AaveV3DelegateCredit?: undefined;
2166
2174
  AaveV3RatioTrigger?: undefined;
2167
2175
  AaveV3RatioCheck?: undefined;
@@ -2573,12 +2581,13 @@ declare const _default: {
2573
2581
  FluidDexBorrow: string;
2574
2582
  FluidDexPayback: string;
2575
2583
  FluidDexWithdraw: string;
2584
+ PendleTokenRedeem: string;
2585
+ SFApproveTokens: string;
2576
2586
  AaveV3DelegateCredit?: undefined;
2577
2587
  AaveV3RatioTrigger?: undefined;
2578
2588
  GasFeeTakerL2?: undefined;
2579
2589
  AaveV3RatioCheck?: undefined;
2580
2590
  MorphoBlueView?: undefined;
2581
- PendleTokenRedeem?: undefined;
2582
2591
  } | {
2583
2592
  DFSSell: string;
2584
2593
  DFSSellNoFee: string;
@@ -2846,8 +2855,9 @@ declare const _default: {
2846
2855
  FluidDexBorrow?: undefined;
2847
2856
  FluidDexPayback?: undefined;
2848
2857
  FluidDexWithdraw?: undefined;
2849
- MorphoBlueView?: undefined;
2850
2858
  PendleTokenRedeem?: undefined;
2859
+ SFApproveTokens?: undefined;
2860
+ MorphoBlueView?: undefined;
2851
2861
  } | {
2852
2862
  DFSSell: string;
2853
2863
  DFSSellNoFee: string;
@@ -3113,10 +3123,11 @@ declare const _default: {
3113
3123
  EtherFiUnwrap?: undefined;
3114
3124
  KingClaim?: undefined;
3115
3125
  FluidClaim?: undefined;
3126
+ PendleTokenRedeem?: undefined;
3127
+ SFApproveTokens?: undefined;
3116
3128
  AaveV3DelegateCredit?: undefined;
3117
3129
  AaveV3RatioTrigger?: undefined;
3118
3130
  MorphoBlueView?: undefined;
3119
- PendleTokenRedeem?: undefined;
3120
3131
  } | {
3121
3132
  DFSSell: string;
3122
3133
  DFSSellNoFee: string;
@@ -3180,7 +3191,6 @@ declare const _default: {
3180
3191
  FluidVaultT1Supply: string;
3181
3192
  FluidView: string;
3182
3193
  TokenizedVaultAdapter: string;
3183
- PendleTokenRedeem: string;
3184
3194
  AutomationV2Unsub?: undefined;
3185
3195
  SendTokenAndUnwrap?: undefined;
3186
3196
  SDaiWrap?: undefined;
@@ -3383,6 +3393,8 @@ declare const _default: {
3383
3393
  FluidDexBorrow?: undefined;
3384
3394
  FluidDexPayback?: undefined;
3385
3395
  FluidDexWithdraw?: undefined;
3396
+ PendleTokenRedeem?: undefined;
3397
+ SFApproveTokens?: undefined;
3386
3398
  AaveV3DelegateCredit?: undefined;
3387
3399
  AaveV3RatioTrigger?: undefined;
3388
3400
  AaveV3RatioCheck?: undefined;
@@ -3651,12 +3663,13 @@ declare const _default: {
3651
3663
  FluidDexBorrow: string;
3652
3664
  FluidDexPayback: string;
3653
3665
  FluidDexWithdraw: string;
3666
+ PendleTokenRedeem: string;
3667
+ SFApproveTokens: string;
3654
3668
  AaveV3DelegateCredit?: undefined;
3655
3669
  AaveV3RatioTrigger?: undefined;
3656
3670
  GasFeeTakerL2?: undefined;
3657
3671
  AaveV3RatioCheck?: undefined;
3658
3672
  MorphoBlueView?: undefined;
3659
- PendleTokenRedeem?: undefined;
3660
3673
  } | {
3661
3674
  DFSSell: string;
3662
3675
  DFSSellNoFee: string;
@@ -3924,8 +3937,9 @@ declare const _default: {
3924
3937
  FluidDexBorrow?: undefined;
3925
3938
  FluidDexPayback?: undefined;
3926
3939
  FluidDexWithdraw?: undefined;
3927
- MorphoBlueView?: undefined;
3928
3940
  PendleTokenRedeem?: undefined;
3941
+ SFApproveTokens?: undefined;
3942
+ MorphoBlueView?: undefined;
3929
3943
  } | {
3930
3944
  DFSSell: string;
3931
3945
  DFSSellNoFee: string;
@@ -4191,10 +4205,11 @@ declare const _default: {
4191
4205
  EtherFiUnwrap?: undefined;
4192
4206
  KingClaim?: undefined;
4193
4207
  FluidClaim?: undefined;
4208
+ PendleTokenRedeem?: undefined;
4209
+ SFApproveTokens?: undefined;
4194
4210
  AaveV3DelegateCredit?: undefined;
4195
4211
  AaveV3RatioTrigger?: undefined;
4196
4212
  MorphoBlueView?: undefined;
4197
- PendleTokenRedeem?: undefined;
4198
4213
  } | {
4199
4214
  DFSSell: string;
4200
4215
  DFSSellNoFee: string;
@@ -4258,7 +4273,6 @@ declare const _default: {
4258
4273
  FluidVaultT1Supply: string;
4259
4274
  FluidView: string;
4260
4275
  TokenizedVaultAdapter: string;
4261
- PendleTokenRedeem: string;
4262
4276
  AutomationV2Unsub?: undefined;
4263
4277
  SendTokenAndUnwrap?: undefined;
4264
4278
  SDaiWrap?: undefined;
@@ -4461,6 +4475,8 @@ declare const _default: {
4461
4475
  FluidDexBorrow?: undefined;
4462
4476
  FluidDexPayback?: undefined;
4463
4477
  FluidDexWithdraw?: undefined;
4478
+ PendleTokenRedeem?: undefined;
4479
+ SFApproveTokens?: undefined;
4464
4480
  AaveV3DelegateCredit?: undefined;
4465
4481
  AaveV3RatioTrigger?: undefined;
4466
4482
  AaveV3RatioCheck?: undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/sdk",
3
- "version": "1.2.30",
3
+ "version": "1.2.31-dev-1",
4
4
  "description": "",
5
5
  "main": "./umd/index.js",
6
6
  "module": "./esm/src/index.js",
@@ -27,6 +27,7 @@ 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 summerfi from './summerfi';
30
31
  import * as llamalend from './llamalend';
31
32
  import * as merkl from './merkl';
32
33
  import * as eulerV2 from './eulerV2';
@@ -68,6 +69,7 @@ export {
68
69
  spark,
69
70
  curveusd,
70
71
  morphoblue,
72
+ summerfi,
71
73
  llamalend,
72
74
  merkl,
73
75
  eulerV2,
@@ -0,0 +1,29 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ import { EthAddress, uint256 } from '../../types';
4
+
5
+ /**
6
+ * @category Summerfi
7
+ */
8
+ export class SFApproveTokensAction extends Action {
9
+ /**
10
+ * @param sfProxy Summerfi proxy address
11
+ * @param spender DSProxy address
12
+ * @param tokens List of assets to approve
13
+ * @param allowances Approve amounts
14
+ */
15
+ constructor(
16
+ sfProxy: EthAddress,
17
+ spender: EthAddress,
18
+ tokens: EthAddress[],
19
+ allowances: uint256[],
20
+ ) {
21
+ super(
22
+ 'SFApproveTokens',
23
+ getAddr('SFApproveTokens'),
24
+ ['address', 'address', 'address[]', 'uint256[]'],
25
+ [sfProxy, spender, tokens, allowances],
26
+ );
27
+ this.mappableArgs = [];
28
+ }
29
+ }
@@ -0,0 +1 @@
1
+ export * from './SFApproveTokensAction';
package/src/addresses.ts CHANGED
@@ -345,6 +345,12 @@ export const actionAddresses = {
345
345
  FluidDexBorrow: '0x3fa8EF6DA8f5b2BaAee77493a3A3dA68a7Aa75f3',
346
346
  FluidDexPayback: '0xD733BD32F4AAEe92a983E2021B85ca5d31236FA0',
347
347
  FluidDexWithdraw: '0x14d5bb8E96fbf7C1f9A8E3EFD0eF5fe6832ff3cd',
348
+
349
+ // pendle
350
+ PendleTokenRedeem: '0x94682544aCC5f4D82ECB1ab97998baa0e428EA0f',
351
+
352
+ // summer.fi
353
+ SFApproveTokens: '0x10b748dc504c2515bb6a9e23cb2f686090b6c584',
348
354
  },
349
355
  [NETWORKS.optimism.chainId]: {
350
356
  DFSSell: '0x9f234af5c10c136863a20865ba00b26951ab8269',
@@ -574,9 +580,6 @@ export const actionAddresses = {
574
580
  FluidView: '0x6cd4D6af4F292817eA2A2311F099dF26cd015028',
575
581
 
576
582
  TokenizedVaultAdapter: '0x88cf6cfa51b6f771570f6df450edf1c886212d3e',
577
-
578
- // pendle
579
- PendleTokenRedeem: '0x94682544aCC5f4D82ECB1ab97998baa0e428EA0f',
580
583
  },
581
584
  };
582
585