@defisaver/sdk 1.0.65 → 1.0.66-dev-2

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 (59) hide show
  1. package/esm/src/actions/basic/ExecuteSafeTxAction.d.ts +23 -0
  2. package/esm/src/actions/basic/ExecuteSafeTxAction.js +60 -0
  3. package/esm/src/actions/basic/LimitSellAction.d.ts +24 -0
  4. package/esm/src/actions/basic/LimitSellAction.js +63 -0
  5. package/esm/src/actions/basic/RemoveTokenApprovalAction.d.ts +15 -0
  6. package/esm/src/actions/{llamalend/LlamaLendSelfLiquidateAction.js → basic/RemoveTokenApprovalAction.js} +19 -15
  7. package/esm/src/actions/basic/WrapEthAction.d.ts +2 -1
  8. package/esm/src/actions/basic/WrapEthAction.js +4 -3
  9. package/esm/src/actions/basic/index.d.ts +3 -0
  10. package/esm/src/actions/basic/index.js +3 -0
  11. package/esm/src/actions/index.d.ts +1 -2
  12. package/esm/src/actions/index.js +1 -2
  13. package/esm/src/actions/maker/MakerGiveAction.d.ts +1 -2
  14. package/esm/src/actions/maker/MakerGiveAction.js +2 -3
  15. package/esm/src/addresses.d.ts +0 -24
  16. package/esm/src/addresses.js +3 -10
  17. package/esm/src/index.d.ts +0 -96
  18. package/esm/src/triggers/OffchainPriceTrigger.d.ts +10 -0
  19. package/esm/src/triggers/OffchainPriceTrigger.js +12 -0
  20. package/esm/src/triggers/index.d.ts +1 -0
  21. package/esm/src/triggers/index.js +1 -0
  22. package/esm/src/utils/index.d.ts +1 -2
  23. package/esm/src/utils/index.js +1 -2
  24. package/package.json +1 -1
  25. package/src/actions/basic/ExecuteSafeTxAction.ts +85 -0
  26. package/src/actions/basic/LimitSellAction.ts +63 -0
  27. package/src/actions/basic/RemoveTokenApprovalAction.ts +39 -0
  28. package/src/actions/basic/WrapEthAction.ts +4 -3
  29. package/src/actions/basic/index.ts +3 -0
  30. package/src/actions/index.ts +0 -2
  31. package/src/actions/maker/MakerGiveAction.ts +2 -3
  32. package/src/addresses.ts +3 -11
  33. package/src/triggers/OffchainPriceTrigger.ts +14 -0
  34. package/src/triggers/index.ts +2 -0
  35. package/src/utils/index.ts +0 -2
  36. package/umd/index.js +658 -780
  37. package/esm/src/actions/llamalend/LlamaLendBorrowAction.d.ts +0 -15
  38. package/esm/src/actions/llamalend/LlamaLendBorrowAction.js +0 -22
  39. package/esm/src/actions/llamalend/LlamaLendCreateAction.d.ts +0 -22
  40. package/esm/src/actions/llamalend/LlamaLendCreateAction.js +0 -44
  41. package/esm/src/actions/llamalend/LlamaLendPaybackAction.d.ts +0 -22
  42. package/esm/src/actions/llamalend/LlamaLendPaybackAction.js +0 -43
  43. package/esm/src/actions/llamalend/LlamaLendSelfLiquidateAction.d.ts +0 -19
  44. package/esm/src/actions/llamalend/LlamaLendSupplyAction.d.ts +0 -20
  45. package/esm/src/actions/llamalend/LlamaLendSupplyAction.js +0 -40
  46. package/esm/src/actions/llamalend/LlamaLendWithdrawAction.d.ts +0 -15
  47. package/esm/src/actions/llamalend/LlamaLendWithdrawAction.js +0 -22
  48. package/esm/src/actions/llamalend/index.d.ts +0 -6
  49. package/esm/src/actions/llamalend/index.js +0 -6
  50. package/esm/src/utils/llamalend-utils.d.ts +0 -10
  51. package/esm/src/utils/llamalend-utils.js +0 -10
  52. package/src/actions/llamalend/LlamaLendBorrowAction.ts +0 -34
  53. package/src/actions/llamalend/LlamaLendCreateAction.ts +0 -49
  54. package/src/actions/llamalend/LlamaLendPaybackAction.ts +0 -48
  55. package/src/actions/llamalend/LlamaLendSelfLiquidateAction.ts +0 -41
  56. package/src/actions/llamalend/LlamaLendSupplyAction.ts +0 -44
  57. package/src/actions/llamalend/LlamaLendWithdrawAction.ts +0 -34
  58. package/src/actions/llamalend/index.ts +0 -6
  59. 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 LlamaLend
