@defisaver/sdk 1.2.7 → 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 +25 -1
- package/esm/src/addresses.js +7 -1
- package/esm/src/index.d.ts +100 -4
- 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 -67
- 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]: {
|
|
@@ -1665,7 +1672,6 @@ var actionAddresses = {
|
|
|
1665
1672
|
ChangeProxyOwner: '0x1947a44d3717a47556175d64fdc208619aa08874',
|
|
1666
1673
|
PermitToken: '0x57c8ae94a5A11dA33e0518054102488b604628D0',
|
|
1667
1674
|
HandleAuth: '0x18a90e6db79199ace00140631ef931e0bd97837c',
|
|
1668
|
-
ToggleSub: '0x5F16C0a08d52b67fc73706c494F7535Dd3382b58',
|
|
1669
1675
|
// Flashloan
|
|
1670
1676
|
FLAaveV3: '0x79Eb9cEe432Cd3e7b09A9eFdB21A733A6d7b4c3A',
|
|
1671
1677
|
FLBalancer: '0x862E533198C9656B75bB6A5dDF0953F7ED5E8507',
|
|
@@ -2041,6 +2047,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2041
2047
|
/* harmony export */ curve: () => (/* reexport module object */ _curve__WEBPACK_IMPORTED_MODULE_15__),
|
|
2042
2048
|
/* harmony export */ curveusd: () => (/* reexport module object */ _curveusd__WEBPACK_IMPORTED_MODULE_26__),
|
|
2043
2049
|
/* harmony export */ dydx: () => (/* reexport module object */ _dydx__WEBPACK_IMPORTED_MODULE_7__),
|
|
2050
|
+
/* harmony export */ eulerV2: () => (/* reexport module object */ _eulerV2__WEBPACK_IMPORTED_MODULE_31__),
|
|
2044
2051
|
/* harmony export */ flashloan: () => (/* reexport module object */ _flashloan__WEBPACK_IMPORTED_MODULE_4__),
|
|
2045
2052
|
/* harmony export */ guni: () => (/* reexport module object */ _guni__WEBPACK_IMPORTED_MODULE_16__),
|
|
2046
2053
|
/* harmony export */ insta: () => (/* reexport module object */ _insta__WEBPACK_IMPORTED_MODULE_13__),
|
|
@@ -2055,7 +2062,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2055
2062
|
/* harmony export */ mstable: () => (/* reexport module object */ _mstable__WEBPACK_IMPORTED_MODULE_17__),
|
|
2056
2063
|
/* harmony export */ rari: () => (/* reexport module object */ _rari__WEBPACK_IMPORTED_MODULE_18__),
|
|
2057
2064
|
/* harmony export */ reflexer: () => (/* reexport module object */ _reflexer__WEBPACK_IMPORTED_MODULE_6__),
|
|
2058
|
-
/* harmony export */ sky: () => (/* reexport module object */
|
|
2065
|
+
/* harmony export */ sky: () => (/* reexport module object */ _sky__WEBPACK_IMPORTED_MODULE_32__),
|
|
2059
2066
|
/* harmony export */ spark: () => (/* reexport module object */ _spark__WEBPACK_IMPORTED_MODULE_27__),
|
|
2060
2067
|
/* harmony export */ uniswap: () => (/* reexport module object */ _uniswap__WEBPACK_IMPORTED_MODULE_5__),
|
|
2061
2068
|
/* harmony export */ uniswapV3: () => (/* reexport module object */ _uniswapV3__WEBPACK_IMPORTED_MODULE_8__),
|
|
@@ -2092,7 +2099,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2092
2099
|
/* harmony import */ var _morpho_blue__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(297);
|
|
2093
2100
|
/* harmony import */ var _llamalend__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(306);
|
|
2094
2101
|
/* harmony import */ var _merkl__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(318);
|
|
2095
|
-
/* 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
|
+
|
|
2096
2105
|
|
|
2097
2106
|
|
|
2098
2107
|
|
|
@@ -12987,21 +12996,325 @@ class MerklClaimAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
12987
12996
|
/* 320 */
|
|
12988
12997
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12989
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
|
+
|
|
12990
13303
|
__webpack_require__.r(__webpack_exports__);
|
|
12991
13304
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12992
13305
|
/* harmony export */ SkyClaimRewardsAction: () => (/* reexport safe */ _SkyClaimRewardsAction__WEBPACK_IMPORTED_MODULE_0__.SkyClaimRewardsAction),
|
|
12993
13306
|
/* harmony export */ SkyStakeAction: () => (/* reexport safe */ _SkyStakeAction__WEBPACK_IMPORTED_MODULE_1__.SkyStakeAction),
|
|
12994
13307
|
/* harmony export */ SkyUnstakeAction: () => (/* reexport safe */ _SkyUnstakeAction__WEBPACK_IMPORTED_MODULE_2__.SkyUnstakeAction)
|
|
12995
13308
|
/* harmony export */ });
|
|
12996
|
-
/* harmony import */ var _SkyClaimRewardsAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
12997
|
-
/* harmony import */ var _SkyStakeAction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
12998
|
-
/* 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);
|
|
12999
13312
|
|
|
13000
13313
|
|
|
13001
13314
|
|
|
13002
13315
|
|
|
13003
13316
|
/***/ }),
|
|
13004
|
-
/*
|
|
13317
|
+
/* 330 */
|
|
13005
13318
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13006
13319
|
|
|
13007
13320
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13031,7 +13344,7 @@ class SkyClaimRewardsAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action
|
|
|
13031
13344
|
}
|
|
13032
13345
|
|
|
13033
13346
|
/***/ }),
|
|
13034
|
-
/*
|
|
13347
|
+
/* 331 */
|
|
13035
13348
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13036
13349
|
|
|
13037
13350
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13073,7 +13386,7 @@ class SkyStakeAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
13073
13386
|
}
|
|
13074
13387
|
|
|
13075
13388
|
/***/ }),
|
|
13076
|
-
/*
|
|
13389
|
+
/* 332 */
|
|
13077
13390
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13078
13391
|
|
|
13079
13392
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13104,7 +13417,7 @@ class SkyUnstakeAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
13104
13417
|
}
|
|
13105
13418
|
|
|
13106
13419
|
/***/ }),
|
|
13107
|
-
/*
|
|
13420
|
+
/* 333 */
|
|
13108
13421
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13109
13422
|
|
|
13110
13423
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13132,28 +13445,28 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13132
13445
|
/* harmony export */ TrailingStopTrigger: () => (/* reexport safe */ _TrailingStopTrigger__WEBPACK_IMPORTED_MODULE_10__.TrailingStopTrigger),
|
|
13133
13446
|
/* harmony export */ UniV3CurrentTickTrigger: () => (/* reexport safe */ _UniV3CurrentTickTrigger__WEBPACK_IMPORTED_MODULE_2__.UniV3CurrentTickTrigger)
|
|
13134
13447
|
/* harmony export */ });
|
|
13135
|
-
/* harmony import */ var _MakerRatioTrigger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
13136
|
-
/* harmony import */ var _ChainLinkPriceTrigger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
13137
|
-
/* harmony import */ var _UniV3CurrentTickTrigger__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
13138
|
-
/* harmony import */ var _TimestampTrigger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
13139
|
-
/* harmony import */ var _GasPriceTrigger__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
13140
|
-
/* harmony import */ var _CompoundRatioTrigger__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
13141
|
-
/* harmony import */ var _ReflexerRatioTrigger__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
|
|
13142
|
-
/* harmony import */ var _LiquityRatioTrigger__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
|
|
13143
|
-
/* harmony import */ var _AaveV3RatioTrigger__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
|
|
13144
|
-
/* harmony import */ var _CompV3RatioTrigger__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
|
|
13145
|
-
/* harmony import */ var _TrailingStopTrigger__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
|
|
13146
|
-
/* harmony import */ var _CBRebondTrigger__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(
|
|
13147
|
-
/* harmony import */ var _AaveV3QuotePriceTrigger__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(
|
|
13148
|
-
/* harmony import */ var _AaveV2RatioTrigger__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(
|
|
13149
|
-
/* harmony import */ var _MorphoAaveV2RatioTrigger__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(
|
|
13150
|
-
/* harmony import */ var _SparkRatioTrigger__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(
|
|
13151
|
-
/* harmony import */ var _SparkQuotePriceTrigger__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(
|
|
13152
|
-
/* harmony import */ var _LiquityDebtInFrontWithLimitTrigger__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(
|
|
13153
|
-
/* harmony import */ var _CurveUsdCollRatioTrigger__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(
|
|
13154
|
-
/* harmony import */ var _CurveUsdHealthRatioTrigger__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(
|
|
13155
|
-
/* harmony import */ var _MorphoBlueRatioTrigger__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(
|
|
13156
|
-
/* 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);
|
|
13157
13470
|
|
|
13158
13471
|
|
|
13159
13472
|
|
|
@@ -13178,7 +13491,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13178
13491
|
|
|
13179
13492
|
|
|
13180
13493
|
/***/ }),
|
|
13181
|
-
/*
|
|
13494
|
+
/* 334 */
|
|
13182
13495
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13183
13496
|
|
|
13184
13497
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13201,7 +13514,7 @@ class MakerRatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
13201
13514
|
}
|
|
13202
13515
|
|
|
13203
13516
|
/***/ }),
|
|
13204
|
-
/*
|
|
13517
|
+
/* 335 */
|
|
13205
13518
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13206
13519
|
|
|
13207
13520
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13224,7 +13537,7 @@ class ChainLinkPriceTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action
|
|
|
13224
13537
|
}
|
|
13225
13538
|
|
|
13226
13539
|
/***/ }),
|
|
13227
|
-
/*
|
|
13540
|
+
/* 336 */
|
|
13228
13541
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13229
13542
|
|
|
13230
13543
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13247,7 +13560,7 @@ class UniV3CurrentTickTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Actio
|
|
|
13247
13560
|
}
|
|
13248
13561
|
|
|
13249
13562
|
/***/ }),
|
|
13250
|
-
/*
|
|
13563
|
+
/* 337 */
|
|
13251
13564
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13252
13565
|
|
|
13253
13566
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13270,7 +13583,7 @@ class TimestampTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
13270
13583
|
}
|
|
13271
13584
|
|
|
13272
13585
|
/***/ }),
|
|
13273
|
-
/*
|
|
13586
|
+
/* 338 */
|
|
13274
13587
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13275
13588
|
|
|
13276
13589
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13293,7 +13606,7 @@ class GasPriceTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
13293
13606
|
}
|
|
13294
13607
|
|
|
13295
13608
|
/***/ }),
|
|
13296
|
-
/*
|
|
13609
|
+
/* 339 */
|
|
13297
13610
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13298
13611
|
|
|
13299
13612
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13316,7 +13629,7 @@ class CompoundRatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
13316
13629
|
}
|
|
13317
13630
|
|
|
13318
13631
|
/***/ }),
|
|
13319
|
-
/*
|
|
13632
|
+
/* 340 */
|
|
13320
13633
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13321
13634
|
|
|
13322
13635
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13339,7 +13652,7 @@ class ReflexerRatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
13339
13652
|
}
|
|
13340
13653
|
|
|
13341
13654
|
/***/ }),
|
|
13342
|
-
/*
|
|
13655
|
+
/* 341 */
|
|
13343
13656
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13344
13657
|
|
|
13345
13658
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13362,7 +13675,7 @@ class LiquityRatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
13362
13675
|
}
|
|
13363
13676
|
|
|
13364
13677
|
/***/ }),
|
|
13365
|
-
/*
|
|
13678
|
+
/* 342 */
|
|
13366
13679
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13367
13680
|
|
|
13368
13681
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13385,7 +13698,7 @@ class AaveV3RatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
13385
13698
|
}
|
|
13386
13699
|
|
|
13387
13700
|
/***/ }),
|
|
13388
|
-
/*
|
|
13701
|
+
/* 343 */
|
|
13389
13702
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13390
13703
|
|
|
13391
13704
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13408,7 +13721,7 @@ class CompV3RatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
13408
13721
|
}
|
|
13409
13722
|
|
|
13410
13723
|
/***/ }),
|
|
13411
|
-
/*
|
|
13724
|
+
/* 344 */
|
|
13412
13725
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13413
13726
|
|
|
13414
13727
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13431,7 +13744,7 @@ class TrailingStopTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
13431
13744
|
}
|
|
13432
13745
|
|
|
13433
13746
|
/***/ }),
|
|
13434
|
-
/*
|
|
13747
|
+
/* 345 */
|
|
13435
13748
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13436
13749
|
|
|
13437
13750
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13454,7 +13767,7 @@ class CBRebondTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
13454
13767
|
}
|
|
13455
13768
|
|
|
13456
13769
|
/***/ }),
|
|
13457
|
-
/*
|
|
13770
|
+
/* 346 */
|
|
13458
13771
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13459
13772
|
|
|
13460
13773
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13477,7 +13790,7 @@ class AaveV3QuotePriceTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Actio
|
|
|
13477
13790
|
}
|
|
13478
13791
|
|
|
13479
13792
|
/***/ }),
|
|
13480
|
-
/*
|
|
13793
|
+
/* 347 */
|
|
13481
13794
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13482
13795
|
|
|
13483
13796
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13500,7 +13813,7 @@ class AaveV2RatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
13500
13813
|
}
|
|
13501
13814
|
|
|
13502
13815
|
/***/ }),
|
|
13503
|
-
/*
|
|
13816
|
+
/* 348 */
|
|
13504
13817
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13505
13818
|
|
|
13506
13819
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13523,7 +13836,7 @@ class MorphoAaveV2RatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Acti
|
|
|
13523
13836
|
}
|
|
13524
13837
|
|
|
13525
13838
|
/***/ }),
|
|
13526
|
-
/*
|
|
13839
|
+
/* 349 */
|
|
13527
13840
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13528
13841
|
|
|
13529
13842
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13546,7 +13859,7 @@ class SparkRatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
13546
13859
|
}
|
|
13547
13860
|
|
|
13548
13861
|
/***/ }),
|
|
13549
|
-
/*
|
|
13862
|
+
/* 350 */
|
|
13550
13863
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13551
13864
|
|
|
13552
13865
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13569,7 +13882,7 @@ class SparkQuotePriceTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action
|
|
|
13569
13882
|
}
|
|
13570
13883
|
|
|
13571
13884
|
/***/ }),
|
|
13572
|
-
/*
|
|
13885
|
+
/* 351 */
|
|
13573
13886
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13574
13887
|
|
|
13575
13888
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13592,7 +13905,7 @@ class LiquityDebtInFrontWithLimitTrigger extends _Action__WEBPACK_IMPORTED_MODUL
|
|
|
13592
13905
|
}
|
|
13593
13906
|
|
|
13594
13907
|
/***/ }),
|
|
13595
|
-
/*
|
|
13908
|
+
/* 352 */
|
|
13596
13909
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13597
13910
|
|
|
13598
13911
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13615,7 +13928,7 @@ class CurveUsdCollRatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Acti
|
|
|
13615
13928
|
}
|
|
13616
13929
|
|
|
13617
13930
|
/***/ }),
|
|
13618
|
-
/*
|
|
13931
|
+
/* 353 */
|
|
13619
13932
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13620
13933
|
|
|
13621
13934
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13638,7 +13951,7 @@ class CurveUsdHealthRatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Ac
|
|
|
13638
13951
|
}
|
|
13639
13952
|
|
|
13640
13953
|
/***/ }),
|
|
13641
|
-
/*
|
|
13954
|
+
/* 354 */
|
|
13642
13955
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13643
13956
|
|
|
13644
13957
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13661,7 +13974,7 @@ class MorphoBlueRatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action
|
|
|
13661
13974
|
}
|
|
13662
13975
|
|
|
13663
13976
|
/***/ }),
|
|
13664
|
-
/*
|
|
13977
|
+
/* 355 */
|
|
13665
13978
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13666
13979
|
|
|
13667
13980
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13684,7 +13997,7 @@ class OffchainPriceTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
13684
13997
|
}
|
|
13685
13998
|
|
|
13686
13999
|
/***/ }),
|
|
13687
|
-
/*
|
|
14000
|
+
/* 356 */
|
|
13688
14001
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13689
14002
|
|
|
13690
14003
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13698,9 +14011,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13698
14011
|
/* harmony export */ uniswapV3LP: () => (/* reexport module object */ _uniswapV3LP__WEBPACK_IMPORTED_MODULE_2__),
|
|
13699
14012
|
/* harmony export */ zeroExExchange: () => (/* reexport module object */ _zeroExExchange__WEBPACK_IMPORTED_MODULE_0__)
|
|
13700
14013
|
/* harmony export */ });
|
|
13701
|
-
/* harmony import */ var _zeroExExchange__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
14014
|
+
/* harmony import */ var _zeroExExchange__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(357);
|
|
13702
14015
|
/* harmony import */ var _uniswapLP__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(133);
|
|
13703
|
-
/* harmony import */ var _uniswapV3LP__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
14016
|
+
/* harmony import */ var _uniswapV3LP__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(359);
|
|
13704
14017
|
/* harmony import */ var _convex_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(233);
|
|
13705
14018
|
/* harmony import */ var _mstableAssetPairs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(213);
|
|
13706
14019
|
/* harmony import */ var _curve_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(199);
|
|
@@ -13717,7 +14030,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13717
14030
|
|
|
13718
14031
|
|
|
13719
14032
|
/***/ }),
|
|
13720
|
-
/*
|
|
14033
|
+
/* 357 */
|
|
13721
14034
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13722
14035
|
|
|
13723
14036
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -13728,7 +14041,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13728
14041
|
/* harmony export */ });
|
|
13729
14042
|
/* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
|
|
13730
14043
|
/* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(decimal_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
13731
|
-
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
14044
|
+
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(358);
|
|
13732
14045
|
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);
|
|
13733
14046
|
/* harmony import */ var _defisaver_tokens__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6);
|
|
13734
14047
|
/* harmony import */ var _defisaver_tokens__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_defisaver_tokens__WEBPACK_IMPORTED_MODULE_2__);
|
|
@@ -13930,20 +14243,20 @@ var createSellAction = /*#__PURE__*/function () {
|
|
|
13930
14243
|
}();
|
|
13931
14244
|
|
|
13932
14245
|
/***/ }),
|
|
13933
|
-
/*
|
|
14246
|
+
/* 358 */
|
|
13934
14247
|
/***/ ((module) => {
|
|
13935
14248
|
|
|
13936
|
-
module.exports =
|
|
14249
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__358__;
|
|
13937
14250
|
|
|
13938
14251
|
/***/ }),
|
|
13939
|
-
/*
|
|
14252
|
+
/* 359 */
|
|
13940
14253
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13941
14254
|
|
|
13942
14255
|
__webpack_require__.r(__webpack_exports__);
|
|
13943
14256
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13944
14257
|
/* harmony export */ getAssetAddrByTokenId: () => (/* binding */ getAssetAddrByTokenId)
|
|
13945
14258
|
/* harmony export */ });
|
|
13946
|
-
/* 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);
|
|
13947
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); } }
|
|
13948
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); }); }; }
|
|
13949
14262
|
/**
|
|
@@ -13968,7 +14281,7 @@ var getAssetAddrByTokenId = /*#__PURE__*/function () {
|
|
|
13968
14281
|
}();
|
|
13969
14282
|
|
|
13970
14283
|
/***/ }),
|
|
13971
|
-
/*
|
|
14284
|
+
/* 360 */
|
|
13972
14285
|
/***/ ((module) => {
|
|
13973
14286
|
|
|
13974
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"}]');
|
|
@@ -14072,8 +14385,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14072
14385
|
/* harmony import */ var _Strategy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29);
|
|
14073
14386
|
/* harmony import */ var _DfsWeb3__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(30);
|
|
14074
14387
|
/* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(35);
|
|
14075
|
-
/* harmony import */ var _triggers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
|
|
14076
|
-
/* 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);
|
|
14077
14390
|
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(4);
|
|
14078
14391
|
/* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(27);
|
|
14079
14392
|
/* Export types here */
|