@defisaver/sdk 1.3.26-uniswap-dev-dev → 1.3.27-midnight-dev

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/index.d.ts +2 -1
  3. package/esm/src/actions/index.js +2 -1
  4. package/esm/src/actions/midnight/MidnightBorrowFromOrdersAction.d.ts +18 -0
  5. package/esm/src/actions/midnight/MidnightBorrowFromOrdersAction.js +28 -0
  6. package/esm/src/actions/midnight/MidnightPaybackDirectAction.d.ts +16 -0
  7. package/esm/src/actions/midnight/MidnightPaybackDirectAction.js +24 -0
  8. package/esm/src/actions/midnight/MidnightPaybackFromOrdersAction.d.ts +18 -0
  9. package/esm/src/actions/midnight/MidnightPaybackFromOrdersAction.js +28 -0
  10. package/esm/src/actions/midnight/MidnightSupplyCollateralAction.d.ts +17 -0
  11. package/esm/src/actions/midnight/MidnightSupplyCollateralAction.js +26 -0
  12. package/esm/src/actions/midnight/MidnightWithdrawCollateralAction.d.ts +17 -0
  13. package/esm/src/actions/midnight/MidnightWithdrawCollateralAction.js +26 -0
  14. package/esm/src/actions/midnight/index.d.ts +5 -0
  15. package/esm/src/actions/midnight/index.js +5 -0
  16. package/esm/src/actions/uniswap/index.d.ts +0 -1
  17. package/esm/src/actions/uniswap/index.js +0 -1
  18. package/esm/src/addresses.d.ts +36 -6
  19. package/esm/src/addresses.js +6 -1
  20. package/esm/src/index.d.ts +144 -24
  21. package/package.json +1 -1
  22. package/src/Action.ts +21 -5
  23. package/src/actions/index.ts +2 -0
  24. package/src/actions/midnight/MidnightBorrowFromOrdersAction.ts +44 -0
  25. package/src/actions/midnight/MidnightPaybackDirectAction.ts +36 -0
  26. package/src/actions/midnight/MidnightPaybackFromOrdersAction.ts +44 -0
  27. package/src/actions/midnight/MidnightSupplyCollateralAction.ts +39 -0
  28. package/src/actions/midnight/MidnightWithdrawCollateralAction.ts +39 -0
  29. package/src/actions/midnight/index.ts +5 -0
  30. package/src/actions/uniswap/index.ts +1 -2
  31. package/src/addresses.ts +7 -1
  32. package/umd/index.js +877 -704
  33. package/esm/src/actions/uniswap/UniswapClaimAction.d.ts +0 -16
  34. package/esm/src/actions/uniswap/UniswapClaimAction.js +0 -23
  35. package/src/actions/uniswap/UniswapClaimAction.ts +0 -31
  36. package/test/actions/uniswap/UniswapClaimAction.js +0 -31
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
  }
@@ -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';
@@ -1,3 +1,2 @@
1
1
  export * from './UniswapSupplyAction';
2
2
  export * from './UniswapWithdrawAction';
3
- export * from './UniswapClaimAction';
@@ -1,3 +1,2 @@
1
1
  export * from './UniswapSupplyAction';
2
2
  export * from './UniswapWithdrawAction';
