@defisaver/sdk 1.0.65 → 1.0.66-dev-1
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/basic/ExecuteSafeTxAction.d.ts +23 -0
- package/esm/src/actions/basic/ExecuteSafeTxAction.js +60 -0
- package/esm/src/actions/basic/LimitSellAction.d.ts +24 -0
- package/esm/src/actions/basic/LimitSellAction.js +63 -0
- package/esm/src/actions/basic/RemoveTokenApprovalAction.d.ts +15 -0
- package/esm/src/actions/{llamalend/LlamaLendSelfLiquidateAction.js → basic/RemoveTokenApprovalAction.js} +19 -15
- package/esm/src/actions/basic/index.d.ts +3 -0
- package/esm/src/actions/basic/index.js +3 -0
- package/esm/src/actions/checkers/index.d.ts +0 -1
- package/esm/src/actions/checkers/index.js +0 -1
- package/esm/src/actions/index.d.ts +1 -2
- package/esm/src/actions/index.js +1 -2
- package/esm/src/actions/maker/MakerGiveAction.d.ts +1 -2
- package/esm/src/actions/maker/MakerGiveAction.js +2 -3
- package/esm/src/addresses.d.ts +3 -27
- package/esm/src/addresses.js +3 -13
- package/esm/src/index.d.ts +12 -108
- package/esm/src/triggers/OffchainPriceTrigger.d.ts +10 -0
- package/esm/src/triggers/OffchainPriceTrigger.js +12 -0
- package/esm/src/triggers/index.d.ts +1 -1
- package/esm/src/triggers/index.js +1 -1
- package/esm/src/utils/index.d.ts +1 -2
- package/esm/src/utils/index.js +1 -2
- package/package.json +1 -1
- package/src/actions/basic/ExecuteSafeTxAction.ts +85 -0
- package/src/actions/basic/LimitSellAction.ts +63 -0
- package/src/actions/basic/RemoveTokenApprovalAction.ts +39 -0
- package/src/actions/basic/WrapEthAction.ts +4 -3
- package/src/actions/basic/index.ts +3 -0
- package/src/actions/index.ts +0 -2
- package/src/actions/maker/MakerGiveAction.ts +2 -3
- package/src/addresses.ts +3 -11
- package/src/triggers/OffchainPriceTrigger.ts +14 -0
- package/src/triggers/index.ts +2 -0
- package/src/utils/index.ts +0 -2
- package/umd/index.js +631 -821
- package/esm/src/actions/checkers/MorphoBlueRatioCheckAction.d.ts +0 -20
- package/esm/src/actions/checkers/MorphoBlueRatioCheckAction.js +0 -32
- package/esm/src/actions/llamalend/LlamaLendBorrowAction.d.ts +0 -15
- package/esm/src/actions/llamalend/LlamaLendBorrowAction.js +0 -22
- package/esm/src/actions/llamalend/LlamaLendCreateAction.d.ts +0 -22
- package/esm/src/actions/llamalend/LlamaLendCreateAction.js +0 -44
- package/esm/src/actions/llamalend/LlamaLendPaybackAction.d.ts +0 -22
- package/esm/src/actions/llamalend/LlamaLendPaybackAction.js +0 -43
- package/esm/src/actions/llamalend/LlamaLendSelfLiquidateAction.d.ts +0 -19
- package/esm/src/actions/llamalend/LlamaLendSupplyAction.d.ts +0 -20
- package/esm/src/actions/llamalend/LlamaLendSupplyAction.js +0 -40
- package/esm/src/actions/llamalend/LlamaLendWithdrawAction.d.ts +0 -15
- package/esm/src/actions/llamalend/LlamaLendWithdrawAction.js +0 -22
- package/esm/src/actions/llamalend/index.d.ts +0 -6
- package/esm/src/actions/llamalend/index.js +0 -6
- package/esm/src/triggers/MorphoBlueRatioTrigger.d.ts +0 -10
- package/esm/src/triggers/MorphoBlueRatioTrigger.js +0 -12
- package/esm/src/utils/llamalend-utils.d.ts +0 -10
- package/esm/src/utils/llamalend-utils.js +0 -10
- package/src/actions/llamalend/LlamaLendBorrowAction.ts +0 -34
- package/src/actions/llamalend/LlamaLendCreateAction.ts +0 -49
- package/src/actions/llamalend/LlamaLendPaybackAction.ts +0 -48
- package/src/actions/llamalend/LlamaLendSelfLiquidateAction.ts +0 -41
- package/src/actions/llamalend/LlamaLendSupplyAction.ts +0 -44
- package/src/actions/llamalend/LlamaLendWithdrawAction.ts +0 -34
- package/src/actions/llamalend/index.ts +0 -6
- package/src/utils/llamalend-utils.ts +0 -11
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { EthAddress, bytes, uint256, uint8 } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* ExecuteSafeTxAction - Execute Safe transaction
|
|
5
|
+
*
|
|
6
|
+
* @category BasicActions
|
|
7
|
+
*/
|
|
8
|
+
export declare class ExecuteSafeTxAction extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* @param safe Address of the Safe wallet
|
|
11
|
+
* @param to Destination address of Safe transaction
|
|
12
|
+
* @param value Ether value of Safe transaction
|
|
13
|
+
* @param data Data payload of Safe transaction
|
|
14
|
+
* @param operation Operation type of Safe transaction. 0 = call, 1 = delegateCall
|
|
15
|
+
* @param safeTxGas Gas that should be used for the Safe transaction
|
|
16
|
+
* @param baseGas Gas costs that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)
|
|
17
|
+
* @param gasPrice Gas price that should be used for the payment calculation
|
|
18
|
+
* @param gasToken Token address (or 0 if ETH) that is used for the payment
|
|
19
|
+
* @param refundReceiver Address of receiver of gas payment (or 0 if tx.origin
|
|
20
|
+
* @param signatures Packed signature data ({bytes32 r}{bytes32 s}{uint8 v})
|
|
21
|
+
*/
|
|
22
|
+
constructor(safe: EthAddress, to: EthAddress, value: uint256, data: bytes, operation: uint8, safeTxGas: uint256, baseGas: uint256, gasPrice: uint256, gasToken: EthAddress, refundReceiver: EthAddress, signatures: bytes);
|
|
23
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { getAddr } from '../../addresses';
|
|
3
|
+
/**
|
|
4
|
+
* ExecuteSafeTxAction - Execute Safe transaction
|
|
5
|
+
*
|
|
6
|
+
* @category BasicActions
|
|
7
|
+
*/
|
|
8
|
+
export class ExecuteSafeTxAction extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* @param safe Address of the Safe wallet
|
|
11
|
+
* @param to Destination address of Safe transaction
|
|
12
|
+
* @param value Ether value of Safe transaction
|
|
13
|
+
* @param data Data payload of Safe transaction
|
|
14
|
+
* @param operation Operation type of Safe transaction. 0 = call, 1 = delegateCall
|
|
15
|
+
* @param safeTxGas Gas that should be used for the Safe transaction
|
|
16
|
+
* @param baseGas Gas costs that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)
|
|
17
|
+
* @param gasPrice Gas price that should be used for the payment calculation
|
|
18
|
+
* @param gasToken Token address (or 0 if ETH) that is used for the payment
|
|
19
|
+
* @param refundReceiver Address of receiver of gas payment (or 0 if tx.origin
|
|
20
|
+
* @param signatures Packed signature data ({bytes32 r}{bytes32 s}{uint8 v})
|
|
21
|
+
*/
|
|
22
|
+
constructor(safe, to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, signatures) {
|
|
23
|
+
super('ExecuteSafeTx', getAddr('ExecuteSafeTx'), [
|
|
24
|
+
'address',
|
|
25
|
+
'address',
|
|
26
|
+
'uint256',
|
|
27
|
+
'bytes',
|
|
28
|
+
'uint8',
|
|
29
|
+
'uint256',
|
|
30
|
+
'uint256',
|
|
31
|
+
'uint256',
|
|
32
|
+
'address',
|
|
33
|
+
'address',
|
|
34
|
+
'bytes',
|
|
35
|
+
], [
|
|
36
|
+
safe,
|
|
37
|
+
to,
|
|
38
|
+
value,
|
|
39
|
+
data,
|
|
40
|
+
operation,
|
|
41
|
+
safeTxGas,
|
|
42
|
+
baseGas,
|
|
43
|
+
gasPrice,
|
|
44
|
+
gasToken,
|
|
45
|
+
refundReceiver,
|
|
46
|
+
signatures,
|
|
47
|
+
]);
|
|
48
|
+
this.mappableArgs = [
|
|
49
|
+
this.args[0],
|
|
50
|
+
this.args[1],
|
|
51
|
+
this.args[2],
|
|
52
|
+
this.args[4],
|
|
53
|
+
this.args[5],
|
|
54
|
+
this.args[6],
|
|
55
|
+
this.args[7],
|
|
56
|
+
this.args[8],
|
|
57
|
+
this.args[9],
|
|
58
|
+
];
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ActionWithL2 } from '../../ActionWithL2';
|
|
2
|
+
import { EthAddress, uint256 } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Limit sell action used as part of the LimitSell Strategy
|
|
5
|
+
*
|
|
6
|
+
* @category BasicActions
|
|
7
|
+
*/
|
|
8
|
+
export declare class LimitSellAction 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 protocolFee 0x fee (amount of ETH in Wei)
|
|
16
|
+
*/
|
|
17
|
+
constructor(exchangeOrder: Array<any>, from: EthAddress, to: EthAddress, gasUsed: uint256, protocolFee?: string);
|
|
18
|
+
encodeInputs(): string;
|
|
19
|
+
getAssetsToApprove(): Promise<{
|
|
20
|
+
asset: any;
|
|
21
|
+
owner: any;
|
|
22
|
+
}[]>;
|
|
23
|
+
getEthValue(): Promise<string>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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
|
|
18
|
+
*
|
|
19
|
+
* @category BasicActions
|
|
20
|
+
*/
|
|
21
|
+
export class LimitSellAction 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 protocolFee 0x fee (amount of ETH in Wei)
|
|
28
|
+
*/
|
|
29
|
+
constructor(exchangeOrder, from, to, gasUsed, protocolFee = '0') {
|
|
30
|
+
requireAddress(to);
|
|
31
|
+
super('LimitSell', getAddr('LimitSell'), [
|
|
32
|
+
['address', 'address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'address', 'bytes', ['address', 'address', 'address', 'uint256', 'uint256', 'bytes']],
|
|
33
|
+
'address',
|
|
34
|
+
'address',
|
|
35
|
+
'uint256',
|
|
36
|
+
], [exchangeOrder, from, to, gasUsed]);
|
|
37
|
+
this.protocolFee = protocolFee;
|
|
38
|
+
this.mappableArgs = [
|
|
39
|
+
this.args[0][0],
|
|
40
|
+
this.args[0][1],
|
|
41
|
+
this.args[0][2],
|
|
42
|
+
this.args[1],
|
|
43
|
+
this.args[2],
|
|
44
|
+
];
|
|
45
|
+
}
|
|
46
|
+
encodeInputs() {
|
|
47
|
+
const executeActionDirectAbi = (ActionAbi.find(({ name }) => name === 'executeActionDirect'));
|
|
48
|
+
return AbiCoder.encodeFunctionCall(executeActionDirectAbi, this._encodeForCall());
|
|
49
|
+
}
|
|
50
|
+
getAssetsToApprove() {
|
|
51
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
+
const asset = getAssetInfoByAddress(this.args[0][0]);
|
|
53
|
+
if (asset.symbol !== 'ETH')
|
|
54
|
+
return [{ asset: this.args[0][0], owner: this.args[1] }];
|
|
55
|
+
return [];
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
getEthValue() {
|
|
59
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
60
|
+
return this.protocolFee || '0';
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { EthAddress } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Remove approval for a spender to pull tokens from user wallet
|
|
5
|
+
*
|
|
6
|
+
* @category BasicActions
|
|
7
|
+
*/
|
|
8
|
+
export declare class RemoveTokenApprovalAction extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* @param token Token address
|
|
11
|
+
* @param spender Spender address
|
|
12
|
+
*/
|
|
13
|
+
constructor(token: EthAddress, spender: EthAddress);
|
|
14
|
+
getAssetsToApprove(): Promise<never[]>;
|
|
15
|
+
}
|
|
@@ -7,32 +7,36 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
+
import { requireAddress } from '../../utils/general';
|
|
10
11
|
import { Action } from '../../Action';
|
|
11
12
|
import { getAddr } from '../../addresses';
|
|
12
|
-
import { controllerToDebtAssetMap } from '../../utils/llamalend-utils';
|
|
13
13
|
/**
|
|
14
|
+
* Remove approval for a spender to pull tokens from user wallet
|
|
14
15
|
*
|
|
15
|
-
* @category
|
|
16
|
+
* @category BasicActions
|
|
16
17
|
*/
|
|
17
|
-
export class
|
|
18
|
+
export class RemoveTokenApprovalAction extends Action {
|
|
18
19
|
/**
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
* @param token Token address
|
|
21
|
+
* @param spender Spender address
|
|
22
|
+
*/
|
|
23
|
+
constructor(token, spender) {
|
|
24
|
+
requireAddress(spender);
|
|
25
|
+
super('RemoveTokenApproval', getAddr('RemoveTokenApproval'), [
|
|
26
|
+
'address',
|
|
27
|
+
'address',
|
|
28
|
+
], [
|
|
29
|
+
token,
|
|
30
|
+
spender,
|
|
31
|
+
]);
|
|
26
32
|
this.mappableArgs = [
|
|
27
|
-
|
|
33
|
+
this.args[0],
|
|
34
|
+
this.args[1],
|
|
28
35
|
];
|
|
29
36
|
}
|
|
30
37
|
getAssetsToApprove() {
|
|
31
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
-
return [
|
|
33
|
-
owner: this.args[2],
|
|
34
|
-
asset: controllerToDebtAssetMap[this.args[0]],
|
|
35
|
-
}];
|
|
39
|
+
return [];
|
|
36
40
|
});
|
|
37
41
|
}
|
|
38
42
|
}
|
|
@@ -24,3 +24,6 @@ export * from './TokenizedVaultAdapterDepositAction';
|
|
|
24
24
|
export * from './TokenizedVaultAdapterMintAction';
|
|
25
25
|
export * from './TokenizedVaultAdapterRedeemAction';
|
|
26
26
|
export * from './TokenizedVaultAdapterWithdrawAction';
|
|
27
|
+
export * from './LimitSellAction';
|
|
28
|
+
export * from './ExecuteSafeTxAction';
|
|
29
|
+
export * from './RemoveTokenApprovalAction';
|
|
@@ -24,3 +24,6 @@ export * from './TokenizedVaultAdapterDepositAction';
|
|
|
24
24
|
export * from './TokenizedVaultAdapterMintAction';
|
|
25
25
|
export * from './TokenizedVaultAdapterRedeemAction';
|
|
26
26
|
export * from './TokenizedVaultAdapterWithdrawAction';
|
|
27
|
+
export * from './LimitSellAction';
|
|
28
|
+
export * from './ExecuteSafeTxAction';
|
|
29
|
+
export * from './RemoveTokenApprovalAction';
|
|
@@ -27,5 +27,4 @@ import * as lsv from './lsv';
|
|
|
27
27
|
import * as curveusd from './curveusd';
|
|
28
28
|
import * as spark from './spark';
|
|
29
29
|
import * as morphoblue from './morpho-blue';
|
|
30
|
-
|
|
31
|
-
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, llamalend, };
|
|
30
|
+
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, };
|
package/esm/src/actions/index.js
CHANGED
|
@@ -27,5 +27,4 @@ import * as lsv from './lsv';
|
|
|
27
27
|
import * as curveusd from './curveusd';
|
|
28
28
|
import * as spark from './spark';
|
|
29
29
|
import * as morphoblue from './morpho-blue';
|
|
30
|
-
|
|
31
|
-
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, llamalend, };
|
|
30
|
+
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, };
|
|
@@ -9,8 +9,7 @@ export declare class MakerGiveAction extends Action {
|
|
|
9
9
|
/**
|
|
10
10
|
* @param vaultId
|
|
11
11
|
* @param newOwner
|
|
12
|
-
* @param createProxy
|
|
13
12
|
* @param mcdManager
|
|
14
13
|
*/
|
|
15
|
-
constructor(vaultId: uint256, newOwner: EthAddress,
|
|
14
|
+
constructor(vaultId: uint256, newOwner: EthAddress, mcdManager?: EthAddress);
|
|
16
15
|
}
|
|
@@ -10,12 +10,11 @@ export class MakerGiveAction extends Action {
|
|
|
10
10
|
/**
|
|
11
11
|
* @param vaultId
|
|
12
12
|
* @param newOwner
|
|
13
|
-
* @param createProxy
|
|
14
13
|
* @param mcdManager
|
|
15
14
|
*/
|
|
16
|
-
constructor(vaultId, newOwner,
|
|
15
|
+
constructor(vaultId, newOwner, mcdManager = getAddr('McdCdpManager')) {
|
|
17
16
|
requireAddress(newOwner);
|
|
18
|
-
super('McdGive', getAddr('McdGive'), ['uint256', 'address', '
|
|
17
|
+
super('McdGive', getAddr('McdGive'), ['uint256', 'address', 'address'], [vaultId, newOwner, mcdManager]);
|
|
19
18
|
this.mappableArgs = [
|
|
20
19
|
this.args[0],
|
|
21
20
|
this.args[1],
|
package/esm/src/addresses.d.ts
CHANGED
|
@@ -191,12 +191,6 @@ export declare const actionAddresses: {
|
|
|
191
191
|
MorphoBluePayback: string;
|
|
192
192
|
MorphoBlueSetAuth: string;
|
|
193
193
|
MorphoBlueSetAuthWithSig: string;
|
|
194
|
-
LlamaLendCreate: string;
|
|
195
|
-
LlamaLendSupply: string;
|
|
196
|
-
LlamaLendBorrow: string;
|
|
197
|
-
LlamaLendWithdraw: string;
|
|
198
|
-
LlamaLendPayback: string;
|
|
199
|
-
LlamaLendSelfLiquidate: string;
|
|
200
194
|
AaveV3DelegateCredit?: undefined;
|
|
201
195
|
AaveV3RatioTrigger?: undefined;
|
|
202
196
|
GasFeeTakerL2?: undefined;
|
|
@@ -212,7 +206,6 @@ export declare const actionAddresses: {
|
|
|
212
206
|
ToggleSub: string;
|
|
213
207
|
TokenBalance: string;
|
|
214
208
|
TokenizedVaultAdapter: string;
|
|
215
|
-
ChangeProxyOwner: string;
|
|
216
209
|
AaveV3ATokenPayback: string;
|
|
217
210
|
AaveV3Borrow: string;
|
|
218
211
|
AaveV3CollateralSwitch: string;
|
|
@@ -237,6 +230,7 @@ export declare const actionAddresses: {
|
|
|
237
230
|
UniCreatePoolV3: string;
|
|
238
231
|
SumInputs?: undefined;
|
|
239
232
|
SubInputs?: undefined;
|
|
233
|
+
ChangeProxyOwner?: undefined;
|
|
240
234
|
AutomationV2Unsub?: undefined;
|
|
241
235
|
UpdateSub?: undefined;
|
|
242
236
|
TransferNFT?: undefined;
|
|
@@ -396,12 +390,6 @@ export declare const actionAddresses: {
|
|
|
396
390
|
MorphoBluePayback?: undefined;
|
|
397
391
|
MorphoBlueSetAuth?: undefined;
|
|
398
392
|
MorphoBlueSetAuthWithSig?: undefined;
|
|
399
|
-
LlamaLendCreate?: undefined;
|
|
400
|
-
LlamaLendSupply?: undefined;
|
|
401
|
-
LlamaLendBorrow?: undefined;
|
|
402
|
-
LlamaLendWithdraw?: undefined;
|
|
403
|
-
LlamaLendPayback?: undefined;
|
|
404
|
-
LlamaLendSelfLiquidate?: undefined;
|
|
405
393
|
} | {
|
|
406
394
|
DFSSell: string;
|
|
407
395
|
WrapEth: string;
|
|
@@ -412,7 +400,6 @@ export declare const actionAddresses: {
|
|
|
412
400
|
ToggleSub: string;
|
|
413
401
|
TokenBalance: string;
|
|
414
402
|
TokenizedVaultAdapter: string;
|
|
415
|
-
ChangeProxyOwner: string;
|
|
416
403
|
AaveV3ATokenPayback: string;
|
|
417
404
|
AaveV3Borrow: string;
|
|
418
405
|
AaveV3CollateralSwitch: string;
|
|
@@ -441,6 +428,7 @@ export declare const actionAddresses: {
|
|
|
441
428
|
UniCreatePoolV3: string;
|
|
442
429
|
SumInputs?: undefined;
|
|
443
430
|
SubInputs?: undefined;
|
|
431
|
+
ChangeProxyOwner?: undefined;
|
|
444
432
|
AutomationV2Unsub?: undefined;
|
|
445
433
|
UpdateSub?: undefined;
|
|
446
434
|
TransferNFT?: undefined;
|
|
@@ -595,12 +583,6 @@ export declare const actionAddresses: {
|
|
|
595
583
|
MorphoBluePayback?: undefined;
|
|
596
584
|
MorphoBlueSetAuth?: undefined;
|
|
597
585
|
MorphoBlueSetAuthWithSig?: undefined;
|
|
598
|
-
LlamaLendCreate?: undefined;
|
|
599
|
-
LlamaLendSupply?: undefined;
|
|
600
|
-
LlamaLendBorrow?: undefined;
|
|
601
|
-
LlamaLendWithdraw?: undefined;
|
|
602
|
-
LlamaLendPayback?: undefined;
|
|
603
|
-
LlamaLendSelfLiquidate?: undefined;
|
|
604
586
|
AaveV3DelegateCredit?: undefined;
|
|
605
587
|
AaveV3RatioTrigger?: undefined;
|
|
606
588
|
} | {
|
|
@@ -610,7 +592,6 @@ export declare const actionAddresses: {
|
|
|
610
592
|
SendToken: string;
|
|
611
593
|
PullToken: string;
|
|
612
594
|
TokenBalance: string;
|
|
613
|
-
ChangeProxyOwner: string;
|
|
614
595
|
FLAaveV3: string;
|
|
615
596
|
FLBalancer: string;
|
|
616
597
|
FLUniV3: string;
|
|
@@ -633,6 +614,7 @@ export declare const actionAddresses: {
|
|
|
633
614
|
CompV3Withdraw: string;
|
|
634
615
|
SumInputs?: undefined;
|
|
635
616
|
SubInputs?: undefined;
|
|
617
|
+
ChangeProxyOwner?: undefined;
|
|
636
618
|
AutomationV2Unsub?: undefined;
|
|
637
619
|
SendTokenAndUnwrap?: undefined;
|
|
638
620
|
ToggleSub?: undefined;
|
|
@@ -794,12 +776,6 @@ export declare const actionAddresses: {
|
|
|
794
776
|
MorphoBluePayback?: undefined;
|
|
795
777
|
MorphoBlueSetAuth?: undefined;
|
|
796
778
|
MorphoBlueSetAuthWithSig?: undefined;
|
|
797
|
-
LlamaLendCreate?: undefined;
|
|
798
|
-
LlamaLendSupply?: undefined;
|
|
799
|
-
LlamaLendBorrow?: undefined;
|
|
800
|
-
LlamaLendWithdraw?: undefined;
|
|
801
|
-
LlamaLendPayback?: undefined;
|
|
802
|
-
LlamaLendSelfLiquidate?: undefined;
|
|
803
779
|
AaveV3DelegateCredit?: undefined;
|
|
804
780
|
AaveV3RatioTrigger?: undefined;
|
|
805
781
|
GasFeeTakerL2?: undefined;
|
package/esm/src/addresses.js
CHANGED
|
@@ -21,7 +21,7 @@ export const actionAddresses = {
|
|
|
21
21
|
SDaiUnwrap: '0xe8Cb536BB96075241c4bd8f1831A8577562F2B32',
|
|
22
22
|
TokenizedVaultAdapter: '0x3944364Ce3a273D269707484F3a676fCa17E08b8',
|
|
23
23
|
// exchange
|
|
24
|
-
DFSSell: '
|
|
24
|
+
DFSSell: '0x561013c605A17f5dC5b738C8a3fF9c5F33DbC3d8',
|
|
25
25
|
// maker
|
|
26
26
|
McdGenerate: '0xCb50a91C0f12f439b8bf11E9474B9c1ED62Bf7a3',
|
|
27
27
|
McdGive: '0xf9556A87BF424834FDe7De0547b58E36Cb42EF01',
|
|
@@ -109,7 +109,7 @@ export const actionAddresses = {
|
|
|
109
109
|
FLMaker: '0x672DE08e36A1698fD5e9E34045F81558dB4c1AFE',
|
|
110
110
|
FLBalancer: '0x540a83E36E5E6Aa916A6c591934d800e17115048',
|
|
111
111
|
FLSpark: '0xe9Fe5a0f5e4B370Ae60d837da58744666D5C06F7',
|
|
112
|
-
FLAction: '
|
|
112
|
+
FLAction: '0x2b10B000292745099Deb15304A247c0816bd8b73',
|
|
113
113
|
FLUniV3: '0x9CAdAC8Be718572F82B672b950c53F0b58483A35',
|
|
114
114
|
FLGho: '0xbb67b81dD080a406227A38965d0393f396ddECBc',
|
|
115
115
|
FLMorphoBlue: '0x6206C96EAc5EAC546861438A9f953B6BEa50EBAB',
|
|
@@ -221,13 +221,6 @@ export const actionAddresses = {
|
|
|
221
221
|
MorphoBluePayback: '0x9f437E5F705E02d77adC2e72C34926978776b085',
|
|
222
222
|
MorphoBlueSetAuth: '0xf30935e20c6357c7bcecd5e58ad6de26d54b9f64',
|
|
223
223
|
MorphoBlueSetAuthWithSig: '0xE2d5fCDBf73BAd24A0FCAf6B2733933A98021808',
|
|
224
|
-
// llamalend
|
|
225
|
-
LlamaLendCreate: '0x4349be191ea63173eD98b7fC1b0DeC1ef9Bc6c11',
|
|
226
|
-
LlamaLendSupply: '0x1900eF943bD1b038c58d9F35C3825F119F9BB730',
|
|
227
|
-
LlamaLendBorrow: '0xCF693585C47049F3eACc2285E7Fe4e80123b2520',
|
|
228
|
-
LlamaLendWithdraw: '0x2593Da3c4110C531541424e9e847cd7905894C52',
|
|
229
|
-
LlamaLendPayback: '0x5b506b7a0117dbcd086632575da599bb603eb602',
|
|
230
|
-
LlamaLendSelfLiquidate: '0xe4944e0e46177300fa4c351ef72b95b9655e8394',
|
|
231
224
|
},
|
|
232
225
|
[NETWORKS.optimism.chainId]: {
|
|
233
226
|
DFSSell: '0xC6c601fcAa870efd26C624F8c65fbc54cBe533b1',
|
|
@@ -241,7 +234,6 @@ export const actionAddresses = {
|
|
|
241
234
|
ToggleSub: '0x988C5C24AE6348404196267e19962f36961CAc29',
|
|
242
235
|
TokenBalance: '0xC6FF5b01f7c7b35b6e093fF70D2332B361C5Be5A',
|
|
243
236
|
TokenizedVaultAdapter: '0xdf31669FEd440f5BfF658ca0bBF0D22B8abdeb73',
|
|
244
|
-
ChangeProxyOwner: '0x62769258ea8b3a85cc6fb4332fc2760a122dbc9e',
|
|
245
237
|
// aave v3
|
|
246
238
|
AaveV3ATokenPayback: '0x71B27114D1777298bD46c3770C42F9f807C49847',
|
|
247
239
|
AaveV3Borrow: '0x8CaDc8A911D19B9e4D36c9bAdE47d970f362BcEa',
|
|
@@ -279,7 +271,6 @@ export const actionAddresses = {
|
|
|
279
271
|
ToggleSub: '0x71015226EADFd4aC887fB56556F64338e352439b',
|
|
280
272
|
TokenBalance: '0x483B903E702F60698Dd8124558C6199922737f1F',
|
|
281
273
|
TokenizedVaultAdapter: '0xD05C512bDFf6D3eAc5328807B3bC075F35271167',
|
|
282
|
-
ChangeProxyOwner: '0x29F66A5fcB601c806E7156f29FDEC771BdC9c08d',
|
|
283
274
|
// aave v3
|
|
284
275
|
AaveV3ATokenPayback: '0x261906e5E0D0D38D9cBb5c10dB9c4031aabdf8C1',
|
|
285
276
|
AaveV3Borrow: '0x5786809DA660dB613994460F096F19fcd19eD4c9',
|
|
@@ -319,7 +310,6 @@ export const actionAddresses = {
|
|
|
319
310
|
SendToken: '0x1420f4977E7B71AFddccBFc6F6e1505CefdF99F0',
|
|
320
311
|
PullToken: '0x5B0B7E38C2a8e46CfAe13c360BC5927570BeEe94',
|
|
321
312
|
TokenBalance: '0xc44bcE580B1b3339fE9272D3bC3d6566083ea59C',
|
|
322
|
-
ChangeProxyOwner: '0x1947a44d3717a47556175d64fdc208619aa08874',
|
|
323
313
|
// Flashloan
|
|
324
314
|
FLAaveV3: '0x79Eb9cEe432Cd3e7b09A9eFdB21A733A6d7b4c3A',
|
|
325
315
|
FLBalancer: '0x862E533198C9656B75bB6A5dDF0953F7ED5E8507',
|
|
@@ -347,7 +337,7 @@ export const actionAddresses = {
|
|
|
347
337
|
};
|
|
348
338
|
export const otherAddresses = {
|
|
349
339
|
[NETWORKS.ethereum.chainId]: {
|
|
350
|
-
RecipeExecutor: '
|
|
340
|
+
RecipeExecutor: '0x10B748Dc504C2515Bb6A9e23CB2F686090b6c584',
|
|
351
341
|
DFSRegistry: '0x287778F121F134C66212FB16c9b53eC991D32f5b',
|
|
352
342
|
DFSProxyRegistry: '0x29474FdaC7142f9aB7773B8e38264FA15E3805ed',
|
|
353
343
|
ProxyRegistry: '0x4678f0a6958e4D2Bc4F1BAF7Bc52E8F3564f3fE4',
|