@defisaver/sdk 1.3.4-dev.0 → 1.3.5-dev.0

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 users proxy position and reverts if faulty.
4
+ * AaveV3OpenRatioCheckAction - Checks aave V3 ratio for position of `user` 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,6 +11,7 @@ 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
14
15
  */
15
- constructor(targetRatio: uint256, market: EthAddress);
16
+ constructor(targetRatio: uint256, market: EthAddress, user?: EthAddress);
16
17
  }
@@ -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 users proxy position and reverts if faulty.
4
+ * AaveV3OpenRatioCheckAction - Checks aave V3 ratio for position of `user` 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,12 +11,10 @@ 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
14
15
  */
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
- ];
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]];
21
19
  }
22
20
  }
@@ -1,5 +1,5 @@
1
1
  import { Action } from '../../Action';
2
- import { uint8, uint256 } from '../../types';
2
+ import { uint8, uint256, EthAddress } from '../../types';
3
3
  /**
4
4
  * AaveV3RatioCheckAction - Checks aave V3 ratio for users proxy position and reverts if faulty
5
5
  *
@@ -9,6 +9,8 @@ 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
12
14
  */
13
- constructor(ratioState: uint8, targetRatio: uint256);
15
+ constructor(ratioState: uint8, targetRatio: uint256, market?: EthAddress, user?: EthAddress);
14
16
  }
@@ -9,12 +9,16 @@ 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
12
14
  */
13
- constructor(ratioState, targetRatio) {
14
- super('AaveV3RatioCheck', getAddr('AaveV3RatioCheck'), ['uint8', 'uint256'], [ratioState, targetRatio]);
15
+ constructor(ratioState, targetRatio, market = getAddr('Empty'), user = getAddr('Empty')) {
16
+ super('AaveV3RatioCheck', getAddr('Empty'), ['uint8', 'uint256', 'address', 'address'], [ratioState, targetRatio, market, user]);
15
17
  this.mappableArgs = [
16
18
  this.args[0],
17
19
  this.args[1],
20
+ this.args[2],
21
+ this.args[3],
18
22
  ];
19
23
  }
20
24
  }
@@ -102,13 +102,13 @@ export const actionAddresses = {
102
102
  MorphoAaveV3Withdraw: '0xdc3e74C4cD577275296ceFE36A3D082223AfF206',
103
103
  MorphoAaveV3SetManager: '0x1082AE0565504E3617BD5b6E80f91B59b81a82D9',
104
104
  // spark
105
- SparkBorrow: '0x3E2C366065bA0f6f9936C2C6A802D72F250b27AA',
105
+ SparkBorrow: '0x7a0207c1b5864B41629abBA4137b82a69F21F34d',
106
106
  SparkClaimRewards: '0x9C3E31f42a46676785C72401cD4F2287b355b003',
107
107
  SparkCollateralSwitch: '0xA859Dff8BCEE9C6daaEF5d0eCCb25219Da4B62b4',
108
108
  SparkPayback: '0x3a0F7Ca5cCf15aF19147F71de5fc84DC195f149f',
109
109
  SparkSetEMode: '0x2252a83Da69A237686eD9AC07a38DDA74ec7cE5f',
110
110
  SparkSpTokenPayback: '0x57403bB33A4829EBf5935D39eD08F19282F61d9c',
111
- SparkSupply: '0xcb4505a5ED92e405BF1F5cD7C791B15c4564AAe9',
111
+ SparkSupply: '0xD10608B45718437082B9aF5DdC498080ad63Ac9E',
112
112
  SparkSwapBorrowRateMode: '0x71B0687C7ec0286dc3cfb715fe97249604aC898f',
113
113
  SparkWithdraw: '0x1e3187D89e79B5c411D710E0fdF2709517852600',
114
114
  SparkDelegateCredit: '0x0000000000000000000000000000000000000000',
@@ -0,0 +1,13 @@
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
+ }
@@ -0,0 +1,15 @@
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
+ }
@@ -28,3 +28,4 @@ export * from './FluidRatioTrigger';
28
28
  export * from './CompV3PriceTrigger';
