@defisaver/sdk 1.3.28-audit-dev → 1.3.29

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 (36) hide show
  1. package/esm/src/Action.js +23 -5
  2. package/esm/src/actions/etherfi/EtherFiStakeFromLidoAction.d.ts +20 -0
  3. package/esm/src/actions/etherfi/EtherFiStakeFromLidoAction.js +41 -0
  4. package/esm/src/actions/etherfi/index.d.ts +1 -0
  5. package/esm/src/actions/etherfi/index.js +1 -0
  6. package/esm/src/actions/index.d.ts +2 -1
  7. package/esm/src/actions/index.js +2 -1
  8. package/esm/src/actions/midnight/MidnightBorrowFromOrdersAction.d.ts +18 -0
  9. package/esm/src/actions/midnight/MidnightBorrowFromOrdersAction.js +28 -0
  10. package/esm/src/actions/midnight/MidnightPaybackDirectAction.d.ts +16 -0
  11. package/esm/src/actions/midnight/MidnightPaybackDirectAction.js +24 -0
  12. package/esm/src/actions/midnight/MidnightPaybackFromOrdersAction.d.ts +18 -0
  13. package/esm/src/actions/midnight/MidnightPaybackFromOrdersAction.js +28 -0
  14. package/esm/src/actions/midnight/MidnightSupplyCollateralAction.d.ts +17 -0
  15. package/esm/src/actions/midnight/MidnightSupplyCollateralAction.js +26 -0
  16. package/esm/src/actions/midnight/MidnightWithdrawCollateralAction.d.ts +17 -0
  17. package/esm/src/actions/midnight/MidnightWithdrawCollateralAction.js +26 -0
  18. package/esm/src/actions/midnight/index.d.ts +5 -0
  19. package/esm/src/actions/midnight/index.js +5 -0
  20. package/esm/src/addresses.d.ts +42 -0
  21. package/esm/src/addresses.js +22 -15
  22. package/esm/src/index.d.ts +168 -0
  23. package/package.json +4 -30
  24. package/src/Action.ts +21 -5
  25. package/src/actions/etherfi/EtherFiStakeFromLidoAction.ts +38 -0
  26. package/src/actions/etherfi/index.ts +2 -1
  27. package/src/actions/index.ts +2 -0
  28. package/src/actions/midnight/MidnightBorrowFromOrdersAction.ts +44 -0
  29. package/src/actions/midnight/MidnightPaybackDirectAction.ts +36 -0
  30. package/src/actions/midnight/MidnightPaybackFromOrdersAction.ts +44 -0
  31. package/src/actions/midnight/MidnightSupplyCollateralAction.ts +39 -0
  32. package/src/actions/midnight/MidnightWithdrawCollateralAction.ts +39 -0
  33. package/src/actions/midnight/index.ts +5 -0
  34. package/src/addresses.ts +23 -15
  35. package/test/actions/etherFi/EtherFiStakeFromLidoAction.js +40 -0
  36. package/umd/index.js +942 -676
package/esm/src/Action.js CHANGED
@@ -63,14 +63,32 @@ export class Action {
63
63
  }
64
64
  _parseParamType(paramType, arg) {
65
65
  if (typeof (paramType) === 'string') {
66
- if (paramType.startsWith('(')) {
67
- let _paramType = paramType.replace('(', '');
68
- _paramType = _paramType.replace(')', '');
69
- return _paramType.split(',');
70
- }
71
66
  if (paramType.endsWith('[]')) {
72
67
  return Array.from(Array(arg.length).fill(paramType.replace('[]', '')));
73
68
  }
69
+ if (paramType.startsWith('(') || paramType.startsWith('tuple(')) {
70
+ const tupleStart = paramType.indexOf('(');
71
+ const tupleEnd = paramType.lastIndexOf(')');
72
+ const tupleContents = paramType.slice(tupleStart + 1, tupleEnd);
73
+ const tupleTypes = [];
74
+ let currentType = '';
75
+ let nestingDepth = 0;
76
+ for (const character of tupleContents) {
77
+ if (character === ',' && nestingDepth === 0) {
78
+ tupleTypes.push(currentType);
79
+ currentType = '';
80
+ }
81
+ else {
82
+ currentType += character;
83
+ if (character === '(')
84
+ nestingDepth += 1;
85
+ if (character === ')')
86
+ nestingDepth -= 1;
87
+ }
88
+ }
89
+ tupleTypes.push(currentType);
90
+ return tupleTypes;
91
+ }
74
92
  }
75
93
  return paramType;
76
94
  }
