@defisaver/sdk 1.2.36 → 1.3.1-dev-linea-1

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.
@@ -0,0 +1,10 @@
1
+ import { Action } from '../Action';
2
+ import { EthAddress, uint256 } from '../types';
3
+ /**
4
+ *
5
+ *
6
+ * @category Triggers
7
+ */
8
+ export declare class CompV3PriceRangeTrigger extends Action {
9
+ constructor(market: EthAddress, collToken: EthAddress, lowerPrice: uint256, upperPrice: uint256);
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 CompV3PriceRangeTrigger extends Action {
9
+ constructor(market, collToken, lowerPrice, upperPrice) {
10
+ super('CompV3PriceRangeTrigger', getAddr('Empty'), [['address', 'address', 'uint256', 'uint256']], [[market, collToken, lowerPrice, upperPrice]]);
11
+ }
12
+ }
@@ -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 CompV3PriceTrigger extends Action {
9
+ constructor(market: EthAddress, collToken: EthAddress, user: 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 CompV3PriceTrigger extends Action {
9
+ constructor(market, collToken, user, price, state) {
10
+ super('CompV3PriceTrigger', getAddr('Empty'), [['address', 'address', 'address', 'uint256', 'uint8']], [[market, collToken, user, price, state]]);
11
+ }
12
+ }
@@ -25,3 +25,5 @@ export * from './LiquityV2RatioTrigger';
25
25
  export * from './ClosePriceTrigger';
26
26
  export * from './LiquityV2QuotePriceTrigger';
27
27
  export * from './FluidRatioTrigger';
28
+ export * from './CompV3PriceTrigger';
29
+ export * from './CompV3PriceRangeTrigger';
@@ -25,3 +25,5 @@ export * from './LiquityV2RatioTrigger';
25
25
  export * from './ClosePriceTrigger';
26
26
  export * from './LiquityV2QuotePriceTrigger';
27
27
  export * from './FluidRatioTrigger';
28
+ export * from './CompV3PriceTrigger';
29
+ export * from './CompV3PriceRangeTrigger';
@@ -28,6 +28,7 @@ declare type Networks = {
28
28
  optimism: Network;
29
29
  arbitrum: Network;
30
30
  base: Network;
31
+ linea: Network;
31
32
  };
32
33
  declare type TxSaverData = {
33
34
  maxTxCostInFeeToken: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/sdk",
3
- "version": "1.2.36",
3
+ "version": "1.3.1-dev-linea-1",
4
4
  "description": "",
5
5
  "main": "./umd/index.js",
6
6
  "module": "./esm/src/index.js",
@@ -23,7 +23,7 @@
23
23
  "license": "ISC",
24
24
  "dependencies": {
25
25
  "@defisaver/eslint-config": "^1.0.0",
26
- "@defisaver/tokens": "^1.6.15",
26
+ "@defisaver/tokens": "^1.6.29-dev-linea-4",
27
27
  "@ethersproject/address": "^5.0.10",
28
28
  "@ethersproject/solidity": "^5.0.9",
29
29
  "@types/web3-eth-abi": "^1.2.2",
@@ -13,4 +13,4 @@ export * from './AaveV3OpenRatioCheckAction';
13
13
  export * from './MorphoBlueTargetRatioCheckAction';
14
14
  export * from './LiquityV2RatioCheckAction';
15
15
  export * from './LiquityV2TargetRatioCheckAction';
16
- export * from './FluidRatioCheckAction';
16
+ export * from './FluidRatioCheckAction';
package/src/addresses.ts CHANGED
@@ -374,6 +374,7 @@ export const actionAddresses = {
374
374
  ApproveToken: '0x842a81d2cfe26d401CD63Cc14e9DEf275c197C1a',
375
375
  SendTokenAndUnwrap: '0xd4f69250cb4d1f083Dd372FEace391A16ABbfBDc',
376
376
  ToggleSub: '0xfc19a12e35bb0b5e6a3d3017be9e9022a6486eee',
377
+ CreateSub: '0x2daED8030BFC87B3d27c02E2f044B9CF4841Ff3e',
377
378
  TokenBalance: '0xC6FF5b01f7c7b35b6e093fF70D2332B361C5Be5A',
378
379
  TokenizedVaultAdapter: '0xdf31669FEd440f5BfF658ca0bBF0D22B8abdeb73',
379
380
  ChangeProxyOwner: '0x62769258ea8b3a85cc6fb4332fc2760a122dbc9e',
@@ -596,6 +597,40 @@ export const actionAddresses = {
596
597
  // summer.fi
597
598
  SFApproveTokens: '0x03EDC9A683f37BFB7516FF234223fFb6E38D5eb9',
598
599
  },
600
+ [NETWORKS.base.chainId]: {
601
+ // Basic
602
+ DFSSell: '0x0a9b2080c14daf008ae87c977dfdf5f5d6d0937f',
603
+ DFSSellNoFee: '0x0000000000000000000000000000000000000000',
604
+ WrapEth: '0xB8af168883D049FF9C811ab5B5DE179f3e7d6Fb7',
605
+ UnwrapEth: '0xc5D0FF89e950a364207fC5be1b070170C874Dd87',
606
+ SendToken: '0x93A6E0dC4C4a6033922d386e4cbd9e31278A2BBa',
607
+ SendTokens: '0x3455057cE720b4c9B53D77509361E87f0F17b971',
608
+ SendTokenAndUnwrap: '0x520E8b0573a03D26D0E39a409E85E28459e24C0E',
609
+ PullToken: '0x75198244Ad7b3ebFCbFd67e6e06B1452bd6Fa831',
610
+ ApproveToken: '0x13976feAeC930Cc51986605D6f479d97a3b90FA9',
611
+ SumInputs: '0xA5b3aA3f06C2c0986E1f45ae36CD6C20392798f1',
612
+ SubInputs: '0x4C0607dAD18c0DE19f6d7b25c0B0f1990818e9d7',
613
+ TokenBalance: '0x16c9de87215D2198614dbC5419658eAdf4465025',
614
+ PermitToken: '0xcc0f04e8c34b670a1d06f4978c843952f690d3f4',
615
+ MerklClaim: '0x4E1946059Dc2426Ef3a9AE82fB30B7718a09B7E1',
616
+ TransferNFT: '0xAC17f651591f417934EeA04CF6629584Eb50A4bB',
617
+
618
+ // Flashloan
619
+ FLAction: '0xdDFFd19564F9703800Da8a2FB9c2b4a7242bf01F ', // fix temp
620
+
621
+ // AaveV3
622
+ AaveV3Withdraw: '0xae56474aBe3C271579b513b6668864e39f65Ae15',
623
+ AaveV3Supply: '0x7dFF34190d0307fC234fc7E8C152C9715083eB02',
624
+ AaveV3SetEMode: '0xa2ABA81e65543d18dd1a1E4A31Bc41C4a86453cf',
625
+ AaveV3Payback: '0x125b8b832bd7f2ebd77eef148a6319ade751c44b',
626
+ AaveV3CollateralSwitch: '0xa898078f369A78CE6b8023715e8f6d2Ad7d2719f',
627
+ AaveV3ClaimRewards: '0x4839d021A24820e57C31D386d430e2e82694F73B',
628
+ AaveV3Borrow: '0x9D95de57631DD8Ac071892843DA67FEe52EA3962',
629
+ AaveV3ATokenPayback: '0xedfc68e2874b0afc0963e18ae4d68522aec7f97d',
630
+ AaveV3View: '0xc9d6efa6e08b66a5cdc516bcd5807c2fa69e0f2a',
631
+ AaveV3DelegateWithSig: '0x169D6E128238ebabF86032Ae9da65938eaD7F69e',
632
+ AaveV3DelegateCredit: '0x2A588cBCBd5e6c6ba7ED0E260B8107F599017DDE',
633
+ },
599
634
  };
600
635
 
601
636
  export const otherAddresses = {
@@ -653,6 +688,14 @@ export const otherAddresses = {
653
688
  DefisaverLogger: '0xc9D6EfA6e08B66a5Cdc516Bcd5807c2fa69E0f2A',
654
689
  Empty: '0x0000000000000000000000000000000000000000',
655
690
  },
691
+ [NETWORKS.linea.chainId]: {
692
+ RecipeExecutor: '0x50bCFC115283dF48Ab6382551B9B93b08E197747',
693
+ DFSRegistry: '0x09fBeC68D216667C3262211D2E5609578951dCE0',
694
+ DSGuardFactory: '0x02a516861f41262f22617511d00b6fccab65f762',
695
+ AdminVault: '0x71a9ef13c960c2f1dd17962d3592a5bcdfad6de0',
696
+ DefisaverLogger: '0x44e98bb58d725f2ef93a195f518b335dcb784c78',
697
+ Empty: '0x0000000000000000000000000000000000000000',
698
+ },
656
699
  };
657
700
 
658
701
  /**
package/src/config.ts CHANGED
@@ -46,6 +46,14 @@ export const NETWORKS : Networks = {
46
46
  rpcUrls: [],
47
47
  nativeCurrency: { name: 'Ethereum', decimals: 18, symbol: 'ETH' },
48
48
  },
49
+ linea: {
50
+ chainId: 59144,
51
+ chainName: 'Linea',
52
+ blockExplorerUrls: ['https://lineascan.build/'],
53
+ iconUrls: ['https://bridge.base.org/icons/base.svg'],
54
+ rpcUrls: [],
55
+ nativeCurrency: { name: 'Ethereum', decimals: 18, symbol: 'ETH' },
56
+ },
49
57
  };
50
58
 
51
59
  /**
@@ -0,0 +1,19 @@
1
+ import { Action } from '../Action';
2
+ import { getAddr } from '../addresses';
3
+ import { EthAddress, uint256 } from '../types';
4
+
5
+ /**
6
+ *
7
+ *
8
+ * @category Triggers
9
+ */
10
+ export class CompV3PriceRangeTrigger extends Action {
11
+ constructor(market:EthAddress, collToken:EthAddress, lowerPrice:uint256, upperPrice:uint256) {
12
+ super(
13
+ 'CompV3PriceRangeTrigger',
14
+ getAddr('Empty'),
15
+ [['address', 'address', 'uint256', 'uint256']],
16
+ [[market, collToken, lowerPrice, upperPrice]],
17
+ );
18
+ }
19
+ }
@@ -0,0 +1,25 @@
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 CompV3PriceTrigger extends Action {
11
+ constructor(
12
+ market:EthAddress,
13
+ collToken:EthAddress,
14
+ user: EthAddress,
15
+ price:uint256,
16
+ state:uint8,
17
+ ) {
18
+ super(
19
+ 'CompV3PriceTrigger',
20
+ getAddr('Empty'),
21
+ [['address', 'address', 'address', 'uint256', 'uint8']],
22
+ [[market, collToken, user, price, state]],
23
+ );
24
+ }
25
+ }
@@ -25,3 +25,5 @@ export * from './LiquityV2RatioTrigger';
25
25
  export * from './ClosePriceTrigger';
26
26
  export * from './LiquityV2QuotePriceTrigger';
27
27
  export * from './FluidRatioTrigger';
28
+ export * from './CompV3PriceTrigger';
29
+ export * from './CompV3PriceRangeTrigger';
package/src/types.ts CHANGED
@@ -30,6 +30,7 @@ type Networks = {
30
30
  optimism:Network,
31
31
  arbitrum:Network,
32
32
  base:Network,
33
+ linea:Network,
33
34
  };
34
35
 
35
36
  type TxSaverData = {
package/umd/index.js CHANGED
@@ -7,7 +7,7 @@
7
7
  exports["defisaver-sdk"] = factory(require("web3-eth-abi"), require("web3-utils"), require("decimal.js"), require("@defisaver/tokens"), require("@ethersproject/solidity"), require("@ethersproject/address"), require("axios"));
8
8
  else
9
9
  root["defisaver-sdk"] = factory(root["web3-eth-abi"], root["web3-utils"], root["decimal.js"], root["@defisaver/tokens"], root["@ethersproject/solidity"], root["@ethersproject/address"], root["axios"]);
10
- })(this, (__WEBPACK_EXTERNAL_MODULE__2__, __WEBPACK_EXTERNAL_MODULE__3__, __WEBPACK_EXTERNAL_MODULE__5__, __WEBPACK_EXTERNAL_MODULE__6__, __WEBPACK_EXTERNAL_MODULE__138__, __WEBPACK_EXTERNAL_MODULE__139__, __WEBPACK_EXTERNAL_MODULE__432__) => {
10
+ })(this, (__WEBPACK_EXTERNAL_MODULE__2__, __WEBPACK_EXTERNAL_MODULE__3__, __WEBPACK_EXTERNAL_MODULE__5__, __WEBPACK_EXTERNAL_MODULE__6__, __WEBPACK_EXTERNAL_MODULE__138__, __WEBPACK_EXTERNAL_MODULE__139__, __WEBPACK_EXTERNAL_MODULE__434__) => {
11
11
  return /******/ (() => { // webpackBootstrap
12
12
  /******/ "use strict";
13
13
  /******/ var __webpack_modules__ = ([
@@ -341,6 +341,18 @@ var NETWORKS = {
341
341
  decimals: 18,
342
342
  symbol: 'ETH'
343
343
  }
344
+ },
345
+ linea: {
346
+ chainId: 59144,
347
+ chainName: 'Linea',
348
+ blockExplorerUrls: ['https://lineascan.build/'],
349
+ iconUrls: ['https://bridge.base.org/icons/base.svg'],
350
+ rpcUrls: [],
351
+ nativeCurrency: {
352
+ name: 'Ethereum',
353
+ decimals: 18,
354
+ symbol: 'ETH'
355
+ }
344
356
  }
345
357
  };
346
358
 
@@ -1615,6 +1627,7 @@ var actionAddresses = {
1615
1627
  ApproveToken: '0x842a81d2cfe26d401CD63Cc14e9DEf275c197C1a',
1616
1628
  SendTokenAndUnwrap: '0xd4f69250cb4d1f083Dd372FEace391A16ABbfBDc',
1617
1629
  ToggleSub: '0xfc19a12e35bb0b5e6a3d3017be9e9022a6486eee',
1630
+ CreateSub: '0x2daED8030BFC87B3d27c02E2f044B9CF4841Ff3e',
1618
1631
  TokenBalance: '0xC6FF5b01f7c7b35b6e093fF70D2332B361C5Be5A',
1619
1632
  TokenizedVaultAdapter: '0xdf31669FEd440f5BfF658ca0bBF0D22B8abdeb73',
1620
1633
  ChangeProxyOwner: '0x62769258ea8b3a85cc6fb4332fc2760a122dbc9e',
@@ -1815,6 +1828,40 @@ var actionAddresses = {
1815
1828
  TokenizedVaultAdapter: '0x88cf6cfa51b6f771570f6df450edf1c886212d3e',
1816
1829
  // summer.fi
1817
1830
  SFApproveTokens: '0x03EDC9A683f37BFB7516FF234223fFb6E38D5eb9'
1831
+ },
1832
+ [_config__WEBPACK_IMPORTED_MODULE_0__.NETWORKS.base.chainId]: {
1833
+ // Basic
1834
+ DFSSell: '0x0a9b2080c14daf008ae87c977dfdf5f5d6d0937f',
1835
+ DFSSellNoFee: '0x0000000000000000000000000000000000000000',
1836
+ WrapEth: '0xB8af168883D049FF9C811ab5B5DE179f3e7d6Fb7',
1837
+ UnwrapEth: '0xc5D0FF89e950a364207fC5be1b070170C874Dd87',
1838
+ SendToken: '0x93A6E0dC4C4a6033922d386e4cbd9e31278A2BBa',
1839
+ SendTokens: '0x3455057cE720b4c9B53D77509361E87f0F17b971',
1840
+ SendTokenAndUnwrap: '0x520E8b0573a03D26D0E39a409E85E28459e24C0E',
1841
+ PullToken: '0x75198244Ad7b3ebFCbFd67e6e06B1452bd6Fa831',
1842
+ ApproveToken: '0x13976feAeC930Cc51986605D6f479d97a3b90FA9',
1843
+ SumInputs: '0xA5b3aA3f06C2c0986E1f45ae36CD6C20392798f1',
1844
+ SubInputs: '0x4C0607dAD18c0DE19f6d7b25c0B0f1990818e9d7',
1845
+ TokenBalance: '0x16c9de87215D2198614dbC5419658eAdf4465025',
1846
+ PermitToken: '0xcc0f04e8c34b670a1d06f4978c843952f690d3f4',
1847
+ MerklClaim: '0x4E1946059Dc2426Ef3a9AE82fB30B7718a09B7E1',
1848
+ TransferNFT: '0xAC17f651591f417934EeA04CF6629584Eb50A4bB',
1849
+ // Flashloan
1850
+ FLAction: '0xdDFFd19564F9703800Da8a2FB9c2b4a7242bf01F ',
1851
+ // fix temp
1852
+
1853
+ // AaveV3
1854
+ AaveV3Withdraw: '0xae56474aBe3C271579b513b6668864e39f65Ae15',
1855
+ AaveV3Supply: '0x7dFF34190d0307fC234fc7E8C152C9715083eB02',
1856
+ AaveV3SetEMode: '0xa2ABA81e65543d18dd1a1E4A31Bc41C4a86453cf',
1857
+ AaveV3Payback: '0x125b8b832bd7f2ebd77eef148a6319ade751c44b',
1858
+ AaveV3CollateralSwitch: '0xa898078f369A78CE6b8023715e8f6d2Ad7d2719f',
1859
+ AaveV3ClaimRewards: '0x4839d021A24820e57C31D386d430e2e82694F73B',
1860
+ AaveV3Borrow: '0x9D95de57631DD8Ac071892843DA67FEe52EA3962',
1861
+ AaveV3ATokenPayback: '0xedfc68e2874b0afc0963e18ae4d68522aec7f97d',
1862
+ AaveV3View: '0xc9d6efa6e08b66a5cdc516bcd5807c2fa69e0f2a',
1863
+ AaveV3DelegateWithSig: '0x169D6E128238ebabF86032Ae9da65938eaD7F69e',
1864
+ AaveV3DelegateCredit: '0x2A588cBCBd5e6c6ba7ED0E260B8107F599017DDE'
1818
1865
  }
1819
1866
  };
1820
1867
  var otherAddresses = {
@@ -1865,6 +1912,14 @@ var otherAddresses = {
1865
1912
  AdminVault: '0xD8E67968d8a0df4beCf2D50daE1e34d4d80C701C',
1866
1913
  DefisaverLogger: '0xc9D6EfA6e08B66a5Cdc516Bcd5807c2fa69E0f2A',
1867
1914
  Empty: '0x0000000000000000000000000000000000000000'
1915
+ },
1916
+ [_config__WEBPACK_IMPORTED_MODULE_0__.NETWORKS.linea.chainId]: {
1917
+ RecipeExecutor: '0x50bCFC115283dF48Ab6382551B9B93b08E197747',
1918
+ DFSRegistry: '0x09fBeC68D216667C3262211D2E5609578951dCE0',
1919
+ DSGuardFactory: '0x02a516861f41262f22617511d00b6fccab65f762',
1920
+ AdminVault: '0x71a9ef13c960c2f1dd17962d3592a5bcdfad6de0',
1921
+ DefisaverLogger: '0x44e98bb58d725f2ef93a195f518b335dcb784c78',
1922
+ Empty: '0x0000000000000000000000000000000000000000'
1868
1923
  }
1869
1924
  };
1870
1925
 
@@ -16023,6 +16078,8 @@ __webpack_require__.r(__webpack_exports__);
16023
16078
  /* harmony export */ CBRebondTrigger: () => (/* reexport safe */ _CBRebondTrigger__WEBPACK_IMPORTED_MODULE_11__.CBRebondTrigger),
16024
16079
  /* harmony export */ ChainLinkPriceTrigger: () => (/* reexport safe */ _ChainLinkPriceTrigger__WEBPACK_IMPORTED_MODULE_1__.ChainLinkPriceTrigger),
16025
16080
  /* harmony export */ ClosePriceTrigger: () => (/* reexport safe */ _ClosePriceTrigger__WEBPACK_IMPORTED_MODULE_24__.ClosePriceTrigger),
16081
+ /* harmony export */ CompV3PriceRangeTrigger: () => (/* reexport safe */ _CompV3PriceRangeTrigger__WEBPACK_IMPORTED_MODULE_28__.CompV3PriceRangeTrigger),
16082
+ /* harmony export */ CompV3PriceTrigger: () => (/* reexport safe */ _CompV3PriceTrigger__WEBPACK_IMPORTED_MODULE_27__.CompV3PriceTrigger),
16026
16083
  /* harmony export */ CompV3RatioTrigger: () => (/* reexport safe */ _CompV3RatioTrigger__WEBPACK_IMPORTED_MODULE_9__.CompV3RatioTrigger),
16027
16084
  /* harmony export */ CompoundRatioTrigger: () => (/* reexport safe */ _CompoundRatioTrigger__WEBPACK_IMPORTED_MODULE_5__.CompoundRatioTrigger),
16028
16085
  /* harmony export */ CurveUsdCollRatioTrigger: () => (/* reexport safe */ _CurveUsdCollRatioTrigger__WEBPACK_IMPORTED_MODULE_18__.CurveUsdCollRatioTrigger),
@@ -16072,6 +16129,10 @@ __webpack_require__.r(__webpack_exports__);
16072
16129
  /* harmony import */ var _ClosePriceTrigger__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(427);
16073
16130
  /* harmony import */ var _LiquityV2QuotePriceTrigger__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(428);
16074
16131
  /* harmony import */ var _FluidRatioTrigger__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(429);
16132
+ /* harmony import */ var _CompV3PriceTrigger__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(430);
16133
+ /* harmony import */ var _CompV3PriceRangeTrigger__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(431);
16134
+
16135
+
16075
16136
 
16076
16137
 
16077
16138
 
@@ -16727,6 +16788,52 @@ class FluidRatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
16727
16788
  /* 430 */
16728
16789
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
16729
16790
 
16791
+ __webpack_require__.r(__webpack_exports__);
16792
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
16793
+ /* harmony export */ CompV3PriceTrigger: () => (/* binding */ CompV3PriceTrigger)
16794
+ /* harmony export */ });
16795
+ /* harmony import */ var _Action__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
16796
+ /* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27);
16797
+
16798
+
16799
+ /**
16800
+ *
16801
+ *
16802
+ * @category Triggers
16803
+ */
16804
+ class CompV3PriceTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
16805
+ constructor(market, collToken, user, price, state) {
16806
+ super('CompV3PriceTrigger', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('Empty'), [['address', 'address', 'address', 'uint256', 'uint8']], [[market, collToken, user, price, state]]);
16807
+ }
16808
+ }
16809
+
16810
+ /***/ }),
16811
+ /* 431 */
16812
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
16813
+
16814
+ __webpack_require__.r(__webpack_exports__);
16815
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
16816
+ /* harmony export */ CompV3PriceRangeTrigger: () => (/* binding */ CompV3PriceRangeTrigger)
16817
+ /* harmony export */ });
16818
+ /* harmony import */ var _Action__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
16819
+ /* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27);
16820
+
16821
+
16822
+ /**
16823
+ *
16824
+ *
16825
+ * @category Triggers
16826
+ */
16827
+ class CompV3PriceRangeTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
16828
+ constructor(market, collToken, lowerPrice, upperPrice) {
16829
+ super('CompV3PriceRangeTrigger', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('Empty'), [['address', 'address', 'uint256', 'uint256']], [[market, collToken, lowerPrice, upperPrice]]);
16830
+ }
16831
+ }
16832
+
16833
+ /***/ }),
16834
+ /* 432 */
16835
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
16836
+
16730
16837
  __webpack_require__.r(__webpack_exports__);