29
29
  export * from './CompV3PriceRangeTrigger';
30
30
  export * from './LiquityV2AdjustRateDebtInFrontTrigger';
31
+ export * from './AaveV3QuotePriceRangeTrigger';
@@ -28,3 +28,4 @@ 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.4-dev.0",
3
+ "version": "1.3.5-dev.0",
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 users proxy position and reverts if faulty.
6
+ * AaveV3OpenRatioCheckAction - Checks aave V3 ratio for position of `user` 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,18 +13,20 @@ 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
16
17
  */
17
- constructor(targetRatio:uint256, market:EthAddress) {
18
+ constructor(
19
+ targetRatio: uint256,
20
+ market: EthAddress,
21
+ user: EthAddress = getAddr('Empty'),
22
+ ) {
18
23
  super(
19
24
  'AaveV3OpenRatioCheck',
20
25
  getAddr('Empty'),
21
- ['uint256', 'address'],
22
- [targetRatio, market],
26
+ ['uint256', 'address', 'address'],
27
+ [targetRatio, market, user],
23
28
  );
24
29
 
25
- this.mappableArgs = [
26
- this.args[0],
27
- this.args[1],
28
- ];
30
+ this.mappableArgs = [this.args[0], this.args[1], this.args[2]];
29
31
  }
30
32
  }
@@ -1,6 +1,6 @@
1
1
  import { Action } from '../../Action';
2
2
  import { getAddr } from '../../addresses';
3
- import { uint8, uint256 } from '../../types';
3
+ import { uint8, uint256, EthAddress } from '../../types';
4
4
 
5
5
  /**
6
6
  * AaveV3RatioCheckAction - Checks aave V3 ratio for users proxy position and reverts if faulty
@@ -11,13 +11,27 @@ 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
14
16
  */
15
- constructor(ratioState:uint8, targetRatio:uint256) {
16
- super('AaveV3RatioCheck', getAddr('AaveV3RatioCheck'), ['uint8', 'uint256'], [ratioState, targetRatio]);
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
+ );
17
29
 
18
30
  this.mappableArgs = [
19
31
  this.args[0],
20
32
  this.args[1],
33
+ this.args[2],
34
+ this.args[3],
21
35
  ];
22
36
  }
