@defisaver/sdk 1.0.66-dev-4 → 1.0.67-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.
Files changed (36) hide show
  1. package/esm/src/actions/index.d.ts +2 -1
  2. package/esm/src/actions/index.js +2 -1
  3. package/esm/src/actions/llamalend/LlamaLendBorrowAction.d.ts +15 -0
  4. package/esm/src/actions/llamalend/LlamaLendBorrowAction.js +22 -0
  5. package/esm/src/actions/llamalend/LlamaLendCreateAction.d.ts +22 -0
  6. package/esm/src/actions/llamalend/LlamaLendCreateAction.js +44 -0
  7. package/esm/src/actions/llamalend/LlamaLendPaybackAction.d.ts +22 -0
  8. package/esm/src/actions/llamalend/LlamaLendPaybackAction.js +43 -0
  9. package/esm/src/actions/llamalend/LlamaLendSelfLiquidateAction.d.ts +19 -0
  10. package/esm/src/actions/llamalend/LlamaLendSelfLiquidateAction.js +38 -0
  11. package/esm/src/actions/llamalend/LlamaLendSupplyAction.d.ts +20 -0
  12. package/esm/src/actions/llamalend/LlamaLendSupplyAction.js +40 -0
  13. package/esm/src/actions/llamalend/LlamaLendWithdrawAction.d.ts +15 -0
  14. package/esm/src/actions/llamalend/LlamaLendWithdrawAction.js +22 -0
  15. package/esm/src/actions/llamalend/index.d.ts +6 -0
  16. package/esm/src/actions/llamalend/index.js +6 -0
  17. package/esm/src/addresses.d.ts +24 -0
  18. package/esm/src/addresses.js +7 -0
  19. package/esm/src/index.d.ts +96 -0
  20. package/esm/src/utils/index.d.ts +2 -1
  21. package/esm/src/utils/index.js +2 -1
  22. package/esm/src/utils/llamalend-utils.d.ts +10 -0
  23. package/esm/src/utils/llamalend-utils.js +10 -0
  24. package/package.json +1 -1
  25. package/src/actions/index.ts +2 -0
  26. package/src/actions/llamalend/LlamaLendBorrowAction.ts +34 -0
  27. package/src/actions/llamalend/LlamaLendCreateAction.ts +49 -0
  28. package/src/actions/llamalend/LlamaLendPaybackAction.ts +48 -0
  29. package/src/actions/llamalend/LlamaLendSelfLiquidateAction.ts +41 -0
  30. package/src/actions/llamalend/LlamaLendSupplyAction.ts +44 -0
  31. package/src/actions/llamalend/LlamaLendWithdrawAction.ts +34 -0
  32. package/src/actions/llamalend/index.ts +6 -0
  33. package/src/addresses.ts +8 -0
  34. package/src/utils/index.ts +2 -0
  35. package/src/utils/llamalend-utils.ts +11 -0
  36. package/umd/index.js +363 -56
