@defisaver/sdk 1.0.6 → 1.0.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/addresses.d.ts +3 -0
- package/esm/src/addresses.js +5 -4
- package/esm/src/index.d.ts +12 -0
- package/esm/src/triggers/AaveV3QuotePriceTrigger.d.ts +10 -0
- package/esm/src/triggers/AaveV3QuotePriceTrigger.js +12 -0
- package/esm/src/triggers/index.d.ts +1 -0
- package/esm/src/triggers/index.js +1 -0
- package/package-lock.json +1 -1
- package/package.json +1 -1
- package/src/addresses.ts +5 -4
- package/src/triggers/AaveV3QuotePriceTrigger.ts +14 -0
- package/src/triggers/index.ts +1 -0
- package/umd/index.js +42 -15
package/esm/src/addresses.d.ts
CHANGED
|
@@ -104,6 +104,7 @@ export declare const actionAddresses: {
|
|
|
104
104
|
CBChickenIn: string;
|
|
105
105
|
CBChickenOut: string;
|
|
106
106
|
CBCreateRebondSub: string;
|
|
107
|
+
FetchBondId: string;
|
|
107
108
|
CompV3Allow: string;
|
|
108
109
|
CompV3Borrow: string;
|
|
109
110
|
CompV3Claim: string;
|
|
@@ -241,6 +242,7 @@ export declare const actionAddresses: {
|
|
|
241
242
|
CBChickenIn?: undefined;
|
|
242
243
|
CBChickenOut?: undefined;
|
|
243
244
|
CBCreateRebondSub?: undefined;
|
|
245
|
+
FetchBondId?: undefined;
|
|
244
246
|
CompV3Allow?: undefined;
|
|
245
247
|
CompV3Borrow?: undefined;
|
|
246
248
|
CompV3Claim?: undefined;
|
|
@@ -363,6 +365,7 @@ export declare const actionAddresses: {
|
|
|
363
365
|
CBChickenIn?: undefined;
|
|
364
366
|
CBChickenOut?: undefined;
|
|
365
367
|
CBCreateRebondSub?: undefined;
|
|
368
|
+
FetchBondId?: undefined;
|
|
366
369
|
CompV3Allow?: undefined;
|
|
367
370
|
CompV3Borrow?: undefined;
|
|
368
371
|
CompV3Claim?: undefined;
|
package/esm/src/addresses.js
CHANGED
|
@@ -13,9 +13,9 @@ export const actionAddresses = {
|
|
|
13
13
|
AutomationV2Unsub: '0xe35Fb12fE9796847751076aCf5ee7d124108612C',
|
|
14
14
|
SendTokenAndUnwrap: '0xeecd376026335261c89faD40D89625391b1eFF6a',
|
|
15
15
|
ToggleSub: '0x9A78E9d6538cfDbA0242Ca5eC46771E6132E8085',
|
|
16
|
-
UpdateSub: '
|
|
16
|
+
UpdateSub: '0xF6Cb8f7e61a64075ec8FAC3f298745605E543233',
|
|
17
17
|
TransferNFT: '0x861e893E1796F81248e75F06C0b09Abdc8fe2f6F',
|
|
18
|
-
CreateSub: '
|
|
18
|
+
CreateSub: '0x7308e88BB21B934478E75bB6A2143b8cfDFf2961',
|
|
19
19
|
// exchange
|
|
20
20
|
DFSSell: '0x951D7B421f45FF0e4A8ddE0288aE3f9C2C69b784',
|
|
21
21
|
// maker
|
|
@@ -75,7 +75,7 @@ export const actionAddresses = {
|
|
|
75
75
|
LiquityClose: '0x4B2d174129789a88e92D46342201F207132144b7',
|
|
76
76
|
LiquityBorrow: '0xF978d6C5c8af80a059AdB85EEb64F14C9c436D68',
|
|
77
77
|
LiquityOpen: '0x4EFF392cc69B31Ad159EcfA10305251b2d8E40E0',
|
|
78
|
-
LiquityPayback: '
|
|
78
|
+
LiquityPayback: '0xe686Fd57D93Ee713Ba974bC5540FF740fb6DB94F',
|
|
79
79
|
LiquityWithdraw: '0x733F53579bEcdd3Ed07e745A55Ee9af8B9669048',
|
|
80
80
|
LiquitySupply: '0xD539943e080C2a29e3f1DB2d45Ea7240d7ddDEE2',
|
|
81
81
|
LiquitySPDeposit: '0x5aB0244a00a733f16E6b238B462bdF3538C698E1',
|
|
@@ -125,7 +125,8 @@ export const actionAddresses = {
|
|
|
125
125
|
CBRedeem: '0xdD06754cA5367B03af7014AB359332eD82D988d1',
|
|
126
126
|
CBChickenIn: '0x1E990AF6dCf9E9f8a0b2fc76f3BC032A34fFfD14',
|
|
127
127
|
CBChickenOut: '0x3d2f2d88749BB387abD07A2408b68D2Bf2D4be3f',
|
|
128
|
-
CBCreateRebondSub: '
|
|
128
|
+
CBCreateRebondSub: '0xe4bD188cc2e2787518D6762F22E5afe5A21b30E4',
|
|
129
|
+
FetchBondId: '0xA3331A6aE1BC901b8136E6Fe622890B3Fa3dC80e',
|
|
129
130
|
// CompV3
|
|
130
131
|
CompV3Allow: '0xC4a80f22bf56E0dFa2CB378561B934F41E14bc9f',
|
|
131
132
|
CompV3Borrow: '0x11e7b984299a771C92CD42A87358a32791A75CEA',
|
package/esm/src/index.d.ts
CHANGED
|
@@ -115,6 +115,7 @@ declare const actionAddressesAllChains: {
|
|
|
115
115
|
CBChickenIn: string;
|
|
116
116
|
CBChickenOut: string;
|
|
117
117
|
CBCreateRebondSub: string;
|
|
118
|
+
FetchBondId: string;
|
|
118
119
|
CompV3Allow: string;
|
|
119
120
|
CompV3Borrow: string;
|
|
120
121
|
CompV3Claim: string;
|
|
@@ -252,6 +253,7 @@ declare const actionAddressesAllChains: {
|
|
|
252
253
|
CBChickenIn?: undefined;
|
|
253
254
|
CBChickenOut?: undefined;
|
|
254
255
|
CBCreateRebondSub?: undefined;
|
|
256
|
+
FetchBondId?: undefined;
|
|
255
257
|
CompV3Allow?: undefined;
|
|
256
258
|
CompV3Borrow?: undefined;
|
|
257
259
|
CompV3Claim?: undefined;
|
|
@@ -374,6 +376,7 @@ declare const actionAddressesAllChains: {
|
|
|
374
376
|
CBChickenIn?: undefined;
|
|
375
377
|
CBChickenOut?: undefined;
|
|
376
378
|
CBCreateRebondSub?: undefined;
|
|
379
|
+
FetchBondId?: undefined;
|
|
377
380
|
CompV3Allow?: undefined;
|
|
378
381
|
CompV3Borrow?: undefined;
|
|
379
382
|
CompV3Claim?: undefined;
|
|
@@ -489,6 +492,7 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
489
492
|
CBChickenIn: string;
|
|
490
493
|
CBChickenOut: string;
|
|
491
494
|
CBCreateRebondSub: string;
|
|
495
|
+
FetchBondId: string;
|
|
492
496
|
CompV3Allow: string;
|
|
493
497
|
CompV3Borrow: string;
|
|
494
498
|
CompV3Claim: string;
|
|
@@ -626,6 +630,7 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
626
630
|
CBChickenIn?: undefined;
|
|
627
631
|
CBChickenOut?: undefined;
|
|
628
632
|
CBCreateRebondSub?: undefined;
|
|
633
|
+
FetchBondId?: undefined;
|
|
629
634
|
CompV3Allow?: undefined;
|
|
630
635
|
CompV3Borrow?: undefined;
|
|
631
636
|
CompV3Claim?: undefined;
|
|
@@ -748,6 +753,7 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
748
753
|
CBChickenIn?: undefined;
|
|
749
754
|
CBChickenOut?: undefined;
|
|
750
755
|
CBCreateRebondSub?: undefined;
|
|
756
|
+
FetchBondId?: undefined;
|
|
751
757
|
CompV3Allow?: undefined;
|
|
752
758
|
CompV3Borrow?: undefined;
|
|
753
759
|
CompV3Claim?: undefined;
|
|
@@ -960,6 +966,7 @@ declare const _default: {
|
|
|
960
966
|
CBChickenIn: string;
|
|
961
967
|
CBChickenOut: string;
|
|
962
968
|
CBCreateRebondSub: string;
|
|
969
|
+
FetchBondId: string;
|
|
963
970
|
CompV3Allow: string;
|
|
964
971
|
CompV3Borrow: string;
|
|
965
972
|
CompV3Claim: string;
|
|
@@ -1097,6 +1104,7 @@ declare const _default: {
|
|
|
1097
1104
|
CBChickenIn?: undefined;
|
|
1098
1105
|
CBChickenOut?: undefined;
|
|
1099
1106
|
CBCreateRebondSub?: undefined;
|
|
1107
|
+
FetchBondId?: undefined;
|
|
1100
1108
|
CompV3Allow?: undefined;
|
|
1101
1109
|
CompV3Borrow?: undefined;
|
|
1102
1110
|
CompV3Claim?: undefined;
|
|
@@ -1219,6 +1227,7 @@ declare const _default: {
|
|
|
1219
1227
|
CBChickenIn?: undefined;
|
|
1220
1228
|
CBChickenOut?: undefined;
|
|
1221
1229
|
CBCreateRebondSub?: undefined;
|
|
1230
|
+
FetchBondId?: undefined;
|
|
1222
1231
|
CompV3Allow?: undefined;
|
|
1223
1232
|
CompV3Borrow?: undefined;
|
|
1224
1233
|
CompV3Claim?: undefined;
|
|
@@ -1334,6 +1343,7 @@ declare const _default: {
|
|
|
1334
1343
|
CBChickenIn: string;
|
|
1335
1344
|
CBChickenOut: string;
|
|
1336
1345
|
CBCreateRebondSub: string;
|
|
1346
|
+
FetchBondId: string;
|
|
1337
1347
|
CompV3Allow: string;
|
|
1338
1348
|
CompV3Borrow: string;
|
|
1339
1349
|
CompV3Claim: string;
|
|
@@ -1471,6 +1481,7 @@ declare const _default: {
|
|
|
1471
1481
|
CBChickenIn?: undefined;
|
|
1472
1482
|
CBChickenOut?: undefined;
|
|
1473
1483
|
CBCreateRebondSub?: undefined;
|
|
1484
|
+
FetchBondId?: undefined;
|
|
1474
1485
|
CompV3Allow?: undefined;
|
|
1475
1486
|
CompV3Borrow?: undefined;
|
|
1476
1487
|
CompV3Claim?: undefined;
|
|
@@ -1593,6 +1604,7 @@ declare const _default: {
|
|
|
1593
1604
|
CBChickenIn?: undefined;
|
|
1594
1605
|
CBChickenOut?: undefined;
|
|
1595
1606
|
CBCreateRebondSub?: undefined;
|
|
1607
|
+
FetchBondId?: undefined;
|
|
1596
1608
|
CompV3Allow?: undefined;
|
|
1597
1609
|
CompV3Borrow?: undefined;
|
|
1598
1610
|
CompV3Claim?: undefined;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Action } from '../Action';
|
|
2
|
+
import { EthAddress, uint256, uint8 } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
* @category Triggers
|
|
7
|
+
*/
|
|
8
|
+
export declare class AaveV3QuotePriceTrigger extends Action {
|
|
9
|
+
constructor(baseTokenAddr: EthAddress, quoteTokenAddr: EthAddress, price: uint256, state: uint8);
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Action } from '../Action';
|
|
2
|
+
import { getAddr } from '../addresses';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
* @category Triggers
|
|
7
|
+
*/
|
|
8
|
+
export class AaveV3QuotePriceTrigger extends Action {
|
|
9
|
+
constructor(baseTokenAddr, quoteTokenAddr, price, state) {
|
|
10
|
+
super('AaveV3QuotePriceTrigger', getAddr('AaveV3QuotePriceTrigger'), [['address', 'address', 'uint256', 'uint8']], [[baseTokenAddr, quoteTokenAddr, price, state]]);
|
|
11
|
+
}
|
|
12
|
+
}
|
package/package-lock.json
CHANGED
package/package.json
CHANGED
package/src/addresses.ts
CHANGED
|
@@ -15,9 +15,9 @@ export const actionAddresses = {
|
|
|
15
15
|
AutomationV2Unsub: '0xe35Fb12fE9796847751076aCf5ee7d124108612C',
|
|
16
16
|
SendTokenAndUnwrap: '0xeecd376026335261c89faD40D89625391b1eFF6a',
|
|
17
17
|
ToggleSub: '0x9A78E9d6538cfDbA0242Ca5eC46771E6132E8085',
|
|
18
|
-
UpdateSub: '
|
|
18
|
+
UpdateSub: '0xF6Cb8f7e61a64075ec8FAC3f298745605E543233',
|
|
19
19
|
TransferNFT: '0x861e893E1796F81248e75F06C0b09Abdc8fe2f6F',
|
|
20
|
-
CreateSub: '
|
|
20
|
+
CreateSub: '0x7308e88BB21B934478E75bB6A2143b8cfDFf2961',
|
|
21
21
|
// exchange
|
|
22
22
|
DFSSell: '0x951D7B421f45FF0e4A8ddE0288aE3f9C2C69b784',
|
|
23
23
|
|
|
@@ -88,7 +88,7 @@ export const actionAddresses = {
|
|
|
88
88
|
LiquityClose: '0x4B2d174129789a88e92D46342201F207132144b7',
|
|
89
89
|
LiquityBorrow: '0xF978d6C5c8af80a059AdB85EEb64F14C9c436D68',
|
|
90
90
|
LiquityOpen: '0x4EFF392cc69B31Ad159EcfA10305251b2d8E40E0',
|
|
91
|
-
LiquityPayback: '
|
|
91
|
+
LiquityPayback: '0xe686Fd57D93Ee713Ba974bC5540FF740fb6DB94F',
|
|
92
92
|
LiquityWithdraw: '0x733F53579bEcdd3Ed07e745A55Ee9af8B9669048',
|
|
93
93
|
LiquitySupply: '0xD539943e080C2a29e3f1DB2d45Ea7240d7ddDEE2',
|
|
94
94
|
LiquitySPDeposit: '0x5aB0244a00a733f16E6b238B462bdF3538C698E1',
|
|
@@ -152,7 +152,8 @@ export const actionAddresses = {
|
|
|
152
152
|
CBRedeem: '0xdD06754cA5367B03af7014AB359332eD82D988d1',
|
|
153
153
|
CBChickenIn: '0x1E990AF6dCf9E9f8a0b2fc76f3BC032A34fFfD14',
|
|
154
154
|
CBChickenOut: '0x3d2f2d88749BB387abD07A2408b68D2Bf2D4be3f',
|
|
155
|
-
CBCreateRebondSub: '
|
|
155
|
+
CBCreateRebondSub: '0xe4bD188cc2e2787518D6762F22E5afe5A21b30E4',
|
|
156
|
+
FetchBondId: '0xA3331A6aE1BC901b8136E6Fe622890B3Fa3dC80e',
|
|
156
157
|
// CompV3
|
|
157
158
|
CompV3Allow: '0xC4a80f22bf56E0dFa2CB378561B934F41E14bc9f',
|
|
158
159
|
CompV3Borrow: '0x11e7b984299a771C92CD42A87358a32791A75CEA',
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Action } from '../Action';
|
|
2
|
+
import { getAddr } from '../addresses';
|
|
3
|
+
import { EthAddress, uint256, uint8 } from '../types';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* @category Triggers
|
|
9
|
+
*/
|
|
10
|
+
export class AaveV3QuotePriceTrigger extends Action {
|
|
11
|
+
constructor(baseTokenAddr:EthAddress, quoteTokenAddr:EthAddress, price:uint256, state:uint8) {
|
|
12
|
+
super('AaveV3QuotePriceTrigger', getAddr('AaveV3QuotePriceTrigger'), [['address', 'address', 'uint256', 'uint8']], [[baseTokenAddr, quoteTokenAddr, price, state]]);
|
|
13
|
+
}
|
|
14
|
+
}
|
package/src/triggers/index.ts
CHANGED
package/umd/index.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
exports["defisaver-sdk"] = factory(require("web3-eth-abi"), require("web3-utils"), require("decimal.js"), require("@defisaver/tokens"), require("@ethersproject/solidity"), require("@ethersproject/address"), require("axios"));
|
|
8
8
|
else
|
|
9
9
|
root["defisaver-sdk"] = factory(root["web3-eth-abi"], root["web3-utils"], root["decimal.js"], root["@defisaver/tokens"], root["@ethersproject/solidity"], root["@ethersproject/address"], root["axios"]);
|
|
10
|
-
})(this, (__WEBPACK_EXTERNAL_MODULE__2__, __WEBPACK_EXTERNAL_MODULE__3__, __WEBPACK_EXTERNAL_MODULE__5__, __WEBPACK_EXTERNAL_MODULE__6__, __WEBPACK_EXTERNAL_MODULE__98__, __WEBPACK_EXTERNAL_MODULE__99__,
|
|
10
|
+
})(this, (__WEBPACK_EXTERNAL_MODULE__2__, __WEBPACK_EXTERNAL_MODULE__3__, __WEBPACK_EXTERNAL_MODULE__5__, __WEBPACK_EXTERNAL_MODULE__6__, __WEBPACK_EXTERNAL_MODULE__98__, __WEBPACK_EXTERNAL_MODULE__99__, __WEBPACK_EXTERNAL_MODULE__221__) => {
|
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
|
12
12
|
/******/ "use strict";
|
|
13
13
|
/******/ var __webpack_modules__ = ([
|
|
@@ -1241,9 +1241,9 @@ var actionAddresses = {
|
|
|
1241
1241
|
AutomationV2Unsub: '0xe35Fb12fE9796847751076aCf5ee7d124108612C',
|
|
1242
1242
|
SendTokenAndUnwrap: '0xeecd376026335261c89faD40D89625391b1eFF6a',
|
|
1243
1243
|
ToggleSub: '0x9A78E9d6538cfDbA0242Ca5eC46771E6132E8085',
|
|
1244
|
-
UpdateSub: '
|
|
1244
|
+
UpdateSub: '0xF6Cb8f7e61a64075ec8FAC3f298745605E543233',
|
|
1245
1245
|
TransferNFT: '0x861e893E1796F81248e75F06C0b09Abdc8fe2f6F',
|
|
1246
|
-
CreateSub: '
|
|
1246
|
+
CreateSub: '0x7308e88BB21B934478E75bB6A2143b8cfDFf2961',
|
|
1247
1247
|
// exchange
|
|
1248
1248
|
DFSSell: '0x951D7B421f45FF0e4A8ddE0288aE3f9C2C69b784',
|
|
1249
1249
|
// maker
|
|
@@ -1303,7 +1303,7 @@ var actionAddresses = {
|
|
|
1303
1303
|
LiquityClose: '0x4B2d174129789a88e92D46342201F207132144b7',
|
|
1304
1304
|
LiquityBorrow: '0xF978d6C5c8af80a059AdB85EEb64F14C9c436D68',
|
|
1305
1305
|
LiquityOpen: '0x4EFF392cc69B31Ad159EcfA10305251b2d8E40E0',
|
|
1306
|
-
LiquityPayback: '
|
|
1306
|
+
LiquityPayback: '0xe686Fd57D93Ee713Ba974bC5540FF740fb6DB94F',
|
|
1307
1307
|
LiquityWithdraw: '0x733F53579bEcdd3Ed07e745A55Ee9af8B9669048',
|
|
1308
1308
|
LiquitySupply: '0xD539943e080C2a29e3f1DB2d45Ea7240d7ddDEE2',
|
|
1309
1309
|
LiquitySPDeposit: '0x5aB0244a00a733f16E6b238B462bdF3538C698E1',
|
|
@@ -1353,7 +1353,8 @@ var actionAddresses = {
|
|
|
1353
1353
|
CBRedeem: '0xdD06754cA5367B03af7014AB359332eD82D988d1',
|
|
1354
1354
|
CBChickenIn: '0x1E990AF6dCf9E9f8a0b2fc76f3BC032A34fFfD14',
|
|
1355
1355
|
CBChickenOut: '0x3d2f2d88749BB387abD07A2408b68D2Bf2D4be3f',
|
|
1356
|
-
CBCreateRebondSub: '
|
|
1356
|
+
CBCreateRebondSub: '0xe4bD188cc2e2787518D6762F22E5afe5A21b30E4',
|
|
1357
|
+
FetchBondId: '0xA3331A6aE1BC901b8136E6Fe622890B3Fa3dC80e',
|
|
1357
1358
|
// CompV3
|
|
1358
1359
|
CompV3Allow: '0xC4a80f22bf56E0dFa2CB378561B934F41E14bc9f',
|
|
1359
1360
|
CompV3Borrow: '0x11e7b984299a771C92CD42A87358a32791A75CEA',
|
|
@@ -8180,6 +8181,7 @@ class CompoundV3TransferAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Acti
|
|
|
8180
8181
|
|
|
8181
8182
|
__webpack_require__.r(__webpack_exports__);
|
|
8182
8183
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8184
|
+
/* harmony export */ "AaveV3QuotePriceTrigger": () => (/* reexport safe */ _AaveV3QuotePriceTrigger__WEBPACK_IMPORTED_MODULE_12__.AaveV3QuotePriceTrigger),
|
|
8183
8185
|
/* harmony export */ "AaveV3RatioTrigger": () => (/* reexport safe */ _AaveV3RatioTrigger__WEBPACK_IMPORTED_MODULE_8__.AaveV3RatioTrigger),
|
|
8184
8186
|
/* harmony export */ "CBRebondTrigger": () => (/* reexport safe */ _CBRebondTrigger__WEBPACK_IMPORTED_MODULE_11__.CBRebondTrigger),
|
|
8185
8187
|
/* harmony export */ "ChainLinkPriceTrigger": () => (/* reexport safe */ _ChainLinkPriceTrigger__WEBPACK_IMPORTED_MODULE_1__.ChainLinkPriceTrigger),
|
|
@@ -8205,6 +8207,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8205
8207
|
/* harmony import */ var _CompV3RatioTrigger__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(215);
|
|
8206
8208
|
/* harmony import */ var _TrailingStopTrigger__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(216);
|
|
8207
8209
|
/* harmony import */ var _CBRebondTrigger__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(217);
|
|
8210
|
+
/* harmony import */ var _AaveV3QuotePriceTrigger__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(218);
|
|
8211
|
+
|
|
8208
8212
|
|
|
8209
8213
|
|
|
8210
8214
|
|
|
@@ -8498,6 +8502,29 @@ class CBRebondTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
8498
8502
|
/* 218 */
|
|
8499
8503
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
8500
8504
|
|
|
8505
|
+
__webpack_require__.r(__webpack_exports__);
|
|
8506
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8507
|
+
/* harmony export */ "AaveV3QuotePriceTrigger": () => (/* binding */ AaveV3QuotePriceTrigger)
|
|
8508
|
+
/* harmony export */ });
|
|
8509
|
+
/* harmony import */ var _Action__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
|
|
8510
|
+
/* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27);
|
|
8511
|
+
|
|
8512
|
+
|
|
8513
|
+
/**
|
|
8514
|
+
*
|
|
8515
|
+
*
|
|
8516
|
+
* @category Triggers
|
|
8517
|
+
*/
|
|
8518
|
+
class AaveV3QuotePriceTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
8519
|
+
constructor(baseTokenAddr, quoteTokenAddr, price, state) {
|
|
8520
|
+
super('AaveV3QuotePriceTrigger', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('AaveV3QuotePriceTrigger'), [['address', 'address', 'uint256', 'uint8']], [[baseTokenAddr, quoteTokenAddr, price, state]]);
|
|
8521
|
+
}
|
|
8522
|
+
}
|
|
8523
|
+
|
|
8524
|
+
/***/ }),
|
|
8525
|
+
/* 219 */
|
|
8526
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
8527
|
+
|
|
8501
8528
|
__webpack_require__.r(__webpack_exports__);
|
|
8502
8529
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8503
8530
|
/* harmony export */ "convexUtils": () => (/* reexport module object */ _convex_utils__WEBPACK_IMPORTED_MODULE_3__),
|
|
@@ -8506,9 +8533,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8506
8533
|
/* harmony export */ "uniswapV3LP": () => (/* reexport module object */ _uniswapV3LP__WEBPACK_IMPORTED_MODULE_2__),
|
|
8507
8534
|
/* harmony export */ "zeroExExchange": () => (/* reexport module object */ _zeroExExchange__WEBPACK_IMPORTED_MODULE_0__)
|
|
8508
8535
|
/* harmony export */ });
|
|
8509
|
-
/* harmony import */ var _zeroExExchange__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
8536
|
+
/* harmony import */ var _zeroExExchange__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(220);
|
|
8510
8537
|
/* harmony import */ var _uniswapLP__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(97);
|
|
8511
|
-
/* harmony import */ var _uniswapV3LP__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
8538
|
+
/* harmony import */ var _uniswapV3LP__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(222);
|
|
8512
8539
|
/* harmony import */ var _convex_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(185);
|
|
8513
8540
|
/* harmony import */ var _mstableAssetPairs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(167);
|
|
8514
8541
|
|
|
@@ -8519,7 +8546,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8519
8546
|
|
|
8520
8547
|
|
|
8521
8548
|
/***/ }),
|
|
8522
|
-
/*
|
|
8549
|
+
/* 220 */
|
|
8523
8550
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
8524
8551
|
|
|
8525
8552
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -8530,7 +8557,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8530
8557
|
/* harmony export */ });
|
|
8531
8558
|
/* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
|
|
8532
8559
|
/* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(decimal_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
8533
|
-
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
8560
|
+
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(221);
|
|
8534
8561
|
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);
|
|
8535
8562
|
/* harmony import */ var _defisaver_tokens__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6);
|
|
8536
8563
|
/* harmony import */ var _defisaver_tokens__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_defisaver_tokens__WEBPACK_IMPORTED_MODULE_2__);
|
|
@@ -8733,20 +8760,20 @@ var createSellAction = /*#__PURE__*/function () {
|
|
|
8733
8760
|
}();
|
|
8734
8761
|
|
|
8735
8762
|
/***/ }),
|
|
8736
|
-
/*
|
|
8763
|
+
/* 221 */
|
|
8737
8764
|
/***/ ((module) => {
|
|
8738
8765
|
|
|
8739
|
-
module.exports =
|
|
8766
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__221__;
|
|
8740
8767
|
|
|
8741
8768
|
/***/ }),
|
|
8742
|
-
/*
|
|
8769
|
+
/* 222 */
|
|
8743
8770
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
8744
8771
|
|
|
8745
8772
|
__webpack_require__.r(__webpack_exports__);
|
|
8746
8773
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8747
8774
|
/* harmony export */ "getAssetAddrByTokenId": () => (/* binding */ getAssetAddrByTokenId)
|
|
8748
8775
|
/* harmony export */ });
|
|
8749
|
-
/* harmony import */ var _abis_UniV3PositionManager_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
8776
|
+
/* harmony import */ var _abis_UniV3PositionManager_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(223);
|
|
8750
8777
|
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); } }
|
|
8751
8778
|
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); }); }; }
|
|
8752
8779
|
/**
|
|
@@ -8771,7 +8798,7 @@ var getAssetAddrByTokenId = /*#__PURE__*/function () {
|
|
|
8771
8798
|
}();
|
|
8772
8799
|
|
|
8773
8800
|
/***/ }),
|
|
8774
|
-
/*
|
|
8801
|
+
/* 223 */
|
|
8775
8802
|
/***/ ((module) => {
|
|
8776
8803
|
|
|
8777
8804
|
module.exports = 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"}]');
|
|
@@ -8876,7 +8903,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8876
8903
|
/* harmony import */ var _DfsWeb3__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(30);
|
|
8877
8904
|
/* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(35);
|
|
8878
8905
|
/* harmony import */ var _triggers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(205);
|
|
8879
|
-
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
|
|
8906
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(219);
|
|
8880
8907
|
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(4);
|
|
8881
8908
|
/* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(27);
|
|
8882
8909
|
/* Export types here */
|