16
+ * @category BasicActions
16
17
  */
17
- export class LlamaLendSelfLiquidateAction extends Action {
18
+ export class RemoveTokenApprovalAction extends Action {
18
19
  /**
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]);
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
- ...this.args,
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
  }
@@ -8,8 +8,9 @@ import { uint256 } from '../../types';
8
8
  export declare class WrapEthAction extends ActionWithL2 {
9
9
  /**
10
10
  * @param amount Wrap amount
11
+ * @param includeEthInTx If true, the transaction will include the ETH value in the transaction
11
12
  */
12
- constructor(amount: uint256);
13
+ constructor(amount: uint256, includeEthInTx?: boolean);
13
14
  getEthValue(): Promise<any>;
14
15
  encodeInputs(): string;
15
16
  }
@@ -17,13 +17,14 @@ import { getAddr } from '../../addresses';
17
17
  export class WrapEthAction extends ActionWithL2 {
18
18
  /**
19
19
  * @param amount Wrap amount
20
+ * @param includeEthInTx If true, the transaction will include the ETH value in the transaction
20
21
  */
21
- constructor(amount) {
22
- super('WrapEth', getAddr('WrapEth'), ['uint256'], [amount]);
22
+ constructor(amount, includeEthInTx = true) {
23
+ super('WrapEth', getAddr('WrapEth'), ['uint256', 'bool'], [amount, includeEthInTx]);
23
24
  }
24
25
  getEthValue() {
25
26
  return __awaiter(this, void 0, void 0, function* () {
26
- return this.args[0];
27
+ return this.args[1] ? this.args[0] : 0;
27
28
  });
28
29
  }
29
30
  encodeInputs() {
@@ -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
- 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, };
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, };
@@ -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
- 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, };
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, createProxy: boolean, mcdManager?: 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, createProxy, mcdManager = getAddr('McdCdpManager')) {
15
+ constructor(vaultId, newOwner, mcdManager = getAddr('McdCdpManager')) {
17
16
  requireAddress(newOwner);
18
- super('McdGive', getAddr('McdGive'), ['uint256', 'address', 'bool', 'address'], [vaultId, newOwner, createProxy, mcdManager]);
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],
@@ -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;
@@ -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;
@@ -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
  } | {
@@ -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;
@@ -21,7 +21,7 @@ export const actionAddresses = {
21
21
  SDaiUnwrap: '0xe8Cb536BB96075241c4bd8f1831A8577562F2B32',
22
22
  TokenizedVaultAdapter: '0x3944364Ce3a273D269707484F3a676fCa17E08b8',
23
23
  // exchange
24
- DFSSell: '0x951D7B421f45FF0e4A8ddE0288aE3f9C2C69b784',
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: '0x72915D41982DfCAf30b871290618E59C45Edba7F',
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',
@@ -347,7 +340,7 @@ export const actionAddresses = {
347
340
  };
348
341
  export const otherAddresses = {
349
342
  [NETWORKS.ethereum.chainId]: {
350
- RecipeExecutor: '0x1D6DEdb49AF91A11B5C5F34954FD3E8cC4f03A86',
343
+ RecipeExecutor: '0x10B748Dc504C2515Bb6A9e23CB2F686090b6c584',
351
344
  DFSRegistry: '0x287778F121F134C66212FB16c9b53eC991D32f5b',
352
345
  DFSProxyRegistry: '0x29474FdaC7142f9aB7773B8e38264FA15E3805ed',
353
346
  ProxyRegistry: '0x4678f0a6958e4D2Bc4F1BAF7Bc52E8F3564f3fE4',
@@ -202,12 +202,6 @@ declare const actionAddressesAllChains: {
202
202
  MorphoBluePayback: string;
203
203
  MorphoBlueSetAuth: string;
204
204
  MorphoBlueSetAuthWithSig: string;
205
- LlamaLendCreate: string;
206
- LlamaLendSupply: string;
207
- LlamaLendBorrow: string;
208
- LlamaLendWithdraw: string;
209
- LlamaLendPayback: string;
210
- LlamaLendSelfLiquidate: string;
211
205
  AaveV3DelegateCredit?: undefined;
212
206
  AaveV3RatioTrigger?: undefined;
213
207
  GasFeeTakerL2?: undefined;
@@ -407,12 +401,6 @@ declare const actionAddressesAllChains: {
407
401
  MorphoBluePayback?: undefined;
408
402
  MorphoBlueSetAuth?: undefined;
409
403
  MorphoBlueSetAuthWithSig?: undefined;
410
- LlamaLendCreate?: undefined;
411
- LlamaLendSupply?: undefined;
412
- LlamaLendBorrow?: undefined;
413
- LlamaLendWithdraw?: undefined;
414
- LlamaLendPayback?: undefined;
415
- LlamaLendSelfLiquidate?: undefined;
416
404
  } | {
417
405
  DFSSell: string;
418
406
  WrapEth: string;
@@ -606,12 +594,6 @@ declare const actionAddressesAllChains: {
606
594
  MorphoBluePayback?: undefined;
607
595
  MorphoBlueSetAuth?: undefined;
608
596
  MorphoBlueSetAuthWithSig?: undefined;
609
- LlamaLendCreate?: undefined;
610
- LlamaLendSupply?: undefined;
611
- LlamaLendBorrow?: undefined;
612
- LlamaLendWithdraw?: undefined;
613
- LlamaLendPayback?: undefined;
614
- LlamaLendSelfLiquidate?: undefined;
615
597
  AaveV3DelegateCredit?: undefined;
616
598
  AaveV3RatioTrigger?: undefined;
617
599
  } | {
@@ -805,12 +787,6 @@ declare const actionAddressesAllChains: {
805
787
  MorphoBluePayback?: undefined;
806
788
  MorphoBlueSetAuth?: undefined;
807
789
  MorphoBlueSetAuthWithSig?: undefined;
808
- LlamaLendCreate?: undefined;
809
- LlamaLendSupply?: undefined;
810
- LlamaLendBorrow?: undefined;
811
- LlamaLendWithdraw?: undefined;
812
- LlamaLendPayback?: undefined;
813
- LlamaLendSelfLiquidate?: undefined;
814
790
  AaveV3DelegateCredit?: undefined;
815
791
  AaveV3RatioTrigger?: undefined;
816
792
  GasFeeTakerL2?: undefined;
@@ -1008,12 +984,6 @@ declare const actionAddresses: (chainId?: null) => {
1008
984
  MorphoBluePayback: string;
1009
985
  MorphoBlueSetAuth: string;
1010
986
  MorphoBlueSetAuthWithSig: string;
1011
- LlamaLendCreate: string;
1012
- LlamaLendSupply: string;
1013
- LlamaLendBorrow: string;
1014
- LlamaLendWithdraw: string;
1015
- LlamaLendPayback: string;
1016
- LlamaLendSelfLiquidate: string;
1017
987
  AaveV3DelegateCredit?: undefined;
1018
988
  AaveV3RatioTrigger?: undefined;
1019
989
  GasFeeTakerL2?: undefined;
@@ -1213,12 +1183,6 @@ declare const actionAddresses: (chainId?: null) => {
1213
1183
  MorphoBluePayback?: undefined;
1214
1184
  MorphoBlueSetAuth?: undefined;
1215
1185
  MorphoBlueSetAuthWithSig?: undefined;
1216
- LlamaLendCreate?: undefined;
1217
- LlamaLendSupply?: undefined;
1218
- LlamaLendBorrow?: undefined;
1219
- LlamaLendWithdraw?: undefined;
1220
- LlamaLendPayback?: undefined;
1221
- LlamaLendSelfLiquidate?: undefined;
1222
1186
  } | {
1223
1187
  DFSSell: string;
1224
1188
  WrapEth: string;
@@ -1412,12 +1376,6 @@ declare const actionAddresses: (chainId?: null) => {
1412
1376
  MorphoBluePayback?: undefined;
1413
1377
  MorphoBlueSetAuth?: undefined;
1414
1378
  MorphoBlueSetAuthWithSig?: undefined;
1415
- LlamaLendCreate?: undefined;
1416
- LlamaLendSupply?: undefined;
1417
- LlamaLendBorrow?: undefined;
1418
- LlamaLendWithdraw?: undefined;
1419
- LlamaLendPayback?: undefined;
1420
- LlamaLendSelfLiquidate?: undefined;
1421
1379
  AaveV3DelegateCredit?: undefined;
1422
1380
  AaveV3RatioTrigger?: undefined;
1423
1381
  } | {
@@ -1611,12 +1569,6 @@ declare const actionAddresses: (chainId?: null) => {
1611
1569
  MorphoBluePayback?: undefined;
1612
1570
  MorphoBlueSetAuth?: undefined;
1613
1571
  MorphoBlueSetAuthWithSig?: undefined;
1614
- LlamaLendCreate?: undefined;
1615
- LlamaLendSupply?: undefined;
1616
- LlamaLendBorrow?: undefined;
1617
- LlamaLendWithdraw?: undefined;
1618
- LlamaLendPayback?: undefined;
1619
- LlamaLendSelfLiquidate?: undefined;
1620
1572
  AaveV3DelegateCredit?: undefined;
1621
1573
  AaveV3RatioTrigger?: undefined;
1622
1574
  GasFeeTakerL2?: undefined;
@@ -1957,12 +1909,6 @@ declare const _default: {
1957
1909
  MorphoBluePayback: string;
1958
1910
  MorphoBlueSetAuth: string;
1959
1911
  MorphoBlueSetAuthWithSig: string;
1960
- LlamaLendCreate: string;
1961
- LlamaLendSupply: string;
1962
- LlamaLendBorrow: string;
1963
- LlamaLendWithdraw: string;
1964
- LlamaLendPayback: string;
1965
- LlamaLendSelfLiquidate: string;
1966
1912
  AaveV3DelegateCredit?: undefined;
1967
1913
  AaveV3RatioTrigger?: undefined;
1968
1914
  GasFeeTakerL2?: undefined;
@@ -2162,12 +2108,6 @@ declare const _default: {
2162
2108
  MorphoBluePayback?: undefined;
2163
2109
  MorphoBlueSetAuth?: undefined;
2164
2110
  MorphoBlueSetAuthWithSig?: undefined;
2165
- LlamaLendCreate?: undefined;
2166
- LlamaLendSupply?: undefined;
2167
- LlamaLendBorrow?: undefined;
2168
- LlamaLendWithdraw?: undefined;
2169
- LlamaLendPayback?: undefined;
2170
- LlamaLendSelfLiquidate?: undefined;
2171
2111
  } | {
2172
2112
  DFSSell: string;
2173
2113
  WrapEth: string;
@@ -2361,12 +2301,6 @@ declare const _default: {
2361
2301
  MorphoBluePayback?: undefined;
2362
2302
  MorphoBlueSetAuth?: undefined;
2363
2303
  MorphoBlueSetAuthWithSig?: undefined;
2364
- LlamaLendCreate?: undefined;
2365
- LlamaLendSupply?: undefined;
2366
- LlamaLendBorrow?: undefined;
2367
- LlamaLendWithdraw?: undefined;
2368
- LlamaLendPayback?: undefined;
2369
- LlamaLendSelfLiquidate?: undefined;
2370
2304
  AaveV3DelegateCredit?: undefined;
2371
2305
  AaveV3RatioTrigger?: undefined;
2372
2306
  } | {
@@ -2560,12 +2494,6 @@ declare const _default: {
2560
2494
  MorphoBluePayback?: undefined;
2561
2495
  MorphoBlueSetAuth?: undefined;
2562
2496
  MorphoBlueSetAuthWithSig?: undefined;
2563
- LlamaLendCreate?: undefined;
2564
- LlamaLendSupply?: undefined;
2565
- LlamaLendBorrow?: undefined;
2566
- LlamaLendWithdraw?: undefined;
2567
- LlamaLendPayback?: undefined;
2568
- LlamaLendSelfLiquidate?: undefined;
2569
2497
  AaveV3DelegateCredit?: undefined;
2570
2498
  AaveV3RatioTrigger?: undefined;
2571
2499
  GasFeeTakerL2?: undefined;
@@ -2763,12 +2691,6 @@ declare const _default: {
2763
2691
  MorphoBluePayback: string;
2764
2692
  MorphoBlueSetAuth: string;
2765
2693
  MorphoBlueSetAuthWithSig: string;
2766
- LlamaLendCreate: string;
2767
- LlamaLendSupply: string;
2768
- LlamaLendBorrow: string;
2769
- LlamaLendWithdraw: string;
2770
- LlamaLendPayback: string;
2771
- LlamaLendSelfLiquidate: string;
2772
2694
  AaveV3DelegateCredit?: undefined;
2773
2695
  AaveV3RatioTrigger?: undefined;
2774
2696
  GasFeeTakerL2?: undefined;
@@ -2968,12 +2890,6 @@ declare const _default: {
2968
2890
  MorphoBluePayback?: undefined;
2969
2891
  MorphoBlueSetAuth?: undefined;
2970
2892
  MorphoBlueSetAuthWithSig?: undefined;
2971
- LlamaLendCreate?: undefined;
2972
- LlamaLendSupply?: undefined;
2973
- LlamaLendBorrow?: undefined;
2974
- LlamaLendWithdraw?: undefined;
2975
- LlamaLendPayback?: undefined;
2976
- LlamaLendSelfLiquidate?: undefined;
2977
2893
  } | {
2978
2894
  DFSSell: string;
2979
2895
  WrapEth: string;
@@ -3167,12 +3083,6 @@ declare const _default: {
3167
3083
  MorphoBluePayback?: undefined;
3168
3084
  MorphoBlueSetAuth?: undefined;
3169
3085
  MorphoBlueSetAuthWithSig?: undefined;
3170
- LlamaLendCreate?: undefined;
3171
- LlamaLendSupply?: undefined;
3172
- LlamaLendBorrow?: undefined;
3173
- LlamaLendWithdraw?: undefined;
3174
- LlamaLendPayback?: undefined;
3175
- LlamaLendSelfLiquidate?: undefined;
3176
3086
  AaveV3DelegateCredit?: undefined;
3177
3087
  AaveV3RatioTrigger?: undefined;
3178
3088
  } | {
@@ -3366,12 +3276,6 @@ declare const _default: {
3366
3276
  MorphoBluePayback?: undefined;
3367
3277
  MorphoBlueSetAuth?: undefined;
3368
3278
  MorphoBlueSetAuthWithSig?: undefined;
3369
- LlamaLendCreate?: undefined;
3370
- LlamaLendSupply?: undefined;
3371
- LlamaLendBorrow?: undefined;
3372
- LlamaLendWithdraw?: undefined;
3373
- LlamaLendPayback?: undefined;
3374
- LlamaLendSelfLiquidate?: undefined;
3375
3279
  AaveV3DelegateCredit?: undefined;
3376
3280
  AaveV3RatioTrigger?: undefined;
3377
3281
  GasFeeTakerL2?: undefined;
@@ -0,0 +1,10 @@
1
+ import { Action } from '../Action';
2
+ import { uint256, uint8 } from '../types';
3
+ /**
4
+ *
5
+ *
6
+ * @category Triggers
7
+ */
8
+ export declare class OffchainPriceTrigger extends Action {
9
+ constructor(limitPrice: uint256, limitType: uint8);
10
+ }
@@ -0,0 +1,12 @@
1
+ import { Action } from '../Action';
2
+ import { getAddr } from '../addresses';
3
+ /**
4
+ *
5
+ *
6
+ * @category Triggers
7
+ */
8
+ export class OffchainPriceTrigger extends Action {
9
+ constructor(limitPrice, limitType) {
10
+ super('OffchainPriceTrigger', getAddr('OffchainPriceTrigger'), ['uint256', 'uint8'], [limitPrice, limitType]);
11
+ }
12
+ }
@@ -18,3 +18,4 @@ export * from './SparkQuotePriceTrigger';
18
18
  export * from './LiquityDebtInFrontWithLimitTrigger';
19
19
  export * from './CurveUsdCollRatioTrigger';
20
20
  export * from './MorphoBlueRatioTrigger';
21
+ export * from './OffchainPriceTrigger';