@defisaver/sdk 1.3.6-dev.3 → 1.3.6

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.
@@ -1,7 +1,7 @@
1
1
  import { Action } from '../../Action';
2
2
  import { EthAddress, uint256 } from '../../types';
3
3
  /**
4
- * AaveV3OpenRatioCheckAction - Checks aave V3 ratio for position of `user` and reverts if faulty.
4
+ * AaveV3OpenRatioCheckAction - Checks aave V3 ratio for users proxy position and reverts if faulty.
5
5
  *
6
6
  * @dev This checker action is different from AaveV3RatioCheckAction in that it checks current ratio without checking previous ratio.
7
7
  *
@@ -11,7 +11,6 @@ export declare class AaveV3OpenRatioCheckAction extends Action {
11
11
  /**
12
12
  * @param targetRatio The ratio user want to be at
13
13
  * @param market Address provider for specific market
14
- * @param user Address of the user (EOA/SW). This param was added later
15
14
  */
16
- constructor(targetRatio: uint256, market: EthAddress, user?: EthAddress);
15
+ constructor(targetRatio: uint256, market: EthAddress);
17
16
  }
@@ -1,7 +1,7 @@
1
1
  import { Action } from '../../Action';
2
2
  import { getAddr } from '../../addresses';
3
3
  /**
4
- * AaveV3OpenRatioCheckAction - Checks aave V3 ratio for position of `user` and reverts if faulty.
4
+ * AaveV3OpenRatioCheckAction - Checks aave V3 ratio for users proxy position and reverts if faulty.
5
5
  *
6
6
  * @dev This checker action is different from AaveV3RatioCheckAction in that it checks current ratio without checking previous ratio.
7
7
  *
@@ -11,10 +11,12 @@ export class AaveV3OpenRatioCheckAction extends Action {
11
11
  /**
12
12
  * @param targetRatio The ratio user want to be at
13
13
  * @param market Address provider for specific market
14
- * @param user Address of the user (EOA/SW). This param was added later
15
14
  */
16
- constructor(targetRatio, market, user = getAddr('Empty')) {
17
- super('AaveV3OpenRatioCheck', getAddr('Empty'), ['uint256', 'address', 'address'], [targetRatio, market, user]);
18
- this.mappableArgs = [this.args[0], this.args[1], this.args[2]];
15
+ constructor(targetRatio, market) {
16
+ super('AaveV3OpenRatioCheck', getAddr('Empty'), ['uint256', 'address'], [targetRatio, market]);
17
+ this.mappableArgs = [
18
+ this.args[0],
19
+ this.args[1],
20
+ ];
19
21
  }
20
22
  }
@@ -1,5 +1,5 @@
1
1
  import { Action } from '../../Action';
2
- import { uint8, uint256, EthAddress } from '../../types';
2
+ import { uint8, uint256 } from '../../types';
3
3
  /**
4
4
  * AaveV3RatioCheckAction - Checks aave V3 ratio for users proxy position and reverts if faulty
5
5
  *
@@ -9,8 +9,6 @@ export declare class AaveV3RatioCheckAction extends Action {
9
9
  /**
10
10
  * @param ratioState If it should lower/higher
11
11
  * @param targetRatio The ratio user want to be at
12
- * @param market Address provider for specific market. This param was added later
13
- * @param user Address of the user (EOA/SW). This param was added later
14
12
  */
15
- constructor(ratioState: uint8, targetRatio: uint256, market?: EthAddress, user?: EthAddress);
13
+ constructor(ratioState: uint8, targetRatio: uint256);
16
14
  }