16731
16838
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
16732
16839
  /* harmony export */ basicUtils: () => (/* reexport module object */ _basic_utils__WEBPACK_IMPORTED_MODULE_7__),
@@ -16738,9 +16845,9 @@ __webpack_require__.r(__webpack_exports__);
16738
16845
  /* harmony export */ uniswapV3LP: () => (/* reexport module object */ _uniswapV3LP__WEBPACK_IMPORTED_MODULE_2__),
16739
16846
  /* harmony export */ zeroExExchange: () => (/* reexport module object */ _zeroExExchange__WEBPACK_IMPORTED_MODULE_0__)
16740
16847
  /* harmony export */ });
16741
- /* harmony import */ var _zeroExExchange__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(431);
16848
+ /* harmony import */ var _zeroExExchange__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(433);
16742
16849
  /* harmony import */ var _uniswapLP__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(137);
16743
- /* harmony import */ var _uniswapV3LP__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(433);
16850
+ /* harmony import */ var _uniswapV3LP__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(435);
16744
16851
  /* harmony import */ var _convex_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(242);
16745
16852
  /* harmony import */ var _mstableAssetPairs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(222);
16746
16853
  /* harmony import */ var _curve_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(208);
@@ -16757,7 +16864,7 @@ __webpack_require__.r(__webpack_exports__);
16757
16864
 
