@defisaver/sdk 1.3.13 → 1.3.14-dev-morpho-2
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.js +11 -11
- package/esm/src/triggers/MorphoBluePriceRangeTrigger.d.ts +16 -0
- package/esm/src/triggers/MorphoBluePriceRangeTrigger.js +18 -0
- package/esm/src/triggers/SparkQuotePriceRangeTrigger.d.ts +13 -0
- package/esm/src/triggers/SparkQuotePriceRangeTrigger.js +15 -0
- package/esm/src/triggers/index.d.ts +2 -0
- package/esm/src/triggers/index.js +2 -0
- package/package.json +1 -1
- package/src/addresses.ts +11 -11
- package/src/triggers/MorphoBluePriceRangeTrigger.ts +31 -0
- package/src/triggers/SparkQuotePriceRangeTrigger.ts +27 -0
- package/src/triggers/index.ts +3 -1
- package/umd/index.js +83 -22
package/esm/src/addresses.js
CHANGED
|
@@ -131,7 +131,7 @@ export const actionAddresses = {
|
|
|
131
131
|
FLMaker: '0x0f8C3368cADF78167F5355D746Ed7b2A826A6e3b',
|
|
132
132
|
FLBalancer: '0x93d333930c7f7260a1E6061B0a8C0CbdEC95F367',
|
|
133
133
|
FLSpark: '0xe9Fe5a0f5e4B370Ae60d837da58744666D5C06F7',
|
|
134
|
-
FLAction: '
|
|
134
|
+
FLAction: '0x5f1dC84Ba060Ea3f7429c6A7bBEdd9243CF1209b',
|
|
135
135
|
FLUniV3: '0x9CAdAC8Be718572F82B672b950c53F0b58483A35',
|
|
136
136
|
FLGho: '0xbb67b81dD080a406227A38965d0393f396ddECBc',
|
|
137
137
|
FLMorphoBlue: '0x6206C96EAc5EAC546861438A9f953B6BEa50EBAB',
|
|
@@ -355,7 +355,7 @@ export const actionAddresses = {
|
|
|
355
355
|
FLAaveV3NoFee: '0xfbcF23D2BeF8A2C491cfa4dD409D8dF12d431c85',
|
|
356
356
|
FLAaveV3: '0x8A07E93d2B74A80D726eE4E4A0aC1F906aB5Cc63',
|
|
357
357
|
FLBalancer: '0x79d6bf536b8DD65909a3174C87eA6395310d5c41',
|
|
358
|
-
FLAction: '
|
|
358
|
+
FLAction: '0x82d5eDeb005AfFbF381B5949C707a3305160F4A9',
|
|
359
359
|
AaveV3RatioTrigger: '0xB76e3f7694589D0f34ba43b17AD0D15350Ab5f85',
|
|
360
360
|
GasFeeTakerL2: '0xB3dB299622A9DB0E944ccda2Ef899d6fF365B082',
|
|
361
361
|
AaveV3RatioCheck: '0x7A36779a7b5F1128B28932604057d5b63361297c',
|
|
@@ -422,9 +422,9 @@ export const actionAddresses = {
|
|
|
422
422
|
FLAaveV3NoFee: '0x219ac6dA971dE6d943cffD1BD62abde71525d382',
|
|
423
423
|
FLAaveV3: '0x53953aCEe438c083e4299F7976f03Ff3cb862161',
|
|
424
424
|
FLBalancer: '0xdb28fE77709D88badC86868B27937428C3F48E73',
|
|
425
|
-
FLUniV3: '
|
|
426
|
-
FLAction: '
|
|
427
|
-
FLMorphoBlue: '
|
|
425
|
+
FLUniV3: '0x9FD9884428615DF36c28B9ba206b67Ded81eB741',
|
|
426
|
+
FLAction: '0x9FD9884428615DF36c28B9ba206b67Ded81eB741',
|
|
427
|
+
FLMorphoBlue: '0x9FD9884428615DF36c28B9ba206b67Ded81eB741',
|
|
428
428
|
GasFeeTakerL2: '0x2F64f73B222B4978CAfd0295c0fa106cE5f34996',
|
|
429
429
|
AaveV3RatioCheck: '0x4a5c2cbCFB921b596Dec049389899CC8Eb4678ED',
|
|
430
430
|
// uniswap V3
|
|
@@ -499,8 +499,8 @@ export const actionAddresses = {
|
|
|
499
499
|
FLAaveV3: '0x79Eb9cEe432Cd3e7b09A9eFdB21A733A6d7b4c3A',
|
|
500
500
|
FLBalancer: '0x862E533198C9656B75bB6A5dDF0953F7ED5E8507',
|
|
501
501
|
FLUniV3: '0x1bA6082D2ef1aB92a55B96264c72Eb8049C964Ce',
|
|
502
|
-
FLAction: '
|
|
503
|
-
FLMorphoBlue: '
|
|
502
|
+
FLAction: '0x5523E61fBEF59825831Ffbb1306aBc3Bb03BB3A4',
|
|
503
|
+
FLMorphoBlue: '0x5523E61fBEF59825831Ffbb1306aBc3Bb03BB3A4',
|
|
504
504
|
// AaveV3
|
|
505
505
|
AaveV3Withdraw: '0x1d2Fa7dAcC660A9124c3685EE8a6E699d10409Eb',
|
|
506
506
|
AaveV3SwapBorrowRateMode: '0x9d1D7A0dD5e82cCe9CC131eC0C807B0F543be70e',
|
|
@@ -636,7 +636,7 @@ export const actionAddresses = {
|
|
|
636
636
|
};
|
|
637
637
|
export const otherAddresses = {
|
|
638
638
|
[NETWORKS.ethereum.chainId]: {
|
|
639
|
-
RecipeExecutor: '
|
|
639
|
+
RecipeExecutor: '0x2ee96cf53ae5fbd5309284704f978d0ca66cb963',
|
|
640
640
|
DFSRegistry: '0x287778F121F134C66212FB16c9b53eC991D32f5b',
|
|
641
641
|
DFSProxyRegistry: '0x29474FdaC7142f9aB7773B8e38264FA15E3805ed',
|
|
642
642
|
ProxyRegistry: '0x4678f0a6958e4D2Bc4F1BAF7Bc52E8F3564f3fE4',
|
|
@@ -655,7 +655,7 @@ export const otherAddresses = {
|
|
|
655
655
|
Empty: '0x0000000000000000000000000000000000000000',
|
|
656
656
|
},
|
|
657
657
|
[NETWORKS.optimism.chainId]: {
|
|
658
|
-
RecipeExecutor: '
|
|
658
|
+
RecipeExecutor: '0x993A8c81142044E1CB0Cf0c3d84BEa235d842Fb0',
|
|
659
659
|
DFSRegistry: '0xAf707Ee480204Ed6e2640B53cE86F680D28Afcbd',
|
|
660
660
|
ProxyRegistry: '0x283Cc5C26e53D66ed2Ea252D986F094B37E6e895',
|
|
661
661
|
DSGuardFactory: '0xc19d0F1E2b38AA283E226Ca4044766A43aA7B02b',
|
|
@@ -665,7 +665,7 @@ export const otherAddresses = {
|
|
|
665
665
|
UniswapV3PositionManager: '0xC36442b4a4522E871399CD717aBDD847Ab11FE88',
|
|
666
666
|
},
|
|
667
667
|
[NETWORKS.arbitrum.chainId]: {
|
|
668
|
-
RecipeExecutor: '
|
|
668
|
+
RecipeExecutor: '0x7a25174229ea402d8ccd35fc6d55af079c399884',
|
|
669
669
|
DFSRegistry: '0xBF1CaC12DB60819Bfa71A328282ecbc1D40443aA',
|
|
670
670
|
ProxyRegistry: '0x283Cc5C26e53D66ed2Ea252D986F094B37E6e895',
|
|
671
671
|
DSGuardFactory: '0x5261abC3a94a6475D0A1171daE94A5f84fbaEcD2',
|
|
@@ -675,7 +675,7 @@ export const otherAddresses = {
|
|
|
675
675
|
UniswapV3PositionManager: '0xC36442b4a4522E871399CD717aBDD847Ab11FE88',
|
|
676
676
|
},
|
|
677
677
|
[NETWORKS.base.chainId]: {
|
|
678
|
-
RecipeExecutor: '
|
|
678
|
+
RecipeExecutor: '0x7a87565b77dd65bbc153fe20e97743842f1a6e0c',
|
|
679
679
|
DFSRegistry: '0x347FB634271F666353F23A3362f3935D96F97476',
|
|
680
680
|
ProxyRegistry: '0x425fA97285965E01Cc5F951B62A51F6CDEA5cc0d',
|
|
681
681
|
DSGuardFactory: '0x7783da8958013a57a5514737a4FBDFF06A0056e1',
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Action } from '../Action';
|
|
2
|
+
import { EthAddress, uint256 } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Trigger contract that verifies if current token price ratio is outside of given range specified during subscription
|
|
5
|
+
* @category Triggers
|
|
6
|
+
*/
|
|
7
|
+
export declare class MorphoBluePriceRangeTrigger extends Action {
|
|
8
|
+
/**
|
|
9
|
+
* @param loanToken - MarketParams loanToken
|
|
10
|
+
* @param collateralToken - MarketParams collateralToken
|
|
11
|
+
* @param oracle - MarketParams oracle
|
|
12
|
+
* @param lowerPrice - The lower price of the range
|
|
13
|
+
* @param upperPrice - The upper price of the range
|
|
14
|
+
*/
|
|
15
|
+
constructor(loanToken: EthAddress, collateralToken: EthAddress, oracle: EthAddress, lowerPrice: uint256, upperPrice: uint256);
|
|
16
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Action } from '../Action';
|
|
2
|
+
import { getAddr } from '../addresses';
|
|
3
|
+
/**
|
|
4
|
+
* Trigger contract that verifies if current token price ratio is outside of given range specified during subscription
|
|
5
|
+
* @category Triggers
|
|
6
|
+
*/
|
|
7
|
+
export class MorphoBluePriceRangeTrigger extends Action {
|
|
8
|
+
/**
|
|
9
|
+
* @param loanToken - MarketParams loanToken
|
|
10
|
+
* @param collateralToken - MarketParams collateralToken
|
|
11
|
+
* @param oracle - MarketParams oracle
|
|
12
|
+
* @param lowerPrice - The lower price of the range
|
|
13
|
+
* @param upperPrice - The upper price of the range
|
|
14
|
+
*/
|
|
15
|
+
constructor(loanToken, collateralToken, oracle, lowerPrice, upperPrice) {
|
|
16
|
+
super('MorphoBluePriceRangeTrigger', getAddr('Empty'), [['address', 'address', 'address', 'uint256', 'uint256']], [[oracle, collateralToken, loanToken, lowerPrice, upperPrice]]);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Action } from '../Action';
|
|
2
|
+
import { EthAddress, uint256 } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* SparkQuotePriceRangeTrigger
|
|
5
|
+
* @param baseTokenAddr - The address of the base token
|
|
6
|
+
* @param quoteTokenAddr - The address of the quote token
|
|
7
|
+
* @param lowerPrice - The lower price of the range
|
|
8
|
+
* @param upperPrice - The upper price of the range
|
|
9
|
+
* @category Triggers
|
|
10
|
+
*/
|
|
11
|
+
export declare class SparkQuotePriceRangeTrigger extends Action {
|
|
12
|
+
constructor(baseTokenAddr: EthAddress, quoteTokenAddr: EthAddress, lowerPrice: uint256, upperPrice: uint256);
|
|
13
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Action } from '../Action';
|
|
2
|
+
import { getAddr } from '../addresses';
|
|
3
|
+
/**
|
|
4
|
+
* SparkQuotePriceRangeTrigger
|
|
5
|
+
* @param baseTokenAddr - The address of the base token
|
|
6
|
+
* @param quoteTokenAddr - The address of the quote token
|
|
7
|
+
* @param lowerPrice - The lower price of the range
|
|
8
|
+
* @param upperPrice - The upper price of the range
|
|
9
|
+
* @category Triggers
|
|
10
|
+
*/
|
|
11
|
+
export class SparkQuotePriceRangeTrigger extends Action {
|
|
12
|
+
constructor(baseTokenAddr, quoteTokenAddr, lowerPrice, upperPrice) {
|
|
13
|
+
super('SparkQuotePriceRangeTrigger', getAddr('Empty'), [['address', 'address', 'uint256', 'uint256']], [[baseTokenAddr, quoteTokenAddr, lowerPrice, upperPrice]]);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -29,3 +29,5 @@ export * from './CompV3PriceTrigger';
|
|
|
29
29
|
export * from './CompV3PriceRangeTrigger';
|
|
30
30
|
export * from './LiquityV2AdjustRateDebtInFrontTrigger';
|
|
31
31
|
export * from './AaveV3QuotePriceRangeTrigger';
|
|
32
|
+
export * from './SparkQuotePriceRangeTrigger';
|
|
33
|
+
export * from './MorphoBluePriceRangeTrigger';
|
|
@@ -29,3 +29,5 @@ export * from './CompV3PriceTrigger';
|
|
|
29
29
|
export * from './CompV3PriceRangeTrigger';
|
|
30
30
|
export * from './LiquityV2AdjustRateDebtInFrontTrigger';
|
|
31
31
|
export * from './AaveV3QuotePriceRangeTrigger';
|
|
32
|
+
export * from './SparkQuotePriceRangeTrigger';
|
|
33
|
+
export * from './MorphoBluePriceRangeTrigger';
|
package/package.json
CHANGED
package/src/addresses.ts
CHANGED
|
@@ -144,7 +144,7 @@ export const actionAddresses = {
|
|
|
144
144
|
FLMaker: '0x0f8C3368cADF78167F5355D746Ed7b2A826A6e3b',
|
|
145
145
|
FLBalancer: '0x93d333930c7f7260a1E6061B0a8C0CbdEC95F367',
|
|
146
146
|
FLSpark: '0xe9Fe5a0f5e4B370Ae60d837da58744666D5C06F7',
|
|
147
|
-
FLAction: '
|
|
147
|
+
FLAction: '0x5f1dC84Ba060Ea3f7429c6A7bBEdd9243CF1209b',
|
|
148
148
|
FLUniV3: '0x9CAdAC8Be718572F82B672b950c53F0b58483A35',
|
|
149
149
|
FLGho: '0xbb67b81dD080a406227A38965d0393f396ddECBc',
|
|
150
150
|
FLMorphoBlue: '0x6206C96EAc5EAC546861438A9f953B6BEa50EBAB',
|
|
@@ -405,7 +405,7 @@ export const actionAddresses = {
|
|
|
405
405
|
FLAaveV3NoFee: '0xfbcF23D2BeF8A2C491cfa4dD409D8dF12d431c85',
|
|
406
406
|
FLAaveV3: '0x8A07E93d2B74A80D726eE4E4A0aC1F906aB5Cc63',
|
|
407
407
|
FLBalancer: '0x79d6bf536b8DD65909a3174C87eA6395310d5c41',
|
|
408
|
-
FLAction: '
|
|
408
|
+
FLAction: '0x82d5eDeb005AfFbF381B5949C707a3305160F4A9',
|
|
409
409
|
|
|
410
410
|
AaveV3RatioTrigger: '0xB76e3f7694589D0f34ba43b17AD0D15350Ab5f85',
|
|
411
411
|
GasFeeTakerL2: '0xB3dB299622A9DB0E944ccda2Ef899d6fF365B082',
|
|
@@ -480,9 +480,9 @@ export const actionAddresses = {
|
|
|
480
480
|
FLAaveV3NoFee: '0x219ac6dA971dE6d943cffD1BD62abde71525d382',
|
|
481
481
|
FLAaveV3: '0x53953aCEe438c083e4299F7976f03Ff3cb862161',
|
|
482
482
|
FLBalancer: '0xdb28fE77709D88badC86868B27937428C3F48E73',
|
|
483
|
-
FLUniV3: '
|
|
484
|
-
FLAction: '
|
|
485
|
-
FLMorphoBlue: '
|
|
483
|
+
FLUniV3: '0x9FD9884428615DF36c28B9ba206b67Ded81eB741', // @DEV - incorrect, same as FLAction
|
|
484
|
+
FLAction: '0x9FD9884428615DF36c28B9ba206b67Ded81eB741',
|
|
485
|
+
FLMorphoBlue: '0x9FD9884428615DF36c28B9ba206b67Ded81eB741',
|
|
486
486
|
|
|
487
487
|
GasFeeTakerL2: '0x2F64f73B222B4978CAfd0295c0fa106cE5f34996',
|
|
488
488
|
AaveV3RatioCheck: '0x4a5c2cbCFB921b596Dec049389899CC8Eb4678ED',
|
|
@@ -565,8 +565,8 @@ export const actionAddresses = {
|
|
|
565
565
|
FLAaveV3: '0x79Eb9cEe432Cd3e7b09A9eFdB21A733A6d7b4c3A',
|
|
566
566
|
FLBalancer: '0x862E533198C9656B75bB6A5dDF0953F7ED5E8507',
|
|
567
567
|
FLUniV3: '0x1bA6082D2ef1aB92a55B96264c72Eb8049C964Ce',
|
|
568
|
-
FLAction: '
|
|
569
|
-
FLMorphoBlue: '
|
|
568
|
+
FLAction: '0x5523E61fBEF59825831Ffbb1306aBc3Bb03BB3A4', // fix temp
|
|
569
|
+
FLMorphoBlue: '0x5523E61fBEF59825831Ffbb1306aBc3Bb03BB3A4',
|
|
570
570
|
|
|
571
571
|
// AaveV3
|
|
572
572
|
AaveV3Withdraw: '0x1d2Fa7dAcC660A9124c3685EE8a6E699d10409Eb',
|
|
@@ -714,7 +714,7 @@ export const actionAddresses = {
|
|
|
714
714
|
|
|
715
715
|
export const otherAddresses = {
|
|
716
716
|
[NETWORKS.ethereum.chainId]: {
|
|
717
|
-
RecipeExecutor: '
|
|
717
|
+
RecipeExecutor: '0x2ee96cf53ae5fbd5309284704f978d0ca66cb963',
|
|
718
718
|
DFSRegistry: '0x287778F121F134C66212FB16c9b53eC991D32f5b',
|
|
719
719
|
DFSProxyRegistry: '0x29474FdaC7142f9aB7773B8e38264FA15E3805ed',
|
|
720
720
|
ProxyRegistry: '0x4678f0a6958e4D2Bc4F1BAF7Bc52E8F3564f3fE4',
|
|
@@ -734,7 +734,7 @@ export const otherAddresses = {
|
|
|
734
734
|
Empty: '0x0000000000000000000000000000000000000000',
|
|
735
735
|
},
|
|
736
736
|
[NETWORKS.optimism.chainId]: {
|
|
737
|
-
RecipeExecutor: '
|
|
737
|
+
RecipeExecutor: '0x993A8c81142044E1CB0Cf0c3d84BEa235d842Fb0',
|
|
738
738
|
DFSRegistry: '0xAf707Ee480204Ed6e2640B53cE86F680D28Afcbd',
|
|
739
739
|
ProxyRegistry: '0x283Cc5C26e53D66ed2Ea252D986F094B37E6e895',
|
|
740
740
|
|
|
@@ -746,7 +746,7 @@ export const otherAddresses = {
|
|
|
746
746
|
UniswapV3PositionManager: '0xC36442b4a4522E871399CD717aBDD847Ab11FE88',
|
|
747
747
|
},
|
|
748
748
|
[NETWORKS.arbitrum.chainId]: {
|
|
749
|
-
RecipeExecutor: '
|
|
749
|
+
RecipeExecutor: '0x7a25174229ea402d8ccd35fc6d55af079c399884',
|
|
750
750
|
DFSRegistry: '0xBF1CaC12DB60819Bfa71A328282ecbc1D40443aA',
|
|
751
751
|
ProxyRegistry: '0x283Cc5C26e53D66ed2Ea252D986F094B37E6e895',
|
|
752
752
|
|
|
@@ -758,7 +758,7 @@ export const otherAddresses = {
|
|
|
758
758
|
UniswapV3PositionManager: '0xC36442b4a4522E871399CD717aBDD847Ab11FE88',
|
|
759
759
|
},
|
|
760
760
|
[NETWORKS.base.chainId]: {
|
|
761
|
-
RecipeExecutor: '
|
|
761
|
+
RecipeExecutor: '0x7a87565b77dd65bbc153fe20e97743842f1a6e0c',
|
|
762
762
|
DFSRegistry: '0x347FB634271F666353F23A3362f3935D96F97476',
|
|
763
763
|
ProxyRegistry: '0x425fA97285965E01Cc5F951B62A51F6CDEA5cc0d',
|
|
764
764
|
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Action } from '../Action';
|
|
2
|
+
import { getAddr } from '../addresses';
|
|
3
|
+
import { EthAddress, uint256, uint8 } from '../types';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Trigger contract that verifies if current token price ratio is outside of given range specified during subscription
|
|
7
|
+
* @category Triggers
|
|
8
|
+
*/
|
|
9
|
+
export class MorphoBluePriceRangeTrigger extends Action {
|
|
10
|
+
/**
|
|
11
|
+
* @param loanToken - MarketParams loanToken
|
|
12
|
+
* @param collateralToken - MarketParams collateralToken
|
|
13
|
+
* @param oracle - MarketParams oracle
|
|
14
|
+
* @param lowerPrice - The lower price of the range
|
|
15
|
+
* @param upperPrice - The upper price of the range
|
|
16
|
+
*/
|
|
17
|
+
constructor(
|
|
18
|
+
loanToken:EthAddress,
|
|
19
|
+
collateralToken:EthAddress,
|
|
20
|
+
oracle:EthAddress,
|
|
21
|
+
lowerPrice:uint256,
|
|
22
|
+
upperPrice:uint256,
|
|
23
|
+
) {
|
|
24
|
+
super(
|
|
25
|
+
'MorphoBluePriceRangeTrigger',
|
|
26
|
+
getAddr('Empty'),
|
|
27
|
+
[['address', 'address', 'address', 'uint256', 'uint256']],
|
|
28
|
+
[[oracle, collateralToken, loanToken, lowerPrice, upperPrice]],
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Action } from '../Action';
|
|
2
|
+
import { getAddr } from '../addresses';
|
|
3
|
+
import { EthAddress, uint256 } from '../types';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* SparkQuotePriceRangeTrigger
|
|
7
|
+
* @param baseTokenAddr - The address of the base token
|
|
8
|
+
* @param quoteTokenAddr - The address of the quote token
|
|
9
|
+
* @param lowerPrice - The lower price of the range
|
|
10
|
+
* @param upperPrice - The upper price of the range
|
|
11
|
+
* @category Triggers
|
|
12
|
+
*/
|
|
13
|
+
export class SparkQuotePriceRangeTrigger extends Action {
|
|
14
|
+
constructor(
|
|
15
|
+
baseTokenAddr: EthAddress,
|
|
16
|
+
quoteTokenAddr: EthAddress,
|
|
17
|
+
lowerPrice: uint256,
|
|
18
|
+
upperPrice: uint256,
|
|
19
|
+
) {
|
|
20
|
+
super(
|
|
21
|
+
'SparkQuotePriceRangeTrigger',
|
|
22
|
+
getAddr('Empty'),
|
|
23
|
+
[['address', 'address', 'uint256', 'uint256']],
|
|
24
|
+
[[baseTokenAddr, quoteTokenAddr, lowerPrice, upperPrice]],
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
}
|
package/src/triggers/index.ts
CHANGED
|
@@ -28,4 +28,6 @@ export * from './FluidRatioTrigger';
|
|
|
28
28
|
export * from './CompV3PriceTrigger';
|
|
29
29
|
export * from './CompV3PriceRangeTrigger';
|
|
30
30
|
export * from './LiquityV2AdjustRateDebtInFrontTrigger';
|
|
31
|
-
export * from './AaveV3QuotePriceRangeTrigger';
|
|
31
|
+
export * from './AaveV3QuotePriceRangeTrigger';
|
|
32
|
+
export * from './SparkQuotePriceRangeTrigger';
|
|
33
|
+
export * from './MorphoBluePriceRangeTrigger';
|
package/umd/index.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
exports["defisaver-sdk"] = factory(require("web3-eth-abi"), require("web3-utils"), require("decimal.js"), require("@defisaver/tokens"), require("@ethersproject/solidity"), require("@ethersproject/address"), require("axios"));
|
|
8
8
|
else
|
|
9
9
|
root["defisaver-sdk"] = factory(root["web3-eth-abi"], root["web3-utils"], root["decimal.js"], root["@defisaver/tokens"], root["@ethersproject/solidity"], root["@ethersproject/address"], root["axios"]);
|
|
10
|
-
})(this, (__WEBPACK_EXTERNAL_MODULE__2__, __WEBPACK_EXTERNAL_MODULE__3__, __WEBPACK_EXTERNAL_MODULE__5__, __WEBPACK_EXTERNAL_MODULE__6__, __WEBPACK_EXTERNAL_MODULE__138__, __WEBPACK_EXTERNAL_MODULE__139__,
|
|
10
|
+
})(this, (__WEBPACK_EXTERNAL_MODULE__2__, __WEBPACK_EXTERNAL_MODULE__3__, __WEBPACK_EXTERNAL_MODULE__5__, __WEBPACK_EXTERNAL_MODULE__6__, __WEBPACK_EXTERNAL_MODULE__138__, __WEBPACK_EXTERNAL_MODULE__139__, __WEBPACK_EXTERNAL_MODULE__444__) => {
|
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
|
12
12
|
/******/ "use strict";
|
|
13
13
|
/******/ var __webpack_modules__ = ([
|
|
@@ -1444,7 +1444,7 @@ var actionAddresses = {
|
|
|
1444
1444
|
FLMaker: '0x0f8C3368cADF78167F5355D746Ed7b2A826A6e3b',
|
|
1445
1445
|
FLBalancer: '0x93d333930c7f7260a1E6061B0a8C0CbdEC95F367',
|
|
1446
1446
|
FLSpark: '0xe9Fe5a0f5e4B370Ae60d837da58744666D5C06F7',
|
|
1447
|
-
FLAction: '
|
|
1447
|
+
FLAction: '0x5f1dC84Ba060Ea3f7429c6A7bBEdd9243CF1209b',
|
|
1448
1448
|
FLUniV3: '0x9CAdAC8Be718572F82B672b950c53F0b58483A35',
|
|
1449
1449
|
FLGho: '0xbb67b81dD080a406227A38965d0393f396ddECBc',
|
|
1450
1450
|
FLMorphoBlue: '0x6206C96EAc5EAC546861438A9f953B6BEa50EBAB',
|
|
@@ -1668,7 +1668,7 @@ var actionAddresses = {
|
|
|
1668
1668
|
FLAaveV3NoFee: '0xfbcF23D2BeF8A2C491cfa4dD409D8dF12d431c85',
|
|
1669
1669
|
FLAaveV3: '0x8A07E93d2B74A80D726eE4E4A0aC1F906aB5Cc63',
|
|
1670
1670
|
FLBalancer: '0x79d6bf536b8DD65909a3174C87eA6395310d5c41',
|
|
1671
|
-
FLAction: '
|
|
1671
|
+
FLAction: '0x82d5eDeb005AfFbF381B5949C707a3305160F4A9',
|
|
1672
1672
|
AaveV3RatioTrigger: '0xB76e3f7694589D0f34ba43b17AD0D15350Ab5f85',
|
|
1673
1673
|
GasFeeTakerL2: '0xB3dB299622A9DB0E944ccda2Ef899d6fF365B082',
|
|
1674
1674
|
AaveV3RatioCheck: '0x7A36779a7b5F1128B28932604057d5b63361297c',
|
|
@@ -1735,10 +1735,10 @@ var actionAddresses = {
|
|
|
1735
1735
|
FLAaveV3NoFee: '0x219ac6dA971dE6d943cffD1BD62abde71525d382',
|
|
1736
1736
|
FLAaveV3: '0x53953aCEe438c083e4299F7976f03Ff3cb862161',
|
|
1737
1737
|
FLBalancer: '0xdb28fE77709D88badC86868B27937428C3F48E73',
|
|
1738
|
-
FLUniV3: '
|
|
1738
|
+
FLUniV3: '0x9FD9884428615DF36c28B9ba206b67Ded81eB741',
|
|
1739
1739
|
// @DEV - incorrect, same as FLAction
|
|
1740
|
-
FLAction: '
|
|
1741
|
-
FLMorphoBlue: '
|
|
1740
|
+
FLAction: '0x9FD9884428615DF36c28B9ba206b67Ded81eB741',
|
|
1741
|
+
FLMorphoBlue: '0x9FD9884428615DF36c28B9ba206b67Ded81eB741',
|
|
1742
1742
|
GasFeeTakerL2: '0x2F64f73B222B4978CAfd0295c0fa106cE5f34996',
|
|
1743
1743
|
AaveV3RatioCheck: '0x4a5c2cbCFB921b596Dec049389899CC8Eb4678ED',
|
|
1744
1744
|
// uniswap V3
|
|
@@ -1813,9 +1813,9 @@ var actionAddresses = {
|
|
|
1813
1813
|
FLAaveV3: '0x79Eb9cEe432Cd3e7b09A9eFdB21A733A6d7b4c3A',
|
|
1814
1814
|
FLBalancer: '0x862E533198C9656B75bB6A5dDF0953F7ED5E8507',
|
|
1815
1815
|
FLUniV3: '0x1bA6082D2ef1aB92a55B96264c72Eb8049C964Ce',
|
|
1816
|
-
FLAction: '
|
|
1816
|
+
FLAction: '0x5523E61fBEF59825831Ffbb1306aBc3Bb03BB3A4',
|
|
1817
1817
|
// fix temp
|
|
1818
|
-
FLMorphoBlue: '
|
|
1818
|
+
FLMorphoBlue: '0x5523E61fBEF59825831Ffbb1306aBc3Bb03BB3A4',
|
|
1819
1819
|
// AaveV3
|
|
1820
1820
|
AaveV3Withdraw: '0x1d2Fa7dAcC660A9124c3685EE8a6E699d10409Eb',
|
|
1821
1821
|
AaveV3SwapBorrowRateMode: '0x9d1D7A0dD5e82cCe9CC131eC0C807B0F543be70e',
|
|
@@ -1953,7 +1953,7 @@ var actionAddresses = {
|
|
|
1953
1953
|
};
|
|
1954
1954
|
var otherAddresses = {
|
|
1955
1955
|
[_config__WEBPACK_IMPORTED_MODULE_0__.NETWORKS.ethereum.chainId]: {
|
|
1956
|
-
RecipeExecutor: '
|
|
1956
|
+
RecipeExecutor: '0x2ee96cf53ae5fbd5309284704f978d0ca66cb963',
|
|
1957
1957
|
DFSRegistry: '0x287778F121F134C66212FB16c9b53eC991D32f5b',
|
|
1958
1958
|
DFSProxyRegistry: '0x29474FdaC7142f9aB7773B8e38264FA15E3805ed',
|
|
1959
1959
|
ProxyRegistry: '0x4678f0a6958e4D2Bc4F1BAF7Bc52E8F3564f3fE4',
|
|
@@ -1972,7 +1972,7 @@ var otherAddresses = {
|
|
|
1972
1972
|
Empty: '0x0000000000000000000000000000000000000000'
|
|
1973
1973
|
},
|
|
1974
1974
|
[_config__WEBPACK_IMPORTED_MODULE_0__.NETWORKS.optimism.chainId]: {
|
|
1975
|
-
RecipeExecutor: '
|
|
1975
|
+
RecipeExecutor: '0x993A8c81142044E1CB0Cf0c3d84BEa235d842Fb0',
|
|
1976
1976
|
DFSRegistry: '0xAf707Ee480204Ed6e2640B53cE86F680D28Afcbd',
|
|
1977
1977
|
ProxyRegistry: '0x283Cc5C26e53D66ed2Ea252D986F094B37E6e895',
|
|
1978
1978
|
DSGuardFactory: '0xc19d0F1E2b38AA283E226Ca4044766A43aA7B02b',
|
|
@@ -1982,7 +1982,7 @@ var otherAddresses = {
|
|
|
1982
1982
|
UniswapV3PositionManager: '0xC36442b4a4522E871399CD717aBDD847Ab11FE88'
|
|
1983
1983
|
},
|
|
1984
1984
|
[_config__WEBPACK_IMPORTED_MODULE_0__.NETWORKS.arbitrum.chainId]: {
|
|
1985
|
-
RecipeExecutor: '
|
|
1985
|
+
RecipeExecutor: '0x7a25174229ea402d8ccd35fc6d55af079c399884',
|
|
1986
1986
|
DFSRegistry: '0xBF1CaC12DB60819Bfa71A328282ecbc1D40443aA',
|
|
1987
1987
|
ProxyRegistry: '0x283Cc5C26e53D66ed2Ea252D986F094B37E6e895',
|
|
1988
1988
|
DSGuardFactory: '0x5261abC3a94a6475D0A1171daE94A5f84fbaEcD2',
|
|
@@ -1992,7 +1992,7 @@ var otherAddresses = {
|
|
|
1992
1992
|
UniswapV3PositionManager: '0xC36442b4a4522E871399CD717aBDD847Ab11FE88'
|
|
1993
1993
|
},
|
|
1994
1994
|
[_config__WEBPACK_IMPORTED_MODULE_0__.NETWORKS.base.chainId]: {
|
|
1995
|
-
RecipeExecutor: '
|
|
1995
|
+
RecipeExecutor: '0x7a87565b77dd65bbc153fe20e97743842f1a6e0c',
|
|
1996
1996
|
DFSRegistry: '0x347FB634271F666353F23A3362f3935D96F97476',
|
|
1997
1997
|
ProxyRegistry: '0x425fA97285965E01Cc5F951B62A51F6CDEA5cc0d',
|
|
1998
1998
|
DSGuardFactory: '0x7783da8958013a57a5514737a4FBDFF06A0056e1',
|
|
@@ -16394,10 +16394,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16394
16394
|
/* harmony export */ LiquityV2RatioTrigger: () => (/* reexport safe */ _LiquityV2RatioTrigger__WEBPACK_IMPORTED_MODULE_23__.LiquityV2RatioTrigger),
|
|
16395
16395
|
/* harmony export */ MakerRatioTrigger: () => (/* reexport safe */ _MakerRatioTrigger__WEBPACK_IMPORTED_MODULE_0__.MakerRatioTrigger),
|
|
16396
16396
|
/* harmony export */ MorphoAaveV2RatioTrigger: () => (/* reexport safe */ _MorphoAaveV2RatioTrigger__WEBPACK_IMPORTED_MODULE_14__.MorphoAaveV2RatioTrigger),
|
|
16397
|
+
/* harmony export */ MorphoBluePriceRangeTrigger: () => (/* reexport safe */ _MorphoBluePriceRangeTrigger__WEBPACK_IMPORTED_MODULE_32__.MorphoBluePriceRangeTrigger),
|
|
16397
16398
|
/* harmony export */ MorphoBluePriceTrigger: () => (/* reexport safe */ _MorphoBluePriceTrigger__WEBPACK_IMPORTED_MODULE_22__.MorphoBluePriceTrigger),
|
|
16398
16399
|
/* harmony export */ MorphoBlueRatioTrigger: () => (/* reexport safe */ _MorphoBlueRatioTrigger__WEBPACK_IMPORTED_MODULE_20__.MorphoBlueRatioTrigger),
|
|
16399
16400
|
/* harmony export */ OffchainPriceTrigger: () => (/* reexport safe */ _OffchainPriceTrigger__WEBPACK_IMPORTED_MODULE_21__.OffchainPriceTrigger),
|
|
16400
16401
|
/* harmony export */ ReflexerRatioTrigger: () => (/* reexport safe */ _ReflexerRatioTrigger__WEBPACK_IMPORTED_MODULE_6__.ReflexerRatioTrigger),
|
|
16402
|
+
/* harmony export */ SparkQuotePriceRangeTrigger: () => (/* reexport safe */ _SparkQuotePriceRangeTrigger__WEBPACK_IMPORTED_MODULE_31__.SparkQuotePriceRangeTrigger),
|
|
16401
16403
|
/* harmony export */ SparkQuotePriceTrigger: () => (/* reexport safe */ _SparkQuotePriceTrigger__WEBPACK_IMPORTED_MODULE_16__.SparkQuotePriceTrigger),
|
|
16402
16404
|
/* harmony export */ SparkRatioTrigger: () => (/* reexport safe */ _SparkRatioTrigger__WEBPACK_IMPORTED_MODULE_15__.SparkRatioTrigger),
|
|
16403
16405
|
/* harmony export */ TimestampTrigger: () => (/* reexport safe */ _TimestampTrigger__WEBPACK_IMPORTED_MODULE_3__.TimestampTrigger),
|
|
@@ -16435,6 +16437,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16435
16437
|
/* harmony import */ var _CompV3PriceRangeTrigger__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(437);
|
|
16436
16438
|
/* harmony import */ var _LiquityV2AdjustRateDebtInFrontTrigger__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(438);
|
|
16437
16439
|
/* harmony import */ var _AaveV3QuotePriceRangeTrigger__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(439);
|
|
16440
|
+
/* harmony import */ var _SparkQuotePriceRangeTrigger__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(440);
|
|
16441
|
+
/* harmony import */ var _MorphoBluePriceRangeTrigger__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(441);
|
|
16442
|
+
|
|
16443
|
+
|
|
16438
16444
|
|
|
16439
16445
|
|
|
16440
16446
|
|
|
@@ -17187,6 +17193,61 @@ class AaveV3QuotePriceRangeTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.
|
|
|
17187
17193
|
/* 440 */
|
|
17188
17194
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17189
17195
|
|
|
17196
|
+
__webpack_require__.r(__webpack_exports__);
|
|
17197
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17198
|
+
/* harmony export */ SparkQuotePriceRangeTrigger: () => (/* binding */ SparkQuotePriceRangeTrigger)
|
|
17199
|
+
/* harmony export */ });
|
|
17200
|
+
/* harmony import */ var _Action__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
|
|
17201
|
+
/* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27);
|
|
17202
|
+
|
|
17203
|
+
|
|
17204
|
+
/**
|
|
17205
|
+
* SparkQuotePriceRangeTrigger
|
|
17206
|
+
* @param baseTokenAddr - The address of the base token
|
|
17207
|
+
* @param quoteTokenAddr - The address of the quote token
|
|
17208
|
+
* @param lowerPrice - The lower price of the range
|
|
17209
|
+
* @param upperPrice - The upper price of the range
|
|
17210
|
+
* @category Triggers
|
|
17211
|
+
*/
|
|
17212
|
+
class SparkQuotePriceRangeTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
17213
|
+
constructor(baseTokenAddr, quoteTokenAddr, lowerPrice, upperPrice) {
|
|
17214
|
+
super('SparkQuotePriceRangeTrigger', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('Empty'), [['address', 'address', 'uint256', 'uint256']], [[baseTokenAddr, quoteTokenAddr, lowerPrice, upperPrice]]);
|
|
17215
|
+
}
|
|
17216
|
+
}
|
|
17217
|
+
|
|
17218
|
+
/***/ }),
|
|
17219
|
+
/* 441 */
|
|
17220
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17221
|
+
|
|
17222
|
+
__webpack_require__.r(__webpack_exports__);
|
|
17223
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17224
|
+
/* harmony export */ MorphoBluePriceRangeTrigger: () => (/* binding */ MorphoBluePriceRangeTrigger)
|
|
17225
|
+
/* harmony export */ });
|
|
17226
|
+
/* harmony import */ var _Action__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
|
|
17227
|
+
/* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27);
|
|
17228
|
+
|
|
17229
|
+
|
|
17230
|
+
/**
|
|
17231
|
+
* Trigger contract that verifies if current token price ratio is outside of given range specified during subscription
|
|
17232
|
+
* @category Triggers
|
|
17233
|
+
*/
|
|
17234
|
+
class MorphoBluePriceRangeTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
17235
|
+
/**
|
|
17236
|
+
* @param loanToken - MarketParams loanToken
|
|
17237
|
+
* @param collateralToken - MarketParams collateralToken
|
|
17238
|
+
* @param oracle - MarketParams oracle
|
|
17239
|
+
* @param lowerPrice - The lower price of the range
|
|
17240
|
+
* @param upperPrice - The upper price of the range
|
|
17241
|
+
*/
|
|
17242
|
+
constructor(loanToken, collateralToken, oracle, lowerPrice, upperPrice) {
|
|
17243
|
+
super('MorphoBluePriceRangeTrigger', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('Empty'), [['address', 'address', 'address', 'uint256', 'uint256']], [[oracle, collateralToken, loanToken, lowerPrice, upperPrice]]);
|
|
17244
|
+
}
|
|
17245
|
+
}
|
|
17246
|
+
|
|
17247
|
+
/***/ }),
|
|
17248
|
+
/* 442 */
|
|
17249
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17250
|
+
|
|
17190
17251
|
__webpack_require__.r(__webpack_exports__);
|
|
17191
17252
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17192
17253
|
/* harmony export */ basicUtils: () => (/* reexport module object */ _basic_utils__WEBPACK_IMPORTED_MODULE_7__),
|
|
@@ -17198,9 +17259,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17198
17259
|
/* harmony export */ uniswapV3LP: () => (/* reexport module object */ _uniswapV3LP__WEBPACK_IMPORTED_MODULE_2__),
|
|
17199
17260
|
/* harmony export */ zeroExExchange: () => (/* reexport module object */ _zeroExExchange__WEBPACK_IMPORTED_MODULE_0__)
|
|
17200
17261
|
/* harmony export */ });
|
|
17201
|
-
/* harmony import */ var _zeroExExchange__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
17262
|
+
/* harmony import */ var _zeroExExchange__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(443);
|
|
17202
17263
|
/* harmony import */ var _uniswapLP__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(137);
|
|
17203
|
-
/* harmony import */ var _uniswapV3LP__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
17264
|
+
/* harmony import */ var _uniswapV3LP__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(445);
|
|
17204
17265
|
/* harmony import */ var _convex_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(243);
|
|
17205
17266
|
/* harmony import */ var _mstableAssetPairs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(223);
|
|
17206
17267
|
/* harmony import */ var _curve_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(209);
|
|
@@ -17217,7 +17278,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17217
17278
|
|
|
17218
17279
|
|
|
17219
17280
|
/***/ }),
|
|
17220
|
-
/*
|
|
17281
|
+
/* 443 */
|
|
17221
17282
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17222
17283
|
|
|
17223
17284
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -17228,7 +17289,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17228
17289
|
/* harmony export */ });
|
|
17229
17290
|
/* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
|
|
17230
17291
|
/* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(decimal_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
17231
|
-
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
17292
|
+
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(444);
|
|
17232
17293
|
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);
|
|
17233
17294
|
/* harmony import */ var _defisaver_tokens__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6);
|
|
17234
17295
|
/* harmony import */ var _defisaver_tokens__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_defisaver_tokens__WEBPACK_IMPORTED_MODULE_2__);
|
|
@@ -17430,20 +17491,20 @@ var createSellAction = /*#__PURE__*/function () {
|
|
|
17430
17491
|
}();
|
|
17431
17492
|
|
|
17432
17493
|
/***/ }),
|
|
17433
|
-
/*
|
|
17494
|
+
/* 444 */
|
|
17434
17495
|
/***/ ((module) => {
|
|
17435
17496
|
|
|
17436
|
-
module.exports =
|
|
17497
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__444__;
|
|
17437
17498
|
|
|
17438
17499
|
/***/ }),
|
|
17439
|
-
/*
|
|
17500
|
+
/* 445 */
|
|
17440
17501
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17441
17502
|
|
|
17442
17503
|
__webpack_require__.r(__webpack_exports__);
|
|
17443
17504
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17444
17505
|
/* harmony export */ getAssetAddrByTokenId: () => (/* binding */ getAssetAddrByTokenId)
|
|
17445
17506
|
/* harmony export */ });
|
|
17446
|
-
/* harmony import */ var _abis_UniV3PositionManager_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
17507
|
+
/* harmony import */ var _abis_UniV3PositionManager_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(446);
|
|
17447
17508
|
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); } }
|
|
17448
17509
|
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); }); }; }
|
|
17449
17510
|
/**
|
|
@@ -17468,7 +17529,7 @@ var getAssetAddrByTokenId = /*#__PURE__*/function () {
|
|
|
17468
17529
|
}();
|
|
17469
17530
|
|
|
17470
17531
|
/***/ }),
|
|
17471
|
-
/*
|
|
17532
|
+
/* 446 */
|
|
17472
17533
|
/***/ ((module) => {
|
|
17473
17534
|
|
|
17474
17535
|
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"}]');
|
|
@@ -17573,7 +17634,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17573
17634
|
/* harmony import */ var _DfsWeb3__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(30);
|
|
17574
17635
|
/* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(35);
|
|
17575
17636
|
/* harmony import */ var _triggers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(408);
|
|
17576
|
-
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
|
|
17637
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(442);
|
|
17577
17638
|
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(4);
|
|
17578
17639
|
/* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(27);
|
|
17579
17640
|
/* Export types here */
|