@defisaver/positions-sdk 0.0.27 → 0.0.29

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.
Files changed (80) hide show
  1. package/README.md +63 -63
  2. package/cjs/config/contracts.d.ts +18 -9
  3. package/cjs/config/contracts.js +8 -7
  4. package/cjs/contracts.d.ts +1 -1
  5. package/cjs/contracts.js +27 -4
  6. package/cjs/curveUsd/index.js +1 -1
  7. package/cjs/helpers/curveUsdHelpers/index.d.ts +1 -2
  8. package/cjs/helpers/curveUsdHelpers/index.js +17 -25
  9. package/cjs/markets/aave/marketAssets.d.ts +1 -1
  10. package/cjs/markets/aave/marketAssets.js +1 -1
  11. package/cjs/moneymarket/moneymarketCommonService.js +1 -1
  12. package/cjs/services/utils.d.ts +0 -4
  13. package/cjs/services/utils.js +1 -13
  14. package/cjs/types/contracts/generated/CrvUSDView.d.ts +4 -30
  15. package/cjs/types/curveUsd.d.ts +0 -6
  16. package/esm/config/contracts.d.ts +18 -9
  17. package/esm/config/contracts.js +8 -7
  18. package/esm/contracts.d.ts +1 -1
  19. package/esm/contracts.js +27 -4
  20. package/esm/curveUsd/index.js +1 -1
  21. package/esm/helpers/curveUsdHelpers/index.d.ts +1 -2
  22. package/esm/helpers/curveUsdHelpers/index.js +18 -26
  23. package/esm/markets/aave/marketAssets.d.ts +1 -1
  24. package/esm/markets/aave/marketAssets.js +1 -1
  25. package/esm/moneymarket/moneymarketCommonService.js +1 -1
  26. package/esm/services/utils.d.ts +0 -4
  27. package/esm/services/utils.js +0 -11
  28. package/esm/types/contracts/generated/CrvUSDView.d.ts +4 -30
  29. package/esm/types/curveUsd.d.ts +0 -6
  30. package/package.json +40 -40
  31. package/src/aaveV2/index.ts +226 -226
  32. package/src/aaveV3/index.ts +561 -561
  33. package/src/assets/index.ts +60 -60
  34. package/src/chickenBonds/index.ts +123 -123
  35. package/src/compoundV2/index.ts +219 -219
  36. package/src/compoundV3/index.ts +275 -275
  37. package/src/config/contracts.js +676 -675
  38. package/src/constants/index.ts +3 -3
  39. package/src/contracts.ts +126 -100
  40. package/src/curveUsd/index.ts +228 -228
  41. package/src/exchange/index.ts +17 -17
  42. package/src/helpers/aaveHelpers/index.ts +134 -134
  43. package/src/helpers/chickenBondsHelpers/index.ts +23 -23
  44. package/src/helpers/compoundHelpers/index.ts +181 -181
  45. package/src/helpers/curveUsdHelpers/index.ts +32 -40
  46. package/src/helpers/index.ts +5 -5
  47. package/src/helpers/makerHelpers/index.ts +94 -94
  48. package/src/helpers/sparkHelpers/index.ts +106 -106
  49. package/src/index.ts +40 -40
  50. package/src/liquity/index.ts +116 -116
  51. package/src/maker/index.ts +101 -101
  52. package/src/markets/aave/index.ts +80 -80
  53. package/src/markets/aave/marketAssets.ts +32 -32
  54. package/src/markets/compound/index.ts +141 -141
  55. package/src/markets/compound/marketsAssets.ts +46 -46
  56. package/src/markets/curveUsd/index.ts +69 -69
  57. package/src/markets/index.ts +3 -3
  58. package/src/markets/spark/index.ts +29 -29
  59. package/src/markets/spark/marketAssets.ts +9 -9
  60. package/src/moneymarket/moneymarketCommonService.ts +75 -75
  61. package/src/morpho/markets.ts +39 -39
  62. package/src/morphoAaveV2/index.ts +255 -255
  63. package/src/morphoAaveV3/index.ts +619 -619
  64. package/src/multicall/index.ts +22 -22
  65. package/src/services/dsrService.ts +15 -15
  66. package/src/services/priceService.ts +21 -21
  67. package/src/services/utils.ts +35 -48
  68. package/src/spark/index.ts +422 -422
  69. package/src/staking/staking.ts +167 -167
  70. package/src/types/aave.ts +256 -256
  71. package/src/types/chickenBonds.ts +45 -45
  72. package/src/types/common.ts +83 -83
  73. package/src/types/compound.ts +128 -128
  74. package/src/types/contracts/generated/CrvUSDView.ts +8 -43
  75. package/src/types/curveUsd.ts +112 -118
  76. package/src/types/index.ts +6 -6
  77. package/src/types/liquity.ts +30 -30
  78. package/src/types/maker.ts +50 -50
  79. package/src/types/spark.ts +106 -106
  80. package/yarn-error.log +0 -64