16758
16865
 
16759
16866
  /***/ }),
16760
- /* 431 */
16867
+ /* 433 */
16761
16868
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
16762
16869
 
16763
16870
  __webpack_require__.r(__webpack_exports__);
@@ -16768,7 +16875,7 @@ __webpack_require__.r(__webpack_exports__);
16768
16875
  /* harmony export */ });
16769
16876
  /* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
16770
16877
  /* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(decimal_js__WEBPACK_IMPORTED_MODULE_0__);
16771
- /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(432);
16878
+ /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(434);
16772
16879
  /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);
16773
16880
  /* harmony import */ var _defisaver_tokens__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6);
16774
16881
  /* harmony import */ var _defisaver_tokens__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_defisaver_tokens__WEBPACK_IMPORTED_MODULE_2__);
@@ -16970,20 +17077,20 @@ var createSellAction = /*#__PURE__*/function () {
16970
17077
  }();
16971
17078
 
16972
17079
  /***/ }),
16973
- /* 432 */
17080
+ /* 434 */
16974
17081
  /***/ ((module) => {
16975
17082
 
16976
- module.exports = __WEBPACK_EXTERNAL_MODULE__432__;
17083
+ module.exports = __WEBPACK_EXTERNAL_MODULE__434__;
16977
17084
 
16978
17085
  /***/ }),
