@defisaver/sdk 1.3.6-dev.1 → 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.
- package/esm/src/actions/checkers/AaveV3OpenRatioCheckAction.d.ts +2 -3
- package/esm/src/actions/checkers/AaveV3OpenRatioCheckAction.js +7 -5
- package/esm/src/actions/checkers/AaveV3RatioCheckAction.d.ts +2 -4
- package/esm/src/actions/checkers/AaveV3RatioCheckAction.js +2 -6
- package/esm/src/triggers/index.d.ts +0 -1
- package/esm/src/triggers/index.js +0 -1
- package/package.json +1 -1
- package/src/actions/checkers/AaveV3OpenRatioCheckAction.ts +8 -10
- package/src/actions/checkers/AaveV3RatioCheckAction.ts +4 -18
- package/src/config.ts +6 -6
- package/src/triggers/index.ts +0 -1
- package/umd/index.js +16 -51
- package/esm/src/triggers/AaveV3QuotePriceRangeTrigger.d.ts +0 -13
- package/esm/src/triggers/AaveV3QuotePriceRangeTrigger.js +0 -15
- package/src/triggers/AaveV3QuotePriceRangeTrigger.ts +0 -27
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
17
|
-
super('AaveV3OpenRatioCheck', getAddr('Empty'), ['uint256', 'address'
|
|
18
|
-
this.mappableArgs = [
|
|
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
|
|
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
|
|
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
|
|
16
|
-
super('AaveV3RatioCheck', getAddr('
|
|
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
|
}
|
package/package.json
CHANGED
|
@@ -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
|
|
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'
|
|
27
|
-
[targetRatio, market
|
|
21
|
+
['uint256', 'address'],
|
|
22
|
+
[targetRatio, market],
|
|
28
23
|
);
|
|
29
24
|
|
|
30
|
-
this.mappableArgs = [
|
|
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
|
|
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
|
-
|
|
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/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://
|
|
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://
|
|
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://
|
|
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://
|
|
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
|
};
|
package/src/triggers/index.ts
CHANGED
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__,
|
|
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__ = ([
|
|
@@ -7029,14 +7029,10 @@ class AaveV3RatioCheckAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action
|
|
|
7029
7029
|
/**
|
|
7030
7030
|
* @param ratioState If it should lower/higher
|
|
7031
7031
|
* @param targetRatio The ratio user want to be at
|
|
7032
|
-
* @param market Address provider for specific market. This param was added later
|
|
7033
|
-
* @param user Address of the user (EOA/SW). This param was added later
|
|
7034
7032
|
*/
|
|
7035
7033
|
constructor(ratioState, targetRatio) {
|
|
7036
|
-
|
|
7037
|
-
|
|
7038
|
-
super('AaveV3RatioCheck', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('Empty'), ['uint8', 'uint256', 'address', 'address'], [ratioState, targetRatio, market, user]);
|
|
7039
|
-
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]];
|
|
7040
7036
|
}
|
|
7041
7037
|
}
|
|
7042
7038
|
|
|
@@ -7314,7 +7310,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7314
7310
|
|
|
7315
7311
|
|
|
7316
7312
|
/**
|
|
7317
|
-
* AaveV3OpenRatioCheckAction - Checks aave V3 ratio for
|
|
7313
|
+
* AaveV3OpenRatioCheckAction - Checks aave V3 ratio for users proxy position and reverts if faulty.
|
|
7318
7314
|
*
|
|
7319
7315
|
* @dev This checker action is different from AaveV3RatioCheckAction in that it checks current ratio without checking previous ratio.
|
|
7320
7316
|
*
|
|
@@ -7324,12 +7320,10 @@ class AaveV3OpenRatioCheckAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Ac
|
|
|
7324
7320
|
/**
|
|
7325
7321
|
* @param targetRatio The ratio user want to be at
|
|
7326
7322
|
* @param market Address provider for specific market
|
|
7327
|
-
* @param user Address of the user (EOA/SW). This param was added later
|
|
7328
7323
|
*/
|
|
7329
7324
|
constructor(targetRatio, market) {
|
|
7330
|
-
|
|
7331
|
-
|
|
7332
|
-
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]];
|
|
7333
7327
|
}
|
|
7334
7328
|
}
|
|
7335
7329
|
|
|
@@ -16339,7 +16333,6 @@ class UmbrellaClaimRewardsAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Ac
|
|
|
16339
16333
|
__webpack_require__.r(__webpack_exports__);
|
|
16340
16334
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16341
16335
|
/* harmony export */ AaveV2RatioTrigger: () => (/* reexport safe */ _AaveV2RatioTrigger__WEBPACK_IMPORTED_MODULE_13__.AaveV2RatioTrigger),
|
|
16342
|
-
/* harmony export */ AaveV3QuotePriceRangeTrigger: () => (/* reexport safe */ _AaveV3QuotePriceRangeTrigger__WEBPACK_IMPORTED_MODULE_30__.AaveV3QuotePriceRangeTrigger),
|
|
16343
16336
|
/* harmony export */ AaveV3QuotePriceTrigger: () => (/* reexport safe */ _AaveV3QuotePriceTrigger__WEBPACK_IMPORTED_MODULE_12__.AaveV3QuotePriceTrigger),
|
|
16344
16337
|
/* harmony export */ AaveV3RatioTrigger: () => (/* reexport safe */ _AaveV3RatioTrigger__WEBPACK_IMPORTED_MODULE_8__.AaveV3RatioTrigger),
|
|
16345
16338
|
/* harmony export */ CBRebondTrigger: () => (/* reexport safe */ _CBRebondTrigger__WEBPACK_IMPORTED_MODULE_11__.CBRebondTrigger),
|
|
@@ -16400,8 +16393,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16400
16393
|
/* harmony import */ var _CompV3PriceTrigger__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(436);
|
|
16401
16394
|
/* harmony import */ var _CompV3PriceRangeTrigger__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(437);
|
|
16402
16395
|
/* harmony import */ var _LiquityV2AdjustRateDebtInFrontTrigger__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(438);
|
|
16403
|
-
/* harmony import */ var _AaveV3QuotePriceRangeTrigger__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(439);
|
|
16404
|
-
|
|
16405
16396
|
|
|
16406
16397
|
|
|
16407
16398
|
|
|
@@ -17127,32 +17118,6 @@ class LiquityV2AdjustRateDebtInFrontTrigger extends _Action__WEBPACK_IMPORTED_MO
|
|
|
17127
17118
|
/* 439 */
|
|
17128
17119
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17129
17120
|
|
|
17130
|
-
__webpack_require__.r(__webpack_exports__);
|
|
17131
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17132
|
-
/* harmony export */ AaveV3QuotePriceRangeTrigger: () => (/* binding */ AaveV3QuotePriceRangeTrigger)
|
|
17133
|
-
/* harmony export */ });
|
|
17134
|
-
/* harmony import */ var _Action__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
|
|
17135
|
-
/* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27);
|
|
17136
|
-
|
|
17137
|
-
|
|
17138
|
-
/**
|
|
17139
|
-
* AaveV3QuotePriceRangeTrigger
|
|
17140
|
-
* @param baseTokenAddr - The address of the base token
|
|
17141
|
-
* @param quoteTokenAddr - The address of the quote token
|
|
17142
|
-
* @param lowerPrice - The lower price of the range
|
|
17143
|
-
* @param upperPrice - The upper price of the range
|
|
17144
|
-
* @category Triggers
|
|
17145
|
-
*/
|
|
17146
|
-
class AaveV3QuotePriceRangeTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
17147
|
-
constructor(baseTokenAddr, quoteTokenAddr, lowerPrice, upperPrice) {
|
|
17148
|
-
super('AaveV3QuotePriceRangeTrigger', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('Empty'), [['address', 'address', 'uint256', 'uint256']], [[baseTokenAddr, quoteTokenAddr, lowerPrice, upperPrice]]);
|
|
17149
|
-
}
|
|
17150
|
-
}
|
|
17151
|
-
|
|
17152
|
-
/***/ }),
|
|
17153
|
-
/* 440 */
|
|
17154
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17155
|
-
|
|
17156
17121
|
__webpack_require__.r(__webpack_exports__);
|
|
17157
17122
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17158
17123
|
/* harmony export */ basicUtils: () => (/* reexport module object */ _basic_utils__WEBPACK_IMPORTED_MODULE_7__),
|
|
@@ -17164,9 +17129,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17164
17129
|
/* harmony export */ uniswapV3LP: () => (/* reexport module object */ _uniswapV3LP__WEBPACK_IMPORTED_MODULE_2__),
|
|
17165
17130
|
/* harmony export */ zeroExExchange: () => (/* reexport module object */ _zeroExExchange__WEBPACK_IMPORTED_MODULE_0__)
|
|
17166
17131
|
/* harmony export */ });
|
|
17167
|
-
/* harmony import */ var _zeroExExchange__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
17132
|
+
/* harmony import */ var _zeroExExchange__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(440);
|
|
17168
17133
|
/* harmony import */ var _uniswapLP__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(137);
|
|
17169
|
-
/* harmony import */ var _uniswapV3LP__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
17134
|
+
/* harmony import */ var _uniswapV3LP__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(442);
|
|
17170
17135
|
/* harmony import */ var _convex_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(243);
|
|
17171
17136
|
/* harmony import */ var _mstableAssetPairs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(223);
|
|
17172
17137
|
/* harmony import */ var _curve_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(209);
|
|
@@ -17183,7 +17148,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17183
17148
|
|
|
17184
17149
|
|
|
17185
17150
|
/***/ }),
|
|
17186
|
-
/*
|
|
17151
|
+
/* 440 */
|
|
17187
17152
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17188
17153
|
|
|
17189
17154
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -17194,7 +17159,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17194
17159
|
/* harmony export */ });
|
|
17195
17160
|
/* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
|
|
17196
17161
|
/* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(decimal_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
17197
|
-
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
17162
|
+
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(441);
|
|
17198
17163
|
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);
|
|
17199
17164
|
/* harmony import */ var _defisaver_tokens__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6);
|
|
17200
17165
|
/* harmony import */ var _defisaver_tokens__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_defisaver_tokens__WEBPACK_IMPORTED_MODULE_2__);
|
|
@@ -17396,20 +17361,20 @@ var createSellAction = /*#__PURE__*/function () {
|
|
|
17396
17361
|
}();
|
|
17397
17362
|
|
|
17398
17363
|
/***/ }),
|
|
17399
|
-
/*
|
|
17364
|
+
/* 441 */
|
|
17400
17365
|
/***/ ((module) => {
|
|
17401
17366
|
|
|
17402
|
-
module.exports =
|
|
17367
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__441__;
|
|
17403
17368
|
|
|
17404
17369
|
/***/ }),
|
|
17405
|
-
/*
|
|
17370
|
+
/* 442 */
|
|
17406
17371
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17407
17372
|
|
|
17408
17373
|
__webpack_require__.r(__webpack_exports__);
|
|
17409
17374
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17410
17375
|
/* harmony export */ getAssetAddrByTokenId: () => (/* binding */ getAssetAddrByTokenId)
|
|
17411
17376
|
/* harmony export */ });
|
|
17412
|
-
/* harmony import */ var _abis_UniV3PositionManager_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
17377
|
+
/* harmony import */ var _abis_UniV3PositionManager_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(443);
|
|
17413
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); } }
|
|
17414
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); }); }; }
|
|
17415
17380
|
/**
|
|
@@ -17434,7 +17399,7 @@ var getAssetAddrByTokenId = /*#__PURE__*/function () {
|
|
|
17434
17399
|
}();
|
|
17435
17400
|
|
|
17436
17401
|
/***/ }),
|
|
17437
|
-
/*
|
|
17402
|
+
/* 443 */
|
|
17438
17403
|
/***/ ((module) => {
|
|
17439
17404
|
|
|
17440
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"}]');
|
|
@@ -17539,7 +17504,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17539
17504
|
/* harmony import */ var _DfsWeb3__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(30);
|
|
17540
17505
|
/* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(35);
|
|
17541
17506
|
/* harmony import */ var _triggers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(408);
|
|
17542
|
-
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
|
|
17507
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(439);
|
|
17543
17508
|
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(4);
|
|
17544
17509
|
/* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(27);
|
|
17545
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
|
-
}
|