@@ -9,16 +9,12 @@ export class AaveV3RatioCheckAction extends Action {
9
9
  /**
10
10
  * @param ratioState If it should lower/higher
11
11
  * @param targetRatio The ratio user want to be at
12
- * @param market Address provider for specific market. This param was added later
13
- * @param user Address of the user (EOA/SW). This param was added later
14
12
  */
15
- constructor(ratioState, targetRatio, market = getAddr('Empty'), user = getAddr('Empty')) {
16
- super('AaveV3RatioCheck', getAddr('Empty'), ['uint8', 'uint256', 'address', 'address'], [ratioState, targetRatio, market, user]);
13
+ constructor(ratioState, targetRatio) {
14
+ super('AaveV3RatioCheck', getAddr('AaveV3RatioCheck'), ['uint8', 'uint256'], [ratioState, targetRatio]);
17
15
  this.mappableArgs = [
18
16
  this.args[0],
19
17
  this.args[1],
20
- this.args[2],
21
- this.args[3],
22
18
  ];
23
19
  }
24
20
  }
@@ -293,7 +293,6 @@ export declare const actionAddresses: {
293
293
  ApproveToken: string;
294
294
  SendTokenAndUnwrap: string;
295
295
  ToggleSub: string;
296
- UpdateSub: string;
297
296
  CreateSub: string;
298
297
  TokenBalance: string;
299
298
  TokenizedVaultAdapter: string;
@@ -333,6 +332,7 @@ export declare const actionAddresses: {
333
332
  CompV3Withdraw: string;
334
333
  SFApproveTokens: string;
335
334
  AutomationV2Unsub?: undefined;
335
+ UpdateSub?: undefined;
336
336
  TransferNFT?: undefined;
337
337
  SDaiWrap?: undefined;
338
338
  SDaiUnwrap?: undefined;
@@ -331,7 +331,6 @@ export const actionAddresses = {
331
331
  ApproveToken: '0x842a81d2cfe26d401CD63Cc14e9DEf275c197C1a',
332
332
  SendTokenAndUnwrap: '0xd4f69250cb4d1f083Dd372FEace391A16ABbfBDc',
333
333
  ToggleSub: '0xfc19a12e35bb0b5e6a3d3017be9e9022a6486eee',
334
- UpdateSub: '0xAe6ea1d13dF2bE60dC7933DB56067Cb89d6A2cDe',
335
334
  CreateSub: '0x2daED8030BFC87B3d27c02E2f044B9CF4841Ff3e',
336
335
  TokenBalance: '0xC6FF5b01f7c7b35b6e093fF70D2332B361C5Be5A',
337
336
  TokenizedVaultAdapter: '0xdf31669FEd440f5BfF658ca0bBF0D22B8abdeb73',
@@ -304,7 +304,6 @@ declare const actionAddressesAllChains: {
304
304
  ApproveToken: string;
305
305
  SendTokenAndUnwrap: string;
306
306
  ToggleSub: string;
307
- UpdateSub: string;
308
307
  CreateSub: string;
309
308
  TokenBalance: string;
310
309
  TokenizedVaultAdapter: string;
@@ -344,6 +343,7 @@ declare const actionAddressesAllChains: {
344
343
  CompV3Withdraw: string;
345
344
  SFApproveTokens: string;
346
345
  AutomationV2Unsub?: undefined;
346
+ UpdateSub?: undefined;
347
347
  TransferNFT?: undefined;
348
348
  SDaiWrap?: undefined;
349
349
  SDaiUnwrap?: undefined;
@@ -1706,7 +1706,6 @@ declare const actionAddresses: (chainId?: null) => {
1706
1706
  ApproveToken: string;
1707
1707
  SendTokenAndUnwrap: string;
1708
1708
  ToggleSub: string;
1709
- UpdateSub: string;
1710
1709
  CreateSub: string;
1711
1710
  TokenBalance: string;
1712
1711
  TokenizedVaultAdapter: string;
@@ -1746,6 +1745,7 @@ declare const actionAddresses: (chainId?: null) => {
1746
1745
  CompV3Withdraw: string;
1747
1746
  SFApproveTokens: string;
1748
1747
  AutomationV2Unsub?: undefined;
1748
+ UpdateSub?: undefined;
1749
1749
  TransferNFT?: undefined;
1750
1750
  SDaiWrap?: undefined;
1751
1751
  SDaiUnwrap?: undefined;
@@ -3335,7 +3335,6 @@ declare const _default: {
3335
3335
  ApproveToken: string;
3336
3336
  SendTokenAndUnwrap: string;
3337
3337
  ToggleSub: string;
3338
- UpdateSub: string;
3339
3338
  CreateSub: string;
3340
3339
  TokenBalance: string;
3341
3340
  TokenizedVaultAdapter: string;
@@ -3375,6 +3374,7 @@ declare const _default: {
3375
3374
  CompV3Withdraw: string;
3376
3375
  SFApproveTokens: string;
3377
3376
  AutomationV2Unsub?: undefined;
3377
+ UpdateSub?: undefined;
3378
3378
  TransferNFT?: undefined;
3379
3379
  SDaiWrap?: undefined;
3380
3380
  SDaiUnwrap?: undefined;
@@ -4737,7 +4737,6 @@ declare const _default: {
4737
4737
  ApproveToken: string;
4738
4738
  SendTokenAndUnwrap: string;
4739
4739
  ToggleSub: string;
4740
- UpdateSub: string;
4741
4740
  CreateSub: string;
4742
4741
  TokenBalance: string;
4743
4742
  TokenizedVaultAdapter: string;
@@ -4777,6 +4776,7 @@ declare const _default: {
4777
4776
  CompV3Withdraw: string;
4778
4777
  SFApproveTokens: string;
4779
4778
  AutomationV2Unsub?: undefined;
4779
+ UpdateSub?: undefined;
4780
4780
  TransferNFT?: undefined;
4781
4781
  SDaiWrap?: undefined;
4782
4782
  SDaiUnwrap?: undefined;
@@ -28,4 +28,3 @@ export * from './FluidRatioTrigger';
28
28
  export * from './CompV3PriceTrigger';
29
29
  export * from './CompV3PriceRangeTrigger';
30
30
  export * from './LiquityV2AdjustRateDebtInFrontTrigger';
31
- export * from './AaveV3QuotePriceRangeTrigger';
@@ -28,4 +28,3 @@ export * from './FluidRatioTrigger';
28
28
  export * from './CompV3PriceTrigger';
29
29
  export * from './CompV3PriceRangeTrigger';
30
30
  export * from './LiquityV2AdjustRateDebtInFrontTrigger';
31
- export * from './AaveV3QuotePriceRangeTrigger';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/sdk",
3
- "version": "1.3.6-dev.3",
3
+ "version": "1.3.6",
4
4
  "description": "",
5
5
  "main": "./umd/index.js",
6
6
  "module": "./esm/src/index.js",
@@ -3,7 +3,7 @@ import { getAddr } from '../../addresses';
3
3
  import { EthAddress, uint256 } from '../../types';
4
4
 
5
5
  /**
6
- * AaveV3OpenRatioCheckAction - Checks aave V3 ratio for position of `user` and reverts if faulty.
6
+ * AaveV3OpenRatioCheckAction - Checks aave V3 ratio for users proxy position and reverts if faulty.
7
7
  *
8
8
  * @dev This checker action is different from AaveV3RatioCheckAction in that it checks current ratio without checking previous ratio.
9
9
  *
@@ -13,20 +13,18 @@ export class AaveV3OpenRatioCheckAction extends Action {
13
13
  /**
14
14
  * @param targetRatio The ratio user want to be at
15
15
  * @param market Address provider for specific market
16
- * @param user Address of the user (EOA/SW). This param was added later
17
16
  */
18
- constructor(
19
- targetRatio: uint256,
20
- market: EthAddress,
21
- user: EthAddress = getAddr('Empty'),
22
- ) {
17
+ constructor(targetRatio:uint256, market:EthAddress) {
23
18
  super(
24
19
  'AaveV3OpenRatioCheck',
25
20
  getAddr('Empty'),
26
- ['uint256', 'address', 'address'],
27
- [targetRatio, market, user],
21
+ ['uint256', 'address'],
22
+ [targetRatio, market],
28
23
  );
29
24
 
30
- this.mappableArgs = [this.args[0], this.args[1], this.args[2]];
25
+ this.mappableArgs = [
26
+ this.args[0],
27
+ this.args[1],
28
+ ];
31
29
  }
32
30
  }
@@ -1,6 +1,6 @@
1
1
  import { Action } from '../../Action';
2
2
  import { getAddr } from '../../addresses';
3
- import { uint8, uint256, EthAddress } from '../../types';
3
+ import { uint8, uint256 } from '../../types';
4
4
 
5
5
  /**
6
6
  * AaveV3RatioCheckAction - Checks aave V3 ratio for users proxy position and reverts if faulty
@@ -11,27 +11,13 @@ export class AaveV3RatioCheckAction extends Action {
11
11
  /**
12
12
  * @param ratioState If it should lower/higher
13
13
  * @param targetRatio The ratio user want to be at
14
- * @param market Address provider for specific market. This param was added later
15
- * @param user Address of the user (EOA/SW). This param was added later
16
14
  */
17
- constructor(
18
- ratioState: uint8,
19
- targetRatio: uint256,
20
- market: EthAddress = getAddr('Empty'),
21
- user: EthAddress = getAddr('Empty'),
22
- ) {
23
- super(
24
- 'AaveV3RatioCheck',
25
- getAddr('Empty'),
26
- ['uint8', 'uint256', 'address', 'address'],
27
- [ratioState, targetRatio, market, user],
28
- );
15
+ constructor(ratioState:uint8, targetRatio:uint256) {
16
+ super('AaveV3RatioCheck', getAddr('AaveV3RatioCheck'), ['uint8', 'uint256'], [ratioState, targetRatio]);
29
17
 
30
18
  this.mappableArgs = [
31
19
  this.args[0],
32
20
  this.args[1],
33
- this.args[2],
34
- this.args[3],
35
21
  ];
36
22
  }
37
- }
23
+ }
package/src/addresses.ts CHANGED
@@ -379,7 +379,6 @@ export const actionAddresses = {
379
379
  ApproveToken: '0x842a81d2cfe26d401CD63Cc14e9DEf275c197C1a',
380
380
  SendTokenAndUnwrap: '0xd4f69250cb4d1f083Dd372FEace391A16ABbfBDc',
381
381
  ToggleSub: '0xfc19a12e35bb0b5e6a3d3017be9e9022a6486eee',
382
- UpdateSub: '0xAe6ea1d13dF2bE60dC7933DB56067Cb89d6A2cDe',
383
382
  CreateSub: '0x2daED8030BFC87B3d27c02E2f044B9CF4841Ff3e',
384
383
  TokenBalance: '0xC6FF5b01f7c7b35b6e093fF70D2332B361C5Be5A',
385
384
  TokenizedVaultAdapter: '0xdf31669FEd440f5BfF658ca0bBF0D22B8abdeb73',
package/src/config.ts CHANGED
@@ -34,7 +34,7 @@ export const NETWORKS : Networks = {
34
34
  chainId: 42161,
35
35
  chainName: 'Arbitrum One',
36
36
  blockExplorerUrls: ['https://arbiscan.io/'],
37
- iconUrls: ['https://bridge.arbitrum.io/logo.png'],
37
+ iconUrls: ['https://icons.llamao.fi/icons/chains/rsz_arbitrum.jpg'],
38
38
  rpcUrls: ['https://arb1.arbitrum.io/rpc'],
39
39
  nativeCurrency: { name: 'Ethereum', decimals: 18, symbol: 'ETH' },
40
40
  },
@@ -42,7 +42,7 @@ export const NETWORKS : Networks = {
42
42
  chainId: 8453,
43
43
  chainName: 'Base',
44
44
  blockExplorerUrls: ['https://basescan.io/'],
45
- iconUrls: ['https://bridge.base.org/icons/base.svg'],
45
+ iconUrls: ['https://icons.llamao.fi/icons/chains/rsz_base.jpg'],
46
46
  rpcUrls: [],
47
47
  nativeCurrency: { name: 'Ethereum', decimals: 18, symbol: 'ETH' },
48
48
  },
@@ -50,16 +50,16 @@ export const NETWORKS : Networks = {
50
50
  chainId: 59144,
51
51
  chainName: 'Linea',
52
52
  blockExplorerUrls: ['https://lineascan.build/'],
53
- iconUrls: ['https://bridge.base.org/icons/base.svg'],
54
- rpcUrls: [],
53
+ iconUrls: ['https://icons.llamao.fi/icons/chains/rsz_linea.jpg'],
54
+ rpcUrls: ['https://rpc.linea.build'],
55
55
  nativeCurrency: { name: 'Ethereum', decimals: 18, symbol: 'ETH' },
56
56
  },
57
57
  plasma: {
58
58
  chainId: 9745,
59
59
  chainName: 'Plasma',
60
60
  blockExplorerUrls: ['https://plasmascan.to/'],
61
- iconUrls: ['https://bridge.base.org/icons/base.svg'],
62
- rpcUrls: [],
61
+ iconUrls: ['https://icons.llamao.fi/icons/chains/rsz_plasma.jpg'],
62
+ rpcUrls: ['https://rpc.plasma.to'],
63
63
  nativeCurrency: { name: 'XPL', decimals: 18, symbol: 'XPL' },
64
64
  },
65
65
  };
@@ -28,4 +28,3 @@ export * from './FluidRatioTrigger';
28
28
  export * from './CompV3PriceTrigger';
29
29
  export * from './CompV3PriceRangeTrigger';
30
30
  export * from './LiquityV2AdjustRateDebtInFrontTrigger';
31
- export * from './AaveV3QuotePriceRangeTrigger';
package/umd/index.js CHANGED
@@ -7,7 +7,7 @@
7
7
  exports["defisaver-sdk"] = factory(require("web3-eth-abi"), require("web3-utils"), require("decimal.js"), require("@defisaver/tokens"), require("@ethersproject/solidity"), require("@ethersproject/address"), require("axios"));
8
8
  else
9
9
  root["defisaver-sdk"] = factory(root["web3-eth-abi"], root["web3-utils"], root["decimal.js"], root["@defisaver/tokens"], root["@ethersproject/solidity"], root["@ethersproject/address"], root["axios"]);
10
- })(this, (__WEBPACK_EXTERNAL_MODULE__2__, __WEBPACK_EXTERNAL_MODULE__3__, __WEBPACK_EXTERNAL_MODULE__5__, __WEBPACK_EXTERNAL_MODULE__6__, __WEBPACK_EXTERNAL_MODULE__138__, __WEBPACK_EXTERNAL_MODULE__139__, __WEBPACK_EXTERNAL_MODULE__442__) => {
10
+ })(this, (__WEBPACK_EXTERNAL_MODULE__2__, __WEBPACK_EXTERNAL_MODULE__3__, __WEBPACK_EXTERNAL_MODULE__5__, __WEBPACK_EXTERNAL_MODULE__6__, __WEBPACK_EXTERNAL_MODULE__138__, __WEBPACK_EXTERNAL_MODULE__139__, __WEBPACK_EXTERNAL_MODULE__441__) => {
11
11
  return /******/ (() => { // webpackBootstrap
12
12
  /******/ "use strict";
13
13
  /******/ var __webpack_modules__ = ([
@@ -1644,7 +1644,6 @@ var actionAddresses = {
1644
1644
  ApproveToken: '0x842a81d2cfe26d401CD63Cc14e9DEf275c197C1a',
1645
1645
  SendTokenAndUnwrap: '0xd4f69250cb4d1f083Dd372FEace391A16ABbfBDc',
1646
1646
  ToggleSub: '0xfc19a12e35bb0b5e6a3d3017be9e9022a6486eee',
1647
- UpdateSub: '0xAe6ea1d13dF2bE60dC7933DB56067Cb89d6A2cDe',
1648
1647
  CreateSub: '0x2daED8030BFC87B3d27c02E2f044B9CF4841Ff3e',
1649
1648
  TokenBalance: '0xC6FF5b01f7c7b35b6e093fF70D2332B361C5Be5A',
1650
1649
  TokenizedVaultAdapter: '0xdf31669FEd440f5BfF658ca0bBF0D22B8abdeb73',
@@ -7030,14 +7029,10 @@ class AaveV3RatioCheckAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action
7030
7029
  /**
7031
7030
  * @param ratioState If it should lower/higher
7032
7031
  * @param targetRatio The ratio user want to be at
7033
- * @param market Address provider for specific market. This param was added later
7034
- * @param user Address of the user (EOA/SW). This param was added later
7035
7032
  */
7036
7033
  constructor(ratioState, targetRatio) {
7037
- var market = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('Empty');
7038
- var user = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('Empty');
7039
- super('AaveV3RatioCheck', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('Empty'), ['uint8', 'uint256', 'address', 'address'], [ratioState, targetRatio, market, user]);
7040
- this.mappableArgs = [this.args[0], this.args[1], this.args[2], this.args[3]];
7034
+ super('AaveV3RatioCheck', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('AaveV3RatioCheck'), ['uint8', 'uint256'], [ratioState, targetRatio]);
7035
+ this.mappableArgs = [this.args[0], this.args[1]];
7041
7036
  }
7042
7037
  }
7043
7038
 
@@ -7315,7 +7310,7 @@ __webpack_require__.r(__webpack_exports__);
7315
7310
 
7316
7311
 
7317
7312
  /**
7318
- * AaveV3OpenRatioCheckAction - Checks aave V3 ratio for position of `user` and reverts if faulty.
7313
+ * AaveV3OpenRatioCheckAction - Checks aave V3 ratio for users proxy position and reverts if faulty.
7319
7314
  *
7320
7315
  * @dev This checker action is different from AaveV3RatioCheckAction in that it checks current ratio without checking previous ratio.
7321
7316
  *
@@ -7325,12 +7320,10 @@ class AaveV3OpenRatioCheckAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Ac
7325
7320
  /**
7326
7321
  * @param targetRatio The ratio user want to be at
7327
7322
  * @param market Address provider for specific market
7328
- * @param user Address of the user (EOA/SW). This param was added later
7329
7323
  */
7330
7324
  constructor(targetRatio, market) {
7331
- var user = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('Empty');
7332
- super('AaveV3OpenRatioCheck', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('Empty'), ['uint256', 'address', 'address'], [targetRatio, market, user]);
7333
- this.mappableArgs = [this.args[0], this.args[1], this.args[2]];
7325
+ super('AaveV3OpenRatioCheck', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('Empty'), ['uint256', 'address'], [targetRatio, market]);
7326
+ this.mappableArgs = [this.args[0], this.args[1]];
7334
7327
  }
7335
7328
  }
7336
7329
 
@@ -16340,7 +16333,6 @@ class UmbrellaClaimRewardsAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Ac
16340
16333
  __webpack_require__.r(__webpack_exports__);
16341
16334
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
16342
16335
  /* harmony export */ AaveV2RatioTrigger: () => (/* reexport safe */ _AaveV2RatioTrigger__WEBPACK_IMPORTED_MODULE_13__.AaveV2RatioTrigger),
16343
- /* harmony export */ AaveV3QuotePriceRangeTrigger: () => (/* reexport safe */ _AaveV3QuotePriceRangeTrigger__WEBPACK_IMPORTED_MODULE_30__.AaveV3QuotePriceRangeTrigger),
16344
16336
  /* harmony export */ AaveV3QuotePriceTrigger: () => (/* reexport safe */ _AaveV3QuotePriceTrigger__WEBPACK_IMPORTED_MODULE_12__.AaveV3QuotePriceTrigger),
16345
16337
  /* harmony export */ AaveV3RatioTrigger: () => (/* reexport safe */ _AaveV3RatioTrigger__WEBPACK_IMPORTED_MODULE_8__.AaveV3RatioTrigger),
16346
16338
  /* harmony export */ CBRebondTrigger: () => (/* reexport safe */ _CBRebondTrigger__WEBPACK_IMPORTED_MODULE_11__.CBRebondTrigger),
@@ -16401,8 +16393,6 @@ __webpack_require__.r(__webpack_exports__);
16401
16393
  /* harmony import */ var _CompV3PriceTrigger__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(436);
16402
16394
  /* harmony import */ var _CompV3PriceRangeTrigger__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(437);
16403
16395
  /* harmony import */ var _LiquityV2AdjustRateDebtInFrontTrigger__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(438);
16404
- /* harmony import */ var _AaveV3QuotePriceRangeTrigger__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(439);
16405
-
16406
16396
 
16407
16397
 
16408
16398
 
@@ -17128,32 +17118,6 @@ class LiquityV2AdjustRateDebtInFrontTrigger extends _Action__WEBPACK_IMPORTED_MO
17128
17118
  /* 439 */
17129
17119
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
17130
17120
 
17131
- __webpack_require__.r(__webpack_exports__);
17132
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
17133
- /* harmony export */ AaveV3QuotePriceRangeTrigger: () => (/* binding */ AaveV3QuotePriceRangeTrigger)
17134
- /* harmony export */ });
17135
- /* harmony import */ var _Action__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
17136
- /* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27);
17137
-
17138
-
17139
- /**
17140
- * AaveV3QuotePriceRangeTrigger
17141
- * @param baseTokenAddr - The address of the base token
17142
- * @param quoteTokenAddr - The address of the quote token
17143
- * @param lowerPrice - The lower price of the range
17144
- * @param upperPrice - The upper price of the range
17145
- * @category Triggers
17146
- */
17147
- class AaveV3QuotePriceRangeTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
17148
- constructor(baseTokenAddr, quoteTokenAddr, lowerPrice, upperPrice) {
17149
- super('AaveV3QuotePriceRangeTrigger', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('Empty'), [['address', 'address', 'uint256', 'uint256']], [[baseTokenAddr, quoteTokenAddr, lowerPrice, upperPrice]]);
17150
- }
17151
- }
17152
-
17153
- /***/ }),
17154
- /* 440 */
17155
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
17156
-
17157
17121
  __webpack_require__.r(__webpack_exports__);
17158
17122
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
17159
17123
  /* harmony export */ basicUtils: () => (/* reexport module object */ _basic_utils__WEBPACK_IMPORTED_MODULE_7__),
@@ -17165,9 +17129,9 @@ __webpack_require__.r(__webpack_exports__);
17165
17129
  /* harmony export */ uniswapV3LP: () => (/* reexport module object */ _uniswapV3LP__WEBPACK_IMPORTED_MODULE_2__),
17166
17130
  /* harmony export */ zeroExExchange: () => (/* reexport module object */ _zeroExExchange__WEBPACK_IMPORTED_MODULE_0__)
17167
17131
  /* harmony export */ });
17168
- /* harmony import */ var _zeroExExchange__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(441);
17132
+ /* harmony import */ var _zeroExExchange__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(440);
17169
17133
  /* harmony import */ var _uniswapLP__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(137);
17170
- /* harmony import */ var _uniswapV3LP__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(443);
17134
+ /* harmony import */ var _uniswapV3LP__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(442);
17171
17135
  /* harmony import */ var _convex_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(243);
17172
17136
  /* harmony import */ var _mstableAssetPairs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(223);
17173
17137
  /* harmony import */ var _curve_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(209);
@@ -17184,7 +17148,7 @@ __webpack_require__.r(__webpack_exports__);
17184
17148
 
17185
17149
 
17186
17150
  /***/ }),
17187
- /* 441 */
17151
+ /* 440 */
17188
17152
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
17189
17153
 
17190
17154
  __webpack_require__.r(__webpack_exports__);
@@ -17195,7 +17159,7 @@ __webpack_require__.r(__webpack_exports__);
17195
17159
  /* harmony export */ });
17196
17160
  /* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
17197
17161
  /* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(decimal_js__WEBPACK_IMPORTED_MODULE_0__);
17198
- /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(442);
17162
+ /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(441);
17199
17163
  /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);
17200
17164
  /* harmony import */ var _defisaver_tokens__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6);
17201
17165
  /* harmony import */ var _defisaver_tokens__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_defisaver_tokens__WEBPACK_IMPORTED_MODULE_2__);
@@ -17397,20 +17361,20 @@ var createSellAction = /*#__PURE__*/function () {
17397
17361
  }();
17398
17362
 
17399
17363
  /***/ }),