16979
- /* 433 */
17086
+ /* 435 */
16980
17087
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
16981
17088
 
16982
17089
  __webpack_require__.r(__webpack_exports__);
16983
17090
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
16984
17091
  /* harmony export */ getAssetAddrByTokenId: () => (/* binding */ getAssetAddrByTokenId)
16985
17092
  /* harmony export */ });
16986
- /* harmony import */ var _abis_UniV3PositionManager_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(434);
17093
+ /* harmony import */ var _abis_UniV3PositionManager_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(436);
16987
17094
  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); } }
16988
17095
  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); }); }; }
16989
17096
  /**
@@ -17008,7 +17115,7 @@ var getAssetAddrByTokenId = /*#__PURE__*/function () {
17008
17115
  }();
17009
17116
 
17010
17117
  /***/ }),
17011
- /* 434 */
17118
+ /* 436 */
17012
17119
  /***/ ((module) => {
17013
17120
 
17014
17121
  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"}]');
@@ -17113,7 +17220,7 @@ __webpack_require__.r(__webpack_exports__);
17113
17220
  /* harmony import */ var _DfsWeb3__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(30);
17114
17221
  /* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(35);
17115
17222
  /* harmony import */ var _triggers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(402);
17116
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(430);
17223
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(432);
17117
17224
  /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(4);
17118
17225
  /* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(27);
17119
17226
  /* Export types here */