23
- }
37
+ }
package/src/addresses.ts CHANGED
@@ -113,13 +113,13 @@ export const actionAddresses = {
113
113
  MorphoAaveV3SetManager: '0x1082AE0565504E3617BD5b6E80f91B59b81a82D9',
114
114
 
115
115
  // spark
116
- SparkBorrow: '0x3E2C366065bA0f6f9936C2C6A802D72F250b27AA',
116
+ SparkBorrow: '0x7a0207c1b5864B41629abBA4137b82a69F21F34d',
117
117
  SparkClaimRewards: '0x9C3E31f42a46676785C72401cD4F2287b355b003',
118
118
  SparkCollateralSwitch: '0xA859Dff8BCEE9C6daaEF5d0eCCb25219Da4B62b4',
119
119
  SparkPayback: '0x3a0F7Ca5cCf15aF19147F71de5fc84DC195f149f',
120
120
  SparkSetEMode: '0x2252a83Da69A237686eD9AC07a38DDA74ec7cE5f',
121
121
  SparkSpTokenPayback: '0x57403bB33A4829EBf5935D39eD08F19282F61d9c',
122
- SparkSupply: '0xcb4505a5ED92e405BF1F5cD7C791B15c4564AAe9',
122
+ SparkSupply: '0xD10608B45718437082B9aF5DdC498080ad63Ac9E',
123
123
  SparkSwapBorrowRateMode: '0x71B0687C7ec0286dc3cfb715fe97249604aC898f',
124
124
  SparkWithdraw: '0x1e3187D89e79B5c411D710E0fdF2709517852600',
125
125
  SparkDelegateCredit: '0x0000000000000000000000000000000000000000',
@@ -0,0 +1,27 @@
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
+ }
@@ -28,3 +28,4 @@ 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__441__) => {
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__) => {
11
11
  return /******/ (() => { // webpackBootstrap
12
12
  /******/ "use strict";
13
13
  /******/ var __webpack_modules__ = ([
@@ -1403,13 +1403,13 @@ var actionAddresses = {
1403
1403
  MorphoAaveV3Withdraw: '0xdc3e74C4cD577275296ceFE36A3D082223AfF206',
1404
1404
  MorphoAaveV3SetManager: '0x1082AE0565504E3617BD5b6E80f91B59b81a82D9',
1405
1405
  // spark
1406
- SparkBorrow: '0x3E2C366065bA0f6f9936C2C6A802D72F250b27AA',
1406
+ SparkBorrow: '0x7a0207c1b5864B41629abBA4137b82a69F21F34d',
1407
1407
  SparkClaimRewards: '0x9C3E31f42a46676785C72401cD4F2287b355b003',
1408
1408
  SparkCollateralSwitch: '0xA859Dff8BCEE9C6daaEF5d0eCCb25219Da4B62b4',
1409
1409
  SparkPayback: '0x3a0F7Ca5cCf15aF19147F71de5fc84DC195f149f',
1410
1410
  SparkSetEMode: '0x2252a83Da69A237686eD9AC07a38DDA74ec7cE5f',
1411
1411
  SparkSpTokenPayback: '0x57403bB33A4829EBf5935D39eD08F19282F61d9c',
1412
- SparkSupply: '0xcb4505a5ED92e405BF1F5cD7C791B15c4564AAe9',
1412
+ SparkSupply: '0xD10608B45718437082B9aF5DdC498080ad63Ac9E',
1413
1413
  SparkSwapBorrowRateMode: '0x71B0687C7ec0286dc3cfb715fe97249604aC898f',
1414
1414
  SparkWithdraw: '0x1e3187D89e79B5c411D710E0fdF2709517852600',
1415
1415
  SparkDelegateCredit: '0x0000000000000000000000000000000000000000',
@@ -6975,10 +6975,14 @@ class AaveV3RatioCheckAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action
6975
6975
  /**
6976
6976
  * @param ratioState If it should lower/higher
6977
6977
  * @param targetRatio The ratio user want to be at
6978
+ * @param market Address provider for specific market. This param was added later
6979
+ * @param user Address of the user (EOA/SW). This param was added later
6978
6980
  */
6979
6981
  constructor(ratioState, targetRatio) {
6980
- super('AaveV3RatioCheck', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('AaveV3RatioCheck'), ['uint8', 'uint256'], [ratioState, targetRatio]);
6981
- this.mappableArgs = [this.args[0], this.args[1]];
6982
+ var market = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('Empty');
6983
+ var user = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('Empty');
6984
+ super('AaveV3RatioCheck', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('Empty'), ['uint8', 'uint256', 'address', 'address'], [ratioState, targetRatio, market, user]);
6985
+ this.mappableArgs = [this.args[0], this.args[1], this.args[2], this.args[3]];
6982
6986
  }
6983
6987
  }
6984
6988
 
@@ -7256,7 +7260,7 @@ __webpack_require__.r(__webpack_exports__);
7256
7260
 
7257
7261
 
7258
7262
  /**
7259
- * AaveV3OpenRatioCheckAction - Checks aave V3 ratio for users proxy position and reverts if faulty.
7263
+ * AaveV3OpenRatioCheckAction - Checks aave V3 ratio for position of `user` and reverts if faulty.
7260
7264
  *
7261
7265
  * @dev This checker action is different from AaveV3RatioCheckAction in that it checks current ratio without checking previous ratio.
7262
7266
  *
@@ -7266,10 +7270,12 @@ class AaveV3OpenRatioCheckAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Ac
7266
7270
  /**
7267
7271
  * @param targetRatio The ratio user want to be at
7268
7272
  * @param market Address provider for specific market
7273
+ * @param user Address of the user (EOA/SW). This param was added later
7269
7274
  */
7270
7275
  constructor(targetRatio, market) {
7271
- super('AaveV3OpenRatioCheck', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('Empty'), ['uint256', 'address'], [targetRatio, market]);
7272
- this.mappableArgs = [this.args[0], this.args[1]];
7276
+ var user = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('Empty');
7277
+ super('AaveV3OpenRatioCheck', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('Empty'), ['uint256', 'address', 'address'], [targetRatio, market, user]);
7278
+ this.mappableArgs = [this.args[0], this.args[1], this.args[2]];
7273
7279
  }
7274
7280
  }
7275
7281
 
@@ -16279,6 +16285,7 @@ class UmbrellaClaimRewardsAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Ac
16279
16285
  __webpack_require__.r(__webpack_exports__);
16280
16286
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
16281
16287
  /* harmony export */ AaveV2RatioTrigger: () => (/* reexport safe */ _AaveV2RatioTrigger__WEBPACK_IMPORTED_MODULE_13__.AaveV2RatioTrigger),
16288
+ /* harmony export */ AaveV3QuotePriceRangeTrigger: () => (/* reexport safe */ _AaveV3QuotePriceRangeTrigger__WEBPACK_IMPORTED_MODULE_30__.AaveV3QuotePriceRangeTrigger),
16282
16289
  /* harmony export */ AaveV3QuotePriceTrigger: () => (/* reexport safe */ _AaveV3QuotePriceTrigger__WEBPACK_IMPORTED_MODULE_12__.AaveV3QuotePriceTrigger),
16283
16290
  /* harmony export */ AaveV3RatioTrigger: () => (/* reexport safe */ _AaveV3RatioTrigger__WEBPACK_IMPORTED_MODULE_8__.AaveV3RatioTrigger),
16284
16291
  /* harmony export */ CBRebondTrigger: () => (/* reexport safe */ _CBRebondTrigger__WEBPACK_IMPORTED_MODULE_11__.CBRebondTrigger),
@@ -16339,6 +16346,8 @@ __webpack_require__.r(__webpack_exports__);
16339
16346
  /* harmony import */ var _CompV3PriceTrigger__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(436);
16340
16347
  /* harmony import */ var _CompV3PriceRangeTrigger__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(437);
16341
16348
  /* harmony import */ var _LiquityV2AdjustRateDebtInFrontTrigger__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(438);
16349
+ /* harmony import */ var _AaveV3QuotePriceRangeTrigger__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(439);
16350
+
16342
16351
 
16343
16352
 
16344
16353
 
@@ -17064,6 +17073,32 @@ class LiquityV2AdjustRateDebtInFrontTrigger extends _Action__WEBPACK_IMPORTED_MO
17064
17073
  /* 439 */
17065
17074
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
17066
17075
 
17076
+ __webpack_require__.r(__webpack_exports__);
17077
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
17078
+ /* harmony export */ AaveV3QuotePriceRangeTrigger: () => (/* binding */ AaveV3QuotePriceRangeTrigger)
17079
+ /* harmony export */ });
17080
+ /* harmony import */ var _Action__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
17081
+ /* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27);
17082
+
17083
+
17084
+ /**
17085
+ * AaveV3QuotePriceRangeTrigger
17086
+ * @param baseTokenAddr - The address of the base token
17087
+ * @param quoteTokenAddr - The address of the quote token
17088
+ * @param lowerPrice - The lower price of the range
17089
+ * @param upperPrice - The upper price of the range
17090
+ * @category Triggers
17091
+ */
17092
+ class AaveV3QuotePriceRangeTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
17093
+ constructor(baseTokenAddr, quoteTokenAddr, lowerPrice, upperPrice) {
17094
+ super('AaveV3QuotePriceRangeTrigger', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('Empty'), [['address', 'address', 'uint256', 'uint256']], [[baseTokenAddr, quoteTokenAddr, lowerPrice, upperPrice]]);
17095
+ }
17096
+ }
17097
+
17098
+ /***/ }),
17099
+ /* 440 */
17100
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
17101
+
17067
17102
  __webpack_require__.r(__webpack_exports__);
