@defisaver/sdk 1.2.6 → 1.2.8
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/eulerV2/EulerV2BorrowAction.d.ts +16 -0
- package/esm/src/actions/eulerV2/EulerV2BorrowAction.js +24 -0
- package/esm/src/actions/eulerV2/EulerV2CollateralSwitchAction.d.ts +15 -0
- package/esm/src/actions/eulerV2/EulerV2CollateralSwitchAction.js +22 -0
- package/esm/src/actions/eulerV2/EulerV2PaybackAction.d.ts +22 -0
- package/esm/src/actions/eulerV2/EulerV2PaybackAction.js +40 -0
- package/esm/src/actions/eulerV2/EulerV2PaybackWithSharesAction.d.ts +16 -0
- package/esm/src/actions/eulerV2/EulerV2PaybackWithSharesAction.js +24 -0
- package/esm/src/actions/eulerV2/EulerV2PullDebtAction.d.ts +16 -0
- package/esm/src/actions/eulerV2/EulerV2PullDebtAction.js +24 -0
- package/esm/src/actions/eulerV2/EulerV2ReorderCollateralsAction.d.ts +14 -0
- package/esm/src/actions/eulerV2/EulerV2ReorderCollateralsAction.js +20 -0
- package/esm/src/actions/eulerV2/EulerV2SupplyAction.d.ts +23 -0
- package/esm/src/actions/eulerV2/EulerV2SupplyAction.js +42 -0
- package/esm/src/actions/eulerV2/EulerV2WithdrawAction.d.ts +16 -0
- package/esm/src/actions/eulerV2/EulerV2WithdrawAction.js +24 -0
- package/esm/src/actions/eulerV2/index.d.ts +8 -0
- package/esm/src/actions/eulerV2/index.js +8 -0
- package/esm/src/actions/index.d.ts +2 -1
- package/esm/src/actions/index.js +2 -1
- package/esm/src/addresses.d.ts +24 -0
- package/esm/src/addresses.js +7 -0
- package/esm/src/index.d.ts +96 -0
- package/package.json +1 -1
- package/src/actions/eulerV2/EulerV2BorrowAction.ts +37 -0
- package/src/actions/eulerV2/EulerV2CollateralSwitchAction.ts +34 -0
- package/src/actions/eulerV2/EulerV2PaybackAction.ts +47 -0
- package/src/actions/eulerV2/EulerV2PaybackWithSharesAction.ts +37 -0
- package/src/actions/eulerV2/EulerV2PullDebtAction.ts +37 -0
- package/src/actions/eulerV2/EulerV2ReorderCollateralsAction.ts +31 -0
- package/src/actions/eulerV2/EulerV2SupplyAction.ts +49 -0
- package/src/actions/eulerV2/EulerV2WithdrawAction.ts +37 -0
- package/src/actions/eulerV2/index.ts +9 -0
- package/src/actions/index.ts +2 -0
- package/src/addresses.ts +8 -1
- package/umd/index.js +380 -66
- package/yarn-error.log +3976 -0
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__134__, __WEBPACK_EXTERNAL_MODULE__135__,
|
|
10
|
+
})(this, (__WEBPACK_EXTERNAL_MODULE__2__, __WEBPACK_EXTERNAL_MODULE__3__, __WEBPACK_EXTERNAL_MODULE__5__, __WEBPACK_EXTERNAL_MODULE__6__, __WEBPACK_EXTERNAL_MODULE__134__, __WEBPACK_EXTERNAL_MODULE__135__, __WEBPACK_EXTERNAL_MODULE__358__) => {
|
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
|
12
12
|
/******/ "use strict";
|
|
13
13
|
/******/ var __webpack_modules__ = ([
|
|
@@ -1533,6 +1533,13 @@ var actionAddresses = {
|
|
|
1533
1533
|
LlamaLendRepay: '0x57693f72E628A3F7323D31De35Bd158493Aa9CC0',
|
|
1534
1534
|
LlamaLendLevCreate: '0x534b704a62385cfe5EEB8d9605419743d4fe105E',
|
|
1535
1535
|
LlamaLendSelfLiquidateWithColl: '0xA99DD1D91141cA63C423DB763dE75078336803B2',
|
|
1536
|
+
// eulerV2
|
|
1537
|
+
EulerV2Supply: '0xa067787D086841437D112e0C847dDB3e5D95173f',
|
|
1538
|
+
EulerV2Withdraw: '0x5bf1a54fe1e65B134E7920e53A5eB0D14b9e6aD1',
|
|
1539
|
+
EulerV2Borrow: '0x38d66ecD38b7800D8FD0Bc29489c2306170a9Ede',
|
|
1540
|
+
EulerV2Payback: '0x738b1df6b6962D8795Bda5bc5EFCd8b0B8c74d01',
|
|
1541
|
+
EulerV2CollateralSwitch: '0x38950b50Fb38aC19D06e8CE5AAE632D6dF1EEb1a',
|
|
1542
|
+
EulerV2View: '0x25eCA04532C085F77Ea6CE92C94E9e69896686E6',
|
|
1536
1543
|
MerklClaim: '0xE88036F3F0D7e216D63726356cA2bC334e305fe5'
|
|
1537
1544
|
},
|
|
1538
1545
|
[_config__WEBPACK_IMPORTED_MODULE_0__.NETWORKS.optimism.chainId]: {
|
|
@@ -2040,6 +2047,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2040
2047
|
/* harmony export */ curve: () => (/* reexport module object */ _curve__WEBPACK_IMPORTED_MODULE_15__),
|
|
2041
2048
|
/* harmony export */ curveusd: () => (/* reexport module object */ _curveusd__WEBPACK_IMPORTED_MODULE_26__),
|
|
2042
2049
|
/* harmony export */ dydx: () => (/* reexport module object */ _dydx__WEBPACK_IMPORTED_MODULE_7__),
|
|
2050
|
+
/* harmony export */ eulerV2: () => (/* reexport module object */ _eulerV2__WEBPACK_IMPORTED_MODULE_31__),
|
|
2043
2051
|
/* harmony export */ flashloan: () => (/* reexport module object */ _flashloan__WEBPACK_IMPORTED_MODULE_4__),
|
|
2044
2052
|
/* harmony export */ guni: () => (/* reexport module object */ _guni__WEBPACK_IMPORTED_MODULE_16__),
|
|
2045
2053
|
/* harmony export */ insta: () => (/* reexport module object */ _insta__WEBPACK_IMPORTED_MODULE_13__),
|
|
@@ -2054,7 +2062,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2054
2062
|
/* harmony export */ mstable: () => (/* reexport module object */ _mstable__WEBPACK_IMPORTED_MODULE_17__),
|
|
2055
2063
|
/* harmony export */ rari: () => (/* reexport module object */ _rari__WEBPACK_IMPORTED_MODULE_18__),
|
|
2056
2064
|
/* harmony export */ reflexer: () => (/* reexport module object */ _reflexer__WEBPACK_IMPORTED_MODULE_6__),
|
|
2057
|
-
/* harmony export */ sky: () => (/* reexport module object */
|
|
2065
|
+
/* harmony export */ sky: () => (/* reexport module object */ _sky__WEBPACK_IMPORTED_MODULE_32__),
|
|
2058
2066
|
/* harmony export */ spark: () => (/* reexport module object */ _spark__WEBPACK_IMPORTED_MODULE_27__),
|
|
2059
2067
|
/* harmony export */ uniswap: () => (/* reexport module object */ _uniswap__WEBPACK_IMPORTED_MODULE_5__),
|
|
2060
2068
|
/* harmony export */ uniswapV3: () => (/* reexport module object */ _uniswapV3__WEBPACK_IMPORTED_MODULE_8__),
|
|
@@ -2091,7 +2099,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2091
2099
|
/* harmony import */ var _morpho_blue__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(297);
|
|
2092
2100
|
/* harmony import */ var _llamalend__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(306);
|
|
2093
2101
|
/* harmony import */ var _merkl__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(318);
|
|
2094
|
-
/* harmony import */ var
|
|
2102
|
+
/* harmony import */ var _eulerV2__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(320);
|
|
2103
|
+
/* harmony import */ var _sky__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(329);
|
|
2104
|
+
|
|
2095
2105
|
|
|
2096
2106
|
|
|
2097
2107
|
|
|
@@ -12986,21 +12996,325 @@ class MerklClaimAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
12986
12996
|
/* 320 */
|
|
12987
12997
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12988
12998
|
|
|
12999
|
+
__webpack_require__.r(__webpack_exports__);
|
|
13000
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13001
|
+
/* harmony export */ EulerV2BorrowAction: () => (/* reexport safe */ _EulerV2BorrowAction__WEBPACK_IMPORTED_MODULE_2__.EulerV2BorrowAction),
|
|
13002
|
+
/* harmony export */ EulerV2CollateralSwitchAction: () => (/* reexport safe */ _EulerV2CollateralSwitchAction__WEBPACK_IMPORTED_MODULE_7__.EulerV2CollateralSwitchAction),
|
|
13003
|
+
/* harmony export */ EulerV2PaybackAction: () => (/* reexport safe */ _EulerV2PaybackAction__WEBPACK_IMPORTED_MODULE_3__.EulerV2PaybackAction),
|
|
13004
|
+
/* harmony export */ EulerV2PaybackWithSharesAction: () => (/* reexport safe */ _EulerV2PaybackWithSharesAction__WEBPACK_IMPORTED_MODULE_4__.EulerV2PaybackWithSharesAction),
|
|
13005
|
+
/* harmony export */ EulerV2PullDebtAction: () => (/* reexport safe */ _EulerV2PullDebtAction__WEBPACK_IMPORTED_MODULE_5__.EulerV2PullDebtAction),
|
|
13006
|
+
/* harmony export */ EulerV2ReorderCollateralsAction: () => (/* reexport safe */ _EulerV2ReorderCollateralsAction__WEBPACK_IMPORTED_MODULE_6__.EulerV2ReorderCollateralsAction),
|
|
13007
|
+
/* harmony export */ EulerV2SupplyAction: () => (/* reexport safe */ _EulerV2SupplyAction__WEBPACK_IMPORTED_MODULE_0__.EulerV2SupplyAction),
|
|
13008
|
+
/* harmony export */ EulerV2WithdrawAction: () => (/* reexport safe */ _EulerV2WithdrawAction__WEBPACK_IMPORTED_MODULE_1__.EulerV2WithdrawAction)
|
|
13009
|
+
/* harmony export */ });
|
|
13010
|
+
/* harmony import */ var _EulerV2SupplyAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(321);
|
|
13011
|
+
/* harmony import */ var _EulerV2WithdrawAction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(322);
|
|
13012
|
+
/* harmony import */ var _EulerV2BorrowAction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(323);
|
|
13013
|
+
/* harmony import */ var _EulerV2PaybackAction__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(324);
|
|
13014
|
+
/* harmony import */ var _EulerV2PaybackWithSharesAction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(325);
|
|
13015
|
+
/* harmony import */ var _EulerV2PullDebtAction__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(326);
|
|
13016
|
+
/* harmony import */ var _EulerV2ReorderCollateralsAction__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(327);
|
|
13017
|
+
/* harmony import */ var _EulerV2CollateralSwitchAction__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(328);
|
|
13018
|
+
|
|
13019
|
+
|
|
13020
|
+
|
|
13021
|
+
|
|
13022
|
+
|
|
13023
|
+
|
|
13024
|
+
|
|
13025
|
+
|
|
13026
|
+
|
|
13027
|
+
/***/ }),
|
|
13028
|
+
/* 321 */
|
|
13029
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13030
|
+
|
|
13031
|
+
__webpack_require__.r(__webpack_exports__);
|
|
13032
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13033
|
+
/* harmony export */ EulerV2SupplyAction: () => (/* binding */ EulerV2SupplyAction)
|
|
13034
|
+
/* harmony export */ });
|
|
13035
|
+
/* harmony import */ var _Action__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
|
|
13036
|
+
/* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27);
|
|
13037
|
+
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); } }
|
|
13038
|
+
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); }); }; }
|
|
13039
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13040
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
13041
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
13042
|
+
|
|
13043
|
+
|
|
13044
|
+
/**
|
|
13045
|
+
* EulerV2SupplyAction - Supply assets to a Euler vault and gets eTokens vault shares
|
|
13046
|
+
*
|
|
13047
|
+
* @category EulerV2
|
|
13048
|
+
*/
|
|
13049
|
+
class EulerV2SupplyAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
13050
|
+
/**
|
|
13051
|
+
* @param vault The address of the supply vault
|
|
13052
|
+
* @param tokenAddress Underlying token address
|
|
13053
|
+
* @param account The address of the Euler account, defaults to user's wallet
|
|
13054
|
+
* @param from The address from which to pull tokens to be supplied
|
|
13055
|
+
* @param amount The amount of assets to supply
|
|
13056
|
+
* @param enableAsColl Whether to enable supply vault as collateral
|
|
13057
|
+
*/
|
|
13058
|
+
constructor(vault, tokenAddress, account, from, amount, enableAsColl) {
|
|
13059
|
+
super('EulerV2Supply', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('EulerV2Supply'), ['address', 'address', 'address', 'uint256', 'bool'], [vault, account, from, amount, enableAsColl]);
|
|
13060
|
+
_defineProperty(this, "tokenForApproval", void 0);
|
|
13061
|
+
this.mappableArgs = [this.args[0], this.args[1], this.args[2], this.args[3], this.args[4]];
|
|
13062
|
+
this.tokenForApproval = tokenAddress;
|
|
13063
|
+
}
|
|
13064
|
+
getAssetsToApprove() {
|
|
13065
|
+
var _this = this;
|
|
13066
|
+
return _asyncToGenerator(function* () {
|
|
13067
|
+
return [{
|
|
13068
|
+
asset: _this.tokenForApproval,
|
|
13069
|
+
owner: _this.args[2]
|
|
13070
|
+
}];
|
|
13071
|
+
})();
|
|
13072
|
+
}
|
|
13073
|
+
}
|
|
13074
|
+
|
|
13075
|
+
/***/ }),
|
|
13076
|
+
/* 322 */
|
|
13077
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13078
|
+
|
|
13079
|
+
__webpack_require__.r(__webpack_exports__);
|
|
13080
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13081
|
+
/* harmony export */ EulerV2WithdrawAction: () => (/* binding */ EulerV2WithdrawAction)
|
|
13082
|
+
/* harmony export */ });
|
|
13083
|
+
/* harmony import */ var _Action__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
|
|
13084
|
+
/* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27);
|
|
13085
|
+
|
|
13086
|
+
|
|
13087
|
+
/**
|
|
13088
|
+
* EulerV2WithdrawAction - Withdraws assets from Euler vault
|
|
13089
|
+
*
|
|
13090
|
+
* @category EulerV2
|
|
13091
|
+
*/
|
|
13092
|
+
class EulerV2WithdrawAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
13093
|
+
/**
|
|
13094
|
+
* @param vault The address of the Euler vault
|
|
13095
|
+
* @param account The address of the Euler account, defaults to user's wallet
|
|
13096
|
+
* @param receiver The address to receive the withdrawn assets
|
|
13097
|
+
* @param amount The amount of assets to withdraw (uint256.max for max withdrawal)
|
|
13098
|
+
*/
|
|
13099
|
+
constructor(vault, account, receiver, amount) {
|
|
13100
|
+
super('EulerV2Withdraw', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('EulerV2Withdraw'), ['address', 'address', 'address', 'uint256'], [vault, account, receiver, amount]);
|
|
13101
|
+
this.mappableArgs = [this.args[0], this.args[1], this.args[2], this.args[3]];
|
|
13102
|
+
}
|
|
13103
|
+
}
|
|
13104
|
+
|
|
13105
|
+
/***/ }),
|
|
13106
|
+
/* 323 */
|
|
13107
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13108
|
+
|
|
13109
|
+
__webpack_require__.r(__webpack_exports__);
|
|
13110
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13111
|
+
/* harmony export */ EulerV2BorrowAction: () => (/* binding */ EulerV2BorrowAction)
|
|
13112
|
+
/* harmony export */ });
|
|
13113
|
+
/* harmony import */ var _Action__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
|
|
13114
|
+
/* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27);
|
|
13115
|
+
|
|
13116
|
+
|
|
13117
|
+
/**
|
|
13118
|
+
* EulerV2BorrowAction - Borrow assets from an Euler vault
|
|
13119
|
+
*
|
|
13120
|
+
* @category EulerV2
|
|
13121
|
+
*/
|
|
13122
|
+
class EulerV2BorrowAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
13123
|
+
/**
|
|
13124
|
+
* @param vault The address of the Euler vault
|
|
13125
|
+
* @param account The address of the Euler account, defaults to user's wallet
|
|
13126
|
+
* @param receiver The address to receive the borrowed assets
|
|
13127
|
+
* @param amount The amount of assets to borrow
|
|
13128
|
+
*/
|
|
13129
|
+
constructor(vault, account, receiver, amount) {
|
|
13130
|
+
super('EulerV2Borrow', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('EulerV2Borrow'), ['address', 'address', 'address', 'uint256'], [vault, account, receiver, amount]);
|
|
13131
|
+
this.mappableArgs = [this.args[0], this.args[1], this.args[2], this.args[3]];
|
|
13132
|
+
}
|
|
13133
|
+
}
|
|
13134
|
+
|
|
13135
|
+
/***/ }),
|
|
13136
|
+
/* 324 */
|
|
13137
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13138
|
+
|
|
13139
|
+
__webpack_require__.r(__webpack_exports__);
|
|
13140
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13141
|
+
/* harmony export */ EulerV2PaybackAction: () => (/* binding */ EulerV2PaybackAction)
|
|
13142
|
+
/* harmony export */ });
|
|
13143
|
+
/* harmony import */ var _Action__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
|
|
13144
|
+
/* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27);
|
|
13145
|
+
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); } }
|
|
13146
|
+
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); }); }; }
|
|
13147
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13148
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
13149
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
13150
|
+
|
|
13151
|
+
|
|
13152
|
+
/**
|
|
13153
|
+
* EulerV2PaybackAction - Payback debt assets to a Euler vault
|
|
13154
|
+
*
|
|
13155
|
+
* @category EulerV2
|
|
13156
|
+
*/
|
|
13157
|
+
class EulerV2PaybackAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
13158
|
+
/**
|
|
13159
|
+
* @param vault The address of the vault
|
|
13160
|
+
* @param tokenAddress Underlying token address
|
|
13161
|
+
* @param account The address of the Euler account, defaults to user's wallet
|
|
13162
|
+
* @param from The address from which to pull tokens to be paid back
|
|
13163
|
+
* @param amount The amount of assets to pay back (uint256.max for full debt repayment)
|
|
13164
|
+
*/
|
|
13165
|
+
constructor(vault, tokenAddress, account, from, amount) {
|
|
13166
|
+
super('EulerV2Payback', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('EulerV2Payback'), ['address', 'address', 'address', 'uint256'], [vault, account, from, amount]);
|
|
13167
|
+
_defineProperty(this, "tokenForApproval", void 0);
|
|
13168
|
+
this.mappableArgs = [this.args[0], this.args[1], this.args[2], this.args[3]];
|
|
13169
|
+
this.tokenForApproval = tokenAddress;
|
|
13170
|
+
}
|
|
13171
|
+
getAssetsToApprove() {
|
|
13172
|
+
var _this = this;
|
|
13173
|
+
return _asyncToGenerator(function* () {
|
|
13174
|
+
return [{
|
|
13175
|
+
asset: _this.tokenForApproval,
|
|
13176
|
+
owner: _this.args[2]
|
|
13177
|
+
}];
|
|
13178
|
+
})();
|
|
13179
|
+
}
|
|
13180
|
+
}
|
|
13181
|
+
|
|
13182
|
+
/***/ }),
|
|
13183
|
+
/* 325 */
|
|
13184
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13185
|
+
|
|
13186
|
+
__webpack_require__.r(__webpack_exports__);
|
|
13187
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13188
|
+
/* harmony export */ EulerV2PaybackWithSharesAction: () => (/* binding */ EulerV2PaybackWithSharesAction)
|
|
13189
|
+
/* harmony export */ });
|
|
13190
|
+
/* harmony import */ var _Action__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
|
|
13191
|
+
/* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27);
|
|
13192
|
+
|
|
13193
|
+
|
|
13194
|
+
/**
|
|
13195
|
+
* EulerV2PaybackWithSharesAction - Payback debt asset to a Euler vault using share tokens
|
|
13196
|
+
*
|
|
13197
|
+
* @category EulerV2
|
|
13198
|
+
*/
|
|
13199
|
+
class EulerV2PaybackWithSharesAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
13200
|
+
/**
|
|
13201
|
+
* @param vault The address of the vault
|
|
13202
|
+
* @param account The address of the Euler account for which debt is paid back, defaults to user's wallet
|
|
13203
|
+
* @param from The address of the Euler account for which shares are burned to pay back debt for 'account', defaults to user's wallet
|
|
13204
|
+
* @param amount The amount of asset tokens to be paid back (uint256.max for full debt repayment or up to the available deposit shares in 'from' account)
|
|
13205
|
+
*/
|
|
13206
|
+
constructor(vault, account, from, amount) {
|
|
13207
|
+
super('EulerV2PaybackWithShares', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('EulerV2PaybackWithShares'), ['address', 'address', 'address', 'uint256'], [vault, account, from, amount]);
|
|
13208
|
+
this.mappableArgs = [this.args[0], this.args[1], this.args[2], this.args[3]];
|
|
13209
|
+
}
|
|
13210
|
+
}
|
|
13211
|
+
|
|
13212
|
+
/***/ }),
|
|
13213
|
+
/* 326 */
|
|
13214
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13215
|
+
|
|
13216
|
+
__webpack_require__.r(__webpack_exports__);
|
|
13217
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13218
|
+
/* harmony export */ EulerV2PullDebtAction: () => (/* binding */ EulerV2PullDebtAction)
|
|
13219
|
+
/* harmony export */ });
|
|
13220
|
+
/* harmony import */ var _Action__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
|
|
13221
|
+
/* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27);
|
|
13222
|
+
|
|
13223
|
+
|
|
13224
|
+
/**
|
|
13225
|
+
* EulerV2PullDebtAction - Pull debt from one Euler account to another
|
|
13226
|
+
*
|
|
13227
|
+
* @category EulerV2
|
|
13228
|
+
*/
|
|
13229
|
+
class EulerV2PullDebtAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
13230
|
+
/**
|
|
13231
|
+
* @param vault The address of the Euler vault
|
|
13232
|
+
* @param account The address of the Euler account taking the debt, defaults to user's wallet
|
|
13233
|
+
* @param from The address of the Euler account from which debt is pulled
|
|
13234
|
+
* @param amount The amount of debt to be pulled (uint256.max for full debt pull)
|
|
13235
|
+
*/
|
|
13236
|
+
constructor(vault, account, from, amount) {
|
|
13237
|
+
super('EulerV2PullDebt', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('EulerV2PullDebt'), ['address', 'address', 'address', 'uint256'], [vault, account, from, amount]);
|
|
13238
|
+
this.mappableArgs = [this.args[0], this.args[1], this.args[2], this.args[3]];
|
|
13239
|
+
}
|
|
13240
|
+
}
|
|
13241
|
+
|
|
13242
|
+
/***/ }),
|
|
13243
|
+
/* 327 */
|
|
13244
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13245
|
+
|
|
13246
|
+
__webpack_require__.r(__webpack_exports__);
|
|
13247
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13248
|
+
/* harmony export */ EulerV2ReorderCollateralsAction: () => (/* binding */ EulerV2ReorderCollateralsAction)
|
|
13249
|
+
/* harmony export */ });
|
|
13250
|
+
/* harmony import */ var _Action__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
|
|
13251
|
+
/* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27);
|
|
13252
|
+
|
|
13253
|
+
|
|
13254
|
+
/**
|
|
13255
|
+
* EulerV2ReorderCollateralsAction - Reorder account collaterals. Can be used to optimize gas costs when checking account health status
|
|
13256
|
+
*
|
|
13257
|
+
* @category EulerV2
|
|
13258
|
+
*/
|
|
13259
|
+
class EulerV2ReorderCollateralsAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
13260
|
+
/**
|
|
13261
|
+
* @param account The address of the Euler account, defaults to user's wallet
|
|
13262
|
+
* @param indexes The array of swap steps to reorder collaterals
|
|
13263
|
+
*/
|
|
13264
|
+
constructor(account, indexes) {
|
|
13265
|
+
super('EulerV2ReorderCollaterals', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('EulerV2ReorderCollaterals'), ['address', 'uint8[][]'], [account, indexes]);
|
|
13266
|
+
this.mappableArgs = [this.args[0], this.args[1]];
|
|
13267
|
+
}
|
|
13268
|
+
}
|
|
13269
|
+
|
|
13270
|
+
/***/ }),
|
|
13271
|
+
/* 328 */
|
|
13272
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13273
|
+
|
|
13274
|
+
__webpack_require__.r(__webpack_exports__);
|
|
13275
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13276
|
+
/* harmony export */ EulerV2CollateralSwitchAction: () => (/* binding */ EulerV2CollateralSwitchAction)
|
|
13277
|
+
/* harmony export */ });
|
|
13278
|
+
/* harmony import */ var _Action__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
|
|
13279
|
+
/* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27);
|
|
13280
|
+
|
|
13281
|
+
|
|
13282
|
+
/**
|
|
13283
|
+
* EulerV2CollateralSwitchAction - Switch if vault will be used as collateral or not
|
|
13284
|
+
*
|
|
13285
|
+
* @category EulerV2
|
|
13286
|
+
*/
|
|
13287
|
+
class EulerV2CollateralSwitchAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
13288
|
+
/**
|
|
13289
|
+
* @param vault The address of the vault
|
|
13290
|
+
* @param account The address of the Euler account, defaults to user's wallet
|
|
13291
|
+
* @param enableAsColl Whether to enable or disable the vault as collateral
|
|
13292
|
+
*/
|
|
13293
|
+
constructor(vault, account, enableAsColl) {
|
|
13294
|
+
super('EulerV2CollateralSwitch', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('EulerV2CollateralSwitch'), ['address', 'address', 'bool'], [vault, account, enableAsColl]);
|
|
13295
|
+
this.mappableArgs = [this.args[0], this.args[1], this.args[2]];
|
|
13296
|
+
}
|
|
13297
|
+
}
|
|
13298
|
+
|
|
13299
|
+
/***/ }),
|
|
13300
|
+
/* 329 */
|
|
13301
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13302
|
+
|
|
12989
13303
|
__webpack_require__.r(__webpack_exports__);
|
|
12990
13304
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12991
13305
|
/* harmony export */ SkyClaimRewardsAction: () => (/* reexport safe */ _SkyClaimRewardsAction__WEBPACK_IMPORTED_MODULE_0__.SkyClaimRewardsAction),
|
|
12992
13306
|
/* harmony export */ SkyStakeAction: () => (/* reexport safe */ _SkyStakeAction__WEBPACK_IMPORTED_MODULE_1__.SkyStakeAction),
|
|
12993
13307
|
/* harmony export */ SkyUnstakeAction: () => (/* reexport safe */ _SkyUnstakeAction__WEBPACK_IMPORTED_MODULE_2__.SkyUnstakeAction)
|
|
12994
13308
|
/* harmony export */ });
|
|
12995
|
-
/* harmony import */ var _SkyClaimRewardsAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
12996
|
-
/* harmony import */ var _SkyStakeAction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
12997
|
-
/* harmony import */ var _SkyUnstakeAction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
13309
|
+
/* harmony import */ var _SkyClaimRewardsAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(330);
|
|
13310
|
+
/* harmony import */ var _SkyStakeAction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(331);
|
|
13311
|
+
/* harmony import */ var _SkyUnstakeAction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(332);
|
|
12998
13312
|
|
|
12999
13313
|
|
|
13000
13314
|
|
|
13001
13315
|
|
|
13002
13316
|
/***/ }),
|
|
13003
|
-
/*
|
|
13317
|
+
/* 330 */
|
|
13004
13318
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13005
13319
|
|
|
13006
13320
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13030,7 +13344,7 @@ class SkyClaimRewardsAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action
|
|
|
13030
13344
|
}
|
|
13031
13345
|
|
|
13032
13346
|
/***/ }),
|
|
13033
|
-
/*
|
|
13347
|
+
/* 331 */
|
|
13034
13348
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13035
13349
|
|
|
13036
13350
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13072,7 +13386,7 @@ class SkyStakeAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
13072
13386
|
}
|
|
13073
13387
|
|
|
13074
13388
|
/***/ }),
|
|
13075
|
-
/*
|
|
13389
|
+
/* 332 */
|
|
13076
13390
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13077
13391
|
|
|
13078
13392
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13103,7 +13417,7 @@ class SkyUnstakeAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
13103
13417
|
}
|
|
13104
13418
|
|
|
13105
13419
|
/***/ }),
|
|
13106
|
-
/*
|
|
13420
|
+
/* 333 */
|
|
13107
13421
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13108
13422
|
|
|
13109
13423
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13131,28 +13445,28 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13131
13445
|
/* harmony export */ TrailingStopTrigger: () => (/* reexport safe */ _TrailingStopTrigger__WEBPACK_IMPORTED_MODULE_10__.TrailingStopTrigger),
|
|
13132
13446
|
/* harmony export */ UniV3CurrentTickTrigger: () => (/* reexport safe */ _UniV3CurrentTickTrigger__WEBPACK_IMPORTED_MODULE_2__.UniV3CurrentTickTrigger)
|
|
13133
13447
|
/* harmony export */ });
|
|
13134
|
-
/* harmony import */ var _MakerRatioTrigger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
13135
|
-
/* harmony import */ var _ChainLinkPriceTrigger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
13136
|
-
/* harmony import */ var _UniV3CurrentTickTrigger__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
13137
|
-
/* harmony import */ var _TimestampTrigger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
13138
|
-
/* harmony import */ var _GasPriceTrigger__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
13139
|
-
/* harmony import */ var _CompoundRatioTrigger__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
13140
|
-
/* harmony import */ var _ReflexerRatioTrigger__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
|
|
13141
|
-
/* harmony import */ var _LiquityRatioTrigger__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
|
|
13142
|
-
/* harmony import */ var _AaveV3RatioTrigger__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
|
|
13143
|
-
/* harmony import */ var _CompV3RatioTrigger__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
|
|
13144
|
-
/* harmony import */ var _TrailingStopTrigger__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
|
|
13145
|
-
/* harmony import */ var _CBRebondTrigger__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(
|
|
13146
|
-
/* harmony import */ var _AaveV3QuotePriceTrigger__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(
|
|
13147
|
-
/* harmony import */ var _AaveV2RatioTrigger__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(
|
|
13148
|
-
/* harmony import */ var _MorphoAaveV2RatioTrigger__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(
|
|
13149
|
-
/* harmony import */ var _SparkRatioTrigger__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(
|
|
13150
|
-
/* harmony import */ var _SparkQuotePriceTrigger__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(
|
|
13151
|
-
/* harmony import */ var _LiquityDebtInFrontWithLimitTrigger__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(
|
|
13152
|
-
/* harmony import */ var _CurveUsdCollRatioTrigger__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(
|
|
13153
|
-
/* harmony import */ var _CurveUsdHealthRatioTrigger__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(
|
|
13154
|
-
/* harmony import */ var _MorphoBlueRatioTrigger__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(
|
|
13155
|
-
/* harmony import */ var _OffchainPriceTrigger__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(
|
|
13448
|
+
/* harmony import */ var _MakerRatioTrigger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(334);
|
|
13449
|
+
/* harmony import */ var _ChainLinkPriceTrigger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(335);
|
|
13450
|
+
/* harmony import */ var _UniV3CurrentTickTrigger__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(336);
|
|
13451
|
+
/* harmony import */ var _TimestampTrigger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(337);
|
|
13452
|
+
/* harmony import */ var _GasPriceTrigger__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(338);
|
|
13453
|
+
/* harmony import */ var _CompoundRatioTrigger__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(339);
|
|
13454
|
+
/* harmony import */ var _ReflexerRatioTrigger__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(340);
|
|
13455
|
+
/* harmony import */ var _LiquityRatioTrigger__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(341);
|
|
13456
|
+
/* harmony import */ var _AaveV3RatioTrigger__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(342);
|
|
13457
|
+
/* harmony import */ var _CompV3RatioTrigger__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(343);
|
|
13458
|
+
/* harmony import */ var _TrailingStopTrigger__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(344);
|
|
13459
|
+
/* harmony import */ var _CBRebondTrigger__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(345);
|
|
13460
|
+
/* harmony import */ var _AaveV3QuotePriceTrigger__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(346);
|
|
13461
|
+
/* harmony import */ var _AaveV2RatioTrigger__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(347);
|
|
13462
|
+
/* harmony import */ var _MorphoAaveV2RatioTrigger__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(348);
|
|
13463
|
+
/* harmony import */ var _SparkRatioTrigger__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(349);
|
|
13464
|
+
/* harmony import */ var _SparkQuotePriceTrigger__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(350);
|
|
13465
|
+
/* harmony import */ var _LiquityDebtInFrontWithLimitTrigger__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(351);
|
|
13466
|
+
/* harmony import */ var _CurveUsdCollRatioTrigger__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(352);
|
|
13467
|
+
/* harmony import */ var _CurveUsdHealthRatioTrigger__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(353);
|
|
13468
|
+
/* harmony import */ var _MorphoBlueRatioTrigger__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(354);
|
|
13469
|
+
/* harmony import */ var _OffchainPriceTrigger__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(355);
|
|
13156
13470
|
|
|
13157
13471
|
|
|
13158
13472
|
|
|
@@ -13177,7 +13491,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13177
13491
|
|
|
13178
13492
|
|
|
13179
13493
|
/***/ }),
|
|
13180
|
-
/*
|
|
13494
|
+
/* 334 */
|
|
13181
13495
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13182
13496
|
|
|
13183
13497
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13200,7 +13514,7 @@ class MakerRatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
13200
13514
|
}
|
|
13201
13515
|
|
|
13202
13516
|
/***/ }),
|
|
13203
|
-
/*
|
|
13517
|
+
/* 335 */
|
|
13204
13518
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13205
13519
|
|
|
13206
13520
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13223,7 +13537,7 @@ class ChainLinkPriceTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action
|
|
|
13223
13537
|
}
|
|
13224
13538
|
|
|
13225
13539
|
/***/ }),
|
|
13226
|
-
/*
|
|
13540
|
+
/* 336 */
|
|
13227
13541
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13228
13542
|
|
|
13229
13543
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13246,7 +13560,7 @@ class UniV3CurrentTickTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Actio
|
|
|
13246
13560
|
}
|
|
13247
13561
|
|
|
13248
13562
|
/***/ }),
|
|
13249
|
-
/*
|
|
13563
|
+
/* 337 */
|
|
13250
13564
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13251
13565
|
|
|
13252
13566
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13269,7 +13583,7 @@ class TimestampTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
13269
13583
|
}
|
|
13270
13584
|
|
|
13271
13585
|
/***/ }),
|
|
13272
|
-
/*
|
|
13586
|
+
/* 338 */
|
|
13273
13587
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13274
13588
|
|
|
13275
13589
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13292,7 +13606,7 @@ class GasPriceTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
13292
13606
|
}
|
|
13293
13607
|
|
|
13294
13608
|
/***/ }),
|
|
13295
|
-
/*
|
|
13609
|
+
/* 339 */
|
|
13296
13610
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13297
13611
|
|
|
13298
13612
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13315,7 +13629,7 @@ class CompoundRatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
13315
13629
|
}
|
|
13316
13630
|
|
|
13317
13631
|
/***/ }),
|
|
13318
|
-
/*
|
|
13632
|
+
/* 340 */
|
|
13319
13633
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13320
13634
|
|
|
13321
13635
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13338,7 +13652,7 @@ class ReflexerRatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
13338
13652
|
}
|
|
13339
13653
|
|
|
13340
13654
|
/***/ }),
|
|
13341
|
-
/*
|
|
13655
|
+
/* 341 */
|
|
13342
13656
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13343
13657
|
|
|
13344
13658
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13361,7 +13675,7 @@ class LiquityRatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
13361
13675
|
}
|
|
13362
13676
|
|
|
13363
13677
|
/***/ }),
|
|
13364
|
-
/*
|
|
13678
|
+
/* 342 */
|
|
13365
13679
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13366
13680
|
|
|
13367
13681
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13384,7 +13698,7 @@ class AaveV3RatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
13384
13698
|
}
|
|
13385
13699
|
|
|
13386
13700
|
/***/ }),
|
|
13387
|
-
/*
|
|
13701
|
+
/* 343 */
|
|
13388
13702
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13389
13703
|
|
|
13390
13704
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13407,7 +13721,7 @@ class CompV3RatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
13407
13721
|
}
|
|
13408
13722
|
|
|
13409
13723
|
/***/ }),
|
|
13410
|
-
/*
|
|
13724
|
+
/* 344 */
|
|
13411
13725
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13412
13726
|
|
|
13413
13727
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13430,7 +13744,7 @@ class TrailingStopTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
13430
13744
|
}
|
|
13431
13745
|
|
|
13432
13746
|
/***/ }),
|
|
13433
|
-
/*
|
|
13747
|
+
/* 345 */
|
|
13434
13748
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13435
13749
|
|
|
13436
13750
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13453,7 +13767,7 @@ class CBRebondTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
13453
13767
|
}
|
|
13454
13768
|
|
|
13455
13769
|
/***/ }),
|
|
13456
|
-
/*
|
|
13770
|
+
/* 346 */
|
|
13457
13771
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13458
13772
|
|
|
13459
13773
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13476,7 +13790,7 @@ class AaveV3QuotePriceTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Actio
|
|
|
13476
13790
|
}
|
|
13477
13791
|
|
|
13478
13792
|
/***/ }),
|
|
13479
|
-
/*
|
|
13793
|
+
/* 347 */
|
|
13480
13794
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13481
13795
|
|
|
13482
13796
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13499,7 +13813,7 @@ class AaveV2RatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
13499
13813
|
}
|
|
13500
13814
|
|
|
13501
13815
|
/***/ }),
|
|
13502
|
-
/*
|
|
13816
|
+
/* 348 */
|
|
13503
13817
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13504
13818
|
|
|
13505
13819
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13522,7 +13836,7 @@ class MorphoAaveV2RatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Acti
|
|
|
13522
13836
|
}
|
|
13523
13837
|
|
|
13524
13838
|
/***/ }),
|
|
13525
|
-
/*
|
|
13839
|
+
/* 349 */
|
|
13526
13840
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13527
13841
|
|
|
13528
13842
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13545,7 +13859,7 @@ class SparkRatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
13545
13859
|
}
|
|
13546
13860
|
|
|
13547
13861
|
/***/ }),
|
|
13548
|
-
/*
|
|
13862
|
+
/* 350 */
|
|
13549
13863
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13550
13864
|
|
|
13551
13865
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13568,7 +13882,7 @@ class SparkQuotePriceTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action
|
|
|
13568
13882
|
}
|
|
13569
13883
|
|
|
13570
13884
|
/***/ }),
|
|
13571
|
-
/*
|
|
13885
|
+
/* 351 */
|
|
13572
13886
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13573
13887
|
|
|
13574
13888
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13591,7 +13905,7 @@ class LiquityDebtInFrontWithLimitTrigger extends _Action__WEBPACK_IMPORTED_MODUL
|
|
|
13591
13905
|
}
|
|
13592
13906
|
|
|
13593
13907
|
/***/ }),
|
|
13594
|
-
/*
|
|
13908
|
+
/* 352 */
|
|
13595
13909
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13596
13910
|
|
|
13597
13911
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13614,7 +13928,7 @@ class CurveUsdCollRatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Acti
|
|
|
13614
13928
|
}
|
|
13615
13929
|
|
|
13616
13930
|
/***/ }),
|
|
13617
|
-
/*
|
|
13931
|
+
/* 353 */
|
|
13618
13932
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13619
13933
|
|
|
13620
13934
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13637,7 +13951,7 @@ class CurveUsdHealthRatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Ac
|
|
|
13637
13951
|
}
|
|
13638
13952
|
|
|
13639
13953
|
/***/ }),
|
|
13640
|
-
/*
|
|
13954
|
+
/* 354 */
|
|
13641
13955
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13642
13956
|
|
|
13643
13957
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13660,7 +13974,7 @@ class MorphoBlueRatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action
|
|
|
13660
13974
|
}
|
|
13661
13975
|
|
|
13662
13976
|
/***/ }),
|
|
13663
|
-
/*
|
|
13977
|
+
/* 355 */
|
|
13664
13978
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13665
13979
|
|
|
13666
13980
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13683,7 +13997,7 @@ class OffchainPriceTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
13683
13997
|
}
|
|
13684
13998
|
|
|
13685
13999
|
/***/ }),
|
|
13686
|
-
/*
|
|
14000
|
+
/* 356 */
|
|
13687
14001
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13688
14002
|
|
|
13689
14003
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13697,9 +14011,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13697
14011
|
/* harmony export */ uniswapV3LP: () => (/* reexport module object */ _uniswapV3LP__WEBPACK_IMPORTED_MODULE_2__),
|
|
13698
14012
|
/* harmony export */ zeroExExchange: () => (/* reexport module object */ _zeroExExchange__WEBPACK_IMPORTED_MODULE_0__)
|
|
13699
14013
|
/* harmony export */ });
|
|
13700
|
-
/* harmony import */ var _zeroExExchange__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
14014
|
+
/* harmony import */ var _zeroExExchange__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(357);
|
|
13701
14015
|
/* harmony import */ var _uniswapLP__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(133);
|
|
13702
|
-
/* harmony import */ var _uniswapV3LP__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
14016
|
+
/* harmony import */ var _uniswapV3LP__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(359);
|
|
13703
14017
|
/* harmony import */ var _convex_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(233);
|
|
13704
14018
|
/* harmony import */ var _mstableAssetPairs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(213);
|
|
13705
14019
|
/* harmony import */ var _curve_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(199);
|
|
@@ -13716,7 +14030,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13716
14030
|
|
|
13717
14031
|
|
|
13718
14032
|
/***/ }),
|
|
13719
|
-
/*
|
|
14033
|
+
/* 357 */
|
|
13720
14034
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13721
14035
|
|
|
13722
14036
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13727,7 +14041,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13727
14041
|
/* harmony export */ });
|
|
13728
14042
|
/* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
|
|
13729
14043
|
/* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(decimal_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
13730
|
-
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
14044
|
+
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(358);
|
|
13731
14045
|
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);
|
|
13732
14046
|
/* harmony import */ var _defisaver_tokens__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6);
|
|
13733
14047
|
/* harmony import */ var _defisaver_tokens__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_defisaver_tokens__WEBPACK_IMPORTED_MODULE_2__);
|
|
@@ -13929,20 +14243,20 @@ var createSellAction = /*#__PURE__*/function () {
|
|
|
13929
14243
|
}();
|
|
13930
14244
|
|
|
13931
14245
|
/***/ }),
|
|
13932
|
-
/*
|
|
14246
|
+
/* 358 */
|
|
13933
14247
|
/***/ ((module) => {
|
|
13934
14248
|
|
|
13935
|
-
module.exports =
|
|
14249
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__358__;
|
|
13936
14250
|
|
|
13937
14251
|
/***/ }),
|
|
13938
|
-
/*
|
|
14252
|
+
/* 359 */
|
|
13939
14253
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13940
14254
|
|
|
13941
14255
|
__webpack_require__.r(__webpack_exports__);
|
|
13942
14256
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13943
14257
|
/* harmony export */ getAssetAddrByTokenId: () => (/* binding */ getAssetAddrByTokenId)
|
|
13944
14258
|
/* harmony export */ });
|
|
13945
|
-
/* harmony import */ var _abis_UniV3PositionManager_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
14259
|
+
/* harmony import */ var _abis_UniV3PositionManager_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(360);
|
|
13946
14260
|
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); } }
|
|
13947
14261
|
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); }); }; }
|
|
13948
14262
|
/**
|
|
@@ -13967,7 +14281,7 @@ var getAssetAddrByTokenId = /*#__PURE__*/function () {
|
|
|
13967
14281
|
}();
|
|
13968
14282
|
|
|
13969
14283
|
/***/ }),
|
|
13970
|
-
/*
|
|
14284
|
+
/* 360 */
|
|
13971
14285
|
/***/ ((module) => {
|
|
13972
14286
|
|
|
13973
14287
|
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"}]');
|
|
@@ -14071,8 +14385,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14071
14385
|
/* harmony import */ var _Strategy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29);
|
|
14072
14386
|
/* harmony import */ var _DfsWeb3__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(30);
|
|
14073
14387
|
/* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(35);
|
|
14074
|
-
/* harmony import */ var _triggers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
|
|
14075
|
-
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
|
|
14388
|
+
/* harmony import */ var _triggers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(333);
|
|
14389
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(356);
|
|
14076
14390
|
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(4);
|
|
14077
14391
|
/* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(27);
|
|
14078
14392
|
/* Export types here */
|