@defisaver/sdk 1.3.15 → 1.3.16

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.
@@ -0,0 +1,12 @@
1
+ import { Action } from '../../Action';
2
+ import { uint256 } from '../../types';
3
+ /**
4
+ * @category Summerfi
5
+ */
6
+ export declare class SummerfiUnsubAction extends Action {
7
+ /**
8
+ * @param cdpIds Array of CDP IDs to remove approval for
9
+ * @param triggerIds Array of Trigger IDs that correspond to CDP IDs
10
+ */
11
+ constructor(cdpIds: uint256[], triggerIds: uint256[]);
12
+ }
@@ -0,0 +1,18 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ /**
4
+ * @category Summerfi
5
+ */
6
+ export class SummerfiUnsubAction extends Action {
7
+ /**
8
+ * @param cdpIds Array of CDP IDs to remove approval for
9
+ * @param triggerIds Array of Trigger IDs that correspond to CDP IDs
10
+ */
11
+ constructor(cdpIds, triggerIds) {
12
+ super('SummerfiUnsub', getAddr('SummerfiUnsub'), ['uint256[]', 'uint256[]'], [cdpIds, triggerIds]);
13
+ this.mappableArgs = [
14
+ this.args[0],
15
+ this.args[1],
16
+ ];
17
+ }
18
+ }
@@ -0,0 +1,13 @@
1
+ import { Action } from '../../Action';
2
+ import { uint256 } from '../../types';
3
+ /**
4
+ * @category Summerfi
5
+ */
6
+ export declare class SummerfiUnsubV2Action extends Action {
7
+ /**
8
+ * @param triggerIds Array of trigger ID arrays to remove
9
+ * @param triggerData Array of trigger data arrays (must match triggerIds length)
10
+ * @param removeAllowance Array of booleans indicating whether to remove allowance for each trigger group
11
+ */
12
+ constructor(triggerIds: uint256[][], triggerData: string[][], removeAllowance: boolean[]);
13
+ }
@@ -0,0 +1,20 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ /**
4
+ * @category Summerfi
5
+ */
6
+ export class SummerfiUnsubV2Action extends Action {
7
+ /**
8
+ * @param triggerIds Array of trigger ID arrays to remove
9
+ * @param triggerData Array of trigger data arrays (must match triggerIds length)
10
+ * @param removeAllowance Array of booleans indicating whether to remove allowance for each trigger group
11
+ */
12
+ constructor(triggerIds, triggerData, removeAllowance) {
13
+ super('SummerfiUnsubV2', getAddr('SummerfiUnsubV2'), ['uint256[][]', 'bytes[][]', 'bool[]'], [triggerIds, triggerData, removeAllowance]);
14
+ this.mappableArgs = [
15
+ this.args[0],
16
+ this.args[1],
17
+ this.args[2],
18
+ ];
19
+ }
20
+ }
@@ -1 +1,3 @@
1
1
  export * from './SFApproveTokensAction';
2
+ export * from './SummerfiUnsubAction';
3
+ export * from './SummerfiUnsubV2Action';
@@ -1 +1,3 @@
1
1
  export * from './SFApproveTokensAction';
