@defisaver/sdk 1.0.41 → 1.0.42-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.d.ts +2 -2
- package/esm/src/actions/aave/AaveClaimAAVEAction.d.ts +14 -0
- package/esm/src/actions/aave/AaveClaimAAVEAction.js +22 -0
- package/esm/src/actions/aave/AaveSupplyAction.js +1 -0
- package/esm/src/actions/aave/index.d.ts +1 -0
- package/esm/src/actions/aave/index.js +1 -0
- package/esm/src/actions/basic/ApproveTokenAction.d.ts +14 -0
- package/esm/src/actions/basic/ApproveTokenAction.js +27 -0
- package/esm/src/actions/basic/LSVSellAction.d.ts +23 -0
- package/esm/src/actions/basic/LSVSellAction.js +61 -0
- package/esm/src/actions/basic/index.d.ts +2 -0
- package/esm/src/actions/basic/index.js +2 -0
- package/esm/src/actions/index.d.ts +2 -1
- package/esm/src/actions/index.js +2 -1
- package/esm/src/actions/lsv/LSVBorrowAction.d.ts +14 -0
- package/esm/src/actions/lsv/LSVBorrowAction.js +19 -0
- package/esm/src/actions/lsv/LSVPaybackAction.d.ts +13 -0
- package/esm/src/actions/lsv/LSVPaybackAction.js +18 -0
- package/esm/src/actions/lsv/LSVSupplyAction.d.ts +15 -0
- package/esm/src/actions/lsv/LSVSupplyAction.js +21 -0
- package/esm/src/actions/lsv/LSVWithdrawAction.d.ts +15 -0
- package/esm/src/actions/lsv/LSVWithdrawAction.js +21 -0
- package/esm/src/actions/lsv/index.d.ts +4 -0
- package/esm/src/actions/lsv/index.js +4 -0
- package/esm/src/actions/morpho/aaveV3/MorphoAaveV3SetManagerAction.d.ts +14 -0
- package/esm/src/actions/morpho/aaveV3/MorphoAaveV3SetManagerAction.js +24 -0
- package/esm/src/actions/morpho/index.d.ts +1 -0
- package/esm/src/actions/morpho/index.js +1 -0
- package/esm/src/addresses.d.ts +24 -0
- package/esm/src/addresses.js +9 -0
- package/esm/src/index.d.ts +96 -0
- package/esm/src/types.d.ts +20 -20
- package/package.json +1 -1
- package/src/actions/aave/AaveClaimAAVEAction.ts +29 -0
- package/src/actions/aave/AaveSupplyAction.ts +1 -0
- package/src/actions/aave/index.ts +2 -1
- package/src/actions/basic/ApproveTokenAction.ts +34 -0
- package/src/actions/basic/LSVSellAction.ts +61 -0
- package/src/actions/basic/index.ts +2 -0
- package/src/actions/index.ts +2 -0
- package/src/actions/lsv/LSVBorrowAction.ts +21 -0
- package/src/actions/lsv/LSVPaybackAction.ts +20 -0
- package/src/actions/lsv/LSVSupplyAction.ts +23 -0
- package/src/actions/lsv/LSVWithdrawAction.ts +23 -0
- package/src/actions/lsv/index.ts +4 -0
- package/src/actions/morpho/aaveV3/MorphoAaveV3SetManagerAction.ts +32 -0
- package/src/actions/morpho/index.ts +1 -0
- package/src/addresses.ts +10 -1
- package/umd/index.js +841 -563
package/esm/src/Action.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AccessListItem, EthAddress } from './types';
|
|
2
|
-
type ParamTypes = Array<string | Array<any>>;
|
|
3
|
-
type Args = Array<any>;
|
|
2
|
+
declare type ParamTypes = Array<string | Array<any>>;
|
|
3
|
+
declare type Args = Array<any>;
|
|
4
4
|
/**
|
|
5
5
|
* Single action that can be executed directly, or combined into a set (ie. supply a vault)
|
|
6
6
|
*
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { EthAddress, uint256 } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* AaveClaimAAVEAction - Claims AAVE from stkAave
|
|
5
|
+
*
|
|
6
|
+
* @category Aave
|
|
7
|
+
*/
|
|
8
|
+
export declare class AaveClaimAAVEAction extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* @param amount - Amount to claim
|
|
11
|
+
* @param to - Address where claimed tokens will end up
|
|
12
|
+
*/
|
|
13
|
+
constructor(amount: uint256, to: EthAddress);
|
|
14
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { requireAddress } from '../../utils/general';
|
|
3
|
+
import { getAddr } from '../../addresses';
|
|
4
|
+
/**
|
|
5
|
+
* AaveClaimAAVEAction - Claims AAVE from stkAave
|
|
6
|
+
*
|
|
7
|
+
* @category Aave
|
|
8
|
+
*/
|
|
9
|
+
export class AaveClaimAAVEAction extends Action {
|
|
10
|
+
/**
|
|
11
|
+
* @param amount - Amount to claim
|
|
12
|
+
* @param to - Address where claimed tokens will end up
|
|
13
|
+
*/
|
|
14
|
+
constructor(amount, to) {
|
|
15
|
+
requireAddress(to);
|
|
16
|
+
super('AaveClaimAAVE', getAddr('AaveClaimAAVE'), ['uint256', 'address'], [amount, to]);
|
|
17
|
+
this.mappableArgs = [
|
|
18
|
+
this.args[1],
|
|
19
|
+
this.args[2],
|
|
20
|
+
];
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { EthAddress, uint256 } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @category BasicActions
|
|
6
|
+
*/
|
|
7
|
+
export declare class ApproveTokenAction extends Action {
|
|
8
|
+
/**
|
|
9
|
+
* @param token Token address
|
|
10
|
+
* @param spender
|
|
11
|
+
* @param amount Transfer amount (-1 for whole Recipe (DsProxy) balance)
|
|
12
|
+
*/
|
|
13
|
+
constructor(token: EthAddress, spender: EthAddress, amount: uint256);
|
|
14
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { requireAddress } from '../../utils/general';
|
|
3
|
+
import { getAddr } from '../../addresses';
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @category BasicActions
|
|
7
|
+
*/
|
|
8
|
+
export class ApproveTokenAction extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* @param token Token address
|
|
11
|
+
* @param spender
|
|
12
|
+
* @param amount Transfer amount (-1 for whole Recipe (DsProxy) balance)
|
|
13
|
+
*/
|
|
14
|
+
constructor(token, spender, amount) {
|
|
15
|
+
requireAddress(spender);
|
|
16
|
+
super('ApproveToken', getAddr('ApproveToken'), [
|
|
17
|
+
'address',
|
|
18
|
+
'address',
|
|
19
|
+
'uint',
|
|
20
|
+
], [token, spender, amount]);
|
|
21
|
+
this.mappableArgs = [
|
|
22
|
+
this.args[0],
|
|
23
|
+
this.args[1],
|
|
24
|
+
this.args[2],
|
|
25
|
+
];
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ActionWithL2 } from '../../ActionWithL2';
|
|
2
|
+
import { EthAddress } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Sells token on DeFi Saver exchange aggregator without fee
|
|
5
|
+
*
|
|
6
|
+
* @category BasicActions
|
|
7
|
+
*/
|
|
8
|
+
export declare class LSVSellAction 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 protocolFee 0x fee (amount of ETH in Wei)
|
|
15
|
+
*/
|
|
16
|
+
constructor(exchangeOrder: Array<any>, from: EthAddress, to: EthAddress, protocolFee?: string);
|
|
17
|
+
encodeInputs(): string;
|
|
18
|
+
getAssetsToApprove(): Promise<{
|
|
19
|
+
asset: any;
|
|
20
|
+
owner: any;
|
|
21
|
+
}[]>;
|
|
22
|
+
getEthValue(): Promise<string>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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
|
+
* Sells token on DeFi Saver exchange aggregator without fee
|
|
18
|
+
*
|
|
19
|
+
* @category BasicActions
|
|
20
|
+
*/
|
|
21
|
+
export class LSVSellAction extends ActionWithL2 {
|
|
22
|
+
/**
|
|
23
|
+
* @param exchangeOrder Standard DFS Exchange data
|
|
24
|
+
* @param from Order sender
|
|
25
|
+
* @param to Order recipient
|
|
26
|
+
* @param protocolFee 0x fee (amount of ETH in Wei)
|
|
27
|
+
*/
|
|
28
|
+
constructor(exchangeOrder, from, to, protocolFee = '0') {
|
|
29
|
+
requireAddress(to);
|
|
30
|
+
super('LSVSell', getAddr('LSVSell'), [
|
|
31
|
+
['address', 'address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'address', 'bytes', ['address', 'address', 'address', 'uint256', 'uint256', 'bytes']],
|
|
32
|
+
'address',
|
|
33
|
+
'address',
|
|
34
|
+
], [exchangeOrder, from, to]);
|
|
35
|
+
this.protocolFee = protocolFee;
|
|
36
|
+
this.mappableArgs = [
|
|
37
|
+
this.args[0][0],
|
|
38
|
+
this.args[0][1],
|
|
39
|
+
this.args[0][2],
|
|
40
|
+
this.args[1],
|
|
41
|
+
this.args[2],
|
|
42
|
+
];
|
|
43
|
+
}
|
|
44
|
+
encodeInputs() {
|
|
45
|
+
const executeActionDirectAbi = (ActionAbi.find(({ name }) => name === 'executeActionDirect'));
|
|
46
|
+
return AbiCoder.encodeFunctionCall(executeActionDirectAbi, this._encodeForCall());
|
|
47
|
+
}
|
|
48
|
+
getAssetsToApprove() {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
+
const asset = getAssetInfoByAddress(this.args[0][0]);
|
|
51
|
+
if (asset.symbol !== 'ETH')
|
|
52
|
+
return [{ asset: this.args[0][0], owner: this.args[1] }];
|
|
53
|
+
return [];
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
getEthValue() {
|
|
57
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
+
return this.protocolFee || '0';
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -16,6 +16,8 @@ export * from './GasFeeActionL2';
|
|
|
16
16
|
export * from './TransferNFTAction';
|
|
17
17
|
export * from './SendTokensAction';
|
|
18
18
|
export * from './CreateSubAction';
|
|
19
|
+
export * from './LSVSellAction';
|
|
20
|
+
export * from './ApproveTokenAction';
|
|
19
21
|
export * from './SDaiWrapAction';
|
|
20
22
|
export * from './SDaiUnwrapAction';
|
|
21
23
|
export * from './TokenizedVaultAdapterDepositAction';
|
|
@@ -16,6 +16,8 @@ export * from './GasFeeActionL2';
|
|
|
16
16
|
export * from './TransferNFTAction';
|
|
17
17
|
export * from './SendTokensAction';
|
|
18
18
|
export * from './CreateSubAction';
|
|
19
|
+
export * from './LSVSellAction';
|
|
20
|
+
export * from './ApproveTokenAction';
|
|
19
21
|
export * from './SDaiWrapAction';
|
|
20
22
|
export * from './SDaiUnwrapAction';
|
|
21
23
|
export * from './TokenizedVaultAdapterDepositAction';
|
|
@@ -23,6 +23,7 @@ import * as chickenBonds from './chickenBonds';
|
|
|
23
23
|
import * as compoundV3 from './compoundV3';
|
|
24
24
|
import * as morpho from './morpho';
|
|
25
25
|
import * as bprotocol from './bprotocol';
|
|
26
|
+
import * as lsv from './lsv';
|
|
26
27
|
import * as curveusd from './curveusd';
|
|
27
28
|
import * as spark from './spark';
|
|
28
|
-
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, spark, curveusd, };
|
|
29
|
+
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, };
|
package/esm/src/actions/index.js
CHANGED
|
@@ -23,6 +23,7 @@ import * as chickenBonds from './chickenBonds';
|
|
|
23
23
|
import * as compoundV3 from './compoundV3';
|
|
24
24
|
import * as morpho from './morpho';
|
|
25
25
|
import * as bprotocol from './bprotocol';
|
|
26
|
+
import * as lsv from './lsv';
|
|
26
27
|
import * as curveusd from './curveusd';
|
|
27
28
|
import * as spark from './spark';
|
|
28
|
-
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, spark, curveusd, };
|
|
29
|
+
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, };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { uint256, uint8 } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
* @category LSV
|
|
7
|
+
*/
|
|
8
|
+
export declare class LSVBorrowAction extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* @param protocol
|
|
11
|
+
* @param amount
|
|
12
|
+
*/
|
|
13
|
+
constructor(protocol: uint8, amount: uint256);
|
|
14
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { getAddr } from '../../addresses';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
* @category LSV
|
|
7
|
+
*/
|
|
8
|
+
export class LSVBorrowAction extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* @param protocol
|
|
11
|
+
* @param amount
|
|
12
|
+
*/
|
|
13
|
+
constructor(protocol, amount) {
|
|
14
|
+
super('LSVBorrow', getAddr('LSVBorrow'), ['uint256', 'uint256'], [protocol, amount]);
|
|
15
|
+
this.mappableArgs = [
|
|
16
|
+
this.args[1],
|
|
17
|
+
];
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { uint8, uint256 } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @category LSV
|
|
6
|
+
*/
|
|
7
|
+
export declare class LSVPaybackAction extends Action {
|
|
8
|
+
/**
|
|
9
|
+
* @param protocol
|
|
10
|
+
* @param amount
|
|
11
|
+
*/
|
|
12
|
+
constructor(protocol: uint8, amount: uint256);
|
|
13
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { getAddr } from '../../addresses';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @category LSV
|
|
6
|
+
*/
|
|
7
|
+
export class LSVPaybackAction extends Action {
|
|
8
|
+
/**
|
|
9
|
+
* @param protocol
|
|
10
|
+
* @param amount
|
|
11
|
+
*/
|
|
12
|
+
constructor(protocol, amount) {
|
|
13
|
+
super('LSVPayback', getAddr('LSVPayback'), ['uint256', 'uint256'], [protocol, amount]);
|
|
14
|
+
this.mappableArgs = [
|
|
15
|
+
this.args[1],
|
|
16
|
+
];
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { EthAddress, uint256, uint8 } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
* @category LSV
|
|
7
|
+
*/
|
|
8
|
+
export declare class LSVSupplyAction extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* @param protocol
|
|
11
|
+
* @param token
|
|
12
|
+
* @param amount
|
|
13
|
+
*/
|
|
14
|
+
constructor(protocol: uint8, token: EthAddress, amount: uint256);
|
|
15
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { getAddr } from '../../addresses';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
* @category LSV
|
|
7
|
+
*/
|
|
8
|
+
export class LSVSupplyAction extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* @param protocol
|
|
11
|
+
* @param token
|
|
12
|
+
* @param amount
|
|
13
|
+
*/
|
|
14
|
+
constructor(protocol, token, amount) {
|
|
15
|
+
super('LSVSupply', getAddr('LSVSupply'), ['uint256', 'address', 'uint256'], [protocol, token, amount]);
|
|
16
|
+
this.mappableArgs = [
|
|
17
|
+
this.args[1],
|
|
18
|
+
this.args[2],
|
|
19
|
+
];
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { EthAddress, uint256, uint8 } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @category LSV
|
|
6
|
+
*/
|
|
7
|
+
export declare class LSVWithdrawAction extends Action {
|
|
8
|
+
/**
|
|
9
|
+
* @param protocol
|
|
10
|
+
* @param token
|
|
11
|
+
* @param amount
|
|
12
|
+
* @param isPositionClosing
|
|
13
|
+
*/
|
|
14
|
+
constructor(protocol: uint8, token: EthAddress, amount: uint256, isPositionClosing: boolean);
|
|
15
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { getAddr } from '../../addresses';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @category LSV
|
|
6
|
+
*/
|
|
7
|
+
export class LSVWithdrawAction extends Action {
|
|
8
|
+
/**
|
|
9
|
+
* @param protocol
|
|
10
|
+
* @param token
|
|
11
|
+
* @param amount
|
|
12
|
+
* @param isPositionClosing
|
|
13
|
+
*/
|
|
14
|
+
constructor(protocol, token, amount, isPositionClosing) {
|
|
15
|
+
super('LSVWithdraw', getAddr('LSVWithdraw'), ['uint256', 'address', 'uint256', 'bool'], [protocol, token, amount, isPositionClosing]);
|
|
16
|
+
this.mappableArgs = [
|
|
17
|
+
this.args[1],
|
|
18
|
+
this.args[2],
|
|
19
|
+
];
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Action } from '../../../Action';
|
|
2
|
+
import { EthAddress, uint256 } from '../../../types';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @category MorphoAaveV3
|
|
6
|
+
*/
|
|
7
|
+
export declare class MorphoAaveV3SetManagerAction extends Action {
|
|
8
|
+
/**
|
|
9
|
+
* @param emodeId
|
|
10
|
+
* @param manager
|
|
11
|
+
* @param isAllowed
|
|
12
|
+
*/
|
|
13
|
+
constructor(emodeId: uint256, manager: EthAddress, isAllowed: boolean);
|
|
14
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Action } from '../../../Action';
|
|
2
|
+
import { getAddr } from '../../../addresses';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @category MorphoAaveV3
|
|
6
|
+
*/
|
|
7
|
+
export class MorphoAaveV3SetManagerAction extends Action {
|
|
8
|
+
/**
|
|
9
|
+
* @param emodeId
|
|
10
|
+
* @param manager
|
|
11
|
+
* @param isAllowed
|
|
12
|
+
*/
|
|
13
|
+
constructor(emodeId, manager, isAllowed) {
|
|
14
|
+
super('MorphoAaveV3SetManager', getAddr('MorphoAaveV3SetManager'), [
|
|
15
|
+
'uint256',
|
|
16
|
+
'address',
|
|
17
|
+
'bool',
|
|
18
|
+
], [emodeId, manager, isAllowed]);
|
|
19
|
+
this.mappableArgs = [
|
|
20
|
+
this.args[0],
|
|
21
|
+
this.args[1],
|
|
22
|
+
];
|
|
23
|
+
}
|
|
24
|
+
}
|
package/esm/src/addresses.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export declare const actionAddresses: {
|
|
|
15
15
|
UpdateSub: string;
|
|
16
16
|
TransferNFT: string;
|
|
17
17
|
CreateSub: string;
|
|
18
|
+
ApproveToken: string;
|
|
18
19
|
SDaiWrap: string;
|
|
19
20
|
SDaiUnwrap: string;
|
|
20
21
|
TokenizedVaultAdapter: string;
|
|
@@ -43,6 +44,7 @@ export declare const actionAddresses: {
|
|
|
43
44
|
AaveWithdraw: string;
|
|
44
45
|
AaveCollateralSwitch: string;
|
|
45
46
|
AaveUnstake: string;
|
|
47
|
+
AaveClaimAAVE: string;
|
|
46
48
|
AaveV3Withdraw: string;
|
|
47
49
|
AaveV3SwapBorrowRateMode: string;
|
|
48
50
|
AaveV3Supply: string;
|
|
@@ -53,6 +55,11 @@ export declare const actionAddresses: {
|
|
|
53
55
|
AaveV3Borrow: string;
|
|
54
56
|
AaveV3ATokenPayback: string;
|
|
55
57
|
AaveV3View: string;
|
|
58
|
+
LSVWithdraw: string;
|
|
59
|
+
LSVBorrow: string;
|
|
60
|
+
LSVSupply: string;
|
|
61
|
+
LSVPayback: string;
|
|
62
|
+
LSVSell: string;
|
|
56
63
|
MorphoAaveV2Borrow: string;
|
|
57
64
|
MorphoAaveV2Payback: string;
|
|
58
65
|
MorphoAaveV2Supply: string;
|
|
@@ -62,6 +69,7 @@ export declare const actionAddresses: {
|
|
|
62
69
|
MorphoAaveV3Payback: string;
|
|
63
70
|
MorphoAaveV3Supply: string;
|
|
64
71
|
MorphoAaveV3Withdraw: string;
|
|
72
|
+
MorphoAaveV3SetManager: string;
|
|
65
73
|
SparkBorrow: string;
|
|
66
74
|
SparkClaimRewards: string;
|
|
67
75
|
SparkCollateralSwitch: string;
|
|
@@ -208,6 +216,7 @@ export declare const actionAddresses: {
|
|
|
208
216
|
UpdateSub?: undefined;
|
|
209
217
|
TransferNFT?: undefined;
|
|
210
218
|
CreateSub?: undefined;
|
|
219
|
+
ApproveToken?: undefined;
|
|
211
220
|
SDaiWrap?: undefined;
|
|
212
221
|
SDaiUnwrap?: undefined;
|
|
213
222
|
McdGenerate?: undefined;
|
|
@@ -234,7 +243,13 @@ export declare const actionAddresses: {
|
|
|
234
243
|
AaveWithdraw?: undefined;
|
|
235
244
|
AaveCollateralSwitch?: undefined;
|
|
236
245
|
AaveUnstake?: undefined;
|
|
246
|
+
AaveClaimAAVE?: undefined;
|
|
237
247
|
AaveV3View?: undefined;
|
|
248
|
+
LSVWithdraw?: undefined;
|
|
249
|
+
LSVBorrow?: undefined;
|
|
250
|
+
LSVSupply?: undefined;
|
|
251
|
+
LSVPayback?: undefined;
|
|
252
|
+
LSVSell?: undefined;
|
|
238
253
|
MorphoAaveV2Borrow?: undefined;
|
|
239
254
|
MorphoAaveV2Payback?: undefined;
|
|
240
255
|
MorphoAaveV2Supply?: undefined;
|
|
@@ -244,6 +259,7 @@ export declare const actionAddresses: {
|
|
|
244
259
|
MorphoAaveV3Payback?: undefined;
|
|
245
260
|
MorphoAaveV3Supply?: undefined;
|
|
246
261
|
MorphoAaveV3Withdraw?: undefined;
|
|
262
|
+
MorphoAaveV3SetManager?: undefined;
|
|
247
263
|
SparkBorrow?: undefined;
|
|
248
264
|
SparkClaimRewards?: undefined;
|
|
249
265
|
SparkCollateralSwitch?: undefined;
|
|
@@ -376,6 +392,7 @@ export declare const actionAddresses: {
|
|
|
376
392
|
UpdateSub?: undefined;
|
|
377
393
|
TransferNFT?: undefined;
|
|
378
394
|
CreateSub?: undefined;
|
|
395
|
+
ApproveToken?: undefined;
|
|
379
396
|
SDaiWrap?: undefined;
|
|
380
397
|
SDaiUnwrap?: undefined;
|
|
381
398
|
McdGenerate?: undefined;
|
|
@@ -402,8 +419,14 @@ export declare const actionAddresses: {
|
|
|
402
419
|
AaveWithdraw?: undefined;
|
|
403
420
|
AaveCollateralSwitch?: undefined;
|
|
404
421
|
AaveUnstake?: undefined;
|
|
422
|
+
AaveClaimAAVE?: undefined;
|
|
405
423
|
AaveV3ClaimRewards?: undefined;
|
|
406
424
|
AaveV3View?: undefined;
|
|
425
|
+
LSVWithdraw?: undefined;
|
|
426
|
+
LSVBorrow?: undefined;
|
|
427
|
+
LSVSupply?: undefined;
|
|
428
|
+
LSVPayback?: undefined;
|
|
429
|
+
LSVSell?: undefined;
|
|
407
430
|
MorphoAaveV2Borrow?: undefined;
|
|
408
431
|
MorphoAaveV2Payback?: undefined;
|
|
409
432
|
MorphoAaveV2Supply?: undefined;
|
|
@@ -413,6 +436,7 @@ export declare const actionAddresses: {
|
|
|
413
436
|
MorphoAaveV3Payback?: undefined;
|
|
414
437
|
MorphoAaveV3Supply?: undefined;
|
|
415
438
|
MorphoAaveV3Withdraw?: undefined;
|
|
439
|
+
MorphoAaveV3SetManager?: undefined;
|
|
416
440
|
SparkBorrow?: undefined;
|
|
417
441
|
SparkClaimRewards?: undefined;
|
|
418
442
|
SparkCollateralSwitch?: undefined;
|
package/esm/src/addresses.js
CHANGED
|
@@ -16,6 +16,7 @@ export const actionAddresses = {
|
|
|
16
16
|
UpdateSub: '0xF6Cb8f7e61a64075ec8FAC3f298745605E543233',
|
|
17
17
|
TransferNFT: '0x861e893E1796F81248e75F06C0b09Abdc8fe2f6F',
|
|
18
18
|
CreateSub: '0x7308e88BB21B934478E75bB6A2143b8cfDFf2961',
|
|
19
|
+
ApproveToken: '0xA4161cED7A29F0a3424e464a4a2dBf75888c5BF9',
|
|
19
20
|
SDaiWrap: '0xac7Ac294F29d818D26Bd9DF86d36904B1Ed346Ae',
|
|
20
21
|
SDaiUnwrap: '0xe8Cb536BB96075241c4bd8f1831A8577562F2B32',
|
|
21
22
|
TokenizedVaultAdapter: '0x3944364Ce3a273D269707484F3a676fCa17E08b8',
|
|
@@ -49,6 +50,7 @@ export const actionAddresses = {
|
|
|
49
50
|
AaveWithdraw: '0x754C58fA92246414a448c1ed44ea3D1AD446d482',
|
|
50
51
|
AaveCollateralSwitch: '0xFf5dfF1B90bd5Aa6E12768AB497dB90cc9DE6F5d',
|
|
51
52
|
AaveUnstake: '0x2FE4024e350cD2c64D2fd0Db5d16F5cE54Ca0E09',
|
|
53
|
+
AaveClaimAAVE: '0xd52855bD011F3D87565f9040DdE2A59fB1b27b15',
|
|
52
54
|
// aave v3
|
|
53
55
|
AaveV3Withdraw: '0x9D4e4b26A5E2e6Dad30C5d95F5cE78A8310F04C2',
|
|
54
56
|
AaveV3SwapBorrowRateMode: '0x630F530Ac523C935cf2528E62D0A06F8900C5b1B',
|
|
@@ -60,6 +62,12 @@ export const actionAddresses = {
|
|
|
60
62
|
AaveV3Borrow: '0x7079ba1Bd00EeFCD2a260BbD6D088230505e3858',
|
|
61
63
|
AaveV3ATokenPayback: '0xDe5c012cd1878D86E91309593764895a3adb380E',
|
|
62
64
|
AaveV3View: '0x9ECB0645b357fDD7B92789B91595160862Bd45d0',
|
|
65
|
+
// LSV action
|
|
66
|
+
LSVWithdraw: '0x0A4Ef5ADf759064b546441a50109eCbC2528A455',
|
|
67
|
+
LSVBorrow: '0x7dFB434527Fdb39854156cDBa9bF4799E36E7e82',
|
|
68
|
+
LSVSupply: '0x984c00DC098c98bed1CDfe2Ed786Fe1443da6671',
|
|
69
|
+
LSVPayback: '0x10749CE97583dBcEb54a083386CC8438C4e0FE65',
|
|
70
|
+
LSVSell: '0x0c1bb9A39d4A0EF4215Ade19Ce4F954E8419Dfd7',
|
|
63
71
|
// morpho aave v2
|
|
64
72
|
MorphoAaveV2Borrow: '0xa85C3E41Bf9F75a381927e1Aa9b00f77C4631109',
|
|
65
73
|
MorphoAaveV2Payback: '0x5dd0E0835acbb08aa4A4599d70fB2d93969fa7b7',
|
|
@@ -71,6 +79,7 @@ export const actionAddresses = {
|
|
|
71
79
|
MorphoAaveV3Payback: '0x36b8b968c81D97cBfAa642e206b634A6f378d287',
|
|
72
80
|
MorphoAaveV3Supply: '0x51fA8FBc6F0aDEfe2FBA06104FCA39f5beD69291',
|
|
73
81
|
MorphoAaveV3Withdraw: '0xdc3e74C4cD577275296ceFE36A3D082223AfF206',
|
|
82
|
+
MorphoAaveV3SetManager: '0x1082AE0565504E3617BD5b6E80f91B59b81a82D9',
|
|
74
83
|
// spark
|
|
75
84
|
SparkBorrow: '0x3E2C366065bA0f6f9936C2C6A802D72F250b27AA',
|
|
76
85
|
SparkClaimRewards: '0x9C3E31f42a46676785C72401cD4F2287b355b003',
|