@@ -1,119 +1,113 @@
1
- import { NetworkNumber } from './common';
2
-
3
- export enum CrvUSDVersions {
4
- 'wstETH' = 'wstETH',
5
- 'WBTC' = 'WBTC',
6
- 'ETH' = 'ETH',
7
- 'tBTC' = 'tBTC',
8
- 'sfrxETH' = 'sfrxETH',
9
- }
10
-
11
- export enum CrvUSDStatus {
12
- Nonexistant = 'Nonexistant',
13
- Safe = 'Safe',
14
- Risk = 'Risk',
15
- SoftLiquidating = 'SoftLiquidating',
16
- SoftLiquidated = 'SoftLiquidated',
17
- }
18
-
19
- export interface CrvUSDMarketData {
20
- chainIds: NetworkNumber[],
21
- label: string,
22
- shortLabel: string,
23
- value: CrvUSDVersions,
24
- collAsset: string,
25
- baseAsset: string,
26
- controllerAddress: string,
27
- ammAddress: string,
28
- createCollAssets: string[],
29
- }
30
-
31
- export interface BandData {
32
- id: string,
33
- collAmount: string,
34
- debtAmount: string,
35
- lowPrice: string,
36
- highPrice: string,
37
- }
38
-
39
- export interface UserBandData {
40
- id: string,
41
- collAmount: string,
42
- debtAmount: string,
43
- lowPrice: string,
44
- highPrice: string,
45
- userDebtAmount: string,
46
- userCollAmount: string,
47
- }
48
-
49
- export interface CrvUSDGlobalMarketData {
50
- collateral: string,
51
- decimals: string,
52
- activeBand: string,
53
- totalDebt: string,
54
- ammPrice: string,
55
- basePrice: string,
56
- oraclePrice: string,
57
- minted: string,
58
- redeemed: string,
59
- monetaryPolicyRate: string,
60
- ammRate: string,
61
- minBand: string,
62
- maxBand: string,
63
- debtCeiling: string,
64
- borrowRate: string,
65
- futureBorrowRate: string,
66
- leftToBorrow: string,
67
- bands: BandData[],
68
- }
69
-
70
- export interface CrvUSDAggregatedPositionData {
71
- ratio: string,
72
- supplied: string,
73
- suppliedUsd: string,
74
- borrowedUsd: string,
75
- borrowed: string,
76
- safetyRatio: string,
77
- borrowLimitUsd: string,
78
- minAllowedRatio: number,
79
- collFactor: string,
80
- leveragedType: string,
81
- leveragedAsset?: string,
82
- liquidationPrice?: string,
83
- }
84
-
85
- export interface CrvUSDUsedAsset {
86
- isSupplied: boolean,
87
- supplied: string,
88
- suppliedUsd: string,
89
- borrowed: string,
90
- borrowedUsd: string,
91
- isBorrowed: boolean,
92
- symbol: string,
93
- collateral: boolean,
94
- price: string,
95
- interestRate?: string,
96
- }
97
-
98
- export interface CrvUSDUsedAssets {
99
- [key: string]: CrvUSDUsedAsset,
100
- }
101
-
102
- export interface CrvUSDUserData {
103
- debtAmount: string,
104
- health: string,
105
- healthPercent: string,
106
- priceHigh: string,
107
- priceLow: string,
108
- liquidationDiscount: string,
109
- numOfBands: string,
110
- usedAssets: CrvUSDUsedAssets,
111
- status: CrvUSDStatus,
112
- ratio: string,
113
- supplied: string,
114
- suppliedUsd: string,
115
- borrowedUsd: string,
116
- borrowed: string,
117
- safetyRatio: string,
118
- userBands: UserBandData[],
1
+ import { NetworkNumber } from './common';
2
+
3
+ export enum CrvUSDVersions {
4
+ 'wstETH' = 'wstETH',
5
+ 'WBTC' = 'WBTC',
6
+ 'ETH' = 'ETH',
7
+ 'tBTC' = 'tBTC',
8
+ 'sfrxETH' = 'sfrxETH',
9
+ }
10
+
11
+ export enum CrvUSDStatus {
12
+ Nonexistant = 'Nonexistant',
13
+ Safe = 'Safe',
14
+ Risk = 'Risk',
15
+ SoftLiquidating = 'SoftLiquidating',
16
+ SoftLiquidated = 'SoftLiquidated',
17
+ }
18
+
19
+ export interface CrvUSDMarketData {
20
+ chainIds: NetworkNumber[],
21
+ label: string,
22
+ shortLabel: string,
23
+ value: CrvUSDVersions,
24
+ collAsset: string,
25
+ baseAsset: string,
26
+ controllerAddress: string,
27
+ ammAddress: string,
28
+ createCollAssets: string[],
29
+ }
30
+
31
+ export interface BandData {
32
+ id: string,
33
+ collAmount: string,
34
+ debtAmount: string,
35
+ lowPrice: string,
36
+ highPrice: string,
37
+ }
38
+
39
+ export interface UserBandData {
40
+ id: string,
41
+ collAmount: string,
42
+ debtAmount: string,
43
+ lowPrice: string,
44
+ highPrice: string,
45
+ userDebtAmount: string,
46
+ userCollAmount: string,
47
+ }
48
+
49
+ export interface CrvUSDGlobalMarketData {
50
+ collateral: string,
51
+ decimals: string,
52
+ activeBand: string,
53
+ totalDebt: string,
54
+ ammPrice: string,
55
+ basePrice: string,
56
+ oraclePrice: string,
57
+ minted: string,
58
+ redeemed: string,
59
+ monetaryPolicyRate: string,
60
+ ammRate: string,
61
+ minBand: string,
62
+ maxBand: string,
63
+ debtCeiling: string,
64
+ borrowRate: string,
65
+ futureBorrowRate: string,
66
+ leftToBorrow: string,
67
+ bands: BandData[],
68
+ }
69
+
70
+ export interface CrvUSDAggregatedPositionData {
71
+ ratio: string,
72
+ supplied: string,
73
+ suppliedUsd: string,
74
+ borrowedUsd: string,
75
+ borrowed: string,
76
+ safetyRatio: string,
77
+ }
78
+
79
+ export interface CrvUSDUsedAsset {
80
+ isSupplied: boolean,
81
+ supplied: string,
82
+ suppliedUsd: string,
83
+ borrowed: string,
84
+ borrowedUsd: string,
85
+ isBorrowed: boolean,
86
+ symbol: string,
87
+ collateral: boolean,
88
+ price: string,
89
+ interestRate?: string,
90
+ }
91
+
92
+ export interface CrvUSDUsedAssets {
93
+ [key: string]: CrvUSDUsedAsset,
94
+ }
95
+
96
+ export interface CrvUSDUserData {
97
+ debtAmount: string,
98
+ health: string,
99
+ healthPercent: string,
100
+ priceHigh: string,
101
+ priceLow: string,
102
+ liquidationDiscount: string,
103
+ numOfBands: string,
104
+ usedAssets: CrvUSDUsedAssets,
105
+ status: CrvUSDStatus,
106
+ ratio: string,
107
+ supplied: string,
108
+ suppliedUsd: string,
109
+ borrowedUsd: string,
110
+ borrowed: string,
111
+ safetyRatio: string,
112
+ userBands: UserBandData[],
119
113
  }
@@ -1,7 +1,7 @@
1
- export * from './aave';
2
- export * from './compound';
3
- export * from './spark';
4
- export * from './curveUsd';
5
- export * from './liquity';
6
- export * from './maker';
1
+ export * from './aave';
2
+ export * from './compound';
3
+ export * from './spark';
4
+ export * from './curveUsd';
5
+ export * from './liquity';
6
+ export * from './maker';
7
7
  export * from './chickenBonds';
@@ -1,31 +1,31 @@
1
- export enum LIQUITY_TROVE_STATUS_ENUM {
2
- nonExistent,
3
- active,
4
- closedByOwner,
5
- closedByLiquidation,
6
- closedByRedemption,
7
- }
8
-
9
- export const LIQUITY_STATUS_MAPPING = {
10
- nonExistent: 'Non existent',
11
- active: 'Active',
12
- closedByOwner: 'Closed',
13
- closedByLiquidation: 'Liquidated',
14
- closedByRedemption: 'Redeemed',
15
- };
16
-
17
- export interface LiquityTroveInfo {
18
- troveStatus: string,
19
- collateral: string,
20
- debtInAsset: string,
21
- TCRatio: string,
22
- recoveryMode: boolean,
23
- claimableCollateral: string,
24
- borrowingRateWithDecay: string,
25
- assetPrice: string,
26
- totalETH: string,
27
- totalLUSD: string,
28
- minCollateralRatio: number,
29
- priceForRecovery: string,
30
- debtInFront: string,
1
+ export enum LIQUITY_TROVE_STATUS_ENUM {
2
+ nonExistent,
3
+ active,
4
+ closedByOwner,
5
+ closedByLiquidation,
6
+ closedByRedemption,
7
+ }
8
+
9
+ export const LIQUITY_STATUS_MAPPING = {
10
+ nonExistent: 'Non existent',
11
+ active: 'Active',
12
+ closedByOwner: 'Closed',
13
+ closedByLiquidation: 'Liquidated',
14
+ closedByRedemption: 'Redeemed',
15
+ };
16
+
17
+ export interface LiquityTroveInfo {
18
+ troveStatus: string,
19
+ collateral: string,
20
+ debtInAsset: string,
21
+ TCRatio: string,
22
+ recoveryMode: boolean,
23
+ claimableCollateral: string,
24
+ borrowingRateWithDecay: string,
25
+ assetPrice: string,
26
+ totalETH: string,
27
+ totalLUSD: string,
28
+ minCollateralRatio: number,
29
+ priceForRecovery: string,
30
+ debtInFront: string,
31
31
  }
@@ -1,51 +1,51 @@
1
- import { EthAddress } from './common';
2
-
3
- export interface IlkInfo {
4
- ilkLabel: string;
5
- currentRate: string;
6
- futureRate: string;
7
- minDebt: string;
8
- globalDebtCeiling: string;
9
- globalDebtCurrent: string;
10
- assetPrice: string;
11
- liqRatio: string;
12
- liqPercent: number;
13
- stabilityFee: number;
14
- liquidationFee: string;
15
- creatableDebt: string;
16
- }
17
-
18
- export interface CdpData {
19
- owner: EthAddress,
20
- userAddress: EthAddress,
21
- id: string,
22
- urn: EthAddress,
23
- type: string,
24
- ilk: string,
25
- ilkLabel: string,
26
- asset: string,
27
- collateral: string,
28
- collateralUsd: string,
29
- futureDebt: string,
30
- debtDai: string,
31
- debtUsd: string,
32
- debtInAsset: string,
33
- debtAssetPrice: string,
34
- debtAssetMarketPrice: string,
35
- liquidationPrice: string,
36
- ratio: string,
37
- liqRatio: string,
38
- liqPercent: number,
39
- assetPrice: string,
40
- daiLabel: string,
41
- debtAsset: string,
42
- unclaimedCollateral: string,
43
- debtTooLow: boolean,
44
- minDebt: string,
45
- stabilityFee: number,
46
- creatableDebt: string,
47
- globalDebtCeiling: string,
48
- globalDebtCurrent: string,
49
- liquidationFee: string,
50
- lastUpdated: number,
1
+ import { EthAddress } from './common';
2
+
3
+ export interface IlkInfo {
4
+ ilkLabel: string;
5
+ currentRate: string;
6
+ futureRate: string;
7
+ minDebt: string;
8
+ globalDebtCeiling: string;
9
+ globalDebtCurrent: string;
10
+ assetPrice: string;
11
+ liqRatio: string;
12
+ liqPercent: number;
13
+ stabilityFee: number;
14
+ liquidationFee: string;
15
+ creatableDebt: string;
16
+ }
17
+
18
+ export interface CdpData {
19
+ owner: EthAddress,
20
+ userAddress: EthAddress,
21
+ id: string,
22
+ urn: EthAddress,
23
+ type: string,
24
+ ilk: string,
25
+ ilkLabel: string,
26
+ asset: string,
27
+ collateral: string,
28
+ collateralUsd: string,
29
+ futureDebt: string,
30
+ debtDai: string,
31
+ debtUsd: string,
32
+ debtInAsset: string,
33
+ debtAssetPrice: string,
34
+ debtAssetMarketPrice: string,
35
+ liquidationPrice: string,
36
+ ratio: string,
37
+ liqRatio: string,
38
+ liqPercent: number,
39
+ assetPrice: string,
40
+ daiLabel: string,
41
+ debtAsset: string,
42
+ unclaimedCollateral: string,
43
+ debtTooLow: boolean,
44
+ minDebt: string,
45
+ stabilityFee: number,
46
+ creatableDebt: string,
47
+ globalDebtCeiling: string,
48
+ globalDebtCurrent: string,
49
+ liquidationFee: string,
50
+ lastUpdated: number,
51
51
  }
@@ -1,107 +1,107 @@
1
- import { EModeCategoryData, EModeCategoryDataMapping } from './aave';
2
- import {
3
- MMAssetData, MMPositionData, MMUsedAsset, NetworkNumber,
4
- } from './common';
5
-
6
- export enum SparkVersions {
7
- SparkV1 = 'v1default',
8
- }
9
-
10
- export interface SparkMarketData {
11
- chainIds: NetworkNumber[],
12
- label: string,
13
- shortLabel: string,
14
- url: string,
15
- value: SparkVersions,
16
- assets: readonly string[],
17
- provider: '' | 'SparkPoolAddressesProvider',
18
- providerAddress: string,
19
- lendingPool: 'SparkLendingPool',
20
- lendingPoolAddress: string,
21
- protocolData: '' | 'SparkProtocolDataProvider',
22
- protocolDataAddress: string
23
- subVersionLabel?: string
24
- // icon: Function,
25
- protocolName: string,
26
- disabled?: boolean,
27
- }
28
-
29
- export interface SparkAssetData extends MMAssetData {
30
- totalBorrowVar: string,
31
- sortIndex?: number,
32
- usageAsCollateralEnabled: boolean,
33
- isIsolated: boolean,
34
- eModeCategory: number,
35
- eModeCategoryData: EModeCategoryData,
36
- liquidationRatio: string,
37
- }
38
-
39
- export interface SparkAssetsData {
40
- [token: string]: SparkAssetData,
41
- }
42
-
43
- export type SparkMarketsData = { assetsData: SparkAssetsData };
44
-
45
- export interface SparkUsedAsset extends MMUsedAsset {
46
- stableBorrowRate: string,
47
- borrowedStable: string,
48
- borrowedVariable: string,
49
- borrowedUsdStable: string,
50
- borrowedUsdVariable: string,
51
- stableLimit: string,
52
- variableLimit: string,
53
- limit: string,
54
- eModeCategory: number,
55
- }
56
-
57
- export interface SparkUsedAssets {
58
- [token: string]: SparkUsedAsset,
59
- }
60
-
61
- export interface SparkHelperCommon {
62
- usedAssets: SparkUsedAssets,
63
- eModeCategory: number,
64
- eModeCategories?: object,
65
- assetsData: SparkAssetsData,
66
- selectedMarket?: SparkMarketData,
67
- network?: NetworkNumber,
68
- }
69
-
70
- export interface SparkAggregatedPositionData {
71
- suppliedUsd: string,
72
- suppliedCollateralUsd: string,
73
- borrowedUsd: string,
74
- borrowLimitUsd: string,
75
- liquidationLimitUsd: string,
76
- leftToBorrowUsd: string,
77
- ratio: string,
78
- collRatio: string,
79
- netApy: string,
80
- incentiveUsd: string,
81
- totalInterestUsd: string,
82
- liqRatio: string,
83
- liqPercent: string,
84
- leveragedType: string,
85
- leveragedAsset?: string,
86
- leveragedLsdAssetRatio?: string,
87
- liquidationPrice?: string,
88
- }
89
-
90
- export interface SparkPositionData extends MMPositionData {
91
- ratio: string,
92
- minRatio: string,
93
- collRatio: string,
94
- borrowedUsd: string,
95
- borrowLimitUsd: string,
96
- suppliedCollateralUsd: string,
97
- incentiveUsd: string,
98
- totalInterestUsd: string,
99
- isSubscribedToAutomation?: boolean,
100
- automationResubscribeRequired?: boolean,
101
- totalSupplied: string,
102
- usedAssets: SparkUsedAssets,
103
- eModeCategory: number,
104
- isInIsolationMode: boolean,
105
- isInSiloedMode: boolean,
106
- eModeCategories: { [key: number]: EModeCategoryDataMapping },
1
+ import { EModeCategoryData, EModeCategoryDataMapping } from './aave';
2
+ import {
3
+ MMAssetData, MMPositionData, MMUsedAsset, NetworkNumber,
4
+ } from './common';
5
+
6
+ export enum SparkVersions {
7
+ SparkV1 = 'v1default',
8
+ }
9
+
10
+ export interface SparkMarketData {
11
+ chainIds: NetworkNumber[],
12
+ label: string,
13
+ shortLabel: string,
14
+ url: string,
15
+ value: SparkVersions,
16
+ assets: readonly string[],
17
+ provider: '' | 'SparkPoolAddressesProvider',
18
+ providerAddress: string,
19
+ lendingPool: 'SparkLendingPool',
20
+ lendingPoolAddress: string,
21
+ protocolData: '' | 'SparkProtocolDataProvider',
22
+ protocolDataAddress: string
23
+ subVersionLabel?: string
24
+ // icon: Function,
25
+ protocolName: string,
26
+ disabled?: boolean,
27
+ }
28
+
29
+ export interface SparkAssetData extends MMAssetData {
30
+ totalBorrowVar: string,
31
+ sortIndex?: number,
32
+ usageAsCollateralEnabled: boolean,
33
+ isIsolated: boolean,
34
+ eModeCategory: number,
35
+ eModeCategoryData: EModeCategoryData,
36
+ liquidationRatio: string,
37
+ }
38
+
39
+ export interface SparkAssetsData {
40
+ [token: string]: SparkAssetData,
41
+ }
42
+
43
+ export type SparkMarketsData = { assetsData: SparkAssetsData };
44
+
45
+ export interface SparkUsedAsset extends MMUsedAsset {
46
+ stableBorrowRate: string,
47
+ borrowedStable: string,
48
+ borrowedVariable: string,
49
+ borrowedUsdStable: string,
50
+ borrowedUsdVariable: string,
51
+ stableLimit: string,
52
+ variableLimit: string,
53
+ limit: string,
54
+ eModeCategory: number,
55
+ }
56
+
57
+ export interface SparkUsedAssets {
58
+ [token: string]: SparkUsedAsset,
59
+ }
60
+
61
+ export interface SparkHelperCommon {
62
+ usedAssets: SparkUsedAssets,
63
+ eModeCategory: number,
64
+ eModeCategories?: object,
65
+ assetsData: SparkAssetsData,
66
+ selectedMarket?: SparkMarketData,
67
+ network?: NetworkNumber,
68
+ }
69
+
70
+ export interface SparkAggregatedPositionData {
71
+ suppliedUsd: string,
72
+ suppliedCollateralUsd: string,
73
+ borrowedUsd: string,
74
+ borrowLimitUsd: string,
75
+ liquidationLimitUsd: string,
76
+ leftToBorrowUsd: string,
77
+ ratio: string,
78
+ collRatio: string,
79
+ netApy: string,
80
+ incentiveUsd: string,
81
+ totalInterestUsd: string,
82
+ liqRatio: string,
83
+ liqPercent: string,
84
+ leveragedType: string,
85
+ leveragedAsset?: string,
86
+ leveragedLsdAssetRatio?: string,
87
+ liquidationPrice?: string,
88
+ }
89
+
90
+ export interface SparkPositionData extends MMPositionData {
91
+ ratio: string,
92
+ minRatio: string,
93
+ collRatio: string,
94
+ borrowedUsd: string,
95
+ borrowLimitUsd: string,
96
+ suppliedCollateralUsd: string,
97
+ incentiveUsd: string,
98
+ totalInterestUsd: string,
99
+ isSubscribedToAutomation?: boolean,
100
+ automationResubscribeRequired?: boolean,
101
+ totalSupplied: string,
102
+ usedAssets: SparkUsedAssets,
103
+ eModeCategory: number,
104
+ isInIsolationMode: boolean,
105
+ isInSiloedMode: boolean,
106
+ eModeCategories: { [key: number]: EModeCategoryDataMapping },
107
107
  }
package/yarn-error.log DELETED
@@ -1,64 +0,0 @@
1
- Arguments:
2
- /Users/stefan/.nvm/versions/node/v14.19.0/bin/node /usr/local/Cellar/yarn/1.22.19/libexec/bin/yarn.js
3
-
4
- PATH:
5
- /Users/stefan/.nvm/versions/node/v14.19.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/go/bin:/Users/stefan/WebstormProjects/defisaver-positions-sdk/node_modules/.bin:/usr/local/go
6
-
7
- Yarn version:
8
- 1.22.19
9
-
10
- Node version:
11
- 14.19.0
12
-
13
- Platform:
14
- darwin x64
15
-
16
- Trace:
17
- Error: incorrect data check
18
- at Zlib.zlibOnError [as onerror] (zlib.js:187:17)
19
-
20
- npm manifest:
21
- {
22
- "name": "defisaver-positions-sdk",
23
- "version": "0.0.1",
24
- "description": "",
25
- "main": "./cjs/index.js",
26
- "module": "./esm/src/index.js",
27
- "types": "./esm/src/index.d.ts",
28
- "scripts": {
29
- "build:esm": "rm -rf esm && tsc -p tsconfig.json",
30
- "build:cjs": "rm -rf cjs && tsc -p tsconfig.cjs.json",
31
- "build": "npm run build:cjs && npm run build:esm",
32
- "dev": "tsc -p tsconfig.cjs.json --watch",
33
- "lint": "eslint src/ --fix",
34
- "generate-contracts": "node scripts/generateContracts.js",
35
- "test": "mocha tests/*",
36
- "build-test": "npm run build && mocha tests/*"
37
- },
38
- "keywords": [],
39
- "author": "",
40
- "license": "ISC",
41
- "dependencies": {
42
- "@defisaver/tokens": "^1.4.56",
43
- "decimal.js": "^10.4.3"
44
- },
45
- "devDependencies": {
46
- "@defisaver/eslint-config": "^1.0.1",
47
- "chai": "^4.3.8",
48
- "dotenv": "^16.3.1",
49
- "eslint": "^8.49.0",
50
- "mocha": "^10.2.0",
51
- "typechain": "^8.3.1",
52
- "typechain-target-web3-v1-3mihai3": "^6.0.2",
53
- "typescript": "^5.2.2"
54
- },
55
- "peerDependencies": {
56
- "web3": "^1.10.2"
57
- }
58
- }
59
-
60
- yarn manifest:
61
- No manifest
62
-
63
- Lockfile:
64
- No lockfile