@defisaver/sdk 1.3.23 → 1.3.24-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/actions/aaveV3/AaveV3DelegateCredit.d.ts +1 -1
- package/esm/src/actions/aaveV3/AaveV3DelegateCredit.js +1 -1
- package/esm/src/actions/basic/LimitSellAction.js +1 -1
- package/esm/src/actions/basic/LimitSellActionL2.d.ts +25 -0
- package/esm/src/actions/basic/LimitSellActionL2.js +65 -0
- package/esm/src/actions/basic/index.d.ts +1 -0
- package/esm/src/actions/basic/index.js +1 -0
- 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/flashloan/BalancerV3FlashLoanAction.d.ts +18 -0
- package/esm/src/actions/flashloan/BalancerV3FlashLoanAction.js +35 -0
- package/esm/src/actions/flashloan/SparkFlashLoanAction.d.ts +1 -1
- package/esm/src/actions/flashloan/SparkFlashLoanAction.js +1 -1
- package/esm/src/actions/flashloan/index.d.ts +1 -0
- package/esm/src/actions/flashloan/index.js +1 -0
- package/esm/src/addresses.d.ts +8 -8
- package/esm/src/addresses.js +18 -10
- package/esm/src/index.d.ts +32 -32
- package/package.json +1 -1
- package/src/actions/aaveV3/AaveV3DelegateCredit.ts +1 -1
- package/src/actions/basic/LimitSellAction.ts +1 -1
- package/src/actions/basic/LimitSellActionL2.ts +65 -0
- package/src/actions/basic/index.ts +1 -0
- 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/flashloan/BalancerV3FlashLoanAction.ts +49 -0
- package/src/actions/flashloan/SparkFlashLoanAction.ts +1 -1
- package/src/actions/flashloan/index.ts +1 -0
- package/src/addresses.ts +18 -10
- package/umd/index.js +937 -817
|
@@ -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]);
|
|
@@ -28,7 +28,7 @@ export class LimitSellAction extends ActionWithL2 {
|
|
|
28
28
|
*/
|
|
29
29
|
constructor(exchangeOrder, from, to, gasUsed, protocolFee = '0') {
|
|
30
30
|
requireAddress(to);
|
|
31
|
-
super('LimitSell', getAddr('
|
|
31
|
+
super('LimitSell', getAddr('Empty'), [
|
|
32
32
|
['address', 'address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'address', 'bytes', ['address', 'address', 'address', 'uint256', 'uint256', 'bytes']],
|
|
33
33
|
'address',
|
|
34
34
|
'address',
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ActionWithL2 } from '../../ActionWithL2';
|
|
2
|
+
import { EthAddress, uint256 } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Limit sell action used as part of the LimitSell Strategy on L2
|
|
5
|
+
*
|
|
6
|
+
* @category BasicActions
|
|
7
|
+
*/
|
|
8
|
+
export declare class LimitSellActionL2 extends ActionWithL2 {
|
|
9
|
+
protocolFee: string;
|
|
10
|
+
/**
|
|
11
|
+
* @param exchangeOrder Standard DFS Exchange data
|
|
12
|
+
* @param from Order sender
|
|
13
|
+
* @param to Order recipient
|
|
14
|
+
* @param gasUsed Amount of gas spent as part of the strategy
|
|
15
|
+
* @param l1GasCostInEth Additional tx cost for L1 in eth
|
|
16
|
+
* @param protocolFee 0x fee (amount of ETH in Wei)
|
|
17
|
+
*/
|
|
18
|
+
constructor(exchangeOrder: Array<any>, from: EthAddress, to: EthAddress, gasUsed: uint256, l1GasCostInEth: uint256, protocolFee?: string);
|
|
19
|
+
encodeInputs(): string;
|
|
20
|
+
getAssetsToApprove(): Promise<{
|
|
21
|
+
asset: any;
|
|
22
|
+
owner: any;
|
|
23
|
+
}[]>;
|
|
24
|
+
getEthValue(): Promise<string>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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 AbiCoder from 'web3-eth-abi';
|
|
11
|
+
import { getAssetInfoByAddress } from '@defisaver/tokens';
|
|
12
|
+
import ActionAbi from '../../abis/Action.json';
|
|
13
|
+
import { ActionWithL2 } from '../../ActionWithL2';
|
|
14
|
+
import { requireAddress } from '../../utils/general';
|
|
15
|
+
import { getAddr } from '../../addresses';
|
|
16
|
+
/**
|
|
17
|
+
* Limit sell action used as part of the LimitSell Strategy on L2
|
|
18
|
+
*
|
|
19
|
+
* @category BasicActions
|
|
20
|
+
*/
|
|
21
|
+
export class LimitSellActionL2 extends ActionWithL2 {
|
|
22
|
+
/**
|
|
23
|
+
* @param exchangeOrder Standard DFS Exchange data
|
|
24
|
+
* @param from Order sender
|
|
25
|
+
* @param to Order recipient
|
|
26
|
+
* @param gasUsed Amount of gas spent as part of the strategy
|
|
27
|
+
* @param l1GasCostInEth Additional tx cost for L1 in eth
|
|
28
|
+
* @param protocolFee 0x fee (amount of ETH in Wei)
|
|
29
|
+
*/
|
|
30
|
+
constructor(exchangeOrder, from, to, gasUsed, l1GasCostInEth, protocolFee = '0') {
|
|
31
|
+
requireAddress(to);
|
|
32
|
+
super('LimitSellL2', getAddr('Empty'), [
|
|
33
|
+
['address', 'address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'address', 'bytes', ['address', 'address', 'address', 'uint256', 'uint256', 'bytes']],
|
|
34
|
+
'address',
|
|
35
|
+
'address',
|
|
36
|
+
'uint256',
|
|
37
|
+
'uint256',
|
|
38
|
+
], [exchangeOrder, from, to, gasUsed, l1GasCostInEth]);
|
|
39
|
+
this.protocolFee = protocolFee;
|
|
40
|
+
this.mappableArgs = [
|
|
41
|
+
this.args[0][0],
|
|
42
|
+
this.args[0][1],
|
|
43
|
+
this.args[0][2],
|
|
44
|
+
this.args[1],
|
|
45
|
+
this.args[2],
|
|
46
|
+
];
|
|
47
|
+
}
|
|
48
|
+
encodeInputs() {
|
|
49
|
+
const executeActionDirectAbi = (ActionAbi.find(({ name }) => name === 'executeActionDirect'));
|
|
50
|
+
return AbiCoder.encodeFunctionCall(executeActionDirectAbi, this._encodeForCall());
|
|
51
|
+
}
|
|
52
|
+
getAssetsToApprove() {
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
const asset = getAssetInfoByAddress(this.args[0][0]);
|
|
55
|
+
if (asset.symbol !== 'ETH')
|
|
56
|
+
return [{ asset: this.args[0][0], owner: this.args[1] }];
|
|
57
|
+
return [];
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
getEthValue() {
|
|
61
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
+
return this.protocolFee || '0';
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -17,6 +17,7 @@ export * from './TransferNFTAction';
|
|
|
17
17
|
export * from './SendTokensAction';
|
|
18
18
|
export * from './CreateSubAction';
|
|
19
19
|
export * from './LSVSellAction';
|
|
20
|
+
export * from './LimitSellActionL2';
|
|
20
21
|
export * from './ApproveTokenAction';
|
|
21
22
|
export * from './SDaiWrapAction';
|
|
22
23
|
export * from './SDaiUnwrapAction';
|
|
@@ -17,6 +17,7 @@ export * from './TransferNFTAction';
|
|
|
17
17
|
export * from './SendTokensAction';
|
|
18
18
|
export * from './CreateSubAction';
|
|
19
19
|
export * from './LSVSellAction';
|
|
20
|
+
export * from './LimitSellActionL2';
|
|
20
21
|
export * from './ApproveTokenAction';
|
|
21
22
|
export * from './SDaiWrapAction';
|
|
22
23
|
export * from './SDaiUnwrapAction';
|
|
@@ -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
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { EthAddress, uint256, bytes } from '../../types';
|
|
3
|
+
import { FlashLoanId } from './FlashLoanId';
|
|
4
|
+
/**
|
|
5
|
+
* Gets a flashloan from BalancerV3
|
|
6
|
+
*
|
|
7
|
+
* @category Flashloans
|
|
8
|
+
*/
|
|
9
|
+
export declare class BalancerV3FlashLoanAction extends Action implements FlashLoanId {
|
|
10
|
+
flashLoanId: number;
|
|
11
|
+
/**
|
|
12
|
+
* @param tokens
|
|
13
|
+
* @param loanAmounts
|
|
14
|
+
* @param flParamGetterAddr
|
|
15
|
+
* @param flParamGetterData
|
|
16
|
+
*/
|
|
17
|
+
constructor(tokens: Array<EthAddress>, loanAmounts: Array<uint256>, flParamGetterAddr?: EthAddress, flParamGetterData?: bytes);
|
|
18
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { getAddr } from '../../addresses';
|
|
3
|
+
/**
|
|
4
|
+
* Gets a flashloan from BalancerV3
|
|
5
|
+
*
|
|
6
|
+
* @category Flashloans
|
|
7
|
+
*/
|
|
8
|
+
export class BalancerV3FlashLoanAction extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* @param tokens
|
|
11
|
+
* @param loanAmounts
|
|
12
|
+
* @param flParamGetterAddr
|
|
13
|
+
* @param flParamGetterData
|
|
14
|
+
*/
|
|
15
|
+
constructor(tokens, loanAmounts, flParamGetterAddr = getAddr('Empty'), flParamGetterData = []) {
|
|
16
|
+
super('FLAction', getAddr('FLAction'), [
|
|
17
|
+
'address[]',
|
|
18
|
+
'uint256[]',
|
|
19
|
+
'uint256[]',
|
|
20
|
+
'address',
|
|
21
|
+
'address',
|
|
22
|
+
'bytes',
|
|
23
|
+
'bytes',
|
|
24
|
+
], [
|
|
25
|
+
tokens,
|
|
26
|
+
loanAmounts,
|
|
27
|
+
[],
|
|
28
|
+
getAddr('Empty'),
|
|
29
|
+
flParamGetterAddr,
|
|
30
|
+
flParamGetterData,
|
|
31
|
+
[],
|
|
32
|
+
]);
|
|
33
|
+
this.flashLoanId = 10;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -9,8 +9,8 @@ import { FlashLoanId } from './FlashLoanId';
|
|
|
9
9
|
export declare class SparkFlashLoanAction 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
|
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;
|
|
@@ -287,7 +288,6 @@ export declare const actionAddresses: {
|
|
|
287
288
|
AaveV4DelegateWithdrawWithSig: string;
|
|
288
289
|
AaveV4DelegateBorrowWithSig: string;
|
|
289
290
|
AaveV4DelegateSetUsingAsCollateralWithSig: string;
|
|
290
|
-
AaveV3DelegateCredit?: undefined;
|
|
291
291
|
AaveV3RatioTrigger?: undefined;
|
|
292
292
|
GasFeeTakerL2?: undefined;
|
|
293
293
|
AaveV3RatioCheck?: undefined;
|
|
@@ -328,6 +328,7 @@ export declare const actionAddresses: {
|
|
|
328
328
|
FLAaveV3: string;
|
|
329
329
|
FLBalancer: string;
|
|
330
330
|
FLAction: string;
|
|
331
|
+
FLAaveV3CarryDebt: string;
|
|
331
332
|
AaveV3RatioTrigger: string;
|
|
332
333
|
GasFeeTakerL2: string;
|
|
333
334
|
AaveV3RatioCheck: string;
|
|
@@ -426,7 +427,6 @@ export declare const actionAddresses: {
|
|
|
426
427
|
CompGetDebt?: undefined;
|
|
427
428
|
CompCollateralSwitch?: undefined;
|
|
428
429
|
FLAaveV2?: undefined;
|
|
429
|
-
FLAaveV3CarryDebt?: undefined;
|
|
430
430
|
FLDyDx?: undefined;
|
|
431
431
|
FLMaker?: undefined;
|
|
432
432
|
FLSpark?: undefined;
|
|
@@ -616,6 +616,7 @@ export declare const actionAddresses: {
|
|
|
616
616
|
AaveV3Withdraw: string;
|
|
617
617
|
AaveV3ClaimRewards: string;
|
|
618
618
|
AaveV3DelegateWithSig: string;
|
|
619
|
+
AaveV3DelegateCredit: string;
|
|
619
620
|
CompV3Allow: string;
|
|
620
621
|
CompV3Borrow: string;
|
|
621
622
|
CompV3Claim: string;
|
|
@@ -629,6 +630,7 @@ export declare const actionAddresses: {
|
|
|
629
630
|
FLUniV3: string;
|
|
630
631
|
FLAction: string;
|
|
631
632
|
FLMorphoBlue: string;
|
|
633
|
+
FLAaveV3CarryDebt: string;
|
|
632
634
|
GasFeeTakerL2: string;
|
|
633
635
|
AaveV3RatioCheck: string;
|
|
634
636
|
UniCollectV3: string;
|
|
@@ -752,7 +754,6 @@ export declare const actionAddresses: {
|
|
|
752
754
|
CompGetDebt?: undefined;
|
|
753
755
|
CompCollateralSwitch?: undefined;
|
|
754
756
|
FLAaveV2?: undefined;
|
|
755
|
-
FLAaveV3CarryDebt?: undefined;
|
|
756
757
|
FLDyDx?: undefined;
|
|
757
758
|
FLMaker?: undefined;
|
|
758
759
|
FLSpark?: undefined;
|
|
@@ -874,7 +875,6 @@ export declare const actionAddresses: {
|
|
|
874
875
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
875
876
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
876
877
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
877
|
-
AaveV3DelegateCredit?: undefined;
|
|
878
878
|
AaveV3RatioTrigger?: undefined;
|
|
879
879
|
} | {
|
|
880
880
|
DFSSell: string;
|
|
@@ -902,6 +902,7 @@ export declare const actionAddresses: {
|
|
|
902
902
|
FLUniV3: string;
|
|
903
903
|
FLAction: string;
|
|
904
904
|
FLMorphoBlue: string;
|
|
905
|
+
FLAaveV3CarryDebt: string;
|
|
905
906
|
AaveV3Withdraw: string;
|
|
906
907
|
AaveV3SwapBorrowRateMode: string;
|
|
907
908
|
AaveV3Supply: string;
|
|
@@ -913,6 +914,7 @@ export declare const actionAddresses: {
|
|
|
913
914
|
AaveV3ATokenPayback: string;
|
|
914
915
|
AaveV3View: string;
|
|
915
916
|
AaveV3DelegateWithSig: string;
|
|
917
|
+
AaveV3DelegateCredit: string;
|
|
916
918
|
CompV3Allow: string;
|
|
917
919
|
CompV3Borrow: string;
|
|
918
920
|
CompV3Claim: string;
|
|
@@ -1027,7 +1029,6 @@ export declare const actionAddresses: {
|
|
|
1027
1029
|
CompCollateralSwitch?: undefined;
|
|
1028
1030
|
FLAaveV2?: undefined;
|
|
1029
1031
|
FLAaveV3NoFee?: undefined;
|
|
1030
|
-
FLAaveV3CarryDebt?: undefined;
|
|
1031
1032
|
FLDyDx?: undefined;
|
|
1032
1033
|
FLMaker?: undefined;
|
|
1033
1034
|
FLSpark?: undefined;
|
|
@@ -1165,7 +1166,6 @@ export declare const actionAddresses: {
|
|
|
1165
1166
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
1166
1167
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
1167
1168
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
1168
|
-
AaveV3DelegateCredit?: undefined;
|
|
1169
1169
|
AaveV3RatioTrigger?: undefined;
|
|
1170
1170
|
AaveV3RatioCheck?: undefined;
|
|
1171
1171
|
} | {
|
|
@@ -1187,6 +1187,7 @@ export declare const actionAddresses: {
|
|
|
1187
1187
|
TokenizedVaultAdapter: string;
|
|
1188
1188
|
FLAction: string;
|
|
1189
1189
|
FLAaveV3: string;
|
|
1190
|
+
FLAaveV3CarryDebt: string;
|
|
1190
1191
|
AaveV3Withdraw: string;
|
|
1191
1192
|
AaveV3Supply: string;
|
|
1192
1193
|
AaveV3SetEMode: string;
|
|
@@ -1283,7 +1284,6 @@ export declare const actionAddresses: {
|
|
|
1283
1284
|
CompCollateralSwitch?: undefined;
|
|
1284
1285
|
FLAaveV2?: undefined;
|
|
1285
1286
|
FLAaveV3NoFee?: undefined;
|
|
1286
|
-
FLAaveV3CarryDebt?: undefined;
|
|
1287
1287
|
FLDyDx?: undefined;
|
|
1288
1288
|
FLMaker?: undefined;
|
|
1289
1289
|
FLBalancer?: undefined;
|
|
@@ -1479,6 +1479,7 @@ export declare const actionAddresses: {
|
|
|
1479
1479
|
TokenizedVaultAdapter: string;
|
|
1480
1480
|
FLAction: string;
|
|
1481
1481
|
FLAaveV3: string;
|
|
1482
|
+
FLAaveV3CarryDebt: string;
|
|
1482
1483
|
AaveV3Withdraw: string;
|
|
1483
1484
|
AaveV3Supply: string;
|
|
1484
1485
|
AaveV3SetEMode: string;
|
|
@@ -1588,7 +1589,6 @@ export declare const actionAddresses: {
|
|
|
1588
1589
|
CompCollateralSwitch?: undefined;
|
|
1589
1590
|
FLAaveV2?: undefined;
|
|
1590
1591
|
FLAaveV3NoFee?: undefined;
|
|
1591
|
-
FLAaveV3CarryDebt?: undefined;
|
|
1592
1592
|
FLDyDx?: undefined;
|
|
1593
1593
|
FLMaker?: undefined;
|
|
1594
1594
|
FLBalancer?: undefined;
|
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',
|
|
@@ -363,12 +364,13 @@ export const actionAddresses = {
|
|
|
363
364
|
AaveV3Withdraw: '0xf19d045f6cFc04A5Ee5E0e8837b565b9f276e3F7',
|
|
364
365
|
AaveV3ClaimRewards: '0xBE8e8cea67085F869C1C0040fD52F9F3115E962e',
|
|
365
366
|
AaveV3DelegateWithSig: '0x8dd05d32fB05E8c3e8F37294e6f2d13e5823a712',
|
|
366
|
-
AaveV3DelegateCredit: '
|
|
367
|
+
AaveV3DelegateCredit: '0x11E7B19195a76D2E5A4863cf6cbE8030443c729A',
|
|
367
368
|
// flashloan
|
|
368
369
|
FLAaveV3NoFee: '0xfbcF23D2BeF8A2C491cfa4dD409D8dF12d431c85',
|
|
369
370
|
FLAaveV3: '0x8A07E93d2B74A80D726eE4E4A0aC1F906aB5Cc63',
|
|
370
371
|
FLBalancer: '0x79d6bf536b8DD65909a3174C87eA6395310d5c41',
|
|
371
372
|
FLAction: '0xB57b666dAB46229e2b80113b5187F6DCD91AB159',
|
|
373
|
+
FLAaveV3CarryDebt: '0x4ab7a392aF23215A9049A64F3B2d44726aD2D6fe',
|
|
372
374
|
AaveV3RatioTrigger: '0xB76e3f7694589D0f34ba43b17AD0D15350Ab5f85',
|
|
373
375
|
GasFeeTakerL2: '0xB3dB299622A9DB0E944ccda2Ef899d6fF365B082',
|
|
374
376
|
AaveV3RatioCheck: '0x7A36779a7b5F1128B28932604057d5b63361297c',
|
|
@@ -425,6 +427,7 @@ export const actionAddresses = {
|
|
|
425
427
|
AaveV3Withdraw: '0xbf492F869DdB1A18BB4F41b6c3059D9f882Fe7ff',
|
|
426
428
|
AaveV3ClaimRewards: '0x3a4d72Ed2a47a409a82ba61f0fca1C749Ea8aB66',
|
|
427
429
|
AaveV3DelegateWithSig: '0xFF2CE05250d1880f0f45ea8fB453292CABA42F12',
|
|
430
|
+
AaveV3DelegateCredit: '0x8C13353e3DA67d3171D6F73751E3caa791a3AACD',
|
|
428
431
|
// CompV3
|
|
429
432
|
CompV3Allow: '0x0380E8e13CdE0499c720999930CaA07A5744887c',
|
|
430
433
|
CompV3Borrow: '0x1C0eCc794fDA7c29aBd19E0b2F7dA166C237d616',
|
|
@@ -440,6 +443,7 @@ export const actionAddresses = {
|
|
|
440
443
|
FLUniV3: '0xf041C72e201CD7d04a240fe06c5783E2Ee2D92b3',
|
|
441
444
|
FLAction: '0xf041C72e201CD7d04a240fe06c5783E2Ee2D92b3',
|
|
442
445
|
FLMorphoBlue: '0xf041C72e201CD7d04a240fe06c5783E2Ee2D92b3',
|
|
446
|
+
FLAaveV3CarryDebt: '0xEc6Db90d9EFa7cD75d5b716896A497e9d9103D5b',
|
|
443
447
|
GasFeeTakerL2: '0x2F64f73B222B4978CAfd0295c0fa106cE5f34996',
|
|
444
448
|
AaveV3RatioCheck: '0x4a5c2cbCFB921b596Dec049389899CC8Eb4678ED',
|
|
445
449
|
// uniswap V3
|
|
@@ -518,6 +522,7 @@ export const actionAddresses = {
|
|
|
518
522
|
FLUniV3: '0x1bA6082D2ef1aB92a55B96264c72Eb8049C964Ce',
|
|
519
523
|
FLAction: '0x87Af4769e4134379125A262408e1f3EC60d2Ab52',
|
|
520
524
|
FLMorphoBlue: '0x87Af4769e4134379125A262408e1f3EC60d2Ab52',
|
|
525
|
+
FLAaveV3CarryDebt: '0x760e97862DD8652e5BB8b4D8ad9C99a74BBe7E7A',
|
|
521
526
|
// AaveV3
|
|
522
527
|
AaveV3Withdraw: '0x1d2Fa7dAcC660A9124c3685EE8a6E699d10409Eb',
|
|
523
528
|
AaveV3SwapBorrowRateMode: '0x9d1D7A0dD5e82cCe9CC131eC0C807B0F543be70e',
|
|
@@ -530,6 +535,7 @@ export const actionAddresses = {
|
|
|
530
535
|
AaveV3ATokenPayback: '0x3D57875885e3cEe9E56Cb65D21789893B6e67815',
|
|
531
536
|
AaveV3View: '0xf140B2904beb743C2f17e0b5f766074212a7e243',
|
|
532
537
|
AaveV3DelegateWithSig: '0x9e295AFaC75E7843b88a563D119FD953EDf441c2',
|
|
538
|
+
AaveV3DelegateCredit: '0xF85aD63c513A76a1dc05B2AddC4777F17336c7e9',
|
|
533
539
|
// CompV3
|
|
534
540
|
CompV3Allow: '0x3Fe56B85BBcD759459408Bd8434c37bac93e26bF',
|
|
535
541
|
CompV3Borrow: '0x74346bf868Dc9201922A7F7DD26917F7BF5F0f3b',
|
|
@@ -588,8 +594,9 @@ export const actionAddresses = {
|
|
|
588
594
|
TransferNFT: '0xAC17f651591f417934EeA04CF6629584Eb50A4bB',
|
|
589
595
|
TokenizedVaultAdapter: '0x1155BF929D78F1DeF999ACedE1867f79A7C66066',
|
|
590
596
|
// Flashloan
|
|
591
|
-
FLAction: '
|
|
592
|
-
FLAaveV3: '
|
|
597
|
+
FLAction: '0x04ce4b2a9F524d976a8eD8a49B9313C5a2C3ccAD',
|
|
598
|
+
FLAaveV3: '0x04ce4b2a9F524d976a8eD8a49B9313C5a2C3ccAD',
|
|
599
|
+
FLAaveV3CarryDebt: '0x862E533198C9656B75bB6A5dDF0953F7ED5E8507',
|
|
593
600
|
// AaveV3
|
|
594
601
|
AaveV3Withdraw: '0xae56474aBe3C271579b513b6668864e39f65Ae15',
|
|
595
602
|
AaveV3Supply: '0x7dFF34190d0307fC234fc7E8C152C9715083eB02',
|
|
@@ -601,7 +608,7 @@ export const actionAddresses = {
|
|
|
601
608
|
AaveV3ATokenPayback: '0xedfc68e2874b0afc0963e18ae4d68522aec7f97d',
|
|
602
609
|
AaveV3View: '0xc9d6efa6e08b66a5cdc516bcd5807c2fa69e0f2a',
|
|
603
610
|
AaveV3DelegateWithSig: '0x169D6E128238ebabF86032Ae9da65938eaD7F69e',
|
|
604
|
-
AaveV3DelegateCredit: '
|
|
611
|
+
AaveV3DelegateCredit: '0x1bA6082D2ef1aB92a55B96264c72Eb8049C964Ce',
|
|
605
612
|
},
|
|
606
613
|
[NETWORKS.plasma.chainId]: {
|
|
607
614
|
// Basic
|
|
@@ -622,8 +629,9 @@ export const actionAddresses = {
|
|
|
622
629
|
TransferNFT: '0x6d1722AE426FF9f509726bdA037d5203d83e7818',
|
|
623
630
|
TokenizedVaultAdapter: '0x75198244Ad7b3ebFCbFd67e6e06B1452bd6Fa831',
|
|
624
631
|
// Flashloan
|
|
625
|
-
FLAction: '
|
|
626
|
-
FLAaveV3: '
|
|
632
|
+
FLAction: '0x40C9ce603923AACD0b7407Ff0EE844c9C067cEB7',
|
|
633
|
+
FLAaveV3: '0x40C9ce603923AACD0b7407Ff0EE844c9C067cEB7',
|
|
634
|
+
FLAaveV3CarryDebt: '0x6Dc6C0e38fBd066b89Ba7E6f711B4288246891b3',
|
|
627
635
|
// AaveV3
|
|
628
636
|
AaveV3Withdraw: '0x4839d021A24820e57C31D386d430e2e82694F73B',
|
|
629
637
|
AaveV3Supply: '0x9D95de57631DD8Ac071892843DA67FEe52EA3962',
|
|
@@ -635,7 +643,7 @@ export const actionAddresses = {
|
|
|
635
643
|
AaveV3ATokenPayback: '0x425fA97285965E01Cc5F951B62A51F6CDEA5cc0d',
|
|
636
644
|
AaveV3View: '0xD8E67968d8a0df4beCf2D50daE1e34d4d80C701C',
|
|
637
645
|
AaveV3DelegateWithSig: '0x49658E0CF3883c338397C7257619B280dF581057',
|
|
638
|
-
AaveV3DelegateCredit: '
|
|
646
|
+
AaveV3DelegateCredit: '0x6F53fa9e7d1323d24515a51AB72Da3cf1E9883Bc',
|
|
639
647
|
// Fluid
|
|
640
648
|
FluidVaultT1Open: '0x491cc4AFbE0081C3464DeF1114ba27BE114b2401',
|
|
641
649
|
FluidVaultT1Adjust: '0xD37d4DB98E67305ef92f34886B25500500E04Aed',
|
|
@@ -707,7 +715,7 @@ export const otherAddresses = {
|
|
|
707
715
|
Empty: '0x0000000000000000000000000000000000000000',
|
|
708
716
|
},
|
|
709
717
|
[NETWORKS.linea.chainId]: {
|
|
710
|
-
RecipeExecutor: '
|
|
718
|
+
RecipeExecutor: '0x903F7C93FFC4AAbaBB096a7A722F1f057816B399',
|
|
711
719
|
DFSRegistry: '0x09fBeC68D216667C3262211D2E5609578951dCE0',
|
|
712
720
|
DSGuardFactory: '0x02a516861f41262f22617511d00b6fccab65f762',
|
|
713
721
|
AdminVault: '0x71a9ef13c960c2f1dd17962d3592a5bcdfad6de0',
|
|
@@ -715,7 +723,7 @@ export const otherAddresses = {
|
|
|
715
723
|
Empty: '0x0000000000000000000000000000000000000000',
|
|
716
724
|
},
|
|
717
725
|
[NETWORKS.plasma.chainId]: {
|
|
718
|
-
RecipeExecutor: '
|
|
726
|
+
RecipeExecutor: '0xe1315EE74E2A3057c0ede9E0E2cf30b3ee3ad121',
|
|
719
727
|
DFSRegistry: '0x44e98bB58d725F2eF93a195F518b335dCB784c78',
|
|
720
728
|
AdminVault: '0x6AB90ff536f0E2a880DbCdef1bB665C2acC0eDdC',
|
|
721
729
|
DefisaverLogger: '0x02a516861f41262F22617511d00B6FCcAb65f762',
|