17068
17103
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
17069
17104
  /* harmony export */ basicUtils: () => (/* reexport module object */ _basic_utils__WEBPACK_IMPORTED_MODULE_7__),
@@ -17075,9 +17110,9 @@ __webpack_require__.r(__webpack_exports__);
17075
17110
  /* harmony export */ uniswapV3LP: () => (/* reexport module object */ _uniswapV3LP__WEBPACK_IMPORTED_MODULE_2__),
17076
17111
  /* harmony export */ zeroExExchange: () => (/* reexport module object */ _zeroExExchange__WEBPACK_IMPORTED_MODULE_0__)
17077
17112
  /* harmony export */ });
17078
- /* harmony import */ var _zeroExExchange__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(440);
17113
+ /* harmony import */ var _zeroExExchange__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(441);
17079
17114
  /* harmony import */ var _uniswapLP__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(137);
17080
- /* harmony import */ var _uniswapV3LP__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(442);
17115
+ /* harmony import */ var _uniswapV3LP__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(443);
17081
17116
  /* harmony import */ var _convex_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(243);
17082
17117
  /* harmony import */ var _mstableAssetPairs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(223);
17083
17118
  /* harmony import */ var _curve_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(209);
@@ -17094,7 +17129,7 @@ __webpack_require__.r(__webpack_exports__);
17094
17129
 
