@defisaver/sdk 1.3.27-midnight-dev → 1.3.28-audit-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.
- package/esm/src/Action.js +5 -23
- package/esm/src/actions/aaveV3/AaveV3DelegateCredit.d.ts +1 -1
- package/esm/src/actions/aaveV3/AaveV3DelegateCredit.js +1 -1
- package/esm/src/actions/flashloan/AaveV3FlashLoanAction.d.ts +1 -1
- package/esm/src/actions/flashloan/AaveV3FlashLoanAction.js +1 -1
- package/esm/src/actions/flashloan/AaveV3FlashLoanCarryDebtAction.d.ts +2 -4
- package/esm/src/actions/flashloan/AaveV3FlashLoanCarryDebtAction.js +6 -12
- package/esm/src/actions/flashloan/AaveV3FlashLoanNoFeeAction.d.ts +1 -1
- package/esm/src/actions/flashloan/AaveV3FlashLoanNoFeeAction.js +1 -1
- package/esm/src/actions/index.d.ts +1 -2
- package/esm/src/actions/index.js +1 -2
- package/esm/src/actions/uniswap/UniswapClaimAction.d.ts +16 -0
- package/esm/src/actions/uniswap/UniswapClaimAction.js +23 -0
- package/esm/src/actions/uniswap/index.d.ts +1 -0
- package/esm/src/actions/uniswap/index.js +1 -0
- package/esm/src/addresses.d.ts +14 -44
- package/esm/src/addresses.js +13 -10
- package/esm/src/index.d.ts +56 -176
- package/package.json +30 -4
- package/src/Action.ts +5 -21
- package/src/actions/aaveV3/AaveV3DelegateCredit.ts +1 -1
- package/src/actions/flashloan/AaveV3FlashLoanAction.ts +1 -1
- package/src/actions/flashloan/AaveV3FlashLoanCarryDebtAction.ts +7 -13
- package/src/actions/flashloan/AaveV3FlashLoanNoFeeAction.ts +1 -1
- package/src/actions/index.ts +0 -2
- package/src/actions/uniswap/UniswapClaimAction.ts +31 -0
- package/src/actions/uniswap/index.ts +2 -1
- package/src/addresses.ts +13 -11
- package/test/actions/uniswap/UniswapClaimAction.js +31 -0
- package/umd/index.js +1219 -1397
- package/esm/src/actions/midnight/MidnightBorrowFromOrdersAction.d.ts +0 -18
- package/esm/src/actions/midnight/MidnightBorrowFromOrdersAction.js +0 -28
- package/esm/src/actions/midnight/MidnightPaybackDirectAction.d.ts +0 -16
- package/esm/src/actions/midnight/MidnightPaybackDirectAction.js +0 -24
- package/esm/src/actions/midnight/MidnightPaybackFromOrdersAction.d.ts +0 -18
- package/esm/src/actions/midnight/MidnightPaybackFromOrdersAction.js +0 -28
- package/esm/src/actions/midnight/MidnightSupplyCollateralAction.d.ts +0 -17
- package/esm/src/actions/midnight/MidnightSupplyCollateralAction.js +0 -26
- package/esm/src/actions/midnight/MidnightWithdrawCollateralAction.d.ts +0 -17
- package/esm/src/actions/midnight/MidnightWithdrawCollateralAction.js +0 -26
- package/esm/src/actions/midnight/index.d.ts +0 -5
- package/esm/src/actions/midnight/index.js +0 -5
- package/src/actions/midnight/MidnightBorrowFromOrdersAction.ts +0 -44
- package/src/actions/midnight/MidnightPaybackDirectAction.ts +0 -36
- package/src/actions/midnight/MidnightPaybackFromOrdersAction.ts +0 -44
- package/src/actions/midnight/MidnightSupplyCollateralAction.ts +0 -39
- package/src/actions/midnight/MidnightWithdrawCollateralAction.ts +0 -39
- package/src/actions/midnight/index.ts +0 -5
package/esm/src/Action.js
CHANGED
|
@@ -63,32 +63,14 @@ 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
|
+
}
|
|
66
71
|
if (paramType.endsWith('[]')) {
|
|
67
72
|
return Array.from(Array(arg.length).fill(paramType.replace('[]', '')));
|
|
68
73
|
}
|
|
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
|
-
}
|
|
92
74
|
}
|
|
93
75
|
return paramType;
|
|
94
76
|
}
|
|
@@ -12,7 +12,7 @@ export declare class AaveV3DelegateCredit extends ActionWithL2 {
|
|
|
12
12
|
* @param amount Amount of tokens to be payed back
|
|
13
13
|
* @param rateMode Type of borrow debt [Stable: 1, Variable: 2]
|
|
14
14
|
* @param assetId The id of the token to be borrowed
|
|
15
|
-
* @param delegatee The
|
|
15
|
+
* @param delegatee The address of the delegatee to be credited
|
|
16
16
|
*/
|
|
17
17
|
constructor(useOnDefaultMarket: boolean, market: EthAddress, amount: uint256, rateMode: uint8, assetId: uint16, delegatee: EthAddress);
|
|
18
18
|
encodeInputs(): string;
|
|
@@ -12,7 +12,7 @@ export class AaveV3DelegateCredit extends ActionWithL2 {
|
|
|
12
12
|
* @param amount Amount of tokens to be payed back
|
|
13
13
|
* @param rateMode Type of borrow debt [Stable: 1, Variable: 2]
|
|
14
14
|
* @param assetId The id of the token to be borrowed
|
|
15
|
-
* @param delegatee The
|
|
15
|
+
* @param delegatee The address of the delegatee to be credited
|
|
16
16
|
*/
|
|
17
17
|
constructor(useOnDefaultMarket, market, amount, rateMode, assetId, delegatee) {
|
|
18
18
|
super('AaveV3DelegateCredit', getAddr('Empty'), ['uint256', 'address', 'uint16', 'uint8', 'bool', 'address'], [amount, delegatee, assetId, rateMode, useOnDefaultMarket, market]);
|
|
@@ -9,8 +9,8 @@ import { FlashLoanId } from './FlashLoanId';
|
|
|
9
9
|
export declare class AaveV3FlashLoanAction extends ActionWithL2 implements FlashLoanId {
|
|
10
10
|
flashLoanId: number;
|
|
11
11
|
/**
|
|
12
|
-
* @param loanAmounts
|
|
13
12
|
* @param tokens
|
|
13
|
+
* @param loanAmounts
|
|
14
14
|
* @param modes
|
|
15
15
|
* @param loanPayer
|
|
16
16
|
* @param flParamGetterAddr
|
|
@@ -7,12 +7,10 @@ import { EthAddress, uint256, bytes } from '../../types';
|
|
|
7
7
|
*/
|
|
8
8
|
export declare class AaveV3FlashLoanCarryDebtAction extends ActionWithL2 {
|
|
9
9
|
/**
|
|
10
|
-
* @param loanAmounts
|
|
11
10
|
* @param tokens
|
|
12
|
-
* @param
|
|
13
|
-
* @param loanPayer
|
|
11
|
+
* @param loanAmounts
|
|
14
12
|
* @param flParamGetterAddr
|
|
15
13
|
* @param flParamGetterData
|
|
16
14
|
*/
|
|
17
|
-
constructor(tokens: Array<EthAddress>, loanAmounts: Array<uint256>,
|
|
15
|
+
constructor(tokens: Array<EthAddress>, loanAmounts: Array<uint256>, flParamGetterAddr?: EthAddress, flParamGetterData?: bytes);
|
|
18
16
|
}
|
|
@@ -7,22 +7,16 @@ import { getAddr } from '../../addresses';
|
|
|
7
7
|
*/
|
|
8
8
|
export class AaveV3FlashLoanCarryDebtAction extends ActionWithL2 {
|
|
9
9
|
/**
|
|
10
|
-
* @param loanAmounts
|
|
11
10
|
* @param tokens
|
|
12
|
-
* @param
|
|
13
|
-
* @param loanPayer
|
|
11
|
+
* @param loanAmounts
|
|
14
12
|
* @param flParamGetterAddr
|
|
15
13
|
* @param flParamGetterData
|
|
16
14
|
*/
|
|
17
|
-
constructor(tokens, loanAmounts,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
throw new Error('Arrays must be of the same length');
|
|
15
|
+
constructor(tokens, loanAmounts, flParamGetterAddr = getAddr('Empty'), flParamGetterData = []) {
|
|
16
|
+
if (tokens.length !== loanAmounts.length) {
|
|
17
|
+
throw new Error('Tokens and loan amounts must be of the same length');
|
|
21
18
|
}
|
|
22
|
-
modes.
|
|
23
|
-
|
|
24
|
-
throw new Error('Invalid borrow mode set');
|
|
25
|
-
}
|
|
26
|
-
});
|
|
19
|
+
const modes = Array(tokens.length).fill(2); // always use variable borrow rate
|
|
20
|
+
super('FLAaveV3CarryDebt', getAddr('FLAaveV3CarryDebt'), ['address[]', 'uint256[]', 'uint256[]', 'address', 'address', 'bytes', 'bytes'], [tokens, loanAmounts, modes, getAddr('Empty'), flParamGetterAddr, flParamGetterData, []]);
|
|
27
21
|
}
|
|
28
22
|
}
|
|
@@ -7,8 +7,8 @@ import { EthAddress, uint256, bytes } from '../../types';
|
|
|
7
7
|
*/
|
|
8
8
|
export declare class AaveV3FlashLoanNoFeeAction extends ActionWithL2 {
|
|
9
9
|
/**
|
|
10
|
-
* @param loanAmounts
|
|
11
10
|
* @param tokens
|
|
11
|
+
* @param loanAmounts
|
|
12
12
|
* @param modes
|
|
13
13
|
* @param loanPayer
|
|
14
14
|
* @param flParamGetterAddr
|
|
@@ -40,5 +40,4 @@ 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
|
-
|
|
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, };
|
|
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, };
|
package/esm/src/actions/index.js
CHANGED
|
@@ -40,5 +40,4 @@ 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
|
-
|
|
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, };
|
|
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, };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { EthAddress, uint256, bytes32 } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* UniswapClaimAction - Claims UNI tokens from the Uniswap merkle distributor
|
|
5
|
+
*
|
|
6
|
+
* @category Uniswap
|
|
7
|
+
*/
|
|
8
|
+
export declare class UniswapClaimAction extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* @param index - Index of the claim in the merkle tree
|
|
11
|
+
* @param to - Address where to send the claimed UNI
|
|
12
|
+
* @param amount - Amount of UNI allocated to the smart wallet in the merkle tree
|
|
13
|
+
* @param merkleProof - Merkle proof of the claim
|
|
14
|
+
*/
|
|
15
|
+
constructor(index: uint256, to: EthAddress, amount: uint256, merkleProof: Array<bytes32>);
|
|
16
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { getAddr } from '../../addresses';
|
|
3
|
+
/**
|
|
4
|
+
* UniswapClaimAction - Claims UNI tokens from the Uniswap merkle distributor
|
|
5
|
+
*
|
|
6
|
+
* @category Uniswap
|
|
7
|
+
*/
|
|
8
|
+
export class UniswapClaimAction extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* @param index - Index of the claim in the merkle tree
|
|
11
|
+
* @param to - Address where to send the claimed UNI
|
|
12
|
+
* @param amount - Amount of UNI allocated to the smart wallet in the merkle tree
|
|
13
|
+
* @param merkleProof - Merkle proof of the claim
|
|
14
|
+
*/
|
|
15
|
+
constructor(index, to, amount, merkleProof) {
|
|
16
|
+
super('UniswapClaim', getAddr('UniswapClaim'), ['uint256', 'address', 'uint256', 'bytes32[]'], [index, to, amount, merkleProof]);
|
|
17
|
+
this.mappableArgs = [
|
|
18
|
+
this.args[0],
|
|
19
|
+
this.args[1],
|
|
20
|
+
this.args[2],
|
|
21
|
+
];
|
|
22
|
+
}
|
|
23
|
+
}
|
package/esm/src/addresses.d.ts
CHANGED
|
@@ -72,6 +72,7 @@ export declare const actionAddresses: {
|
|
|
72
72
|
AaveV3ATokenPayback: string;
|
|
73
73
|
AaveV3View: string;
|
|
74
74
|
AaveV3DelegateWithSig: string;
|
|
75
|
+
AaveV3DelegateCredit: string;
|
|
75
76
|
GhoClaimAAVE: string;
|
|
76
77
|
GhoUnstake: string;
|
|
77
78
|
GhoStake: string;
|
|
@@ -123,6 +124,7 @@ export declare const actionAddresses: {
|
|
|
123
124
|
FLMorphoBlue: string;
|
|
124
125
|
UniSupply: string;
|
|
125
126
|
UniWithdraw: string;
|
|
127
|
+
UniswapClaim: string;
|
|
126
128
|
UniCollectV3: string;
|
|
127
129
|
UniMintV3: string;
|
|
128
130
|
UniSupplyV3: string;
|
|
@@ -287,17 +289,10 @@ export declare const actionAddresses: {
|
|
|
287
289
|
AaveV4DelegateWithdrawWithSig: string;
|
|
288
290
|
AaveV4DelegateBorrowWithSig: string;
|
|
289
291
|
AaveV4DelegateSetUsingAsCollateralWithSig: string;
|
|
290
|
-
AaveV3DelegateCredit?: undefined;
|
|
291
292
|
AaveV3RatioTrigger?: undefined;
|
|
292
293
|
GasFeeTakerL2?: undefined;
|
|
293
294
|
AaveV3RatioCheck?: undefined;
|
|
294
295
|
MorphoBlueView?: undefined;
|
|
295
|
-
MidnightPaybackDirect?: undefined;
|
|
296
|
-
MidnightBorrowFromOrders?: undefined;
|
|
297
|
-
MidnightPaybackFromOrders?: undefined;
|
|
298
|
-
MidnightSupplyCollateral?: undefined;
|
|
299
|
-
MidnightWithdrawCollateral?: undefined;
|
|
300
|
-
MidnightView?: undefined;
|
|
301
296
|
} | {
|
|
302
297
|
DFSSell: string;
|
|
303
298
|
DFSSellNoFee: string;
|
|
@@ -334,6 +329,7 @@ export declare const actionAddresses: {
|
|
|
334
329
|
FLAaveV3: string;
|
|
335
330
|
FLBalancer: string;
|
|
336
331
|
FLAction: string;
|
|
332
|
+
FLAaveV3CarryDebt: string;
|
|
337
333
|
AaveV3RatioTrigger: string;
|
|
338
334
|
GasFeeTakerL2: string;
|
|
339
335
|
AaveV3RatioCheck: string;
|
|
@@ -432,7 +428,6 @@ export declare const actionAddresses: {
|
|
|
432
428
|
CompGetDebt?: undefined;
|
|
433
429
|
CompCollateralSwitch?: undefined;
|
|
434
430
|
FLAaveV2?: undefined;
|
|
435
|
-
FLAaveV3CarryDebt?: undefined;
|
|
436
431
|
FLDyDx?: undefined;
|
|
437
432
|
FLMaker?: undefined;
|
|
438
433
|
FLSpark?: undefined;
|
|
@@ -441,6 +436,7 @@ export declare const actionAddresses: {
|
|
|
441
436
|
FLMorphoBlue?: undefined;
|
|
442
437
|
UniSupply?: undefined;
|
|
443
438
|
UniWithdraw?: undefined;
|
|
439
|
+
UniswapClaim?: undefined;
|
|
444
440
|
DyDxWithdraw?: undefined;
|
|
445
441
|
YearnSupply?: undefined;
|
|
446
442
|
YearnWithdraw?: undefined;
|
|
@@ -590,12 +586,6 @@ export declare const actionAddresses: {
|
|
|
590
586
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
591
587
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
592
588
|
MorphoBlueView?: undefined;
|
|
593
|
-
MidnightPaybackDirect?: undefined;
|
|
594
|
-
MidnightBorrowFromOrders?: undefined;
|
|
595
|
-
MidnightPaybackFromOrders?: undefined;
|
|
596
|
-
MidnightSupplyCollateral?: undefined;
|
|
597
|
-
MidnightWithdrawCollateral?: undefined;
|
|
598
|
-
MidnightView?: undefined;
|
|
599
589
|
} | {
|
|
600
590
|
DFSSell: string;
|
|
601
591
|
DFSSellNoFee: string;
|
|
@@ -628,6 +618,7 @@ export declare const actionAddresses: {
|
|
|
628
618
|
AaveV3Withdraw: string;
|
|
629
619
|
AaveV3ClaimRewards: string;
|
|
630
620
|
AaveV3DelegateWithSig: string;
|
|
621
|
+
AaveV3DelegateCredit: string;
|
|
631
622
|
CompV3Allow: string;
|
|
632
623
|
CompV3Borrow: string;
|
|
633
624
|
CompV3Claim: string;
|
|
@@ -641,6 +632,7 @@ export declare const actionAddresses: {
|
|
|
641
632
|
FLUniV3: string;
|
|
642
633
|
FLAction: string;
|
|
643
634
|
FLMorphoBlue: string;
|
|
635
|
+
FLAaveV3CarryDebt: string;
|
|
644
636
|
GasFeeTakerL2: string;
|
|
645
637
|
AaveV3RatioCheck: string;
|
|
646
638
|
UniCollectV3: string;
|
|
@@ -764,13 +756,13 @@ export declare const actionAddresses: {
|
|
|
764
756
|
CompGetDebt?: undefined;
|
|
765
757
|
CompCollateralSwitch?: undefined;
|
|
766
758
|
FLAaveV2?: undefined;
|
|
767
|
-
FLAaveV3CarryDebt?: undefined;
|
|
768
759
|
FLDyDx?: undefined;
|
|
769
760
|
FLMaker?: undefined;
|
|
770
761
|
FLSpark?: undefined;
|
|
771
762
|
FLGho?: undefined;
|
|
772
763
|
UniSupply?: undefined;
|
|
773
764
|
UniWithdraw?: undefined;
|
|
765
|
+
UniswapClaim?: undefined;
|
|
774
766
|
DyDxWithdraw?: undefined;
|
|
775
767
|
YearnSupply?: undefined;
|
|
776
768
|
YearnWithdraw?: undefined;
|
|
@@ -886,14 +878,7 @@ export declare const actionAddresses: {
|
|
|
886
878
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
887
879
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
888
880
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
889
|
-
AaveV3DelegateCredit?: undefined;
|
|
890
881
|
AaveV3RatioTrigger?: undefined;
|
|
891
|
-
MidnightPaybackDirect?: undefined;
|
|
892
|
-
MidnightBorrowFromOrders?: undefined;
|
|
893
|
-
MidnightPaybackFromOrders?: undefined;
|
|
894
|
-
MidnightSupplyCollateral?: undefined;
|
|
895
|
-
MidnightWithdrawCollateral?: undefined;
|
|
896
|
-
MidnightView?: undefined;
|
|
897
882
|
} | {
|
|
898
883
|
DFSSell: string;
|
|
899
884
|
DFSSellNoFee: string;
|
|
@@ -920,6 +905,7 @@ export declare const actionAddresses: {
|
|
|
920
905
|
FLUniV3: string;
|
|
921
906
|
FLAction: string;
|
|
922
907
|
FLMorphoBlue: string;
|
|
908
|
+
FLAaveV3CarryDebt: string;
|
|
923
909
|
AaveV3Withdraw: string;
|
|
924
910
|
AaveV3SwapBorrowRateMode: string;
|
|
925
911
|
AaveV3Supply: string;
|
|
@@ -931,6 +917,7 @@ export declare const actionAddresses: {
|
|
|
931
917
|
AaveV3ATokenPayback: string;
|
|
932
918
|
AaveV3View: string;
|
|
933
919
|
AaveV3DelegateWithSig: string;
|
|
920
|
+
AaveV3DelegateCredit: string;
|
|
934
921
|
CompV3Allow: string;
|
|
935
922
|
CompV3Borrow: string;
|
|
936
923
|
CompV3Claim: string;
|
|
@@ -965,12 +952,6 @@ export declare const actionAddresses: {
|
|
|
965
952
|
SFApproveTokens: string;
|
|
966
953
|
SummerfiUnsub: string;
|
|
967
954
|
SummerfiUnsubV2: string;
|
|
968
|
-
MidnightPaybackDirect: string;
|
|
969
|
-
MidnightBorrowFromOrders: string;
|
|
970
|
-
MidnightPaybackFromOrders: string;
|
|
971
|
-
MidnightSupplyCollateral: string;
|
|
972
|
-
MidnightWithdrawCollateral: string;
|
|
973
|
-
MidnightView: string;
|
|
974
955
|
AutomationV2Unsub?: undefined;
|
|
975
956
|
SendTokenAndUnwrap?: undefined;
|
|
976
957
|
SDaiWrap?: undefined;
|
|
@@ -1051,13 +1032,13 @@ export declare const actionAddresses: {
|
|
|
1051
1032
|
CompCollateralSwitch?: undefined;
|
|
1052
1033
|
FLAaveV2?: undefined;
|
|
1053
1034
|
FLAaveV3NoFee?: undefined;
|
|
1054
|
-
FLAaveV3CarryDebt?: undefined;
|
|
1055
1035
|
FLDyDx?: undefined;
|
|
1056
1036
|
FLMaker?: undefined;
|
|
1057
1037
|
FLSpark?: undefined;
|
|
1058
1038
|
FLGho?: undefined;
|
|
1059
1039
|
UniSupply?: undefined;
|
|
1060
1040
|
UniWithdraw?: undefined;
|
|
1041
|
+
UniswapClaim?: undefined;
|
|
1061
1042
|
UniCollectV3?: undefined;
|
|
1062
1043
|
UniMintV3?: undefined;
|
|
1063
1044
|
UniSupplyV3?: undefined;
|
|
@@ -1189,7 +1170,6 @@ export declare const actionAddresses: {
|
|
|
1189
1170
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
1190
1171
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
1191
1172
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
1192
|
-
AaveV3DelegateCredit?: undefined;
|
|
1193
1173
|
AaveV3RatioTrigger?: undefined;
|
|
1194
1174
|
AaveV3RatioCheck?: undefined;
|
|
1195
1175
|
} | {
|
|
@@ -1211,6 +1191,7 @@ export declare const actionAddresses: {
|
|
|
1211
1191
|
TokenizedVaultAdapter: string;
|
|
1212
1192
|
FLAction: string;
|
|
1213
1193
|
FLAaveV3: string;
|
|
1194
|
+
FLAaveV3CarryDebt: string;
|
|
1214
1195
|
AaveV3Withdraw: string;
|
|
1215
1196
|
AaveV3Supply: string;
|
|
1216
1197
|
AaveV3SetEMode: string;
|
|
@@ -1307,7 +1288,6 @@ export declare const actionAddresses: {
|
|
|
1307
1288
|
CompCollateralSwitch?: undefined;
|
|
1308
1289
|
FLAaveV2?: undefined;
|
|
1309
1290
|
FLAaveV3NoFee?: undefined;
|
|
1310
|
-
FLAaveV3CarryDebt?: undefined;
|
|
1311
1291
|
FLDyDx?: undefined;
|
|
1312
1292
|
FLMaker?: undefined;
|
|
1313
1293
|
FLBalancer?: undefined;
|
|
@@ -1317,6 +1297,7 @@ export declare const actionAddresses: {
|
|
|
1317
1297
|
FLMorphoBlue?: undefined;
|
|
1318
1298
|
UniSupply?: undefined;
|
|
1319
1299
|
UniWithdraw?: undefined;
|
|
1300
|
+
UniswapClaim?: undefined;
|
|
1320
1301
|
UniCollectV3?: undefined;
|
|
1321
1302
|
UniMintV3?: undefined;
|
|
1322
1303
|
UniSupplyV3?: undefined;
|
|
@@ -1484,12 +1465,6 @@ export declare const actionAddresses: {
|
|
|
1484
1465
|
GasFeeTakerL2?: undefined;
|
|
1485
1466
|
AaveV3RatioCheck?: undefined;
|
|
1486
1467
|
MorphoBlueView?: undefined;
|
|
1487
|
-
MidnightPaybackDirect?: undefined;
|
|
1488
|
-
MidnightBorrowFromOrders?: undefined;
|
|
1489
|
-
MidnightPaybackFromOrders?: undefined;
|
|
1490
|
-
MidnightSupplyCollateral?: undefined;
|
|
1491
|
-
MidnightWithdrawCollateral?: undefined;
|
|
1492
|
-
MidnightView?: undefined;
|
|
1493
1468
|
} | {
|
|
1494
1469
|
DFSSell: string;
|
|
1495
1470
|
DFSSellNoFee: string;
|
|
@@ -1509,6 +1484,7 @@ export declare const actionAddresses: {
|
|
|
1509
1484
|
TokenizedVaultAdapter: string;
|
|
1510
1485
|
FLAction: string;
|
|
1511
1486
|
FLAaveV3: string;
|
|
1487
|
+
FLAaveV3CarryDebt: string;
|
|
1512
1488
|
AaveV3Withdraw: string;
|
|
1513
1489
|
AaveV3Supply: string;
|
|
1514
1490
|
AaveV3SetEMode: string;
|
|
@@ -1618,7 +1594,6 @@ export declare const actionAddresses: {
|
|
|
1618
1594
|
CompCollateralSwitch?: undefined;
|
|
1619
1595
|
FLAaveV2?: undefined;
|
|
1620
1596
|
FLAaveV3NoFee?: undefined;
|
|
1621
|
-
FLAaveV3CarryDebt?: undefined;
|
|
1622
1597
|
FLDyDx?: undefined;
|
|
1623
1598
|
FLMaker?: undefined;
|
|
1624
1599
|
FLBalancer?: undefined;
|
|
@@ -1628,6 +1603,7 @@ export declare const actionAddresses: {
|
|
|
1628
1603
|
FLMorphoBlue?: undefined;
|
|
1629
1604
|
UniSupply?: undefined;
|
|
1630
1605
|
UniWithdraw?: undefined;
|
|
1606
|
+
UniswapClaim?: undefined;
|
|
1631
1607
|
UniCollectV3?: undefined;
|
|
1632
1608
|
UniMintV3?: undefined;
|
|
1633
1609
|
UniSupplyV3?: undefined;
|
|
@@ -1782,12 +1758,6 @@ export declare const actionAddresses: {
|
|
|
1782
1758
|
GasFeeTakerL2?: undefined;
|
|
1783
1759
|
AaveV3RatioCheck?: undefined;
|
|
1784
1760
|
MorphoBlueView?: undefined;
|
|
1785
|
-
MidnightPaybackDirect?: undefined;
|
|
1786
|
-
MidnightBorrowFromOrders?: undefined;
|
|
1787
|
-
MidnightPaybackFromOrders?: undefined;
|
|
1788
|
-
MidnightSupplyCollateral?: undefined;
|
|
1789
|
-
MidnightWithdrawCollateral?: undefined;
|
|
1790
|
-
MidnightView?: undefined;
|
|
1791
1761
|
};
|
|
1792
1762
|
};
|
|
1793
1763
|
export declare const otherAddresses: {
|
package/esm/src/addresses.js
CHANGED
|
@@ -80,6 +80,7 @@ export const actionAddresses = {
|
|
|
80
80
|
AaveV3ATokenPayback: '0xDe5c012cd1878D86E91309593764895a3adb380E',
|
|
81
81
|
AaveV3View: '0x0CB0170F3413e54405F64d3C23BA3A1D8Bb96D99',
|
|
82
82
|
AaveV3DelegateWithSig: '0x9253E22Ce4f0AeE541301CF8cC29843f9083a1F4',
|
|
83
|
+
AaveV3DelegateCredit: '0xa7ab39edCb0a1b742DCd908EC6CFe178d8322580',
|
|
83
84
|
GhoClaimAAVE: '0xA53060d822cB31AFd5B26D899130a14E8Efc5917',
|
|
84
85
|
GhoUnstake: '0x3fD02e65B4fb12381946D03815Ff3FF8Ebe2fC63',
|
|
85
86
|
GhoStake: '0x6cfBFd04702f3b7d4fc52D457eDf91D6E4A081bb',
|
|
@@ -125,7 +126,7 @@ export const actionAddresses = {
|
|
|
125
126
|
// flashloan
|
|
126
127
|
FLAaveV2: '0xEA55576383C96A69B3E8beD51Ce0d0294001bc5F',
|
|
127
128
|
FLAaveV3NoFee: '0xd9D8e68717Ce24CCbf162868aaad7E38d81b05d1',
|
|
128
|
-
FLAaveV3CarryDebt: '
|
|
129
|
+
FLAaveV3CarryDebt: '0x8225D3833D88BD1420E7d25e69A00F1A27aB9143',
|
|
129
130
|
FLAaveV3: '0x5021d70aB7D757D61E0230c472ff89b8B2B8705e',
|
|
130
131
|
FLDyDx: '0x08AC78B418fCB0DDF1096533856A757C28d430d7',
|
|
131
132
|
FLMaker: '0x0f8C3368cADF78167F5355D746Ed7b2A826A6e3b',
|
|
@@ -138,6 +139,7 @@ export const actionAddresses = {
|
|
|
138
139
|
// uniswap
|
|
139
140
|
UniSupply: '0x9935e12F0218E61c27D7f23eAC9A9D6881a078eC',
|
|
140
141
|
UniWithdraw: '0xf8bb8F68b0A45DC315F3f7602a60cfb274B00951',
|
|
142
|
+
UniswapClaim: '0x4Eed50e142BFaE83b2d05ce960C55F4c536d123f',
|
|
141
143
|
// uniswap V3
|
|
142
144
|
UniCollectV3: '0x331D7C3F6E710cB6cFE94c4Aa04AC3345AC00e00',
|
|
143
145
|
UniMintV3: '0x3dF75BE8Fb0a6186BE9705cACaa6dD2a4Ec3e40C',
|
|
@@ -363,12 +365,13 @@ export const actionAddresses = {
|
|
|
363
365
|
AaveV3Withdraw: '0xf19d045f6cFc04A5Ee5E0e8837b565b9f276e3F7',
|
|
364
366
|
AaveV3ClaimRewards: '0xBE8e8cea67085F869C1C0040fD52F9F3115E962e',
|
|
365
367
|
AaveV3DelegateWithSig: '0x8dd05d32fB05E8c3e8F37294e6f2d13e5823a712',
|
|
366
|
-
AaveV3DelegateCredit: '
|
|
368
|
+
AaveV3DelegateCredit: '0x11E7B19195a76D2E5A4863cf6cbE8030443c729A',
|
|
367
369
|
// flashloan
|
|
368
370
|
FLAaveV3NoFee: '0xfbcF23D2BeF8A2C491cfa4dD409D8dF12d431c85',
|
|
369
371
|
FLAaveV3: '0x8A07E93d2B74A80D726eE4E4A0aC1F906aB5Cc63',
|
|
370
372
|
FLBalancer: '0x79d6bf536b8DD65909a3174C87eA6395310d5c41',
|
|
371
373
|
FLAction: '0xB57b666dAB46229e2b80113b5187F6DCD91AB159',
|
|
374
|
+
FLAaveV3CarryDebt: '0x4ab7a392aF23215A9049A64F3B2d44726aD2D6fe',
|
|
372
375
|
AaveV3RatioTrigger: '0xB76e3f7694589D0f34ba43b17AD0D15350Ab5f85',
|
|
373
376
|
GasFeeTakerL2: '0xB3dB299622A9DB0E944ccda2Ef899d6fF365B082',
|
|
374
377
|
AaveV3RatioCheck: '0x7A36779a7b5F1128B28932604057d5b63361297c',
|
|
@@ -425,6 +428,7 @@ export const actionAddresses = {
|
|
|
425
428
|
AaveV3Withdraw: '0xbf492F869DdB1A18BB4F41b6c3059D9f882Fe7ff',
|
|
426
429
|
AaveV3ClaimRewards: '0x3a4d72Ed2a47a409a82ba61f0fca1C749Ea8aB66',
|
|
427
430
|
AaveV3DelegateWithSig: '0xFF2CE05250d1880f0f45ea8fB453292CABA42F12',
|
|
431
|
+
AaveV3DelegateCredit: '0x8C13353e3DA67d3171D6F73751E3caa791a3AACD',
|
|
428
432
|
// CompV3
|
|
429
433
|
CompV3Allow: '0x0380E8e13CdE0499c720999930CaA07A5744887c',
|
|
430
434
|
CompV3Borrow: '0x1C0eCc794fDA7c29aBd19E0b2F7dA166C237d616',
|
|
@@ -440,6 +444,7 @@ export const actionAddresses = {
|
|
|
440
444
|
FLUniV3: '0xf041C72e201CD7d04a240fe06c5783E2Ee2D92b3',
|
|
441
445
|
FLAction: '0xf041C72e201CD7d04a240fe06c5783E2Ee2D92b3',
|
|
442
446
|
FLMorphoBlue: '0xf041C72e201CD7d04a240fe06c5783E2Ee2D92b3',
|
|
447
|
+
FLAaveV3CarryDebt: '0xEc6Db90d9EFa7cD75d5b716896A497e9d9103D5b',
|
|
443
448
|
GasFeeTakerL2: '0x2F64f73B222B4978CAfd0295c0fa106cE5f34996',
|
|
444
449
|
AaveV3RatioCheck: '0x4a5c2cbCFB921b596Dec049389899CC8Eb4678ED',
|
|
445
450
|
// uniswap V3
|
|
@@ -518,6 +523,7 @@ export const actionAddresses = {
|
|
|
518
523
|
FLUniV3: '0x1bA6082D2ef1aB92a55B96264c72Eb8049C964Ce',
|
|
519
524
|
FLAction: '0x87Af4769e4134379125A262408e1f3EC60d2Ab52',
|
|
520
525
|
FLMorphoBlue: '0x87Af4769e4134379125A262408e1f3EC60d2Ab52',
|
|
526
|
+
FLAaveV3CarryDebt: '0x760e97862DD8652e5BB8b4D8ad9C99a74BBe7E7A',
|
|
521
527
|
// AaveV3
|
|
522
528
|
AaveV3Withdraw: '0x1d2Fa7dAcC660A9124c3685EE8a6E699d10409Eb',
|
|
523
529
|
AaveV3SwapBorrowRateMode: '0x9d1D7A0dD5e82cCe9CC131eC0C807B0F543be70e',
|
|
@@ -530,6 +536,7 @@ export const actionAddresses = {
|
|
|
530
536
|
AaveV3ATokenPayback: '0x3D57875885e3cEe9E56Cb65D21789893B6e67815',
|
|
531
537
|
AaveV3View: '0xf140B2904beb743C2f17e0b5f766074212a7e243',
|
|
532
538
|
AaveV3DelegateWithSig: '0x9e295AFaC75E7843b88a563D119FD953EDf441c2',
|
|
539
|
+
AaveV3DelegateCredit: '0xF85aD63c513A76a1dc05B2AddC4777F17336c7e9',
|
|
533
540
|
// CompV3
|
|
534
541
|
CompV3Allow: '0x3Fe56B85BBcD759459408Bd8434c37bac93e26bF',
|
|
535
542
|
CompV3Borrow: '0x74346bf868Dc9201922A7F7DD26917F7BF5F0f3b',
|
|
@@ -568,12 +575,6 @@ export const actionAddresses = {
|
|
|
568
575
|
SFApproveTokens: '0x03EDC9A683f37BFB7516FF234223fFb6E38D5eb9',
|
|
569
576
|
SummerfiUnsub: '0x0000000000000000000000000000000000000000',
|
|
570
577
|
SummerfiUnsubV2: '0x60587B8Fe62Fc149d285a611822263206b4138da',
|
|
571
|
-
MidnightPaybackDirect: '0xC1B049A038f9E9811dc1Ad1D335369844d4268D9',
|
|
572
|
-
MidnightBorrowFromOrders: '0x82F9dd7eA821463178A2c7bC4047057Bd338E5e5',
|
|
573
|
-
MidnightPaybackFromOrders: '0x4B0c242195B1C941A2e7a871Bfa242c40dbf032F',
|
|
574
|
-
MidnightSupplyCollateral: '0xC83C7Ca37203FC30636EDcd3Ef127194542504c5',
|
|
575
|
-
MidnightWithdrawCollateral: '0x4fA4DA5fDD813279409B4Bf0Bde5Fe9ca8006A9C',
|
|
576
|
-
MidnightView: '0x3aa272f329E8B562A3bA56Bb6979a44D23A28839',
|
|
577
578
|
},
|
|
578
579
|
[NETWORKS.linea.chainId]: {
|
|
579
580
|
// Basic
|
|
@@ -596,6 +597,7 @@ export const actionAddresses = {
|
|
|
596
597
|
// Flashloan
|
|
597
598
|
FLAction: '0x04ce4b2a9F524d976a8eD8a49B9313C5a2C3ccAD',
|
|
598
599
|
FLAaveV3: '0x04ce4b2a9F524d976a8eD8a49B9313C5a2C3ccAD',
|
|
600
|
+
FLAaveV3CarryDebt: '0x862E533198C9656B75bB6A5dDF0953F7ED5E8507',
|
|
599
601
|
// AaveV3
|
|
600
602
|
AaveV3Withdraw: '0xae56474aBe3C271579b513b6668864e39f65Ae15',
|
|
601
603
|
AaveV3Supply: '0x7dFF34190d0307fC234fc7E8C152C9715083eB02',
|
|
@@ -607,7 +609,7 @@ export const actionAddresses = {
|
|
|
607
609
|
AaveV3ATokenPayback: '0xedfc68e2874b0afc0963e18ae4d68522aec7f97d',
|
|
608
610
|
AaveV3View: '0xc9d6efa6e08b66a5cdc516bcd5807c2fa69e0f2a',
|
|
609
611
|
AaveV3DelegateWithSig: '0x169D6E128238ebabF86032Ae9da65938eaD7F69e',
|
|
610
|
-
AaveV3DelegateCredit: '
|
|
612
|
+
AaveV3DelegateCredit: '0x1bA6082D2ef1aB92a55B96264c72Eb8049C964Ce',
|
|
611
613
|
},
|
|
612
614
|
[NETWORKS.plasma.chainId]: {
|
|
613
615
|
// Basic
|
|
@@ -630,6 +632,7 @@ export const actionAddresses = {
|
|
|
630
632
|
// Flashloan
|
|
631
633
|
FLAction: '0x40C9ce603923AACD0b7407Ff0EE844c9C067cEB7',
|
|
632
634
|
FLAaveV3: '0x40C9ce603923AACD0b7407Ff0EE844c9C067cEB7',
|
|
635
|
+
FLAaveV3CarryDebt: '0x6Dc6C0e38fBd066b89Ba7E6f711B4288246891b3',
|
|
633
636
|
// AaveV3
|
|
634
637
|
AaveV3Withdraw: '0x4839d021A24820e57C31D386d430e2e82694F73B',
|
|
635
638
|
AaveV3Supply: '0x9D95de57631DD8Ac071892843DA67FEe52EA3962',
|
|
@@ -641,7 +644,7 @@ export const actionAddresses = {
|
|
|
641
644
|
AaveV3ATokenPayback: '0x425fA97285965E01Cc5F951B62A51F6CDEA5cc0d',
|
|
642
645
|
AaveV3View: '0xD8E67968d8a0df4beCf2D50daE1e34d4d80C701C',
|
|
643
646
|
AaveV3DelegateWithSig: '0x49658E0CF3883c338397C7257619B280dF581057',
|
|
644
|
-
AaveV3DelegateCredit: '
|
|
647
|
+
AaveV3DelegateCredit: '0x6F53fa9e7d1323d24515a51AB72Da3cf1E9883Bc',
|
|
645
648
|
// Fluid
|
|
646
649
|
FluidVaultT1Open: '0x491cc4AFbE0081C3464DeF1114ba27BE114b2401',
|
|
647
650
|
FluidVaultT1Adjust: '0xD37d4DB98E67305ef92f34886B25500500E04Aed',
|