3
- export * from './UniswapClaimAction';
@@ -123,7 +123,6 @@ export declare const actionAddresses: {
123
123
  FLMorphoBlue: string;
124
124
  UniSupply: string;
125
125
  UniWithdraw: string;
126
- UniswapClaim: string;
127
126
  UniCollectV3: string;
128
127
  UniMintV3: string;
129
128
  UniSupplyV3: string;
@@ -293,6 +292,12 @@ export declare const actionAddresses: {
293
292
  GasFeeTakerL2?: undefined;
294
293
  AaveV3RatioCheck?: undefined;
295
294
  MorphoBlueView?: undefined;
295
+ MidnightPaybackDirect?: undefined;
296
+ MidnightBorrowFromOrders?: undefined;
297
+ MidnightPaybackFromOrders?: undefined;
298
+ MidnightSupplyCollateral?: undefined;
299
+ MidnightWithdrawCollateral?: undefined;
300
+ MidnightView?: undefined;
296
301
  } | {
297
302
  DFSSell: string;
298
303
  DFSSellNoFee: string;
@@ -436,7 +441,6 @@ export declare const actionAddresses: {
436
441
  FLMorphoBlue?: undefined;
437
442
  UniSupply?: undefined;
438
443
  UniWithdraw?: undefined;
439
- UniswapClaim?: undefined;
440
444
  DyDxWithdraw?: undefined;
441
445
  YearnSupply?: undefined;
442
446
  YearnWithdraw?: undefined;
@@ -586,6 +590,12 @@ export declare const actionAddresses: {
586
590
  AaveV4DelegateBorrowWithSig?: undefined;
587
591
  AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
588
592
  MorphoBlueView?: undefined;
593
+ MidnightPaybackDirect?: undefined;
594
+ MidnightBorrowFromOrders?: undefined;
595
+ MidnightPaybackFromOrders?: undefined;
596
+ MidnightSupplyCollateral?: undefined;
597
+ MidnightWithdrawCollateral?: undefined;
598
+ MidnightView?: undefined;
589
599
  } | {
590
600
  DFSSell: string;
591
601
  DFSSellNoFee: string;
@@ -761,7 +771,6 @@ export declare const actionAddresses: {
761
771
  FLGho?: undefined;
762
772
  UniSupply?: undefined;
763
773
  UniWithdraw?: undefined;
764
- UniswapClaim?: undefined;
765
774
  DyDxWithdraw?: undefined;
766
775
  YearnSupply?: undefined;
767
776
  YearnWithdraw?: undefined;
@@ -879,6 +888,12 @@ export declare const actionAddresses: {
879
888
  AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
880
889
  AaveV3DelegateCredit?: undefined;
881
890
  AaveV3RatioTrigger?: undefined;
891
+ MidnightPaybackDirect?: undefined;
892
+ MidnightBorrowFromOrders?: undefined;
893
+ MidnightPaybackFromOrders?: undefined;
894
+ MidnightSupplyCollateral?: undefined;
895
+ MidnightWithdrawCollateral?: undefined;
896
+ MidnightView?: undefined;
882
897
  } | {
883
898
  DFSSell: string;
884
899
  DFSSellNoFee: string;
@@ -950,6 +965,12 @@ export declare const actionAddresses: {
950
965
  SFApproveTokens: string;
951
966
  SummerfiUnsub: string;
952
967
  SummerfiUnsubV2: string;
968
+ MidnightPaybackDirect: string;
969
+ MidnightBorrowFromOrders: string;
970
+ MidnightPaybackFromOrders: string;
971
+ MidnightSupplyCollateral: string;
972
+ MidnightWithdrawCollateral: string;
973
+ MidnightView: string;
953
974
  AutomationV2Unsub?: undefined;
954
975
  SendTokenAndUnwrap?: undefined;
955
976
  SDaiWrap?: undefined;
@@ -1037,7 +1058,6 @@ export declare const actionAddresses: {
1037
1058
  FLGho?: undefined;
1038
1059
  UniSupply?: undefined;
1039
1060
  UniWithdraw?: undefined;
1040
- UniswapClaim?: undefined;
1041
1061
  UniCollectV3?: undefined;
1042
1062
  UniMintV3?: undefined;
1043
1063
  UniSupplyV3?: undefined;
@@ -1297,7 +1317,6 @@ export declare const actionAddresses: {
1297
1317
  FLMorphoBlue?: undefined;
1298
1318
  UniSupply?: undefined;
1299
1319
  UniWithdraw?: undefined;
1300
- UniswapClaim?: undefined;
1301
1320
  UniCollectV3?: undefined;
1302
1321
  UniMintV3?: undefined;
1303
1322
  UniSupplyV3?: undefined;
@@ -1465,6 +1484,12 @@ export declare const actionAddresses: {
1465
1484
  GasFeeTakerL2?: undefined;
1466
1485
  AaveV3RatioCheck?: undefined;
1467
1486
  MorphoBlueView?: undefined;
1487
+ MidnightPaybackDirect?: undefined;
1488
+ MidnightBorrowFromOrders?: undefined;
1489
+ MidnightPaybackFromOrders?: undefined;
1490
+ MidnightSupplyCollateral?: undefined;
1491
+ MidnightWithdrawCollateral?: undefined;
1492
+ MidnightView?: undefined;
1468
1493
  } | {
1469
1494
  DFSSell: string;
1470
1495
  DFSSellNoFee: string;
@@ -1603,7 +1628,6 @@ export declare const actionAddresses: {
1603
1628
  FLMorphoBlue?: undefined;
1604
1629
  UniSupply?: undefined;
1605
1630
  UniWithdraw?: undefined;
1606
- UniswapClaim?: undefined;
1607
1631
  UniCollectV3?: undefined;
1608
1632
  UniMintV3?: undefined;
1609
1633
  UniSupplyV3?: undefined;
@@ -1758,6 +1782,12 @@ export declare const actionAddresses: {
1758
1782
  GasFeeTakerL2?: undefined;
1759
1783
  AaveV3RatioCheck?: undefined;
1760
1784
  MorphoBlueView?: undefined;
1785
+ MidnightPaybackDirect?: undefined;
1786
+ MidnightBorrowFromOrders?: undefined;
1787
+ MidnightPaybackFromOrders?: undefined;
1788
+ MidnightSupplyCollateral?: undefined;
1789
+ MidnightWithdrawCollateral?: undefined;
1790
+ MidnightView?: undefined;
1761
1791
  };
1762
1792
  };
1763
1793
  export declare const otherAddresses: {
@@ -138,7 +138,6 @@ export const actionAddresses = {
138
138
  // uniswap
139
139
  UniSupply: '0x9935e12F0218E61c27D7f23eAC9A9D6881a078eC',
140
140
  UniWithdraw: '0xf8bb8F68b0A45DC315F3f7602a60cfb274B00951',
141
- UniswapClaim: '0x4Eed50e142BFaE83b2d05ce960C55F4c536d123f',
142
141
  // uniswap V3
143
142
  UniCollectV3: '0x331D7C3F6E710cB6cFE94c4Aa04AC3345AC00e00',
144
143
  UniMintV3: '0x3dF75BE8Fb0a6186BE9705cACaa6dD2a4Ec3e40C',
@@ -569,6 +568,12 @@ export const actionAddresses = {
569
568
  SFApproveTokens: '0x03EDC9A683f37BFB7516FF234223fFb6E38D5eb9',
570
569
  SummerfiUnsub: '0x0000000000000000000000000000000000000000',
571
570
  SummerfiUnsubV2: '0x60587B8Fe62Fc149d285a611822263206b4138da',
571
+ MidnightPaybackDirect: '0xC1B049A038f9E9811dc1Ad1D335369844d4268D9',
572
+ MidnightBorrowFromOrders: '0x82F9dd7eA821463178A2c7bC4047057Bd338E5e5',
573
+ MidnightPaybackFromOrders: '0x4B0c242195B1C941A2e7a871Bfa242c40dbf032F',
574
+ MidnightSupplyCollateral: '0xC83C7Ca37203FC30636EDcd3Ef127194542504c5',
575
+ MidnightWithdrawCollateral: '0x4fA4DA5fDD813279409B4Bf0Bde5Fe9ca8006A9C',
576
+ MidnightView: '0x3aa272f329E8B562A3bA56Bb6979a44D23A28839',
572
577
  },
573
578
  [NETWORKS.linea.chainId]: {
574
579
  // Basic