@defisaver/sdk 1.0.50 → 1.0.52
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/Recipe.js +1 -1
- package/esm/src/actions/aaveV3/AaveV3DelegateCredit.d.ts +19 -0
- package/esm/src/actions/aaveV3/AaveV3DelegateCredit.js +47 -0
- package/esm/src/actions/aaveV3/index.d.ts +1 -0
- package/esm/src/actions/aaveV3/index.js +1 -0
- package/esm/src/actions/basic/ApproveTokenAction.d.ts +16 -0
- package/esm/src/actions/basic/ApproveTokenAction.js +37 -0
- package/esm/src/actions/basic/index.d.ts +1 -0
- package/esm/src/actions/basic/index.js +1 -0
- package/esm/src/actions/compoundV3/CompoundV3SupplyAction.js +1 -1
- package/esm/src/actions/curveusd/CurveUsdAdjustAction.d.ts +21 -0
- package/esm/src/actions/curveusd/CurveUsdAdjustAction.js +40 -0
- package/esm/src/actions/curveusd/index.d.ts +1 -0
- package/esm/src/actions/curveusd/index.js +1 -0
- package/esm/src/actions/spark/SparkDelegateCredit.d.ts +19 -0
- package/esm/src/actions/spark/SparkDelegateCredit.js +47 -0
- package/esm/src/actions/spark/index.d.ts +1 -0
- package/esm/src/actions/spark/index.js +1 -0
- package/esm/src/addresses.d.ts +16 -0
- package/esm/src/addresses.js +4 -0
- package/esm/src/index.d.ts +64 -0
- package/package.json +2 -2
- package/src/Recipe.ts +2 -2
- package/src/actions/aaveV3/AaveV3DelegateCredit.ts +56 -0
- package/src/actions/aaveV3/index.ts +2 -1
- package/src/actions/basic/ApproveTokenAction.ts +34 -0
- package/src/actions/basic/index.ts +1 -0
- package/src/actions/compoundV3/CompoundV3SupplyAction.ts +2 -2
- package/src/actions/curveusd/CurveUsdAdjustAction.ts +45 -0
- package/src/actions/curveusd/index.ts +1 -1
- package/src/actions/spark/SparkDelegateCredit.ts +56 -0
- package/src/actions/spark/index.ts +2 -1
- package/src/addresses.ts +4 -0
- package/umd/index.js +601 -400
package/esm/src/Recipe.js
CHANGED
|
@@ -100,7 +100,7 @@ export class Recipe {
|
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
return uniqueAssetOwnerPairs.filter(({
|
|
103
|
+
return uniqueAssetOwnerPairs.filter(({ asset }) => !utils.compare(asset, getAssetInfo('ETH').address));
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
106
|
/**
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ActionWithL2 } from '../../ActionWithL2';
|
|
2
|
+
import { EthAddress, uint8, uint16, uint256 } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* AaveV3DelegateCredit - Delegate credit
|
|
5
|
+
*
|
|
6
|
+
* @category AaveV3
|
|
7
|
+
*/
|
|
8
|
+
export declare class AaveV3DelegateCredit extends ActionWithL2 {
|
|
9
|
+
/**
|
|
10
|
+
* @param useOnDefaultMarket If this is true it defaults to the hardcoded market in contract
|
|
11
|
+
* @param market Address provider for specific market
|
|
12
|
+
* @param amount Amount of tokens to be payed back
|
|
13
|
+
* @param rateMode Type of borrow debt [Stable: 1, Variable: 2]
|
|
14
|
+
* @param assetId The id of the token to be borrowed
|
|
15
|
+
* @param delegatee The id of the underlying asset to be repaid
|
|
16
|
+
*/
|
|
17
|
+
constructor(useOnDefaultMarket: boolean, market: EthAddress, amount: uint256, rateMode: uint8, assetId: uint16, delegatee: EthAddress);
|
|
18
|
+
encodeInputs(): string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { ActionWithL2 } from '../../ActionWithL2';
|
|
2
|
+
import { getAddr } from '../../addresses';
|
|
3
|
+
/**
|
|
4
|
+
* AaveV3DelegateCredit - Delegate credit
|
|
5
|
+
*
|
|
6
|
+
* @category AaveV3
|
|
7
|
+
*/
|
|
8
|
+
export class AaveV3DelegateCredit extends ActionWithL2 {
|
|
9
|
+
/**
|
|
10
|
+
* @param useOnDefaultMarket If this is true it defaults to the hardcoded market in contract
|
|
11
|
+
* @param market Address provider for specific market
|
|
12
|
+
* @param amount Amount of tokens to be payed back
|
|
13
|
+
* @param rateMode Type of borrow debt [Stable: 1, Variable: 2]
|
|
14
|
+
* @param assetId The id of the token to be borrowed
|
|
15
|
+
* @param delegatee The id of the underlying asset to be repaid
|
|
16
|
+
*/
|
|
17
|
+
constructor(useOnDefaultMarket, market, amount, rateMode, assetId, delegatee) {
|
|
18
|
+
super('AaveV3DelegateCredit', getAddr('AaveV3DelegateCredit'), ['uint256', 'address', 'uint16', 'uint8', 'bool', 'address'], [amount, delegatee, assetId, rateMode, useOnDefaultMarket, market]);
|
|
19
|
+
this.mappableArgs = [
|
|
20
|
+
this.args[0],
|
|
21
|
+
this.args[1],
|
|
22
|
+
this.args[2],
|
|
23
|
+
this.args[3],
|
|
24
|
+
this.args[4],
|
|
25
|
+
this.args[5],
|
|
26
|
+
];
|
|
27
|
+
}
|
|
28
|
+
encodeInputs() {
|
|
29
|
+
// executeActionDirectL2
|
|
30
|
+
let encodedInput = '0x2895f3aa';
|
|
31
|
+
// amount
|
|
32
|
+
encodedInput = encodedInput.concat(this.numberToBytes32(this.args[0]));
|
|
33
|
+
// delegatee
|
|
34
|
+
encodedInput = encodedInput.concat(this.addressToBytes20(this.args[1]));
|
|
35
|
+
// assetId
|
|
36
|
+
encodedInput = encodedInput.concat(this.numberToBytes2(this.args[2]));
|
|
37
|
+
// rateMode
|
|
38
|
+
encodedInput = encodedInput.concat(this.numberToBytes1(this.args[3]));
|
|
39
|
+
// useDefaultMarket
|
|
40
|
+
encodedInput = encodedInput.concat(this.boolToBytes1(this.args[4]));
|
|
41
|
+
if (!this.args[4]) {
|
|
42
|
+
// market
|
|
43
|
+
encodedInput = encodedInput.concat(this.addressToBytes20(this.args[5]));
|
|
44
|
+
}
|
|
45
|
+
return encodedInput;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { EthAddress, uint256 } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Approve a spender to pull tokens from DSProxy
|
|
5
|
+
*
|
|
6
|
+
* @category BasicActions
|
|
7
|
+
*/
|
|
8
|
+
export declare class ApproveTokenAction extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* @param token Token address
|
|
11
|
+
* @param spender Address getting allowance to pull tokens from proxy
|
|
12
|
+
* @param amount Allowance amount
|
|
13
|
+
*/
|
|
14
|
+
constructor(token: EthAddress, spender: EthAddress, amount: uint256);
|
|
15
|
+
getAssetsToApprove(): Promise<never[]>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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 { requireAddress } from '../../utils/general';
|
|
11
|
+
import { Action } from '../../Action';
|
|
12
|
+
import { getAddr } from '../../addresses';
|
|
13
|
+
/**
|
|
14
|
+
* Approve a spender to pull tokens from DSProxy
|
|
15
|
+
*
|
|
16
|
+
* @category BasicActions
|
|
17
|
+
*/
|
|
18
|
+
export class ApproveTokenAction extends Action {
|
|
19
|
+
/**
|
|
20
|
+
* @param token Token address
|
|
21
|
+
* @param spender Address getting allowance to pull tokens from proxy
|
|
22
|
+
* @param amount Allowance amount
|
|
23
|
+
*/
|
|
24
|
+
constructor(token, spender, amount) {
|
|
25
|
+
requireAddress(spender);
|
|
26
|
+
super('ApproveToken', getAddr('ApproveToken'), [
|
|
27
|
+
'address',
|
|
28
|
+
'address',
|
|
29
|
+
'uint',
|
|
30
|
+
], [token, spender, amount]);
|
|
31
|
+
}
|
|
32
|
+
getAssetsToApprove() {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
return [];
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -38,7 +38,7 @@ export class CompoundV3SupplyAction extends Action {
|
|
|
38
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
39
|
const asset = getAssetInfoByAddress(this.tokenForApproval);
|
|
40
40
|
if (asset.symbol !== 'ETH')
|
|
41
|
-
return [{ asset: this.tokenForApproval, owner: this.args[
|
|
41
|
+
return [{ asset: this.tokenForApproval, owner: this.args[3] }];
|
|
42
42
|
return [];
|
|
43
43
|
});
|
|
44
44
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { EthAddress, uint256 } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* CurveUsdAdjustAction - Action that supplies collateral to a curveusd position and borrows more crvUSD
|
|
5
|
+
*
|
|
6
|
+
* @category CurveUsd
|
|
7
|
+
*/
|
|
8
|
+
export declare class CurveUsdAdjustAction extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* address controllerAddress - Address of the curveusd market controller
|
|
11
|
+
* address from - Address from which to pull collateral asset, will default to proxy
|
|
12
|
+
* address to - Address which will receive borrowed crvUSD
|
|
13
|
+
* uint256 supplyAmount - Amount of collateral asset to supply (can be zero, can be max.uint)
|
|
14
|
+
* uint256 borrowAmount - Amount of debt asset to borrow (must be non-zero)
|
|
15
|
+
*/
|
|
16
|
+
constructor(controllerAddress: EthAddress, from: EthAddress, to: EthAddress, supplyAmount: uint256, borrowAmount: uint256);
|
|
17
|
+
getAssetsToApprove(): Promise<{
|
|
18
|
+
owner: any;
|
|
19
|
+
asset: string;
|
|
20
|
+
}[]>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { Action } from '../../Action';
|
|
11
|
+
import { getAddr } from '../../addresses';
|
|
12
|
+
import { controllerToAssetMap } from '../../utils/curveusd-utils';
|
|
13
|
+
/**
|
|
14
|
+
* CurveUsdAdjustAction - Action that supplies collateral to a curveusd position and borrows more crvUSD
|
|
15
|
+
*
|
|
16
|
+
* @category CurveUsd
|
|
17
|
+
*/
|
|
18
|
+
export class CurveUsdAdjustAction extends Action {
|
|
19
|
+
/**
|
|
20
|
+
* address controllerAddress - Address of the curveusd market controller
|
|
21
|
+
* address from - Address from which to pull collateral asset, will default to proxy
|
|
22
|
+
* address to - Address which will receive borrowed crvUSD
|
|
23
|
+
* uint256 supplyAmount - Amount of collateral asset to supply (can be zero, can be max.uint)
|
|
24
|
+
* uint256 borrowAmount - Amount of debt asset to borrow (must be non-zero)
|
|
25
|
+
*/
|
|
26
|
+
constructor(controllerAddress, from, to, supplyAmount, borrowAmount) {
|
|
27
|
+
super('CurveUsdAdjust', getAddr('CurveUsdAdjust'), ['address', 'address', 'address', 'uint256', 'uint256'], [controllerAddress, from, to, supplyAmount, borrowAmount]);
|
|
28
|
+
this.mappableArgs = [
|
|
29
|
+
...this.args,
|
|
30
|
+
];
|
|
31
|
+
}
|
|
32
|
+
getAssetsToApprove() {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
return [{
|
|
35
|
+
owner: this.args[1],
|
|
36
|
+
asset: controllerToAssetMap[this.args[0]],
|
|
37
|
+
}];
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ActionWithL2 } from '../../ActionWithL2';
|
|
2
|
+
import { EthAddress, uint8, uint16, uint256 } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* SparkDelegateCredit - Delegate credit
|
|
5
|
+
*
|
|
6
|
+
* @category Spark
|
|
7
|
+
*/
|
|
8
|
+
export declare class SparkDelegateCredit extends ActionWithL2 {
|
|
9
|
+
/**
|
|
10
|
+
* @param useOnDefaultMarket If this is true it defaults to the hardcoded market in contract
|
|
11
|
+
* @param market Address provider for specific market
|
|
12
|
+
* @param amount Amount of tokens to be payed back
|
|
13
|
+
* @param rateMode Type of borrow debt [Stable: 1, Variable: 2]
|
|
14
|
+
* @param assetId The id of the token to be borrowed
|
|
15
|
+
* @param delegatee The id of the underlying asset to be repaid
|
|
16
|
+
*/
|
|
17
|
+
constructor(useOnDefaultMarket: boolean, market: EthAddress, amount: uint256, rateMode: uint8, assetId: uint16, delegatee: EthAddress);
|
|
18
|
+
encodeInputs(): string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { ActionWithL2 } from '../../ActionWithL2';
|
|
2
|
+
import { getAddr } from '../../addresses';
|
|
3
|
+
/**
|
|
4
|
+
* SparkDelegateCredit - Delegate credit
|
|
5
|
+
*
|
|
6
|
+
* @category Spark
|
|
7
|
+
*/
|
|
8
|
+
export class SparkDelegateCredit extends ActionWithL2 {
|
|
9
|
+
/**
|
|
10
|
+
* @param useOnDefaultMarket If this is true it defaults to the hardcoded market in contract
|
|
11
|
+
* @param market Address provider for specific market
|
|
12
|
+
* @param amount Amount of tokens to be payed back
|
|
13
|
+
* @param rateMode Type of borrow debt [Stable: 1, Variable: 2]
|
|
14
|
+
* @param assetId The id of the token to be borrowed
|
|
15
|
+
* @param delegatee The id of the underlying asset to be repaid
|
|
16
|
+
*/
|
|
17
|
+
constructor(useOnDefaultMarket, market, amount, rateMode, assetId, delegatee) {
|
|
18
|
+
super('SparkDelegateCredit', getAddr('SparkDelegateCredit'), ['uint256', 'address', 'uint16', 'uint8', 'bool', 'address'], [amount, delegatee, assetId, rateMode, useOnDefaultMarket, market]);
|
|
19
|
+
this.mappableArgs = [
|
|
20
|
+
this.args[0],
|
|
21
|
+
this.args[1],
|
|
22
|
+
this.args[2],
|
|
23
|
+
this.args[3],
|
|
24
|
+
this.args[4],
|
|
25
|
+
this.args[5],
|
|
26
|
+
];
|
|
27
|
+
}
|
|
28
|
+
encodeInputs() {
|
|
29
|
+
// executeActionDirectL2
|
|
30
|
+
let encodedInput = '0x2895f3aa';
|
|
31
|
+
// amount
|
|
32
|
+
encodedInput = encodedInput.concat(this.numberToBytes32(this.args[0]));
|
|
33
|
+
// delegatee
|
|
34
|
+
encodedInput = encodedInput.concat(this.addressToBytes20(this.args[1]));
|
|
35
|
+
// assetId
|
|
36
|
+
encodedInput = encodedInput.concat(this.numberToBytes2(this.args[2]));
|
|
37
|
+
// rateMode
|
|
38
|
+
encodedInput = encodedInput.concat(this.numberToBytes1(this.args[3]));
|
|
39
|
+
// useDefaultMarket
|
|
40
|
+
encodedInput = encodedInput.concat(this.boolToBytes1(this.args[4]));
|
|
41
|
+
if (!this.args[4]) {
|
|
42
|
+
// market
|
|
43
|
+
encodedInput = encodedInput.concat(this.addressToBytes20(this.args[5]));
|
|
44
|
+
}
|
|
45
|
+
return encodedInput;
|
|
46
|
+
}
|
|
47
|
+
}
|
package/esm/src/addresses.d.ts
CHANGED
|
@@ -72,6 +72,7 @@ export declare const actionAddresses: {
|
|
|
72
72
|
SparkSupply: string;
|
|
73
73
|
SparkSwapBorrowRateMode: string;
|
|
74
74
|
SparkWithdraw: string;
|
|
75
|
+
SparkDelegateCredit: string;
|
|
75
76
|
CompBorrow: string;
|
|
76
77
|
CompClaim: string;
|
|
77
78
|
CompPayback: string;
|
|
@@ -162,12 +163,15 @@ export declare const actionAddresses: {
|
|
|
162
163
|
CurveUsdCreate: string;
|
|
163
164
|
CurveUsdPayback: string;
|
|
164
165
|
CurveUsdSupply: string;
|
|
166
|
+
CurveUsdAdjust: string;
|
|
165
167
|
CurveUsdWithdraw: string;
|
|
166
168
|
CurveUsdLevCreate: string;
|
|
167
169
|
CurveUsdRepay: string;
|
|
168
170
|
CurveUsdSwapper: string;
|
|
169
171
|
CurveUsdSelfLiquidate: string;
|
|
170
172
|
CurveUsdSelfLiquidateWithColl: string;
|
|
173
|
+
ApproveToken?: undefined;
|
|
174
|
+
AaveV3DelegateCredit?: undefined;
|
|
171
175
|
AaveV3RatioTrigger?: undefined;
|
|
172
176
|
GasFeeTakerL2?: undefined;
|
|
173
177
|
AaveV3RatioCheck?: undefined;
|
|
@@ -177,6 +181,7 @@ export declare const actionAddresses: {
|
|
|
177
181
|
UnwrapEth: string;
|
|
178
182
|
SendToken: string;
|
|
179
183
|
PullToken: string;
|
|
184
|
+
ApproveToken: string;
|
|
180
185
|
SendTokenAndUnwrap: string;
|
|
181
186
|
ToggleSub: string;
|
|
182
187
|
TokenBalance: string;
|
|
@@ -190,6 +195,7 @@ export declare const actionAddresses: {
|
|
|
190
195
|
AaveV3SwapBorrowRateMode: string;
|
|
191
196
|
AaveV3Withdraw: string;
|
|
192
197
|
AaveV3ClaimRewards: string;
|
|
198
|
+
AaveV3DelegateCredit: string;
|
|
193
199
|
FLAaveV3NoFee: string;
|
|
194
200
|
FLAaveV3: string;
|
|
195
201
|
FLBalancer: string;
|
|
@@ -255,6 +261,7 @@ export declare const actionAddresses: {
|
|
|
255
261
|
SparkSupply?: undefined;
|
|
256
262
|
SparkSwapBorrowRateMode?: undefined;
|
|
257
263
|
SparkWithdraw?: undefined;
|
|
264
|
+
SparkDelegateCredit?: undefined;
|
|
258
265
|
CompBorrow?: undefined;
|
|
259
266
|
CompClaim?: undefined;
|
|
260
267
|
CompPayback?: undefined;
|
|
@@ -336,6 +343,7 @@ export declare const actionAddresses: {
|
|
|
336
343
|
CurveUsdCreate?: undefined;
|
|
337
344
|
CurveUsdPayback?: undefined;
|
|
338
345
|
CurveUsdSupply?: undefined;
|
|
346
|
+
CurveUsdAdjust?: undefined;
|
|
339
347
|
CurveUsdWithdraw?: undefined;
|
|
340
348
|
CurveUsdLevCreate?: undefined;
|
|
341
349
|
CurveUsdRepay?: undefined;
|
|
@@ -425,6 +433,7 @@ export declare const actionAddresses: {
|
|
|
425
433
|
SparkSupply?: undefined;
|
|
426
434
|
SparkSwapBorrowRateMode?: undefined;
|
|
427
435
|
SparkWithdraw?: undefined;
|
|
436
|
+
SparkDelegateCredit?: undefined;
|
|
428
437
|
CompBorrow?: undefined;
|
|
429
438
|
CompClaim?: undefined;
|
|
430
439
|
CompPayback?: undefined;
|
|
@@ -506,12 +515,15 @@ export declare const actionAddresses: {
|
|
|
506
515
|
CurveUsdCreate?: undefined;
|
|
507
516
|
CurveUsdPayback?: undefined;
|
|
508
517
|
CurveUsdSupply?: undefined;
|
|
518
|
+
CurveUsdAdjust?: undefined;
|
|
509
519
|
CurveUsdWithdraw?: undefined;
|
|
510
520
|
CurveUsdLevCreate?: undefined;
|
|
511
521
|
CurveUsdRepay?: undefined;
|
|
512
522
|
CurveUsdSwapper?: undefined;
|
|
513
523
|
CurveUsdSelfLiquidate?: undefined;
|
|
514
524
|
CurveUsdSelfLiquidateWithColl?: undefined;
|
|
525
|
+
ApproveToken?: undefined;
|
|
526
|
+
AaveV3DelegateCredit?: undefined;
|
|
515
527
|
AaveV3RatioTrigger?: undefined;
|
|
516
528
|
} | {
|
|
517
529
|
DFSSell: string;
|
|
@@ -595,6 +607,7 @@ export declare const actionAddresses: {
|
|
|
595
607
|
SparkSupply?: undefined;
|
|
596
608
|
SparkSwapBorrowRateMode?: undefined;
|
|
597
609
|
SparkWithdraw?: undefined;
|
|
610
|
+
SparkDelegateCredit?: undefined;
|
|
598
611
|
CompBorrow?: undefined;
|
|
599
612
|
CompClaim?: undefined;
|
|
600
613
|
CompPayback?: undefined;
|
|
@@ -675,12 +688,15 @@ export declare const actionAddresses: {
|
|
|
675
688
|
CurveUsdCreate?: undefined;
|
|
676
689
|
CurveUsdPayback?: undefined;
|
|
677
690
|
CurveUsdSupply?: undefined;
|
|
691
|
+
CurveUsdAdjust?: undefined;
|
|
678
692
|
CurveUsdWithdraw?: undefined;
|
|
679
693
|
CurveUsdLevCreate?: undefined;
|
|
680
694
|
CurveUsdRepay?: undefined;
|
|
681
695
|
CurveUsdSwapper?: undefined;
|
|
682
696
|
CurveUsdSelfLiquidate?: undefined;
|
|
683
697
|
CurveUsdSelfLiquidateWithColl?: undefined;
|
|
698
|
+
ApproveToken?: undefined;
|
|
699
|
+
AaveV3DelegateCredit?: undefined;
|
|
684
700
|
AaveV3RatioTrigger?: undefined;
|
|
685
701
|
GasFeeTakerL2?: undefined;
|
|
686
702
|
AaveV3RatioCheck?: undefined;
|
package/esm/src/addresses.js
CHANGED
|
@@ -82,6 +82,7 @@ export const actionAddresses = {
|
|
|
82
82
|
SparkSupply: '0x9e1d7AAA55D83D36d55BF11cAe4d922aF52B6eF0',
|
|
83
83
|
SparkSwapBorrowRateMode: '0x71B0687C7ec0286dc3cfb715fe97249604aC898f',
|
|
84
84
|
SparkWithdraw: '0x1e3187D89e79B5c411D710E0fdF2709517852600',
|
|
85
|
+
SparkDelegateCredit: '0x0000000000000000000000000000000000000000',
|
|
85
86
|
// compound
|
|
86
87
|
CompBorrow: '0x8495579BF6Ae848f7E59686536F834f1d2CCd79C',
|
|
87
88
|
CompClaim: '0x81F488cF7A0128A9DB5e7207042cCAB1CB0ac902',
|
|
@@ -191,6 +192,7 @@ export const actionAddresses = {
|
|
|
191
192
|
CurveUsdCreate: '0x715B40970dac1cfAf0bB85C4Fe64921b44b3f73e',
|
|
192
193
|
CurveUsdPayback: '0xbcAd628159ab0f3d7F391dBb4c3553aFCD61CA80',
|
|
193
194
|
CurveUsdSupply: '0xa55B3CE5ae7E59002f53b2153ABe326823ccCDE2',
|
|
195
|
+
CurveUsdAdjust: '0x6f69A7d0B1BE7602381d9cCE6B29F05B9D0b85e6',
|
|
194
196
|
CurveUsdWithdraw: '0x54B8D984fc79B000D7B6F6E0f52CD054E965120f',
|
|
195
197
|
CurveUsdLevCreate: '0x8B5ACd4ce0a43327aaDfc5c42be029898e242393',
|
|
196
198
|
CurveUsdRepay: '0xDaDFC60207C17be005ECf2B03f3B31885D22F908',
|
|
@@ -205,6 +207,7 @@ export const actionAddresses = {
|
|
|
205
207
|
UnwrapEth: '0x1Fa75B00A05C2EbBd0EDF253a63c209966337A0d',
|
|
206
208
|
SendToken: '0xEbA499702856f1EFda2546e9fEFC1319A3b40538',
|
|
207
209
|
PullToken: '0x392579E020a688068422A925c85f28bFD12a7EBB',
|
|
210
|
+
ApproveToken: '0xA4161cED7A29F0a3424e464a4a2dBf75888c5BF9',
|
|
208
211
|
SendTokenAndUnwrap: '0x8000174366066923D554cb466e190258A6FF3b1f',
|
|
209
212
|
ToggleSub: '0x988C5C24AE6348404196267e19962f36961CAc29',
|
|
210
213
|
TokenBalance: '0xC6FF5b01f7c7b35b6e093fF70D2332B361C5Be5A',
|
|
@@ -219,6 +222,7 @@ export const actionAddresses = {
|
|
|
219
222
|
AaveV3SwapBorrowRateMode: '0xB8f0243b492f0e80feF5315Ba8692e7635481845',
|
|
220
223
|
AaveV3Withdraw: '0xf19d045f6cFc04A5Ee5E0e8837b565b9f276e3F7',
|
|
221
224
|
AaveV3ClaimRewards: '0xBE8e8cea67085F869C1C0040fD52F9F3115E962e',
|
|
225
|
+
AaveV3DelegateCredit: '0x0000000000000000000000000000000000000000',
|
|
222
226
|
// flashloan
|
|
223
227
|
FLAaveV3NoFee: '0xfbcF23D2BeF8A2C491cfa4dD409D8dF12d431c85',
|
|
224
228
|
FLAaveV3: '0x8A07E93d2B74A80D726eE4E4A0aC1F906aB5Cc63',
|