2
+ export * from './SummerfiUnsubAction';
3
+ export * from './SummerfiUnsubV2Action';
@@ -275,6 +275,8 @@ export declare const actionAddresses: {
275
275
  UmbrellaStake: string;
276
276
  UmbrellaUnstake: string;
277
277
  SFApproveTokens: string;
278
+ SummerfiUnsub: string;
279
+ SummerfiUnsubV2: string;
278
280
  AaveV3DelegateCredit?: undefined;
279
281
  AaveV3RatioTrigger?: undefined;
280
282
  GasFeeTakerL2?: undefined;
@@ -332,6 +334,8 @@ export declare const actionAddresses: {
332
334
  CompV3Transfer: string;
333
335
  CompV3Withdraw: string;
334
336
  SFApproveTokens: string;
337
+ SummerfiUnsub: string;
338
+ SummerfiUnsubV2: string;
335
339
  AutomationV2Unsub?: undefined;
336
340
  TransferNFT?: undefined;
337
341
  SDaiWrap?: undefined;
@@ -636,6 +640,8 @@ export declare const actionAddresses: {
636
640
  FluidDexPayback: string;
637
641
  FluidDexWithdraw: string;
638
642
  SFApproveTokens: string;
643
+ SummerfiUnsub: string;
644
+ SummerfiUnsubV2: string;
639
645
  MorphoBlueSupply: string;
640
646
  MorphoBlueSupplyCollateral: string;
641
647
  MorphoBlueWithdraw: string;
@@ -909,6 +915,8 @@ export declare const actionAddresses: {
909
915
  FluidDexWithdraw: string;
910
916
  TokenizedVaultAdapter: string;
911
917
  SFApproveTokens: string;
918
+ SummerfiUnsub: string;
919
+ SummerfiUnsubV2: string;
912
920
  AutomationV2Unsub?: undefined;
913
921
  SendTokenAndUnwrap?: undefined;
914
922
  SDaiWrap?: undefined;
@@ -1396,6 +1404,8 @@ export declare const actionAddresses: {
1396
1404
  UmbrellaStake?: undefined;
1397
1405
  UmbrellaUnstake?: undefined;
1398
1406
  SFApproveTokens?: undefined;
1407
+ SummerfiUnsub?: undefined;
1408
+ SummerfiUnsubV2?: undefined;
1399
1409
  AaveV3RatioTrigger?: undefined;
1400
1410
  GasFeeTakerL2?: undefined;
1401
1411
  AaveV3RatioCheck?: undefined;
@@ -1676,6 +1686,8 @@ export declare const actionAddresses: {
1676
1686
  UmbrellaStake?: undefined;
1677
1687
  UmbrellaUnstake?: undefined;
1678
1688
  SFApproveTokens?: undefined;
1689
+ SummerfiUnsub?: undefined;
1690
+ SummerfiUnsubV2?: undefined;
1679
1691
  AaveV3RatioTrigger?: undefined;
1680
1692
  GasFeeTakerL2?: undefined;
1681
1693
  AaveV3RatioCheck?: undefined;
@@ -131,7 +131,7 @@ export const actionAddresses = {
131
131
  FLMaker: '0x0f8C3368cADF78167F5355D746Ed7b2A826A6e3b',
132
132
  FLBalancer: '0x93d333930c7f7260a1E6061B0a8C0CbdEC95F367',
133
133
  FLSpark: '0xe9Fe5a0f5e4B370Ae60d837da58744666D5C06F7',
134
- FLAction: '0x7A0f3963c666d4549e5909a7162B560abF9f006D',
134
+ FLAction: '0xE78C05c508405207ecc256781B9415e6De1c8336',
135
135
  FLUniV3: '0x9CAdAC8Be718572F82B672b950c53F0b58483A35',
136
136
  FLGho: '0xbb67b81dD080a406227A38965d0393f396ddECBc',
137
137
  FLMorphoBlue: '0x6206C96EAc5EAC546861438A9f953B6BEa50EBAB',
@@ -316,6 +316,8 @@ export const actionAddresses = {
316
316
  UmbrellaUnstake: '0xc27634A1D6c5Ed151ebd963Ef35487000C28dc0b',
317
317
  // summer.fi
318
318
  SFApproveTokens: '0x0aC29D44eeC8e8f3b010c2e8FC960957db0c8298',
319
+ SummerfiUnsub: '0x926405D69b77A514ED974901095AcFf9e5131366',
320
+ SummerfiUnsubV2: '0x5E805eD9B7581a9f1398F75833f9663a459F5E30',
319
321
  },
320
322
  [NETWORKS.optimism.chainId]: {
321
323
  DFSSell: '0x9f234af5c10c136863a20865ba00b26951ab8269',
@@ -355,7 +357,7 @@ export const actionAddresses = {
355
357
  FLAaveV3NoFee: '0xfbcF23D2BeF8A2C491cfa4dD409D8dF12d431c85',
356
358
  FLAaveV3: '0x8A07E93d2B74A80D726eE4E4A0aC1F906aB5Cc63',
357
359
  FLBalancer: '0x79d6bf536b8DD65909a3174C87eA6395310d5c41',
358
- FLAction: '0x13663f7f852dFa7ec6517B5F3B0caabDBd9bf049',
360
+ FLAction: '0xB57b666dAB46229e2b80113b5187F6DCD91AB159',
359
361
  AaveV3RatioTrigger: '0xB76e3f7694589D0f34ba43b17AD0D15350Ab5f85',
360
362
  GasFeeTakerL2: '0xB3dB299622A9DB0E944ccda2Ef899d6fF365B082',
361
363
  AaveV3RatioCheck: '0x7A36779a7b5F1128B28932604057d5b63361297c',
@@ -375,6 +377,8 @@ export const actionAddresses = {
375
377
  CompV3Withdraw: '0x744ad24e92d092e0788d429f5178286672288782',
376
378
  // summer.fi
377
379
  SFApproveTokens: '0xcc63B281b29a4c7f33aF780e9B480A15eb676e81',
380
+ SummerfiUnsub: '0x0000000000000000000000000000000000000000',
381
+ SummerfiUnsubV2: '0xC24863ce3397316b743112AeBc2eBCF5507bFD42',
378
382
  },
379
383
  [NETWORKS.arbitrum.chainId]: {
380
384
  DFSSell: '0x1393eef11454ab068dd5e0d0be5eb922603eef1a',
@@ -422,9 +426,9 @@ export const actionAddresses = {
422
426
  FLAaveV3NoFee: '0x219ac6dA971dE6d943cffD1BD62abde71525d382',
423
427
  FLAaveV3: '0x53953aCEe438c083e4299F7976f03Ff3cb862161',
424
428
  FLBalancer: '0xdb28fE77709D88badC86868B27937428C3F48E73',
425
- FLUniV3: '0x6AD754298a902320919cbA7a633a222d56D4b83B',
426
- FLAction: '0x6AD754298a902320919cbA7a633a222d56D4b83B',
427
- FLMorphoBlue: '0x6AD754298a902320919cbA7a633a222d56D4b83B',
429
+ FLUniV3: '0xf041C72e201CD7d04a240fe06c5783E2Ee2D92b3',
430
+ FLAction: '0xf041C72e201CD7d04a240fe06c5783E2Ee2D92b3',
431
+ FLMorphoBlue: '0xf041C72e201CD7d04a240fe06c5783E2Ee2D92b3',
428
432
  GasFeeTakerL2: '0x2F64f73B222B4978CAfd0295c0fa106cE5f34996',
429
433
  AaveV3RatioCheck: '0x4a5c2cbCFB921b596Dec049389899CC8Eb4678ED',
430
434
  // uniswap V3
@@ -460,6 +464,8 @@ export const actionAddresses = {
460
464
  FluidDexWithdraw: '0x076D5434793798b153298bF70b014f5E6145aB2E',
461
465
  // summer.fi
462
466
  SFApproveTokens: '0x98101bDBFaA3f8efa4A14a5A6a2f9A20D514a5D5',
467
+ SummerfiUnsub: '0x0000000000000000000000000000000000000000',
468
+ SummerfiUnsubV2: '0xFAb1D6fe62081BfB997558216769a7029f7d52A4',
463
469
  // MorphoBlue
464
470
  MorphoBlueSupply: '0xeaF1c037716b447C178f3604BCFd10e650704525',
465
471
  MorphoBlueSupplyCollateral: '0x65A5900F2faab9cC495b92389844739DF08A290D',
@@ -499,8 +505,8 @@ export const actionAddresses = {
499
505
  FLAaveV3: '0x79Eb9cEe432Cd3e7b09A9eFdB21A733A6d7b4c3A',
500
506
  FLBalancer: '0x862E533198C9656B75bB6A5dDF0953F7ED5E8507',
501
507
  FLUniV3: '0x1bA6082D2ef1aB92a55B96264c72Eb8049C964Ce',
502
- FLAction: '0xDA86B4c61A545a4b217746ba43C8157f0Ec612c7',
503
- FLMorphoBlue: '0xDA86B4c61A545a4b217746ba43C8157f0Ec612c7',
508
+ FLAction: '0x87Af4769e4134379125A262408e1f3EC60d2Ab52',
509
+ FLMorphoBlue: '0x87Af4769e4134379125A262408e1f3EC60d2Ab52',
504
510
  // AaveV3
505
511
  AaveV3Withdraw: '0x1d2Fa7dAcC660A9124c3685EE8a6E699d10409Eb',
506
512
  AaveV3SwapBorrowRateMode: '0x9d1D7A0dD5e82cCe9CC131eC0C807B0F543be70e',
@@ -549,6 +555,8 @@ export const actionAddresses = {
549
555
  TokenizedVaultAdapter: '0x88cf6cfa51b6f771570f6df450edf1c886212d3e',
550
556
  // summer.fi
551
557
  SFApproveTokens: '0x03EDC9A683f37BFB7516FF234223fFb6E38D5eb9',
558
+ SummerfiUnsub: '0x0000000000000000000000000000000000000000',
559
+ SummerfiUnsubV2: '0x60587B8Fe62Fc149d285a611822263206b4138da',
552
560
  },
553
561
  [NETWORKS.linea.chainId]: {
554
562
  // Basic
@@ -636,7 +644,7 @@ export const actionAddresses = {
636
644
  };
637
645
  export const otherAddresses = {
638
646
  [NETWORKS.ethereum.chainId]: {
639
- RecipeExecutor: '0x4677c84699ab29637102609cD2868d0743a48DdF',
647
+ RecipeExecutor: '0xbc3Fc959FeF3F12a41738f406c02198cdeE7481F',
640
648
  RecipeExecutorForTxSaver: '0x2ee96cf53ae5fbd5309284704f978d0ca66cb963',
641
649
  DFSRegistry: '0x287778F121F134C66212FB16c9b53eC991D32f5b',
642
650
  DFSProxyRegistry: '0x29474FdaC7142f9aB7773B8e38264FA15E3805ed',
@@ -656,7 +664,7 @@ export const otherAddresses = {
656
664
  Empty: '0x0000000000000000000000000000000000000000',
657
665
  },
658
666
  [NETWORKS.optimism.chainId]: {
659
- RecipeExecutor: '0x30CEf36b14Dd71A347284204C48E134D04c24331',
667
+ RecipeExecutor: '0xEC891E6b5A93F5f29241De6B234a4e77A5456A1C',
660
668
  RecipeExecutorForTxSaver: '0x993A8c81142044E1CB0Cf0c3d84BEa235d842Fb0',
661
669
  DFSRegistry: '0xAf707Ee480204Ed6e2640B53cE86F680D28Afcbd',
662
670
  ProxyRegistry: '0x283Cc5C26e53D66ed2Ea252D986F094B37E6e895',
@@ -667,7 +675,7 @@ export const otherAddresses = {
667
675
  UniswapV3PositionManager: '0xC36442b4a4522E871399CD717aBDD847Ab11FE88',
668
676
  },
669
677
  [NETWORKS.arbitrum.chainId]: {
670
- RecipeExecutor: '0x6927F7Dc79B4215F307e6c1C4d5883d134053BAB',
678
+ RecipeExecutor: '0x667609f05DdC5E9Fb939eC376F07953403745cf3',
671
679
  RecipeExecutorForTxSaver: '0x7a25174229ea402d8ccd35fc6d55af079c399884',
672
680
  DFSRegistry: '0xBF1CaC12DB60819Bfa71A328282ecbc1D40443aA',
673
681
  ProxyRegistry: '0x283Cc5C26e53D66ed2Ea252D986F094B37E6e895',
@@ -678,7 +686,7 @@ export const otherAddresses = {
678
686
  UniswapV3PositionManager: '0xC36442b4a4522E871399CD717aBDD847Ab11FE88',
679
687
  },
680
688
  [NETWORKS.base.chainId]: {
681
- RecipeExecutor: '0x7De85e67745a027D41Aba5Fe2D9b288e6467d710',
689
+ RecipeExecutor: '0xc91305DdE651c899EF8eE1D0C33E7dab1B5ABF0D',
682
690
  RecipeExecutorForTxSaver: '0x7a87565b77dd65bbc153fe20e97743842f1a6e0c',
683
691
  DFSRegistry: '0x347FB634271F666353F23A3362f3935D96F97476',
684
692
  ProxyRegistry: '0x425fA97285965E01Cc5F951B62A51F6CDEA5cc0d',
@@ -286,6 +286,8 @@ declare const actionAddressesAllChains: {
286
286
  UmbrellaStake: string;
287
287
  UmbrellaUnstake: string;
288
288
  SFApproveTokens: string;
289
+ SummerfiUnsub: string;
290
+ SummerfiUnsubV2: string;
289
291
  AaveV3DelegateCredit?: undefined;
290
292
  AaveV3RatioTrigger?: undefined;
291
293
  GasFeeTakerL2?: undefined;
@@ -343,6 +345,8 @@ declare const actionAddressesAllChains: {
343
345
  CompV3Transfer: string;
344
346
  CompV3Withdraw: string;
345
347
  SFApproveTokens: string;
348
+ SummerfiUnsub: string;
349
+ SummerfiUnsubV2: string;
346
350
  AutomationV2Unsub?: undefined;
347
351
  TransferNFT?: undefined;
348
352
  SDaiWrap?: undefined;
@@ -647,6 +651,8 @@ declare const actionAddressesAllChains: {
647
651
  FluidDexPayback: string;
648
652
  FluidDexWithdraw: string;
649
653
  SFApproveTokens: string;
654
+ SummerfiUnsub: string;
655
+ SummerfiUnsubV2: string;
650
656
  MorphoBlueSupply: string;
651
657
  MorphoBlueSupplyCollateral: string;
652
658
  MorphoBlueWithdraw: string;
@@ -920,6 +926,8 @@ declare const actionAddressesAllChains: {
920
926
  FluidDexWithdraw: string;
921
927
  TokenizedVaultAdapter: string;
922
928
  SFApproveTokens: string;
929
+ SummerfiUnsub: string;
930
+ SummerfiUnsubV2: string;
923
931
  AutomationV2Unsub?: undefined;
924
932
  SendTokenAndUnwrap?: undefined;
925
933
  SDaiWrap?: undefined;
@@ -1407,6 +1415,8 @@ declare const actionAddressesAllChains: {
1407
1415
  UmbrellaStake?: undefined;
1408
1416
  UmbrellaUnstake?: undefined;
1409
1417
  SFApproveTokens?: undefined;
1418
+ SummerfiUnsub?: undefined;
1419
+ SummerfiUnsubV2?: undefined;
1410
1420
  AaveV3RatioTrigger?: undefined;
1411
1421
  GasFeeTakerL2?: undefined;
1412
1422
  AaveV3RatioCheck?: undefined;
@@ -1687,6 +1697,8 @@ declare const actionAddressesAllChains: {
1687
1697
  UmbrellaStake?: undefined;
1688
1698
  UmbrellaUnstake?: undefined;
1689
1699
  SFApproveTokens?: undefined;
1700
+ SummerfiUnsub?: undefined;
1701
+ SummerfiUnsubV2?: undefined;
1690
1702
  AaveV3RatioTrigger?: undefined;
1691
1703
  GasFeeTakerL2?: undefined;
1692
1704
  AaveV3RatioCheck?: undefined;
@@ -1968,6 +1980,8 @@ declare const actionAddresses: (chainId?: null) => {
1968
1980
  UmbrellaStake: string;
1969
1981
  UmbrellaUnstake: string;
1970
1982
  SFApproveTokens: string;
1983
+ SummerfiUnsub: string;
1984
+ SummerfiUnsubV2: string;
1971
1985
  AaveV3DelegateCredit?: undefined;
1972
1986
  AaveV3RatioTrigger?: undefined;
1973
1987
  GasFeeTakerL2?: undefined;
@@ -2025,6 +2039,8 @@ declare const actionAddresses: (chainId?: null) => {
2025
2039
  CompV3Transfer: string;
2026
2040
  CompV3Withdraw: string;
2027
2041
  SFApproveTokens: string;
2042
+ SummerfiUnsub: string;
2043
+ SummerfiUnsubV2: string;
2028
2044
  AutomationV2Unsub?: undefined;
2029
2045
  TransferNFT?: undefined;
2030
2046
  SDaiWrap?: undefined;
@@ -2329,6 +2345,8 @@ declare const actionAddresses: (chainId?: null) => {
2329
2345
  FluidDexPayback: string;
2330
2346
  FluidDexWithdraw: string;
2331
2347
  SFApproveTokens: string;
2348
+ SummerfiUnsub: string;
2349
+ SummerfiUnsubV2: string;
2332
2350
  MorphoBlueSupply: string;
2333
2351
  MorphoBlueSupplyCollateral: string;
2334
2352
  MorphoBlueWithdraw: string;
@@ -2602,6 +2620,8 @@ declare const actionAddresses: (chainId?: null) => {
2602
2620
  FluidDexWithdraw: string;
2603
2621
  TokenizedVaultAdapter: string;
2604
2622
  SFApproveTokens: string;
2623
+ SummerfiUnsub: string;
2624
+ SummerfiUnsubV2: string;
2605
2625
  AutomationV2Unsub?: undefined;
2606
2626
  SendTokenAndUnwrap?: undefined;
2607
2627
  SDaiWrap?: undefined;
@@ -3089,6 +3109,8 @@ declare const actionAddresses: (chainId?: null) => {
3089
3109
  UmbrellaStake?: undefined;
3090
3110
  UmbrellaUnstake?: undefined;
3091
3111
  SFApproveTokens?: undefined;
3112
+ SummerfiUnsub?: undefined;
3113
+ SummerfiUnsubV2?: undefined;
3092
3114
  AaveV3RatioTrigger?: undefined;
3093
3115
  GasFeeTakerL2?: undefined;
3094
3116
  AaveV3RatioCheck?: undefined;
@@ -3369,6 +3391,8 @@ declare const actionAddresses: (chainId?: null) => {
3369
3391
  UmbrellaStake?: undefined;
3370
3392
  UmbrellaUnstake?: undefined;
3371
3393
  SFApproveTokens?: undefined;
3394
+ SummerfiUnsub?: undefined;
3395
+ SummerfiUnsubV2?: undefined;
3372
3396
  AaveV3RatioTrigger?: undefined;
3373
3397
  GasFeeTakerL2?: undefined;
3374
3398
  AaveV3RatioCheck?: undefined;
@@ -3887,6 +3911,8 @@ declare const _default: {
3887
3911
  UmbrellaStake: string;
3888
3912
  UmbrellaUnstake: string;
3889
3913
  SFApproveTokens: string;
3914
+ SummerfiUnsub: string;
3915
+ SummerfiUnsubV2: string;
3890
3916
  AaveV3DelegateCredit?: undefined;
3891
3917
  AaveV3RatioTrigger?: undefined;
3892
3918
  GasFeeTakerL2?: undefined;
@@ -3944,6 +3970,8 @@ declare const _default: {
3944
3970
  CompV3Transfer: string;
3945
3971
  CompV3Withdraw: string;
3946
3972
  SFApproveTokens: string;
3973
+ SummerfiUnsub: string;
3974
+ SummerfiUnsubV2: string;
3947
3975
  AutomationV2Unsub?: undefined;
3948
3976
  TransferNFT?: undefined;
3949
3977
  SDaiWrap?: undefined;
@@ -4248,6 +4276,8 @@ declare const _default: {
4248
4276
  FluidDexPayback: string;
4249
4277
  FluidDexWithdraw: string;
4250
4278
  SFApproveTokens: string;
4279
+ SummerfiUnsub: string;
4280
+ SummerfiUnsubV2: string;
4251
4281
  MorphoBlueSupply: string;
4252
4282
  MorphoBlueSupplyCollateral: string;
4253
4283
  MorphoBlueWithdraw: string;
@@ -4521,6 +4551,8 @@ declare const _default: {
4521
4551
  FluidDexWithdraw: string;
4522
4552
  TokenizedVaultAdapter: string;
4523
4553
  SFApproveTokens: string;
4554
+ SummerfiUnsub: string;
4555
+ SummerfiUnsubV2: string;
4524
4556
  AutomationV2Unsub?: undefined;
4525
4557
  SendTokenAndUnwrap?: undefined;
4526
4558
  SDaiWrap?: undefined;
@@ -5008,6 +5040,8 @@ declare const _default: {
5008
5040
  UmbrellaStake?: undefined;
5009
5041
  UmbrellaUnstake?: undefined;
5010
5042
  SFApproveTokens?: undefined;
5043
+ SummerfiUnsub?: undefined;
5044
+ SummerfiUnsubV2?: undefined;
5011
5045
  AaveV3RatioTrigger?: undefined;
5012
5046
  GasFeeTakerL2?: undefined;
5013
5047
  AaveV3RatioCheck?: undefined;
@@ -5288,6 +5322,8 @@ declare const _default: {
5288
5322
  UmbrellaStake?: undefined;
5289
5323
  UmbrellaUnstake?: undefined;
5290
5324
  SFApproveTokens?: undefined;
5325
+ SummerfiUnsub?: undefined;
5326
+ SummerfiUnsubV2?: undefined;
5291
5327
  AaveV3RatioTrigger?: undefined;
5292
5328
  GasFeeTakerL2?: undefined;
5293
5329
  AaveV3RatioCheck?: undefined;
@@ -5569,6 +5605,8 @@ declare const _default: {
5569
5605
  UmbrellaStake: string;
5570
5606
  UmbrellaUnstake: string;
5571
5607
  SFApproveTokens: string;
5608
+ SummerfiUnsub: string;
5609
+ SummerfiUnsubV2: string;
5572
5610
  AaveV3DelegateCredit?: undefined;
5573
5611
  AaveV3RatioTrigger?: undefined;
5574
5612
  GasFeeTakerL2?: undefined;
@@ -5626,6 +5664,8 @@ declare const _default: {
5626
5664
  CompV3Transfer: string;
5627
5665
  CompV3Withdraw: string;
5628
5666
  SFApproveTokens: string;
5667
+ SummerfiUnsub: string;
5668
+ SummerfiUnsubV2: string;
5629
5669
  AutomationV2Unsub?: undefined;
5630
5670
  TransferNFT?: undefined;
5631
5671
  SDaiWrap?: undefined;
@@ -5930,6 +5970,8 @@ declare const _default: {
5930
5970
  FluidDexPayback: string;
5931
5971
  FluidDexWithdraw: string;
5932
5972
  SFApproveTokens: string;
5973
+ SummerfiUnsub: string;
5974
+ SummerfiUnsubV2: string;
5933
5975
  MorphoBlueSupply: string;
5934
5976
  MorphoBlueSupplyCollateral: string;
5935
5977
  MorphoBlueWithdraw: string;
@@ -6203,6 +6245,8 @@ declare const _default: {
6203
6245
  FluidDexWithdraw: string;
6204
6246
  TokenizedVaultAdapter: string;
6205
6247
  SFApproveTokens: string;
6248
+ SummerfiUnsub: string;
6249
+ SummerfiUnsubV2: string;
6206
6250
  AutomationV2Unsub?: undefined;
6207
6251
  SendTokenAndUnwrap?: undefined;
6208
6252
  SDaiWrap?: undefined;
@@ -6690,6 +6734,8 @@ declare const _default: {
6690
6734
  UmbrellaStake?: undefined;
6691
6735
  UmbrellaUnstake?: undefined;
6692
6736
  SFApproveTokens?: undefined;
6737
+ SummerfiUnsub?: undefined;
6738
+ SummerfiUnsubV2?: undefined;
6693
6739
  AaveV3RatioTrigger?: undefined;
6694
6740
  GasFeeTakerL2?: undefined;
6695
6741
  AaveV3RatioCheck?: undefined;
@@ -6970,6 +7016,8 @@ declare const _default: {
6970
7016
  UmbrellaStake?: undefined;
6971
7017
  UmbrellaUnstake?: undefined;
6972
7018
  SFApproveTokens?: undefined;
7019
+ SummerfiUnsub?: undefined;
7020
+ SummerfiUnsubV2?: undefined;
6973
7021
  AaveV3RatioTrigger?: undefined;
6974
7022
  GasFeeTakerL2?: undefined;
6975
7023
  AaveV3RatioCheck?: undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/sdk",
3
- "version": "1.3.15",
3
+ "version": "1.3.16",
4
4
  "description": "",
5
5
  "main": "./umd/index.js",
6
6
  "module": "./esm/src/index.js",
@@ -0,0 +1,28 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ import { uint256 } from '../../types';
4
+
5
+ /**
6
+ * @category Summerfi
7
+ */
8
+ export class SummerfiUnsubAction extends Action {
9
+ /**
10
+ * @param cdpIds Array of CDP IDs to remove approval for
11
+ * @param triggerIds Array of Trigger IDs that correspond to CDP IDs
12
+ */
13
+ constructor(
14
+ cdpIds: uint256[],
15
+ triggerIds: uint256[],
16
+ ) {
17
+ super(
18
+ 'SummerfiUnsub',
19
+ getAddr('SummerfiUnsub'),
20
+ ['uint256[]', 'uint256[]'],
21
+ [cdpIds, triggerIds],
22
+ );
23
+ this.mappableArgs = [
24
+ this.args[0],
25
+ this.args[1],
26
+ ];
27
+ }
28
+ }
@@ -0,0 +1,31 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ import { uint256 } from '../../types';
4
+
5
+ /**
6
+ * @category Summerfi
7
+ */
8
+ export class SummerfiUnsubV2Action extends Action {
9
+ /**
10
+ * @param triggerIds Array of trigger ID arrays to remove
11
+ * @param triggerData Array of trigger data arrays (must match triggerIds length)
12
+ * @param removeAllowance Array of booleans indicating whether to remove allowance for each trigger group
13
+ */
14
+ constructor(
15
+ triggerIds: uint256[][],
16
+ triggerData: string[][],
17
+ removeAllowance: boolean[],
18
+ ) {
19
+ super(
20
+ 'SummerfiUnsubV2',
21
+ getAddr('SummerfiUnsubV2'),
22
+ ['uint256[][]', 'bytes[][]', 'bool[]'],
23
+ [triggerIds, triggerData, removeAllowance],
24
+ );
25
+ this.mappableArgs = [
26
+ this.args[0],
27
+ this.args[1],
28
+ this.args[2],
29
+ ];
30
+ }
31
+ }
@@ -1 +1,3 @@
1
1
  export * from './SFApproveTokensAction';
2
+ export * from './SummerfiUnsubAction';
3
+ export * from './SummerfiUnsubV2Action';