17095
17130
 
17096
17131
  /***/ }),
17097
- /* 440 */
17132
+ /* 441 */
17098
17133
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
17099
17134
 
17100
17135
  __webpack_require__.r(__webpack_exports__);
@@ -17105,7 +17140,7 @@ __webpack_require__.r(__webpack_exports__);
17105
17140
  /* harmony export */ });
17106
17141
  /* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
17107
17142
  /* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(decimal_js__WEBPACK_IMPORTED_MODULE_0__);
17108
- /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(441);
17143
+ /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(442);
17109
17144
  /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);
17110
17145
  /* harmony import */ var _defisaver_tokens__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6);
17111
17146
  /* harmony import */ var _defisaver_tokens__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_defisaver_tokens__WEBPACK_IMPORTED_MODULE_2__);
@@ -17307,20 +17342,20 @@ var createSellAction = /*#__PURE__*/function () {
17307
17342
  }();
17308
17343
 
17309
17344
  /***/ }),
17310
- /* 441 */
17345
+ /* 442 */
17311
17346
  /***/ ((module) => {
17312
17347
 
17313
- module.exports = __WEBPACK_EXTERNAL_MODULE__441__;
17348
+ module.exports = __WEBPACK_EXTERNAL_MODULE__442__;
17314
17349
 
17315
17350
  /***/ }),
17316
- /* 442 */
17351
+ /* 443 */
17317
17352
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
17318
17353
 
17319
17354
  __webpack_require__.r(__webpack_exports__);
17320
17355
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
17321
17356
  /* harmony export */ getAssetAddrByTokenId: () => (/* binding */ getAssetAddrByTokenId)
17322
17357
  /* harmony export */ });
17323
- /* harmony import */ var _abis_UniV3PositionManager_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(443);
17358
+ /* harmony import */ var _abis_UniV3PositionManager_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(444);
17324
17359
  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); } }
17325
17360
  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); }); }; }
17326
17361
  /**
@@ -17345,7 +17380,7 @@ var getAssetAddrByTokenId = /*#__PURE__*/function () {
17345
17380
  }();
17346
17381
 
17347
17382
  /***/ }),
17348
- /* 443 */
17383
+ /* 444 */
17349
17384
  /***/ ((module) => {
17350
17385
 
17351
17386
  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"}]');
@@ -17450,7 +17485,7 @@ __webpack_require__.r(__webpack_exports__);
17450
17485
  /* harmony import */ var _DfsWeb3__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(30);
17451
17486
  /* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(35);
17452
17487
  /* harmony import */ var _triggers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(408);
17453
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(439);
17488
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(440);
17454
17489
  /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(4);
17455
17490
  /* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(27);
17456
17491
  /* Export types here */