@@ -0,0 +1,20 @@
1
+ import { Action } from '../../Action';
2
+ import { EthAddress, uint256 } from '../../types';
3
+ /**
4
+ * EtherFiStakeFromLidoAction - Converts wstETH to weETH through Ether.fi's Lido staking route
5
+ *
6
+ * @category EtherFi
7
+ */
8
+ export declare class EtherFiStakeFromLidoAction extends Action {
9
+ /**
10
+ * @param amount - amount of wstETH to pull
11
+ * @param minAmountOut - minimum amount of weETH to receive
12
+ * @param from - address from which to pull wstETH
13
+ * @param to - address where received weETH will be sent
14
+ */
15
+ constructor(amount: uint256, minAmountOut: uint256, from: EthAddress, to: EthAddress);
16
+ getAssetsToApprove(): Promise<{
17
+ asset: string;
18
+ owner: any;
19
+ }[]>;
20
+ }
@@ -0,0 +1,41 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { getAssetInfo } from '@defisaver/tokens';
11
+ import { Action } from '../../Action';
12
+ import { getAddr } from '../../addresses';
13
+ import { requireAddress } from '../../utils/general';
14
+ /**
15
+ * EtherFiStakeFromLidoAction - Converts wstETH to weETH through Ether.fi's Lido staking route
16
+ *
17
+ * @category EtherFi
18
+ */
19
+ export class EtherFiStakeFromLidoAction extends Action {
20
+ /**
21
+ * @param amount - amount of wstETH to pull
22
+ * @param minAmountOut - minimum amount of weETH to receive
23
+ * @param from - address from which to pull wstETH
24
+ * @param to - address where received weETH will be sent
25
+ */
26
+ constructor(amount, minAmountOut, from, to) {
27
+ requireAddress(to);
28
+ super('EtherFiStakeFromLido', getAddr('EtherFiStakeFromLido'), ['uint256', 'uint256', 'address', 'address'], [amount, minAmountOut, from, to]);
29
+ this.mappableArgs = [
30
+ this.args[0],
31
+ this.args[1],
32
+ this.args[2],
33
+ this.args[3],
34
+ ];
35
+ }
36
+ getAssetsToApprove() {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ return [{ asset: getAssetInfo('WSTETH').address, owner: this.args[2] }];
39
+ });
40
+ }
41
+ }
@@ -1,3 +1,4 @@
1
1
  export * from './EtherFiStakeAction';
2
+ export * from './EtherFiStakeFromLidoAction';
2
3
  export * from './EtherFiWrapAction';
3
4
  export * from './EtherFiUnwrapAction';
@@ -1,3 +1,4 @@
1
1
  export * from './EtherFiStakeAction';
2
+ export * from './EtherFiStakeFromLidoAction';
2
3
  export * from './EtherFiWrapAction';
3
4
  export * from './EtherFiUnwrapAction';
@@ -40,4 +40,5 @@ import * as fluid from './fluid';
40
40
  import * as pendle from './pendle';
41
41
  import * as umbrella from './umbrella';
42
42
  import * as aaveV4 from './aavev4';
43
- 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, umbrella, aaveV4, };
43
+ import * as midnight from './midnight';
44
+ 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, umbrella, aaveV4, midnight, };
@@ -40,4 +40,5 @@ import * as fluid from './fluid';
40
40
  import * as pendle from './pendle';
41
41
  import * as umbrella from './umbrella';
42
42
  import * as aaveV4 from './aavev4';