17400
- /* 442 */
17364
+ /* 441 */
17401
17365
  /***/ ((module) => {
17402
17366
 
17403
- module.exports = __WEBPACK_EXTERNAL_MODULE__442__;
17367
+ module.exports = __WEBPACK_EXTERNAL_MODULE__441__;
17404
17368
 
17405
17369
  /***/ }),
17406
- /* 443 */
17370
+ /* 442 */
17407
17371
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
17408
17372
 
17409
17373
  __webpack_require__.r(__webpack_exports__);
17410
17374
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
17411
17375
  /* harmony export */ getAssetAddrByTokenId: () => (/* binding */ getAssetAddrByTokenId)
17412
17376
  /* harmony export */ });
17413
- /* harmony import */ var _abis_UniV3PositionManager_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(444);
17377
+ /* harmony import */ var _abis_UniV3PositionManager_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(443);
17414
17378
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
17415
17379
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
17416
17380
  /**
@@ -17435,7 +17399,7 @@ var getAssetAddrByTokenId = /*#__PURE__*/function () {
17435
17399
  }();
17436
17400
 
17437
17401
  /***/ }),
17438
- /* 444 */
17402
+ /* 443 */
17439
17403
  /***/ ((module) => {
17440
17404
 
17441
17405
  module.exports = /*#__PURE__*/JSON.parse('[{"constant":false,"inputs":[{"name":"tokenId","type":"uint256"}],"name":"positions","outputs":[{"name":"nonce","type":"uint96"},{"name":"operator","type":"address"},{"name":"token0","type":"address"},{"name":"token1","type":"address"},{"name":"fee","type":"uint24"},{"name":"tickLower","type":"int24"},{"name":"tickUpper","type":"int24"},{"name":"liquidity","type":"uint128"},{"name":"feeGrowthInside0LastX128","type":"uint256"},{"name":"feeGrowthInside1LastX128","type":"uint256"},{"name":"tokensOwed0","type":"uint128"},{"name":"tokensOwed1","type":"uint128"}],"payable":false,"stateMutability":"view","type":"function"}]');
@@ -17540,7 +17504,7 @@ __webpack_require__.r(__webpack_exports__);
17540
17504
  /* harmony import */ var _DfsWeb3__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(30);
17541
17505
  /* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(35);
17542
17506
  /* harmony import */ var _triggers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(408);
17543
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(440);
17507
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(439);
17544
17508
  /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(4);
17545
17509
  /* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(27);
17546
17510
  /* Export types here */
@@ -1,13 +0,0 @@
1
- import { Action } from '../Action';
2
- import { EthAddress, uint256 } from '../types';
3
- /**
4
- * AaveV3QuotePriceRangeTrigger
5
- * @param baseTokenAddr - The address of the base token
6
- * @param quoteTokenAddr - The address of the quote token
7
- * @param lowerPrice - The lower price of the range
8
- * @param upperPrice - The upper price of the range
9
- * @category Triggers
10
- */
11
- export declare class AaveV3QuotePriceRangeTrigger extends Action {
12
- constructor(baseTokenAddr: EthAddress, quoteTokenAddr: EthAddress, lowerPrice: uint256, upperPrice: uint256);
13
- }
@@ -1,15 +0,0 @@
1
- import { Action } from '../Action';
2
- import { getAddr } from '../addresses';
3
- /**
4
- * AaveV3QuotePriceRangeTrigger
5
- * @param baseTokenAddr - The address of the base token
6
- * @param quoteTokenAddr - The address of the quote token
7
- * @param lowerPrice - The lower price of the range
8
- * @param upperPrice - The upper price of the range
9
- * @category Triggers
10
- */
11
- export class AaveV3QuotePriceRangeTrigger extends Action {
12
- constructor(baseTokenAddr, quoteTokenAddr, lowerPrice, upperPrice) {
13
- super('AaveV3QuotePriceRangeTrigger', getAddr('Empty'), [['address', 'address', 'uint256', 'uint256']], [[baseTokenAddr, quoteTokenAddr, lowerPrice, upperPrice]]);
14
- }
15
- }
@@ -1,27 +0,0 @@
1
- import { Action } from '../Action';
2
- import { getAddr } from '../addresses';
3
- import { EthAddress, uint256 } from '../types';
4
-
5
- /**
6
- * AaveV3QuotePriceRangeTrigger
7
- * @param baseTokenAddr - The address of the base token
8
- * @param quoteTokenAddr - The address of the quote token
9
- * @param lowerPrice - The lower price of the range
10
- * @param upperPrice - The upper price of the range
11
- * @category Triggers
12
- */
13
- export class AaveV3QuotePriceRangeTrigger extends Action {
14
- constructor(
15
- baseTokenAddr: EthAddress,
16
- quoteTokenAddr: EthAddress,
17
- lowerPrice: uint256,
18
- upperPrice: uint256,
19
- ) {
20
- super(
21
- 'AaveV3QuotePriceRangeTrigger',
22
- getAddr('Empty'),
23
- [['address', 'address', 'uint256', 'uint256']],
24
- [[baseTokenAddr, quoteTokenAddr, lowerPrice, upperPrice]],
25
- );
26
- }
27
- }