@@ -27,4 +27,5 @@ 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
- 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, };
30
+ import * as llamalend from './llamalend';
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, };
@@ -27,4 +27,5 @@ 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
- 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, };
30
+ import * as llamalend from './llamalend';
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, };
@@ -0,0 +1,15 @@
1
+ import { Action } from '../../Action';
2
+ import { EthAddress, uint256 } from '../../types';
3
+ /**
4
+ * LlamaLendBorrowAction - Action that borrows debt asset from proxy llamalend position
5
+ *
6
+ * @category LlamaLend
7
+ */
8
+ export declare class LlamaLendBorrowAction extends Action {
9
+ /**
10
+ * address controllerAddress - Address of the llamalend market controller
11
+ * address to - Address that will receive the borrowed debt asset, will default to proxy
12
+ * uint256 debtAmount - Amount of debt asset to borrow
13
+ */
14
+ constructor(controllerAddress: EthAddress, to: EthAddress, debtAmount: uint256);
15
+ }
@@ -0,0 +1,22 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ /**
4
+ * LlamaLendBorrowAction - Action that borrows debt asset from proxy llamalend position
5
+ *
6
+ * @category LlamaLend
7
+ */
8
+ export class LlamaLendBorrowAction extends Action {
9
+ /**
10
+ * address controllerAddress - Address of the llamalend market controller
11
+ * address to - Address that will receive the borrowed debt asset, will default to proxy
12
+ * uint256 debtAmount - Amount of debt asset to borrow
13
+ */
14
+ /// @dev debtAmount must be non-zero
15
+ /// @dev if debtAmount == uintMax will borrow as much as the collateral will support
16
+ constructor(controllerAddress, to, debtAmount) {
17
+ super('LlamaLendBorrow', getAddr('LlamaLendBorrow'), ['address', 'address', 'uint256'], [controllerAddress, to, debtAmount]);
18
+ this.mappableArgs = [
19
+ ...this.args,
20
+ ];
21
+ }
22
+ }
@@ -0,0 +1,22 @@
1
+ import { Action } from '../../Action';
2
+ import { EthAddress, uint256 } from '../../types';
3
+ /**
4
+ * LlamaLendCreateAction - Action that creates a llamalend position on behalf of proxy
5
+ *
6
+ * @category LlamaLend
7
+ */
8
+ export declare class LlamaLendCreateAction extends Action {
9
+ /**
10
+ * address controllerAddress - Address of the llamalend market controller
11
+ * address from - Address from which to pull collateral asset, will default to proxy
12
+ * address to - Address that will receive the borrowed debt asset, will default to proxy
13
+ * uint256 collateralAmount - Amount of collateral asset to supply
14
+ * uint256 debtAmount - Amount of debt asset to borrow
15
+ * uint256 nBands - Number of bands in which the collateral will be supplied
16
+ */
17
+ constructor(controllerAddress: EthAddress, from: EthAddress, to: EthAddress, collateralAmount: uint256, debtAmount: uint256, nBands: uint256);
18
+ getAssetsToApprove(): Promise<{
19
+ owner: any;
20
+ asset: string;
21
+ }[]>;
22
+ }
@@ -0,0 +1,44 @@
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 { requireAddress } from '../../utils/general';
12
+ import { getAddr } from '../../addresses';
13
+ import { controllerToCollateralAssetMap } from '../../utils/llamalend-utils';
14
+ /**
15
+ * LlamaLendCreateAction - Action that creates a llamalend position on behalf of proxy
16
+ *
17
+ * @category LlamaLend
18
+ */
19
+ export class LlamaLendCreateAction extends Action {
20
+ /**
21
+ * address controllerAddress - Address of the llamalend market controller
22
+ * address from - Address from which to pull collateral asset, will default to proxy
23
+ * address to - Address that will receive the borrowed debt asset, will default to proxy
24
+ * uint256 collateralAmount - Amount of collateral asset to supply
25
+ * uint256 debtAmount - Amount of debt asset to borrow
26
+ * uint256 nBands - Number of bands in which the collateral will be supplied
27
+ */
28
+ /// @dev both collateralAmount and debtAmount must be non-zero and can be maxUint
29
+ constructor(controllerAddress, from, to, collateralAmount, debtAmount, nBands) {
30
+ requireAddress(to);
31
+ super('LlamaLendCreate', getAddr('LlamaLendCreate'), ['address', 'address', 'address', 'uint256', 'uint256', 'uint256'], [controllerAddress, from, to, collateralAmount, debtAmount, nBands]);
32
+ this.mappableArgs = [
33
+ ...this.args,
34
+ ];
35
+ }
36
+ getAssetsToApprove() {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ return [{
39
+ owner: this.args[1],
40
+ asset: controllerToCollateralAssetMap[this.args[0]],
41
+ }];
42
+ });
43
+ }
44
+ }
@@ -0,0 +1,22 @@
1
+ import { Action } from '../../Action';
2
+ import { EthAddress, uint256, int256 } from '../../types';
3
+ /**
4
+ * LlamaLendPaybackAction - Action that pays back debt asset to a llamalend position
5
+ *
6
+ * @category LlamaLend
7
+ */
8
+ export declare class LlamaLendPaybackAction extends Action {
9
+ /**
10
+ * address controllerAddress - Address of the llamalend market controller
11
+ * address from - Address from which to pull debt asset, will default to proxy
12
+ * address onBehalfOf - Address for which we are paying back debt, will default to proxy
13
+ * address to - Address that will receive the debt asset and collateral asset if close, will default to proxy
14
+ * uint256 debtAmount - Amount of debt asset to payback
15
+ * int256 maxActiveBand - Don't allow active band to be higher than this (to prevent front-running the repay)
16
+ */
17
+ constructor(controllerAddress: EthAddress, from: EthAddress, onBehalfOf: EthAddress, to: EthAddress, debtAmount: uint256, maxActiveBand: int256);
18
+ getAssetsToApprove(): Promise<{
19
+ owner: any;
20
+ asset: string;
21
+ }[]>;
22
+ }
@@ -0,0 +1,43 @@
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 { controllerToDebtAssetMap } from '../../utils/llamalend-utils';
13
+ /**
14
+ * LlamaLendPaybackAction - Action that pays back debt asset to a llamalend position
15
+ *
16
+ * @category LlamaLend
17
+ */
18
+ export class LlamaLendPaybackAction extends Action {
19
+ /**
20
+ * address controllerAddress - Address of the llamalend market controller
21
+ * address from - Address from which to pull debt asset, will default to proxy
22
+ * address onBehalfOf - Address for which we are paying back debt, will default to proxy
23
+ * address to - Address that will receive the debt asset and collateral asset if close, will default to proxy
24
+ * uint256 debtAmount - Amount of debt asset to payback
25
+ * int256 maxActiveBand - Don't allow active band to be higher than this (to prevent front-running the repay)
26
+ */
27
+ /// @dev debtAmount must be non-zero
28
+ /// @dev if debtAmount >= debt will repay whole debt and close the position, transfering collateral
29
+ constructor(controllerAddress, from, onBehalfOf, to, debtAmount, maxActiveBand) {
30
+ super('LlamaLendPayback', getAddr('LlamaLendPayback'), ['address', 'address', 'address', 'address', 'uint256', 'int256'], [controllerAddress, from, onBehalfOf, to, debtAmount, maxActiveBand]);
31
+ this.mappableArgs = [
32
+ ...this.args,
33
+ ];
34
+ }
35
+ getAssetsToApprove() {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ return [{
38
+ owner: this.args[1],
39
+ asset: controllerToDebtAssetMap[this.args[0]],
40
+ }];
41
+ });
42
+ }
43
+ }
@@ -0,0 +1,19 @@
1
+ import { Action } from '../../Action';
2
+ import { EthAddress, uint256 } from '../../types';
3
+ /**
4
+ *
5
+ * @category LlamaLend
6
+ */
7
+ export declare class LlamaLendSelfLiquidateAction extends Action {
8
+ /**
9
+ @param controllerAddress Address of the llamalend market controller
10
+ @param minDebtAssetExpected Minimum amount of debt asset as collateral for the user to have
11
+ @param from Address from which to pull debt asset if needed
12
+ @param to Address that will receive the debt asset and collateral asset
13
+ */
14
+ constructor(controllerAddress: EthAddress, minDebtAssetExpected: uint256, from: EthAddress, to: EthAddress);
15
+ getAssetsToApprove(): Promise<{
16
+ owner: any;
17
+ asset: string;
18
+ }[]>;
19
+ }
@@ -0,0 +1,38 @@
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 { controllerToDebtAssetMap } from '../../utils/llamalend-utils';
13
+ /**
14
+ *
15
+ * @category LlamaLend
16
+ */
17
+ export class LlamaLendSelfLiquidateAction extends Action {
18
+ /**
19
+ @param controllerAddress Address of the llamalend market controller
20
+ @param minDebtAssetExpected Minimum amount of debt asset as collateral for the user to have
21
+ @param from Address from which to pull debt asset if needed
22
+ @param to Address that will receive the debt asset and collateral asset
23
+ */
24
+ constructor(controllerAddress, minDebtAssetExpected, from, to) {
25
+ super('LlamaLendSelfLiquidate', getAddr('LlamaLendSelfLiquidate'), ['address', 'uint256', 'address', 'address'], [controllerAddress, minDebtAssetExpected, from, to]);
26
+ this.mappableArgs = [
27
+ ...this.args,
28
+ ];
29
+ }
30
+ getAssetsToApprove() {
31
+ return __awaiter(this, void 0, void 0, function* () {
32
+ return [{
33
+ owner: this.args[2],
34
+ asset: controllerToDebtAssetMap[this.args[0]],
35
+ }];
36
+ });
37
+ }
38
+ }
@@ -0,0 +1,20 @@
1
+ import { Action } from '../../Action';
2
+ import { EthAddress, uint256 } from '../../types';
3
+ /**
4
+ * LlamaLendSupplyAction - Action that supplies collateral to a llamalend position
5
+ *
6
+ * @category LlamaLend
7
+ */
8
+ export declare class LlamaLendSupplyAction extends Action {
9
+ /**
10
+ * address controllerAddress - Address of the llamalend market controller
11
+ * address from - Address from which to pull collateral asset, will default to proxy
12
+ * address onBehalfOf - Address for which we are supplying, will default to proxy
13
+ * uint256 collateralAmount - Amount of collateral asset to supply
14
+ */
15
+ constructor(controllerAddress: EthAddress, from: EthAddress, onBehalfOf: EthAddress, collateralAmount: uint256);
16
+ getAssetsToApprove(): Promise<{
17
+ owner: any;
18
+ asset: string;
19
+ }[]>;
20
+ }
@@ -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 { controllerToCollateralAssetMap } from '../../utils/llamalend-utils';
13
+ /**
14
+ * LlamaLendSupplyAction - Action that supplies collateral to a llamalend position
15
+ *
16
+ * @category LlamaLend
17
+ */
18
+ export class LlamaLendSupplyAction extends Action {
19
+ /**
20
+ * address controllerAddress - Address of the llamalend market controller
21
+ * address from - Address from which to pull collateral asset, will default to proxy
22
+ * address onBehalfOf - Address for which we are supplying, will default to proxy
23
+ * uint256 collateralAmount - Amount of collateral asset to supply
24
+ */
25
+ /// @dev collateralAmount must be non-zero, can be maxUint
26
+ constructor(controllerAddress, from, onBehalfOf, collateralAmount) {
27
+ super('LlamaLendSupply', getAddr('LlamaLendSupply'), ['address', 'address', 'address', 'uint256'], [controllerAddress, from, onBehalfOf, collateralAmount]);
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: controllerToCollateralAssetMap[this.args[0]],
37
+ }];
38
+ });
39
+ }
40
+ }
@@ -0,0 +1,15 @@
1
+ import { Action } from '../../Action';
2
+ import { EthAddress, uint256 } from '../../types';
3
+ /**
4
+ * LlamaLendWithdrawAction - Action that withdraws collateral from proxy llamalend position
5
+ *
6
+ * @category LlamaLend
7
+ */
8
+ export declare class LlamaLendWithdrawAction extends Action {
9
+ /**
10
+ * address controllerAddress - Address of the llamalend market controller
11
+ * address to - Address that will receive the withdrawn collateral, will default to proxy
12
+ * uint256 collateralAmount - Amount of collateral to withdraw
13
+ */
14
+ constructor(controllerAddress: EthAddress, to: EthAddress, collateralAmount: uint256);
15
+ }
@@ -0,0 +1,22 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ /**
4
+ * LlamaLendWithdrawAction - Action that withdraws collateral from proxy llamalend position
5
+ *
6
+ * @category LlamaLend
7
+ */
8
+ export class LlamaLendWithdrawAction extends Action {
9
+ /**
10
+ * address controllerAddress - Address of the llamalend market controller
11
+ * address to - Address that will receive the withdrawn collateral, will default to proxy
12
+ * uint256 collateralAmount - Amount of collateral to withdraw
13
+ */
14
+ /// @dev collateralAmount must be non-zero
15
+ /// @dev if collateralAmount == uintMax will withdraw as much as the debt will allow
16
+ constructor(controllerAddress, to, collateralAmount) {
17
+ super('LlamaLendWithdraw', getAddr('LlamaLendWithdraw'), ['address', 'address', 'uint256'], [controllerAddress, to, collateralAmount]);
18
+ this.mappableArgs = [
19
+ ...this.args,
20
+ ];
21
+ }
22
+ }
@@ -0,0 +1,6 @@
1
+ export * from './LlamaLendBorrowAction';
2
+ export * from './LlamaLendWithdrawAction';
3
+ export * from './LlamaLendSupplyAction';
4
+ export * from './LlamaLendCreateAction';
5
+ export * from './LlamaLendPaybackAction';
6
+ export * from './LlamaLendSelfLiquidateAction';
@@ -0,0 +1,6 @@
1
+ export * from './LlamaLendBorrowAction';
2
+ export * from './LlamaLendWithdrawAction';
3
+ export * from './LlamaLendSupplyAction';
4
+ export * from './LlamaLendCreateAction';
5
+ export * from './LlamaLendPaybackAction';
6
+ export * from './LlamaLendSelfLiquidateAction';
@@ -193,6 +193,12 @@ export declare const actionAddresses: {
193
193
  MorphoBluePayback: string;
194
194
  MorphoBlueSetAuth: string;
195
195
  MorphoBlueSetAuthWithSig: string;
196
+ LlamaLendCreate: string;
197
+ LlamaLendSupply: string;
198
+ LlamaLendBorrow: string;
199
+ LlamaLendWithdraw: string;
200
+ LlamaLendPayback: string;
201
+ LlamaLendSelfLiquidate: string;
196
202
  AaveV3DelegateCredit?: undefined;
197
203
  AaveV3RatioTrigger?: undefined;
198
204
  GasFeeTakerL2?: undefined;
@@ -394,6 +400,12 @@ export declare const actionAddresses: {
394
400
  MorphoBluePayback?: undefined;
395
401
  MorphoBlueSetAuth?: undefined;
396
402
  MorphoBlueSetAuthWithSig?: undefined;
403
+ LlamaLendCreate?: undefined;
404
+ LlamaLendSupply?: undefined;
405
+ LlamaLendBorrow?: undefined;
406
+ LlamaLendWithdraw?: undefined;
407
+ LlamaLendPayback?: undefined;
408
+ LlamaLendSelfLiquidate?: undefined;
397
409
  } | {
398
410
  DFSSell: string;
399
411
  WrapEth: string;
@@ -589,6 +601,12 @@ export declare const actionAddresses: {
589
601
  MorphoBluePayback?: undefined;
590
602
  MorphoBlueSetAuth?: undefined;
591
603
  MorphoBlueSetAuthWithSig?: undefined;
604
+ LlamaLendCreate?: undefined;
605
+ LlamaLendSupply?: undefined;
606
+ LlamaLendBorrow?: undefined;
607
+ LlamaLendWithdraw?: undefined;
608
+ LlamaLendPayback?: undefined;
609
+ LlamaLendSelfLiquidate?: undefined;
592
610
  AaveV3DelegateCredit?: undefined;
593
611
  AaveV3RatioTrigger?: undefined;
594
612
  } | {
@@ -784,6 +802,12 @@ export declare const actionAddresses: {
784
802
  MorphoBluePayback?: undefined;
785
803
  MorphoBlueSetAuth?: undefined;
786
804
  MorphoBlueSetAuthWithSig?: undefined;
805
+ LlamaLendCreate?: undefined;
806
+ LlamaLendSupply?: undefined;
807
+ LlamaLendBorrow?: undefined;
808
+ LlamaLendWithdraw?: undefined;
809
+ LlamaLendPayback?: undefined;
810
+ LlamaLendSelfLiquidate?: undefined;
787
811
  AaveV3DelegateCredit?: undefined;
788
812
  AaveV3RatioTrigger?: undefined;
789
813
  GasFeeTakerL2?: undefined;
@@ -223,6 +223,13 @@ export const actionAddresses = {
223
223
  MorphoBluePayback: '0x9f437E5F705E02d77adC2e72C34926978776b085',
224
224
  MorphoBlueSetAuth: '0xf30935e20c6357c7bcecd5e58ad6de26d54b9f64',
225
225
  MorphoBlueSetAuthWithSig: '0xE2d5fCDBf73BAd24A0FCAf6B2733933A98021808',
226
+ // llamalend
227
+ LlamaLendCreate: '0x4349be191ea63173eD98b7fC1b0DeC1ef9Bc6c11',
228
+ LlamaLendSupply: '0x1900eF943bD1b038c58d9F35C3825F119F9BB730',
229
+ LlamaLendBorrow: '0xCF693585C47049F3eACc2285E7Fe4e80123b2520',
230
+ LlamaLendWithdraw: '0x2593Da3c4110C531541424e9e847cd7905894C52',
231
+ LlamaLendPayback: '0x5b506b7a0117dbcd086632575da599bb603eb602',
232
+ LlamaLendSelfLiquidate: '0xe4944e0e46177300fa4c351ef72b95b9655e8394',
226
233
  },
227
234
  [NETWORKS.optimism.chainId]: {
228
235
  DFSSell: '0xC6c601fcAa870efd26C624F8c65fbc54cBe533b1',
@@ -204,6 +204,12 @@ declare const actionAddressesAllChains: {
204
204
  MorphoBluePayback: string;
205
205
  MorphoBlueSetAuth: string;
206
206
  MorphoBlueSetAuthWithSig: string;
207
+ LlamaLendCreate: string;
208
+ LlamaLendSupply: string;
209
+ LlamaLendBorrow: string;
210
+ LlamaLendWithdraw: string;
211
+ LlamaLendPayback: string;
212
+ LlamaLendSelfLiquidate: string;
207
213
  AaveV3DelegateCredit?: undefined;
208
214
  AaveV3RatioTrigger?: undefined;
209
215
  GasFeeTakerL2?: undefined;
@@ -405,6 +411,12 @@ declare const actionAddressesAllChains: {
405
411
  MorphoBluePayback?: undefined;
406
412
  MorphoBlueSetAuth?: undefined;
407
413
  MorphoBlueSetAuthWithSig?: undefined;
414
+ LlamaLendCreate?: undefined;
415
+ LlamaLendSupply?: undefined;
416
+ LlamaLendBorrow?: undefined;
417
+ LlamaLendWithdraw?: undefined;
418
+ LlamaLendPayback?: undefined;
419
+ LlamaLendSelfLiquidate?: undefined;
408
420
  } | {
409
421
  DFSSell: string;
410
422
  WrapEth: string;
@@ -600,6 +612,12 @@ declare const actionAddressesAllChains: {
600
612
  MorphoBluePayback?: undefined;
601
613
  MorphoBlueSetAuth?: undefined;
602
614
  MorphoBlueSetAuthWithSig?: undefined;
615
+ LlamaLendCreate?: undefined;
616
+ LlamaLendSupply?: undefined;
617
+ LlamaLendBorrow?: undefined;
618
+ LlamaLendWithdraw?: undefined;
619
+ LlamaLendPayback?: undefined;
620
+ LlamaLendSelfLiquidate?: undefined;
603
621
  AaveV3DelegateCredit?: undefined;
604
622
  AaveV3RatioTrigger?: undefined;
605
623
  } | {
@@ -795,6 +813,12 @@ declare const actionAddressesAllChains: {
795
813
  MorphoBluePayback?: undefined;
796
814
  MorphoBlueSetAuth?: undefined;
797
815
  MorphoBlueSetAuthWithSig?: undefined;
816
+ LlamaLendCreate?: undefined;
817
+ LlamaLendSupply?: undefined;
818
+ LlamaLendBorrow?: undefined;
819
+ LlamaLendWithdraw?: undefined;
820
+ LlamaLendPayback?: undefined;
821
+ LlamaLendSelfLiquidate?: undefined;
798
822
  AaveV3DelegateCredit?: undefined;
799
823
  AaveV3RatioTrigger?: undefined;
800
824
  GasFeeTakerL2?: undefined;
@@ -994,6 +1018,12 @@ declare const actionAddresses: (chainId?: null) => {
994
1018
  MorphoBluePayback: string;
995
1019
  MorphoBlueSetAuth: string;
996
1020
  MorphoBlueSetAuthWithSig: string;
1021
+ LlamaLendCreate: string;
1022
+ LlamaLendSupply: string;
1023
+ LlamaLendBorrow: string;
1024
+ LlamaLendWithdraw: string;
1025
+ LlamaLendPayback: string;
1026
+ LlamaLendSelfLiquidate: string;
997
1027
  AaveV3DelegateCredit?: undefined;
998
1028
  AaveV3RatioTrigger?: undefined;
999
1029
  GasFeeTakerL2?: undefined;
@@ -1195,6 +1225,12 @@ declare const actionAddresses: (chainId?: null) => {
1195
1225
  MorphoBluePayback?: undefined;
1196
1226
  MorphoBlueSetAuth?: undefined;
1197
1227
  MorphoBlueSetAuthWithSig?: undefined;
1228
+ LlamaLendCreate?: undefined;
1229
+ LlamaLendSupply?: undefined;
1230
+ LlamaLendBorrow?: undefined;
1231
+ LlamaLendWithdraw?: undefined;
1232
+ LlamaLendPayback?: undefined;
1233
+ LlamaLendSelfLiquidate?: undefined;
1198
1234
  } | {
1199
1235
  DFSSell: string;
1200
1236
  WrapEth: string;
@@ -1390,6 +1426,12 @@ declare const actionAddresses: (chainId?: null) => {
1390
1426
  MorphoBluePayback?: undefined;
1391
1427
  MorphoBlueSetAuth?: undefined;
1392
1428
  MorphoBlueSetAuthWithSig?: undefined;
1429
+ LlamaLendCreate?: undefined;
1430
+ LlamaLendSupply?: undefined;
1431
+ LlamaLendBorrow?: undefined;
1432
+ LlamaLendWithdraw?: undefined;
1433
+ LlamaLendPayback?: undefined;
1434
+ LlamaLendSelfLiquidate?: undefined;
1393
1435
  AaveV3DelegateCredit?: undefined;
1394
1436
  AaveV3RatioTrigger?: undefined;
1395
1437
  } | {
@@ -1585,6 +1627,12 @@ declare const actionAddresses: (chainId?: null) => {
1585
1627
  MorphoBluePayback?: undefined;
1586
1628
  MorphoBlueSetAuth?: undefined;
1587
1629
  MorphoBlueSetAuthWithSig?: undefined;
1630
+ LlamaLendCreate?: undefined;
1631
+ LlamaLendSupply?: undefined;
1632
+ LlamaLendBorrow?: undefined;
1633
+ LlamaLendWithdraw?: undefined;
1634
+ LlamaLendPayback?: undefined;
1635
+ LlamaLendSelfLiquidate?: undefined;
1588
1636
  AaveV3DelegateCredit?: undefined;
1589
1637
  AaveV3RatioTrigger?: undefined;
1590
1638
  GasFeeTakerL2?: undefined;
@@ -1927,6 +1975,12 @@ declare const _default: {
1927
1975
  MorphoBluePayback: string;
1928
1976
  MorphoBlueSetAuth: string;
1929
1977
  MorphoBlueSetAuthWithSig: string;
1978
+ LlamaLendCreate: string;
1979
+ LlamaLendSupply: string;
1980
+ LlamaLendBorrow: string;
1981
+ LlamaLendWithdraw: string;
1982
+ LlamaLendPayback: string;
1983
+ LlamaLendSelfLiquidate: string;
1930
1984
  AaveV3DelegateCredit?: undefined;
1931
1985
  AaveV3RatioTrigger?: undefined;
1932
1986
  GasFeeTakerL2?: undefined;
@@ -2128,6 +2182,12 @@ declare const _default: {
2128
2182
  MorphoBluePayback?: undefined;
2129
2183
  MorphoBlueSetAuth?: undefined;
2130
2184
  MorphoBlueSetAuthWithSig?: undefined;
2185
+ LlamaLendCreate?: undefined;
2186
+ LlamaLendSupply?: undefined;
2187
+ LlamaLendBorrow?: undefined;
2188
+ LlamaLendWithdraw?: undefined;
2189
+ LlamaLendPayback?: undefined;
2190
+ LlamaLendSelfLiquidate?: undefined;
2131
2191
  } | {
2132
2192
  DFSSell: string;
2133
2193
  WrapEth: string;
@@ -2323,6 +2383,12 @@ declare const _default: {
2323
2383
  MorphoBluePayback?: undefined;
2324
2384
  MorphoBlueSetAuth?: undefined;
2325
2385
  MorphoBlueSetAuthWithSig?: undefined;
2386
+ LlamaLendCreate?: undefined;
2387
+ LlamaLendSupply?: undefined;
2388
+ LlamaLendBorrow?: undefined;
2389
+ LlamaLendWithdraw?: undefined;
2390
+ LlamaLendPayback?: undefined;
2391
+ LlamaLendSelfLiquidate?: undefined;
2326
2392
  AaveV3DelegateCredit?: undefined;
2327
2393
  AaveV3RatioTrigger?: undefined;
2328
2394
  } | {
@@ -2518,6 +2584,12 @@ declare const _default: {
2518
2584
  MorphoBluePayback?: undefined;
2519
2585
  MorphoBlueSetAuth?: undefined;
2520
2586
  MorphoBlueSetAuthWithSig?: undefined;
2587
+ LlamaLendCreate?: undefined;
2588
+ LlamaLendSupply?: undefined;
2589
+ LlamaLendBorrow?: undefined;
2590
+ LlamaLendWithdraw?: undefined;
2591
+ LlamaLendPayback?: undefined;
2592
+ LlamaLendSelfLiquidate?: undefined;
2521
2593
  AaveV3DelegateCredit?: undefined;
2522
2594
  AaveV3RatioTrigger?: undefined;
2523
2595
  GasFeeTakerL2?: undefined;
@@ -2717,6 +2789,12 @@ declare const _default: {
2717
2789
  MorphoBluePayback: string;
2718
2790
  MorphoBlueSetAuth: string;
2719
2791
  MorphoBlueSetAuthWithSig: string;
2792
+ LlamaLendCreate: string;
2793
+ LlamaLendSupply: string;
2794
+ LlamaLendBorrow: string;
2795
+ LlamaLendWithdraw: string;
2796
+ LlamaLendPayback: string;
2797
+ LlamaLendSelfLiquidate: string;
2720
2798
  AaveV3DelegateCredit?: undefined;
2721
2799
  AaveV3RatioTrigger?: undefined;
2722
2800
  GasFeeTakerL2?: undefined;
@@ -2918,6 +2996,12 @@ declare const _default: {
2918
2996
  MorphoBluePayback?: undefined;
2919
2997
  MorphoBlueSetAuth?: undefined;
2920
2998
  MorphoBlueSetAuthWithSig?: undefined;
2999
+ LlamaLendCreate?: undefined;
3000
+ LlamaLendSupply?: undefined;
3001
+ LlamaLendBorrow?: undefined;
3002
+ LlamaLendWithdraw?: undefined;
3003
+ LlamaLendPayback?: undefined;
3004
+ LlamaLendSelfLiquidate?: undefined;
2921
3005
  } | {
2922
3006
  DFSSell: string;
2923
3007
  WrapEth: string;
@@ -3113,6 +3197,12 @@ declare const _default: {
3113
3197
  MorphoBluePayback?: undefined;
3114
3198
  MorphoBlueSetAuth?: undefined;
3115
3199
  MorphoBlueSetAuthWithSig?: undefined;
3200
+ LlamaLendCreate?: undefined;
3201
+ LlamaLendSupply?: undefined;
3202
+ LlamaLendBorrow?: undefined;
3203
+ LlamaLendWithdraw?: undefined;
3204
+ LlamaLendPayback?: undefined;
3205
+ LlamaLendSelfLiquidate?: undefined;
3116
3206
  AaveV3DelegateCredit?: undefined;
3117
3207
  AaveV3RatioTrigger?: undefined;
3118
3208
  } | {
@@ -3308,6 +3398,12 @@ declare const _default: {
3308
3398
  MorphoBluePayback?: undefined;
3309
3399
  MorphoBlueSetAuth?: undefined;
3310
3400
  MorphoBlueSetAuthWithSig?: undefined;
3401
+ LlamaLendCreate?: undefined;
3402
+ LlamaLendSupply?: undefined;
3403
+ LlamaLendBorrow?: undefined;
3404
+ LlamaLendWithdraw?: undefined;
3405
+ LlamaLendPayback?: undefined;
3406
+ LlamaLendSelfLiquidate?: undefined;
3311
3407
  AaveV3DelegateCredit?: undefined;
3312
3408
  AaveV3RatioTrigger?: undefined;
3313
3409
  GasFeeTakerL2?: undefined;
@@ -6,4 +6,5 @@ import mstableAssetPairs from './mstableAssetPairs';
6
6
  import * as curveUtils from './curve-utils';
7
7
  import * as curveusdUtils from './curveusd-utils';
8
8
  import * as basicUtils from './basic-utils';
9
- export { zeroExExchange, uniswapLP, uniswapV3LP, mstableAssetPairs, convexUtils, curveUtils, curveusdUtils, basicUtils, };
9
+ import * as llamaLenUtils from './llamalend-utils';
10
+ export { zeroExExchange, uniswapLP, uniswapV3LP, mstableAssetPairs, convexUtils, curveUtils, curveusdUtils, basicUtils, llamaLenUtils, };
@@ -6,4 +6,5 @@ import mstableAssetPairs from './mstableAssetPairs';
6
6
  import * as curveUtils from './curve-utils';
7
7
  import * as curveusdUtils from './curveusd-utils';
8
8
  import * as basicUtils from './basic-utils';
9
- export { zeroExExchange, uniswapLP, uniswapV3LP, mstableAssetPairs, convexUtils, curveUtils, curveusdUtils, basicUtils, };
9
+ import * as llamaLenUtils from './llamalend-utils';
10
+ export { zeroExExchange, uniswapLP, uniswapV3LP, mstableAssetPairs, convexUtils, curveUtils, curveusdUtils, basicUtils, llamaLenUtils, };