43
- 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, umbrella, aaveV4, };
43
+ import * as midnight from './midnight';
44
+ 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, umbrella, aaveV4, midnight, };
@@ -0,0 +1,18 @@
1
+ import { Action } from '../../Action';
2
+ import { EthAddress, bytes32, uint256 } from '../../types';
3
+ /**
4
+ * MidnightBorrowFromOrdersAction - Borrow from one or more Midnight offers.
5
+ *
6
+ * @category MidnightBorrowFromOrders
7
+ */
8
+ export declare class MidnightBorrowFromOrdersAction extends Action {
9
+ /**
10
+ * @param marketId Market id.
11
+ * @param onBehalf Address to borrow tokens on behalf of. Defaults to the user's wallet if not provided.
12
+ * @param to Address to send the borrowed tokens to.
13
+ * @param amount Amount of tokens to borrow.
14
+ * @param maxUnits Maximum number of units to take from the orders (slippage protection).
15
+ * @param offerFills Array of offer fills to borrow from.
16
+ */
17
+ constructor(marketId: bytes32, onBehalf: EthAddress, to: EthAddress, amount: uint256, maxUnits: uint256, offerFills: Array<any>);
18
+ }
@@ -0,0 +1,28 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ const offerFillsParamType = 'tuple(tuple(tuple(uint256,address,address,tuple(address,uint256,uint256,address)[],uint256,uint256,address,address),bool,address,uint256,uint256,uint256,bytes32,address,bytes,address,address,bool,uint128,uint128,uint256),bytes,uint256)[]';
4
+ /**
5
+ * MidnightBorrowFromOrdersAction - Borrow from one or more Midnight offers.
6
+ *
7
+ * @category MidnightBorrowFromOrders
8
+ */
9
+ export class MidnightBorrowFromOrdersAction extends Action {
10
+ /**
11
+ * @param marketId Market id.
12
+ * @param onBehalf Address to borrow tokens on behalf of. Defaults to the user's wallet if not provided.
13
+ * @param to Address to send the borrowed tokens to.
14
+ * @param amount Amount of tokens to borrow.
15
+ * @param maxUnits Maximum number of units to take from the orders (slippage protection).
16
+ * @param offerFills Array of offer fills to borrow from.
17
+ */
18
+ constructor(marketId, onBehalf, to, amount, maxUnits, offerFills) {
19
+ super('MidnightBorrowFromOrders', getAddr('MidnightBorrowFromOrders'), ['bytes32', 'address', 'address', 'uint256', 'uint256', offerFillsParamType], [marketId, onBehalf, to, amount, maxUnits, offerFills]);
20
+ this.mappableArgs = [
21
+ this.args[0],
22
+ this.args[1],
23
+ this.args[2],
24
+ this.args[3],
25
+ this.args[4],
26
+ ];
27
+ }
28
+ }
@@ -0,0 +1,16 @@
1
+ import { Action } from '../../Action';
2
+ import { EthAddress, bytes32, uint256 } from '../../types';
3
+ /**
4
+ * MidnightPaybackDirectAction - Payback a debt directly to the Midnight protocol.
5
+ *
6
+ * @category MidnightPaybackDirect
7
+ */
8
+ export declare class MidnightPaybackDirectAction extends Action {
9
+ /**
10
+ * @param marketId Market id.
11
+ * @param onBehalf Address to payback tokens on behalf of.
12
+ * @param from Address from which to pull the payback tokens.
13
+ * @param amount Amount of tokens to payback. Send type(uint).max to payback whole amount.
14
+ */
15
+ constructor(marketId: bytes32, onBehalf: EthAddress, from: EthAddress, amount: uint256);
16
+ }
@@ -0,0 +1,24 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ /**
4
+ * MidnightPaybackDirectAction - Payback a debt directly to the Midnight protocol.
5
+ *
6
+ * @category MidnightPaybackDirect
7
+ */
8
+ export class MidnightPaybackDirectAction extends Action {
9
+ /**
10
+ * @param marketId Market id.
11
+ * @param onBehalf Address to payback tokens on behalf of.
12
+ * @param from Address from which to pull the payback tokens.
13
+ * @param amount Amount of tokens to payback. Send type(uint).max to payback whole amount.
14
+ */
15
+ constructor(marketId, onBehalf, from, amount) {
16
+ super('MidnightPaybackDirect', getAddr('MidnightPaybackDirect'), ['bytes32', 'address', 'address', 'uint256'], [marketId, onBehalf, from, amount]);
17
+ this.mappableArgs = [
18
+ this.args[0],
19
+ this.args[1],
20
+ this.args[2],
21
+ this.args[3],
22
+ ];
23
+ }
24
+ }
@@ -0,0 +1,18 @@
1
+ import { Action } from '../../Action';
2
+ import { EthAddress, bytes32, uint256 } from '../../types';
3
+ /**
4
+ * MidnightPaybackFromOrdersAction - Pay back debt through one or more Midnight offers.
5
+ *
6
+ * @category MidnightPaybackFromOrders
7
+ */
8
+ export declare class MidnightPaybackFromOrdersAction extends Action {
9
+ /**
10
+ * @param marketId Market id.
11
+ * @param onBehalf Address whose debt is repaid. Defaults to the user's wallet if not provided.
12
+ * @param from Address from which to pull the payback tokens.
13
+ * @param amount Amount of tokens to spend. Send type(uint).max to pay back the whole debt.
14
+ * @param minUnits Minimum number of debt units to repay (slippage protection).
15
+ * @param offerFills Array of offer fills to pay back from.
16
+ */
17
+ constructor(marketId: bytes32, onBehalf: EthAddress, from: EthAddress, amount: uint256, minUnits: uint256, offerFills: Array<any>);
18
+ }
@@ -0,0 +1,28 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ const offerFillsParamType = 'tuple(tuple(tuple(uint256,address,address,tuple(address,uint256,uint256,address)[],uint256,uint256,address,address),bool,address,uint256,uint256,uint256,bytes32,address,bytes,address,address,bool,uint128,uint128,uint256),bytes,uint256)[]';
4
+ /**
5
+ * MidnightPaybackFromOrdersAction - Pay back debt through one or more Midnight offers.
6
+ *
7
+ * @category MidnightPaybackFromOrders
8
+ */
9
+ export class MidnightPaybackFromOrdersAction extends Action {
10
+ /**
11
+ * @param marketId Market id.
12
+ * @param onBehalf Address whose debt is repaid. Defaults to the user's wallet if not provided.
13
+ * @param from Address from which to pull the payback tokens.
14
+ * @param amount Amount of tokens to spend. Send type(uint).max to pay back the whole debt.
15
+ * @param minUnits Minimum number of debt units to repay (slippage protection).
16
+ * @param offerFills Array of offer fills to pay back from.
17
+ */
18
+ constructor(marketId, onBehalf, from, amount, minUnits, offerFills) {
19
+ super('MidnightPaybackFromOrders', getAddr('MidnightPaybackFromOrders'), ['bytes32', 'address', 'address', 'uint256', 'uint256', offerFillsParamType], [marketId, onBehalf, from, amount, minUnits, offerFills]);
20
+ this.mappableArgs = [
21
+ this.args[0],
22
+ this.args[1],
23
+ this.args[2],
24
+ this.args[3],
25
+ this.args[4],
26
+ ];
27
+ }
28
+ }
@@ -0,0 +1,17 @@
1
+ import { Action } from '../../Action';
2
+ import { EthAddress, bytes32, uint256 } from '../../types';
3
+ /**
4
+ * MidnightSupplyCollateralAction
5
+ *
6
+ * @category MidnightSupplyCollateral
7
+ */
8
+ export declare class MidnightSupplyCollateralAction extends Action {
9
+ /**
10
+ * @param marketId Market id.
11
+ * @param onBehalf Address to supply tokens on behalf of.
12
+ * @param from Address from which to pull collateral asset.
13
+ * @param amount Amount of tokens to supply.
14
+ * @param collateralIndex Collateral index (0-based).
15
+ */
16
+ constructor(marketId: bytes32, onBehalf: EthAddress, from: EthAddress, amount: uint256, collateralIndex: uint256);
17
+ }
@@ -0,0 +1,26 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ /**
4
+ * MidnightSupplyCollateralAction
5
+ *
6
+ * @category MidnightSupplyCollateral
7
+ */
8
+ export class MidnightSupplyCollateralAction extends Action {
9
+ /**
10
+ * @param marketId Market id.
11
+ * @param onBehalf Address to supply tokens on behalf of.
12
+ * @param from Address from which to pull collateral asset.
13
+ * @param amount Amount of tokens to supply.
14
+ * @param collateralIndex Collateral index (0-based).
15
+ */
16
+ constructor(marketId, onBehalf, from, amount, collateralIndex) {
17
+ super('MidnightSupplyCollateral', getAddr('MidnightSupplyCollateral'), ['bytes32', 'address', 'address', 'uint256', 'uint256'], [marketId, onBehalf, from, amount, collateralIndex]);
18
+ this.mappableArgs = [
19
+ this.args[0],
20
+ this.args[1],
21
+ this.args[2],
22
+ this.args[3],
23
+ this.args[4],
24
+ ];
25
+ }
26
+ }
@@ -0,0 +1,17 @@
1
+ import { Action } from '../../Action';
2
+ import { EthAddress, bytes32, uint256 } from '../../types';
3
+ /**
4
+ * MidnightWithdrawCollateralAction
5
+ *
6
+ * @category MidnightWithdrawCollateral
7
+ */
8
+ export declare class MidnightWithdrawCollateralAction extends Action {
9
+ /**
10
+ * @param marketId Market id.
11
+ * @param onBehalf Address to withdraw tokens on behalf of.
12
+ * @param to Address that will receive the withdrawn tokens.
13
+ * @param amount Amount of tokens to withdraw. Send type(uint).max to withdraw whole amount.
14
+ * @param collateralIndex Collateral index (0-based).
15
+ */
16
+ constructor(marketId: bytes32, onBehalf: EthAddress, to: EthAddress, amount: uint256, collateralIndex: uint256);
17
+ }
@@ -0,0 +1,26 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ /**
4
+ * MidnightWithdrawCollateralAction
5
+ *
6
+ * @category MidnightWithdrawCollateral
7
+ */
8
+ export class MidnightWithdrawCollateralAction extends Action {
9
+ /**
10
+ * @param marketId Market id.
11
+ * @param onBehalf Address to withdraw tokens on behalf of.
12
+ * @param to Address that will receive the withdrawn tokens.
13
+ * @param amount Amount of tokens to withdraw. Send type(uint).max to withdraw whole amount.
14
+ * @param collateralIndex Collateral index (0-based).
15
+ */
16
+ constructor(marketId, onBehalf, to, amount, collateralIndex) {
17
+ super('MidnightWithdrawCollateral', getAddr('MidnightWithdrawCollateral'), ['bytes32', 'address', 'address', 'uint256', 'uint256'], [marketId, onBehalf, to, amount, collateralIndex]);
18
+ this.mappableArgs = [
19
+ this.args[0],
20
+ this.args[1],
21
+ this.args[2],
22
+ this.args[3],
23
+ this.args[4],
24
+ ];
25
+ }
26
+ }
@@ -0,0 +1,5 @@
1
+ export * from './MidnightSupplyCollateralAction';
2
+ export * from './MidnightWithdrawCollateralAction';
3
+ export * from './MidnightPaybackDirectAction';
4
+ export * from './MidnightBorrowFromOrdersAction';
5
+ export * from './MidnightPaybackFromOrdersAction';
@@ -0,0 +1,5 @@
1
+ export * from './MidnightSupplyCollateralAction';
2
+ export * from './MidnightWithdrawCollateralAction';
3
+ export * from './MidnightPaybackDirectAction';
4
+ export * from './MidnightBorrowFromOrdersAction';
5
+ export * from './MidnightPaybackFromOrdersAction';
@@ -256,6 +256,7 @@ export declare const actionAddresses: {
256
256
  MerklClaim: string;
257
257
  RenzoStake: string;
258
258
  EtherFiStake: string;
259
+ EtherFiStakeFromLido: string;
259
260
  EtherFiWrap: string;
260
261
  EtherFiUnwrap: string;
261
262
  KingClaim: string;
@@ -293,6 +294,12 @@ export declare const actionAddresses: {
293
294
  GasFeeTakerL2?: undefined;
294
295
  AaveV3RatioCheck?: undefined;
295
296
  MorphoBlueView?: undefined;
297
+ MidnightPaybackDirect?: undefined;
298
+ MidnightBorrowFromOrders?: undefined;
299
+ MidnightPaybackFromOrders?: undefined;
300
+ MidnightSupplyCollateral?: undefined;
301
+ MidnightWithdrawCollateral?: undefined;
302
+ MidnightView?: undefined;
296
303
  } | {
297
304
  DFSSell: string;
298
305
  DFSSellNoFee: string;
@@ -555,6 +562,7 @@ export declare const actionAddresses: {
555
562
  EulerV2View?: undefined;
556
563
  RenzoStake?: undefined;
557
564
  EtherFiStake?: undefined;
565
+ EtherFiStakeFromLido?: undefined;
558
566
  EtherFiWrap?: undefined;
559
567
  EtherFiUnwrap?: undefined;
560
568
  KingClaim?: undefined;
@@ -586,6 +594,12 @@ export declare const actionAddresses: {
586
594
  AaveV4DelegateBorrowWithSig?: undefined;
587
595
  AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
588
596
  MorphoBlueView?: undefined;
597
+ MidnightPaybackDirect?: undefined;
598
+ MidnightBorrowFromOrders?: undefined;
599
+ MidnightPaybackFromOrders?: undefined;
600
+ MidnightSupplyCollateral?: undefined;
601
+ MidnightWithdrawCollateral?: undefined;
602
+ MidnightView?: undefined;
589
603
  } | {
590
604
  DFSSell: string;
591
605
  DFSSellNoFee: string;
@@ -860,6 +874,7 @@ export declare const actionAddresses: {
860
874
  EulerV2View?: undefined;
861
875
  RenzoStake?: undefined;
862
876
  EtherFiStake?: undefined;
877
+ EtherFiStakeFromLido?: undefined;
863
878
  EtherFiWrap?: undefined;
864
879
  EtherFiUnwrap?: undefined;
865
880
  KingClaim?: undefined;
@@ -879,6 +894,12 @@ export declare const actionAddresses: {
879
894
  AaveV4DelegateBorrowWithSig?: undefined;
880
895
  AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
881
896
  AaveV3RatioTrigger?: undefined;
897
+ MidnightPaybackDirect?: undefined;
898
+ MidnightBorrowFromOrders?: undefined;
899
+ MidnightPaybackFromOrders?: undefined;
900
+ MidnightSupplyCollateral?: undefined;
901
+ MidnightWithdrawCollateral?: undefined;
902
+ MidnightView?: undefined;
882
903
  } | {
883
904
  DFSSell: string;
884
905
  DFSSellNoFee: string;
@@ -952,6 +973,12 @@ export declare const actionAddresses: {
952
973
  SFApproveTokens: string;
953
974
  SummerfiUnsub: string;
954
975
  SummerfiUnsubV2: string;
976
+ MidnightPaybackDirect: string;
977
+ MidnightBorrowFromOrders: string;
978
+ MidnightPaybackFromOrders: string;
979
+ MidnightSupplyCollateral: string;
980
+ MidnightWithdrawCollateral: string;
981
+ MidnightView: string;
955
982
  AutomationV2Unsub?: undefined;
956
983
  SendTokenAndUnwrap?: undefined;
957
984
  SDaiWrap?: undefined;
@@ -1152,6 +1179,7 @@ export declare const actionAddresses: {
1152
1179
  EulerV2View?: undefined;
1153
1180
  RenzoStake?: undefined;
1154
1181
  EtherFiStake?: undefined;
1182
+ EtherFiStakeFromLido?: undefined;
1155
1183
  EtherFiWrap?: undefined;
1156
1184
  EtherFiUnwrap?: undefined;
1157
1185
  KingClaim?: undefined;
@@ -1428,6 +1456,7 @@ export declare const actionAddresses: {
1428
1456
  EulerV2View?: undefined;
1429
1457
  RenzoStake?: undefined;
1430
1458
  EtherFiStake?: undefined;
1459
+ EtherFiStakeFromLido?: undefined;
1431
1460
  EtherFiWrap?: undefined;
1432
1461
  EtherFiUnwrap?: undefined;
1433
1462
  KingClaim?: undefined;
@@ -1465,6 +1494,12 @@ export declare const actionAddresses: {
1465
1494
  GasFeeTakerL2?: undefined;
1466
1495
  AaveV3RatioCheck?: undefined;
1467
1496
  MorphoBlueView?: undefined;
1497
+ MidnightPaybackDirect?: undefined;
1498
+ MidnightBorrowFromOrders?: undefined;
1499
+ MidnightPaybackFromOrders?: undefined;
1500
+ MidnightSupplyCollateral?: undefined;
1501
+ MidnightWithdrawCollateral?: undefined;
1502
+ MidnightView?: undefined;
1468
1503
  } | {
1469
1504
  DFSSell: string;
1470
1505
  DFSSellNoFee: string;
@@ -1734,6 +1769,7 @@ export declare const actionAddresses: {
1734
1769
  EulerV2View?: undefined;
1735
1770
  RenzoStake?: undefined;
1736
1771
  EtherFiStake?: undefined;
1772
+ EtherFiStakeFromLido?: undefined;
1737
1773
  EtherFiWrap?: undefined;
1738
1774
  EtherFiUnwrap?: undefined;
1739
1775
  KingClaim?: undefined;
@@ -1758,6 +1794,12 @@ export declare const actionAddresses: {
1758
1794
  GasFeeTakerL2?: undefined;
1759
1795
  AaveV3RatioCheck?: undefined;
1760
1796
  MorphoBlueView?: undefined;
1797
+ MidnightPaybackDirect?: undefined;
1798
+ MidnightBorrowFromOrders?: undefined;
1799
+ MidnightPaybackFromOrders?: undefined;
1800
+ MidnightSupplyCollateral?: undefined;
1801
+ MidnightWithdrawCollateral?: undefined;
1802
+ MidnightView?: undefined;
1761
1803
  };
1762
1804
  };
1763
1805
  export declare const otherAddresses: {
@@ -250,7 +250,7 @@ export const actionAddresses = {
250
250
  CurveUsdRepay: '0x6F91E8671d17ecEE3D3fb17DcCA87E86B8D83807',
251
251
  CurveUsdSwapper: '0xFA8c594b903651F97b27aCADEa83b720cfD7F80b',
252
252
  CurveUsdSwapperTransient: '0xcF0298592b8FCB3823d31Bb257b65afFCAcCb8b6',
253
- CurveUsdSelfLiquidate: '0xd90d8a4955DfE9D4f45F7f60595313B0925ee1da',
253
+ CurveUsdSelfLiquidate: '0x0B21996Fc90993f975D8279bE8ff2D34518da79C',
254
254
  CurveUsdSelfLiquidateWithColl: '0x7cE305FC2A18c6820a533AD418dC0A549aFeDcAF',
255
255
  CurveUsdGetDebt: '0x3Bb41d3f300dA758780fe7696bb4fB93cD7172fB',
256
256
  CurveUsdCollRatioTrigger: '0xFCc610809b735BB13E583c5E46595457083D2b0c',
@@ -275,7 +275,7 @@ export const actionAddresses = {
275
275
  LlamaLendBorrow: '0xCF693585C47049F3eACc2285E7Fe4e80123b2520',
276
276
  LlamaLendWithdraw: '0x5aEb07Ce4A49b7EaE2A1e5281768cFc0C3e1d8F3',
277
277
  LlamaLendPayback: '0x07e31d56E47EE6926892dCd928dF26899F58Ac8E',
278
- LlamaLendSelfLiquidate: '0x46173C379Fbf998E6db0B47F45b73f77C64d3897',
278
+ LlamaLendSelfLiquidate: '0xF0D7b730B40b02Ad555E27CFe5FAF43D6a75dfba',
279
279
  LlamaLendGetDebt: '0x5625ea9fcd930d5f131b0261ec4dcaf279fea4ed',
280
280
  LlamaLendBoost: '0xa21c1ce7318c6d38a10de44c2cd5d80514437d85',
281
281
  LlamaLendRepay: '0x57693f72E628A3F7323D31De35Bd158493Aa9CC0',
@@ -292,14 +292,15 @@ export const actionAddresses = {
292
292
  RenzoStake: '0x17DCF7132E30a0dC3d515C605E7c3D750c61E73c',
293
293
  // etherFi
294
294
  EtherFiStake: '0xcadB650B6a60C89f7847Cba555A7eeCC220EA2e8',
295
+ EtherFiStakeFromLido: '0xd4815aa46fc39e667fd7ab3194458639b59bcd82',
295
296
  EtherFiWrap: '0x086464be5c73f66cfbe6b64ec23aa5a86749ef58',
296
297
  EtherFiUnwrap: '0x6Eb09948DDf9332d628d156950b9B1C0c091e8D8',
297
298
  KingClaim: '0xd4C4D1Ef0e79389173EBc247972F355c6f2FEC76',
298
299
  // fluid
299
300
  FluidVaultT1Open: '0x372404335C05C2493Ff156Ef60cC0B286f6f2971',
300
- FluidVaultT1Adjust: '0x8f1443c9F24843D14fa6b302A55C59468ED7D28B',
301
+ FluidVaultT1Adjust: '0x0Dfe1e40F3DA8687a68824022176bE547Ecc0906',
301
302
  FluidVaultT1Borrow: '0x36AF0cE762a016e8b4a80c70Af406DFcBc1FCbD4',
302
- FluidVaultT1Payback: '0xa7A4B84D38CD33F9901922687db24B8aE14f2455',
303
+ FluidVaultT1Payback: '0x8D56b267C6a3e5295EFAebC67Ac413483c885C05',
303
304
  FluidVaultT1Withdraw: '0x5673b9ab4A035C5C7474C344664Be91DaFafa17E',
304
305
  FluidVaultT1Supply: '0x0c6100209D8A0bb14CC7d18e45dA1bd1E7a3a187',
305
306
  FluidView: '0xc8df052bD7A8d76a34c09e758Dff3c6298C0115c',
@@ -308,7 +309,7 @@ export const actionAddresses = {
308
309
  FluidDexOpen: '0x071e1369E1c9030Aa1a089bDE2F72797a14FE3b3',
309
310
  FluidDexSupply: '0xB3BE39850d8939Cceb4Fc49c415c428548FA9f9C',
310
311
  FluidDexBorrow: '0x3fa8EF6DA8f5b2BaAee77493a3A3dA68a7Aa75f3',
311
- FluidDexPayback: '0xD733BD32F4AAEe92a983E2021B85ca5d31236FA0',
312
+ FluidDexPayback: '0x12D0D7c4c2c5304E5ba96A019E0F092FdF555123',
312
313
  FluidDexWithdraw: '0x14d5bb8E96fbf7C1f9A8E3EFD0eF5fe6832ff3cd',
313
314
  // pendle
314
315
  PendleTokenRedeem: '0x94682544aCC5f4D82ECB1ab97998baa0e428EA0f',
@@ -459,7 +460,7 @@ export const actionAddresses = {
459
460
  LlamaLendBorrow: '0x4948135f8b3a8f3b51fbd1050f5d0f755accb8e7',
460
461
  LlamaLendWithdraw: '0xd7a80e7a2296d75cd1eebc2f0de0cebd14fbe117',
461
462
  LlamaLendPayback: '0xB2B93495dA2Fee8F92513fBBfA804564110B63ee',
462
- LlamaLendSelfLiquidate: '0xe63e836C3ab61481F60A9a56aA72d1D0c55Fc280',
463
+ LlamaLendSelfLiquidate: '0xC330F048B15CA5aadF34A9033B3a24c65200230A',
463
464
  LlamaLendGetDebt: '0x81c01f08b8fc4487501c88404ed17ebc17764f9c',
464
465
  LlamaLendBoost: '0xc52a3af27696f8cf999463f3455e23440a376f8d',
465
466
  LlamaLendRepay: '0x320fdfa922ee33c1cc8a042ada855c9dfe9bed06',
@@ -467,16 +468,16 @@ export const actionAddresses = {
467
468
  LlamaLendSelfLiquidateWithColl: '0xebf090e5e83f4cd63d84db013ac8271761a953cf',
468
469
  // fluid
469
470
  FluidVaultT1Open: '0x1947Ce90ACCf0E243CcF85140fCceC2EfAeeA193',
470
- FluidVaultT1Adjust: '0xF8374Aa0F6d9D28790f90745f0360b5C945DEA20',
471
+ FluidVaultT1Adjust: '0x212bB7577B6b302450860E128Eb73Eb2F83514c7',
471
472
  FluidVaultT1Borrow: '0x499da89aD564F5D6C828259ce55F53Fa288e7Be7',
472
- FluidVaultT1Payback: '0x226c871E0a27B12065c9128b8e7440b054b59155',
473
+ FluidVaultT1Payback: '0x19FF948437B7f1221173effC029739568F5f844a',
473
474
  FluidVaultT1Withdraw: '0xc13d93227d97197e5F1751d0a3e80c1080A5fa2B',
474
475
  FluidVaultT1Supply: '0xBCF0Dc5bb2C4434AD07369207904F5900d391b0B',
475
476
  FluidView: '0xf9e6d5568887ac8eC6fA33B7eefD2A176A958e71',
476
477
  FluidDexOpen: '0xA456f13d358B8B93bE6778be3244111E267C0AaC',
477
478
  FluidDexSupply: '0x3E49c4f914E01e5612719a7B4965e4FAfb324762',
478
479
  FluidDexBorrow: '0x8626b70CDf64e557fDdcFbcb783833Dc314d95F4',
479
- FluidDexPayback: '0xA9B46Da016F22cf9F8841A30881bB88E2Ad5CA94',
480
+ FluidDexPayback: '0x72b9AAf4864631976D764574f4780B1562CCF0F4',
480
481
  FluidDexWithdraw: '0x076D5434793798b153298bF70b014f5E6145aB2E',
481
482
  // summer.fi
482
483
  SFApproveTokens: '0x98101bDBFaA3f8efa4A14a5A6a2f9A20D514a5D5',
@@ -559,22 +560,28 @@ export const actionAddresses = {
559
560
  MorphoBlueClaim: '0xE279E9100d6d524602f98E8736BA5F8f065Dd3e0',
560
561
  // fluid
561
562
  FluidVaultT1Open: '0xCd4d5896AEAf97e738d3E7215ac01c2CF97474bc',
562
- FluidVaultT1Adjust: '0x4405A81c25Be495325f76Aa4d82176f9ae3275bc',
563
+ FluidVaultT1Adjust: '0x2f7839a733B93641aa6a6AF0b593202335c351D3',
563
564
  FluidVaultT1Borrow: '0x8dCBF436cC0971FE29886E58CE0CAeb36d43E91E',
564
- FluidVaultT1Payback: '0xA65daAa4FB4Fe9feaDF25bf2C062c3Faa2b02e5D',
565
+ FluidVaultT1Payback: '0xD4cEe5755e4f713B69f5Fc73068505ec6B9ee2a2',
565
566
  FluidVaultT1Withdraw: '0x26bE6a2EdE97aE826ed9DA8Fb79428037fe55cEB',
566
567
  FluidVaultT1Supply: '0x028ACA45244d4897ff80ef65ed0b735Bb0D4B0A5',
567
568
  FluidView: '0x6cd4D6af4F292817eA2A2311F099dF26cd015028',
568
569
  FluidDexOpen: '0x5eA8Da9679145D51F5eAEC8Bf2f42f47003A8799',
569
570
  FluidDexSupply: '0x2fCb7db80d3Be5C1B0049dF074b1AcFbcA93A867',
570
571
  FluidDexBorrow: '0x9D40776a876fA67C6757DA386434844cB6616C5F',
571
- FluidDexPayback: '0xc177c885872592EDA598276bD3FAe5B6d27F80Bf',
572
+ FluidDexPayback: '0xcaa8877aD3847B428135653AcA5fAd13a2811483',
572
573
  FluidDexWithdraw: '0xEaBA867c49FE8e53F5716fFF8857F239bd7202e1',
573
574
  TokenizedVaultAdapter: '0x88cf6cfa51b6f771570f6df450edf1c886212d3e',
574
575
  // summer.fi
575
576
  SFApproveTokens: '0x03EDC9A683f37BFB7516FF234223fFb6E38D5eb9',
576
577
  SummerfiUnsub: '0x0000000000000000000000000000000000000000',
577
578
  SummerfiUnsubV2: '0x60587B8Fe62Fc149d285a611822263206b4138da',
579
+ MidnightPaybackDirect: '0xC1B049A038f9E9811dc1Ad1D335369844d4268D9',
580
+ MidnightBorrowFromOrders: '0x82F9dd7eA821463178A2c7bC4047057Bd338E5e5',
581
+ MidnightPaybackFromOrders: '0x4B0c242195B1C941A2e7a871Bfa242c40dbf032F',
582
+ MidnightSupplyCollateral: '0xC83C7Ca37203FC30636EDcd3Ef127194542504c5',
583
+ MidnightWithdrawCollateral: '0x4fA4DA5fDD813279409B4Bf0Bde5Fe9ca8006A9C',
584
+ MidnightView: '0x3aa272f329E8B562A3bA56Bb6979a44D23A28839',
578
585
  },
579
586
  [NETWORKS.linea.chainId]: {
580
587
  // Basic
@@ -647,16 +654,16 @@ export const actionAddresses = {
647
654
  AaveV3DelegateCredit: '0x6F53fa9e7d1323d24515a51AB72Da3cf1E9883Bc',
648
655
  // Fluid
649
656
  FluidVaultT1Open: '0x491cc4AFbE0081C3464DeF1114ba27BE114b2401',
650
- FluidVaultT1Adjust: '0xD37d4DB98E67305ef92f34886B25500500E04Aed',
657
+ FluidVaultT1Adjust: '0xC196dC97Eb0B58E3755a71143b41D3F24595643f',
651
658
  FluidVaultT1Borrow: '0x95a8665Ba58aa13A58c60B0803572772cda153dB',
652
- FluidVaultT1Payback: '0x1420f4977E7B71AFddccBFc6F6e1505CefdF99F0',
659
+ FluidVaultT1Payback: '0xdeF8B05Ce194D50C376233C9C5530027f6180442',
653
660
  FluidVaultT1Withdraw: '0xcF91546046F16B3c38b890CC508E280BEffa66b9',
654
661
  FluidVaultT1Supply: '0x54D1b51d2d68CD0Dc877296527780CA6aff68a39',
655
662
  FluidView: '0x27C0BAe2338cE28097122393faF90375B9395dd1',
656
663
  FluidDexOpen: '0xF32d5d8D81f2662A02955CE537537088DF29daf5',
657
664
  FluidDexSupply: '0x903F7C93FFC4AAbaBB096a7A722F1f057816B399',
658
665
  FluidDexBorrow: '0xa2A878a09639D1ab3AF544566c0CA4D0FeAEE65E',
659
- FluidDexPayback: '0x04ce4b2a9F524d976a8eD8a49B9313C5a2C3ccAD',
666
+ FluidDexPayback: '0x3094D0D64fa5318162150720c19669d1A163937B',
660
667
  FluidDexWithdraw: '0x17B4ecd173b3Df2F5cB02c53Df8AA34e23Bcb92E',
661
668
  // Pendle
662
669
  PendleTokenRedeem: '0xB4c5f33bb5791D0174Df1879b809Bf57eE540B62',