@defisaver/positions-sdk 1.0.11-fluid-dev12 → 1.0.11-fluid-dev13

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 (100) hide show
  1. package/.mocharc.json +4 -4
  2. package/.nvmrc +1 -1
  3. package/README.md +69 -69
  4. package/cjs/config/contracts.d.ts +113 -53
  5. package/cjs/config/contracts.js +10 -0
  6. package/cjs/contracts.d.ts +1 -0
  7. package/cjs/contracts.js +2 -1
  8. package/cjs/fluid/index.js +27 -0
  9. package/cjs/helpers/morphoBlueHelpers/index.js +66 -66
  10. package/cjs/markets/fluid/index.d.ts +0 -2
  11. package/cjs/markets/fluid/index.js +26 -24
  12. package/cjs/services/priceService.d.ts +2 -0
  13. package/cjs/services/priceService.js +13 -1
  14. package/cjs/types/contracts/generated/BTCPriceFeed.d.ts +135 -0
  15. package/cjs/types/contracts/generated/BTCPriceFeed.js +5 -0
  16. package/cjs/types/contracts/generated/index.d.ts +1 -0
  17. package/esm/config/contracts.d.ts +113 -53
  18. package/esm/config/contracts.js +10 -0
  19. package/esm/contracts.d.ts +1 -0
  20. package/esm/contracts.js +1 -0
  21. package/esm/fluid/index.js +28 -1
  22. package/esm/helpers/morphoBlueHelpers/index.js +66 -66
  23. package/esm/markets/fluid/index.d.ts +0 -2
  24. package/esm/markets/fluid/index.js +24 -21
  25. package/esm/services/priceService.d.ts +2 -0
  26. package/esm/services/priceService.js +11 -1
  27. package/esm/types/contracts/generated/BTCPriceFeed.d.ts +135 -0
  28. package/esm/types/contracts/generated/BTCPriceFeed.js +4 -0
  29. package/esm/types/contracts/generated/index.d.ts +1 -0
  30. package/package.json +54 -54
  31. package/src/aaveV2/index.ts +227 -227
  32. package/src/aaveV3/index.ts +624 -624
  33. package/src/assets/index.ts +60 -60
  34. package/src/chickenBonds/index.ts +123 -123
  35. package/src/compoundV2/index.ts +220 -220
  36. package/src/compoundV3/index.ts +291 -291
  37. package/src/config/contracts.js +1165 -1155
  38. package/src/constants/index.ts +6 -6
  39. package/src/contracts.ts +136 -135
  40. package/src/curveUsd/index.ts +239 -239
  41. package/src/eulerV2/index.ts +303 -303
  42. package/src/exchange/index.ts +17 -17
  43. package/src/fluid/index.ts +1320 -1289
  44. package/src/helpers/aaveHelpers/index.ts +203 -203
  45. package/src/helpers/chickenBondsHelpers/index.ts +23 -23
  46. package/src/helpers/compoundHelpers/index.ts +248 -248
  47. package/src/helpers/curveUsdHelpers/index.ts +40 -40
  48. package/src/helpers/eulerHelpers/index.ts +234 -234
  49. package/src/helpers/fluidHelpers/index.ts +325 -325
  50. package/src/helpers/index.ts +11 -11
  51. package/src/helpers/liquityV2Helpers/index.ts +80 -80
  52. package/src/helpers/llamaLendHelpers/index.ts +53 -53
  53. package/src/helpers/makerHelpers/index.ts +94 -94
  54. package/src/helpers/morphoBlueHelpers/index.ts +367 -367
  55. package/src/helpers/sparkHelpers/index.ts +154 -154
  56. package/src/index.ts +52 -52
  57. package/src/liquity/index.ts +116 -116
  58. package/src/liquityV2/index.ts +295 -295
  59. package/src/llamaLend/index.ts +275 -275
  60. package/src/maker/index.ts +117 -117
  61. package/src/markets/aave/index.ts +152 -152
  62. package/src/markets/aave/marketAssets.ts +46 -46
  63. package/src/markets/compound/index.ts +213 -213
  64. package/src/markets/compound/marketsAssets.ts +82 -82
  65. package/src/markets/curveUsd/index.ts +69 -69
  66. package/src/markets/euler/index.ts +26 -26
  67. package/src/markets/fluid/index.ts +2456 -2454
  68. package/src/markets/index.ts +27 -27
  69. package/src/markets/liquityV2/index.ts +54 -54
  70. package/src/markets/llamaLend/contractAddresses.ts +141 -141
  71. package/src/markets/llamaLend/index.ts +235 -235
  72. package/src/markets/morphoBlue/index.ts +895 -895
  73. package/src/markets/spark/index.ts +29 -29
  74. package/src/markets/spark/marketAssets.ts +10 -10
  75. package/src/moneymarket/moneymarketCommonService.ts +80 -80
  76. package/src/morphoAaveV2/index.ts +256 -256
  77. package/src/morphoAaveV3/index.ts +630 -630
  78. package/src/morphoBlue/index.ts +202 -202
  79. package/src/multicall/index.ts +33 -33
  80. package/src/services/priceService.ts +143 -130
  81. package/src/services/utils.ts +59 -59
  82. package/src/setup.ts +8 -8
  83. package/src/spark/index.ts +460 -460
  84. package/src/staking/staking.ts +217 -217
  85. package/src/types/aave.ts +275 -275
  86. package/src/types/chickenBonds.ts +45 -45
  87. package/src/types/common.ts +84 -84
  88. package/src/types/compound.ts +133 -133
  89. package/src/types/contracts/generated/BTCPriceFeed.ts +202 -0
  90. package/src/types/contracts/generated/index.ts +1 -0
  91. package/src/types/curveUsd.ts +119 -119
  92. package/src/types/euler.ts +173 -173
  93. package/src/types/fluid.ts +330 -330
  94. package/src/types/index.ts +11 -11
  95. package/src/types/liquity.ts +30 -30
  96. package/src/types/liquityV2.ts +119 -119
  97. package/src/types/llamaLend.ts +155 -155
  98. package/src/types/maker.ts +50 -50
  99. package/src/types/morphoBlue.ts +194 -194
  100. package/src/types/spark.ts +135 -135
@@ -107,73 +107,73 @@ export const getApyAfterValuesEstimation = (selectedMarket, actions, web3, netwo
107
107
  return { borrowRate, supplyRate };
108
108
  });
109
109
  const API_URL = 'https://blue-api.morpho.org/graphql';
110
- const MARKET_QUERY = `
111
- query MarketByUniqueKey($uniqueKey: String!, $chainId: Int!) {
112
- marketByUniqueKey(uniqueKey: $uniqueKey, chainId: $chainId) {
113
- reallocatableLiquidityAssets
114
- targetBorrowUtilization
115
- loanAsset {
116
- address
117
- decimals
118
- priceUsd
119
- }
120
- state {
121
- liquidityAssets
122
- borrowAssets
123
- supplyAssets
124
- }
125
- publicAllocatorSharedLiquidity {
126
- assets
127
- vault {
128
- address
129
- name
130
- }
131
- allocationMarket {
132
- uniqueKey
133
- loanAsset {
134
- address
135
- }
136
- collateralAsset {
137
- address
138
- }
139
- irmAddress
140
- oracle {
141
- address
142
- }
143
- lltv
144
- }
145
- }
146
- loanAsset {
147
- address
148
- }
149
- collateralAsset {
150
- address
151
- }
152
- oracle {
153
- address
154
- }
155
- irmAddress
156
- lltv
157
- }
158
- }
110
+ const MARKET_QUERY = `
111
+ query MarketByUniqueKey($uniqueKey: String!, $chainId: Int!) {
112
+ marketByUniqueKey(uniqueKey: $uniqueKey, chainId: $chainId) {
113
+ reallocatableLiquidityAssets
114
+ targetBorrowUtilization
115
+ loanAsset {
116
+ address
117
+ decimals
118
+ priceUsd
119
+ }
120
+ state {
121
+ liquidityAssets
122
+ borrowAssets
123
+ supplyAssets
124
+ }
125
+ publicAllocatorSharedLiquidity {
126
+ assets
127
+ vault {
128
+ address
129
+ name
130
+ }
131
+ allocationMarket {
132
+ uniqueKey
133
+ loanAsset {
134
+ address
135
+ }
136
+ collateralAsset {
137
+ address
138
+ }
139
+ irmAddress
140
+ oracle {
141
+ address
142
+ }
143
+ lltv
144
+ }
145
+ }
146
+ loanAsset {
147
+ address
148
+ }
149
+ collateralAsset {
150
+ address
151
+ }
152
+ oracle {
153
+ address
154
+ }
155
+ irmAddress
156
+ lltv
157
+ }
158
+ }
159
159
  `;
160
- const REWARDS_QUERY = `
161
- query MarketByUniqueKey($uniqueKey: String!, $chainId: Int!) {
162
- marketByUniqueKey(uniqueKey: $uniqueKey, chainId: $chainId) {
163
- uniqueKey
164
- state {
165
- rewards {
166
- amountPerSuppliedToken
167
- supplyApr
168
- amountPerBorrowedToken
169
- borrowApr
170
- asset {
171
- address
172
- }
173
- }
174
- }
175
- }
176
- }
160
+ const REWARDS_QUERY = `
161
+ query MarketByUniqueKey($uniqueKey: String!, $chainId: Int!) {
162
+ marketByUniqueKey(uniqueKey: $uniqueKey, chainId: $chainId) {
163
+ uniqueKey
164
+ state {
165
+ rewards {
166
+ amountPerSuppliedToken
167
+ supplyApr
168
+ amountPerBorrowedToken
169
+ borrowApr
170
+ asset {
171
+ address
172
+ }
173
+ }
174
+ }
175
+ }
176
+ }
177
177
  `;
178
178
  /**
179
179
  * Get reallocatable liquidity to a given market and target borrow utilization
@@ -95,7 +95,6 @@ export declare const FLUID_ETH_USDC_USDT_23_ARB: (networkId?: NetworkNumber) =>
95
95
  export declare const FLUID_WSTETH_USDC_USDT_24_ARB: (networkId?: NetworkNumber) => FluidMarketInfo;
96
96
  export declare const FLUID_WEETH_USDC_USDT_25_ARB: (networkId?: NetworkNumber) => FluidMarketInfo;
97
97
  export declare const FLUID_WBTC_USDC_USDT_26_ARB: (networkId?: NetworkNumber) => FluidMarketInfo;
98
- export declare const FLUID_SUSDS_USDC_USDT_30_ARB: (networkId?: NetworkNumber) => FluidMarketInfo;
99
98
  export declare const FLUID_ETH_USDC_1_BASE: (networkId?: NetworkNumber) => FluidMarketInfo;
100
99
  export declare const FLUID_WSTETH_USDC_2_BASE: (networkId?: NetworkNumber) => FluidMarketInfo;
101
100
  export declare const FLUID_WSTETH_ETH_3_BASE: (networkId?: NetworkNumber) => FluidMarketInfo;
@@ -213,7 +212,6 @@ export declare const FluidMarkets: (networkId: NetworkNumber) => {
213
212
  FLUID_WSTETH_USDC_USDT_24_ARB: FluidMarketInfo;
214
213
  FLUID_WEETH_USDC_USDT_25_ARB: FluidMarketInfo;
215
214
  FLUID_WBTC_USDC_USDT_26_ARB: FluidMarketInfo;
216
- FLUID_SUSDS_USDC_USDT_30_ARB: FluidMarketInfo;
217
215
  FLUID_ETH_USDC_1_BASE: FluidMarketInfo;
218
216
  FLUID_WSTETH_USDC_2_BASE: FluidMarketInfo;
219
217
  FLUID_WSTETH_ETH_3_BASE: FluidMarketInfo;
@@ -1759,25 +1759,28 @@ export const FLUID_WBTC_USDC_USDT_26_ARB = (networkId = NetworkNumber.Eth) => ({
1759
1759
  debtAsset0: 'USDC',
1760
1760
  debtAsset1: 'USDT',
1761
1761
  });
1762
- export const FLUID_SUSDS_USDC_USDT_30_ARB = (networkId = NetworkNumber.Eth) => ({
1763
- stableBased: true,
1764
- btcBased: false,
1765
- wstETHBased: false,
1766
- ethBased: false,
1767
- type: FluidVaultType.T3,
1768
- id: 30,
1769
- chainIds: [NetworkNumber.Arb],
1770
- label: '#30 (sUSDS / USDC-USDT)',
1771
- shortLabel: 'sUSDS/USDC-USDT',
1772
- value: FluidArbitrumVersion.FLUID_SUSDS_USDC_USDT_30_ARB,
1773
- url: 'susds_usdc_usdt_30_arb',
1774
- marketAddress: '0xE6b5D1CdC4935295c84772C4700932b4BFC93274',
1775
- hasSmartCollateral: false,
1776
- hasSmartDebt: true,
1777
- collateralAsset0: 'sUSDS',
1778
- debtAsset0: 'USDC',
1779
- debtAsset1: 'USDT',
1780
- });
1762
+ // TODO: This issue is due to sUSDS price fetching via multicall on arbi fails and it's not handled correctly
1763
+ /*
1764
+ export const FLUID_SUSDS_USDC_USDT_30_ARB = (networkId: NetworkNumber = NetworkNumber.Eth): FluidMarketInfo => ({
1765
+ stableBased: true,
1766
+ btcBased: false,
1767
+ wstETHBased: false,
1768
+ ethBased: false,
1769
+ type: FluidVaultType.T3,
1770
+ id: 30,
1771
+ chainIds: [NetworkNumber.Arb],
1772
+ label: '#30 (sUSDS / USDC-USDT)',
1773
+ shortLabel: 'sUSDS/USDC-USDT',
1774
+ value: FluidArbitrumVersion.FLUID_SUSDS_USDC_USDT_30_ARB,
1775
+ url: 'susds_usdc_usdt_30_arb',
1776
+ marketAddress: '0xE6b5D1CdC4935295c84772C4700932b4BFC93274',
1777
+ hasSmartCollateral: false,
1778
+ hasSmartDebt: true,
1779
+ collateralAsset0: 'sUSDS',
1780
+ debtAsset0: 'USDC',
1781
+ debtAsset1: 'USDT',
1782
+ });
1783
+ */
1781
1784
  export const FLUID_ETH_USDC_1_BASE = (networkId = NetworkNumber.Eth) => ({
1782
1785
  stableBased: true,
1783
1786
  btcBased: false,
@@ -2082,7 +2085,7 @@ export const FLUID_ETH_SUSDS_17_BASE = (networkId = NetworkNumber.Eth) => ({
2082
2085
  hasSmartCollateral: false,
2083
2086
  hasSmartDebt: false,
2084
2087
  collateralAsset0: 'ETH',
2085
- debtAsset0: 'sSUDS',
2088
+ debtAsset0: 'sUSDS',
2086
2089
  });
2087
2090
  export const FLUID_WSTETH_SUSDS_18_BASE = (networkId = NetworkNumber.Eth) => ({
2088
2091
  stableBased: true,
@@ -2253,7 +2256,7 @@ export const FluidMarkets = (networkId) => ({
2253
2256
  [FluidArbitrumVersion.FLUID_WSTETH_USDC_USDT_24_ARB]: FLUID_WSTETH_USDC_USDT_24_ARB(networkId),
2254
2257
  [FluidArbitrumVersion.FLUID_WEETH_USDC_USDT_25_ARB]: FLUID_WEETH_USDC_USDT_25_ARB(networkId),
2255
2258
  [FluidArbitrumVersion.FLUID_WBTC_USDC_USDT_26_ARB]: FLUID_WBTC_USDC_USDT_26_ARB(networkId),
2256
- [FluidArbitrumVersion.FLUID_SUSDS_USDC_USDT_30_ARB]: FLUID_SUSDS_USDC_USDT_30_ARB(networkId),
2259
+ // [FluidArbitrumVersion.FLUID_SUSDS_USDC_USDT_30_ARB]: FLUID_SUSDS_USDC_USDT_30_ARB(networkId),
2257
2260
  // base
2258
2261
  [FluidBaseVersions.FLUID_ETH_USDC_1_BASE]: FLUID_ETH_USDC_1_BASE(networkId),
2259
2262
  [FluidBaseVersions.FLUID_WSTETH_USDC_2_BASE]: FLUID_WSTETH_USDC_2_BASE(networkId),
@@ -28,4 +28,6 @@ export declare const parseWeETHPriceCalls: (_ethPrice: string, weETHrate: {
28
28
  weETHRate: string;
29
29
  };
30
30
  export declare const getWstETHPriceFluid: (web3: Web3, network: NetworkNumber) => Promise<string>;
31
+ export declare const getBTCPriceForFluid: (web3: Web3, network: NetworkNumber) => Promise<string>;
32
+ export declare const getEthPriceForFluid: (web3: Web3, network: NetworkNumber) => Promise<string>;
31
33
  export declare const getChainlinkAssetAddress: (symbol: string, network: NetworkNumber) => string;
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  import Dec from 'decimal.js';
11
11
  import { getAssetInfo } from '@defisaver/tokens';
12
- import { COMPPriceFeedContract, ETHPriceFeedContract, USDCPriceFeedContract, WeETHPriceFeedContract, WstETHPriceFeedContract, } from '../contracts';
12
+ import { COMPPriceFeedContract, ETHPriceFeedContract, BTCPriceFeedContract, USDCPriceFeedContract, WeETHPriceFeedContract, WstETHPriceFeedContract, } from '../contracts';
13
13
  import { NetworkNumber } from '../types/common';
14
14
  import { multicall } from '../multicall';
15
15
  import { getEthAmountForDecimals } from './utils';
@@ -109,6 +109,16 @@ export const getWstETHPriceFluid = (web3, network) => __awaiter(void 0, void 0,
109
109
  const { ethPrice, wstETHRate } = parseWstETHPriceCalls(multicallRes[0][0], multicallRes[1], multicallRes[2][0]);
110
110
  return new Dec(ethPrice).mul(wstETHRate).toString();
111
111
  });
112
+ export const getBTCPriceForFluid = (web3, network) => __awaiter(void 0, void 0, void 0, function* () {
113
+ const contract = BTCPriceFeedContract(web3, network);
114
+ const price = yield contract.methods.latestAnswer().call();
115
+ return new Dec(price).div(1e8).toString();
116
+ });
117
+ export const getEthPriceForFluid = (web3, network) => __awaiter(void 0, void 0, void 0, function* () {
118
+ const contract = ETHPriceFeedContract(web3, network);
119
+ const price = yield contract.methods.latestAnswer().call();
120
+ return new Dec(price).div(1e8).toString();
121
+ });
112
122
  // chainlink price feed available only on mainnet
113
123
  export const getChainlinkAssetAddress = (symbol, network) => {
114
124
  // Chainlink only has BTC/USD feed so we use that for BTC derivatives
@@ -0,0 +1,135 @@
1
+ /// <reference types="node" />
2
+ import type BN from "bn.js";
3
+ import type { ContractOptions } from "web3-eth-contract";
4
+ import type { EventLog } from "web3-core";
5
+ import type { EventEmitter } from "events";
6
+ import type { Callback, NonPayableTransactionObject, BlockType, ContractEventLog, BaseContract } from "./types";
7
+ export interface EventOptions {
8
+ filter?: object;
9
+ fromBlock?: BlockType;
10
+ topics?: string[];
11
+ }
12
+ export type AnswerUpdated = ContractEventLog<{
13
+ current: string;
14
+ roundId: string;
15
+ updatedAt: string;
16
+ 0: string;
17
+ 1: string;
18
+ 2: string;
19
+ }>;
20
+ export type NewRound = ContractEventLog<{
21
+ roundId: string;
22
+ startedBy: string;
23
+ startedAt: string;
24
+ 0: string;
25
+ 1: string;
26
+ 2: string;
27
+ }>;
28
+ export type OwnershipTransferRequested = ContractEventLog<{
29
+ from: string;
30
+ to: string;
31
+ 0: string;
32
+ 1: string;
33
+ }>;
34
+ export type OwnershipTransferred = ContractEventLog<{
35
+ from: string;
36
+ to: string;
37
+ 0: string;
38
+ 1: string;
39
+ }>;
40
+ export interface BTCPriceFeed extends BaseContract {
41
+ constructor(jsonInterface: any[], address?: string, options?: ContractOptions): BTCPriceFeed;
42
+ clone(): BTCPriceFeed;
43
+ methods: {
44
+ acceptOwnership(): NonPayableTransactionObject<void>;
45
+ accessController(): NonPayableTransactionObject<string>;
46
+ aggregator(): NonPayableTransactionObject<string>;
47
+ confirmAggregator(_aggregator: string): NonPayableTransactionObject<void>;
48
+ decimals(): NonPayableTransactionObject<string>;
49
+ description(): NonPayableTransactionObject<string>;
50
+ getAnswer(_roundId: number | string | BN): NonPayableTransactionObject<string>;
51
+ getRoundData(_roundId: number | string | BN): NonPayableTransactionObject<[
52
+ string,
53
+ string,
54
+ string,
55
+ string,
56
+ string
57
+ ] & {
58
+ roundId: string;
59
+ answer: string;
60
+ startedAt: string;
61
+ updatedAt: string;
62
+ answeredInRound: string;
63
+ }>;
64
+ getTimestamp(_roundId: number | string | BN): NonPayableTransactionObject<string>;
65
+ latestAnswer(): NonPayableTransactionObject<string>;
66
+ latestRound(): NonPayableTransactionObject<string>;
67
+ latestRoundData(): NonPayableTransactionObject<[
68
+ string,
69
+ string,
70
+ string,
71
+ string,
72
+ string
73
+ ] & {
74
+ roundId: string;
75
+ answer: string;
76
+ startedAt: string;
77
+ updatedAt: string;
78
+ answeredInRound: string;
79
+ }>;
80
+ latestTimestamp(): NonPayableTransactionObject<string>;
81
+ owner(): NonPayableTransactionObject<string>;
82
+ phaseAggregators(arg0: number | string | BN): NonPayableTransactionObject<string>;
83
+ phaseId(): NonPayableTransactionObject<string>;
84
+ proposeAggregator(_aggregator: string): NonPayableTransactionObject<void>;
85
+ proposedAggregator(): NonPayableTransactionObject<string>;
86
+ proposedGetRoundData(_roundId: number | string | BN): NonPayableTransactionObject<[
87
+ string,
88
+ string,
89
+ string,
90
+ string,
91
+ string
92
+ ] & {
93
+ roundId: string;
94
+ answer: string;
95
+ startedAt: string;
96
+ updatedAt: string;
97
+ answeredInRound: string;
98
+ }>;
99
+ proposedLatestRoundData(): NonPayableTransactionObject<[
100
+ string,
101
+ string,
102
+ string,
103
+ string,
104
+ string
105
+ ] & {
106
+ roundId: string;
107
+ answer: string;
108
+ startedAt: string;
109
+ updatedAt: string;
110
+ answeredInRound: string;
111
+ }>;
112
+ setController(_accessController: string): NonPayableTransactionObject<void>;
113
+ transferOwnership(_to: string): NonPayableTransactionObject<void>;
114
+ version(): NonPayableTransactionObject<string>;
115
+ };
116
+ events: {
117
+ AnswerUpdated(cb?: Callback<AnswerUpdated>): EventEmitter;
118
+ AnswerUpdated(options?: EventOptions, cb?: Callback<AnswerUpdated>): EventEmitter;
119
+ NewRound(cb?: Callback<NewRound>): EventEmitter;
120
+ NewRound(options?: EventOptions, cb?: Callback<NewRound>): EventEmitter;
121
+ OwnershipTransferRequested(cb?: Callback<OwnershipTransferRequested>): EventEmitter;
122
+ OwnershipTransferRequested(options?: EventOptions, cb?: Callback<OwnershipTransferRequested>): EventEmitter;
123
+ OwnershipTransferred(cb?: Callback<OwnershipTransferred>): EventEmitter;
124
+ OwnershipTransferred(options?: EventOptions, cb?: Callback<OwnershipTransferred>): EventEmitter;
125
+ allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
126
+ };
127
+ once(event: "AnswerUpdated", cb: Callback<AnswerUpdated>): void;
128
+ once(event: "AnswerUpdated", options: EventOptions, cb: Callback<AnswerUpdated>): void;
129
+ once(event: "NewRound", cb: Callback<NewRound>): void;
130
+ once(event: "NewRound", options: EventOptions, cb: Callback<NewRound>): void;
131
+ once(event: "OwnershipTransferRequested", cb: Callback<OwnershipTransferRequested>): void;
132
+ once(event: "OwnershipTransferRequested", options: EventOptions, cb: Callback<OwnershipTransferRequested>): void;
133
+ once(event: "OwnershipTransferred", cb: Callback<OwnershipTransferred>): void;
134
+ once(event: "OwnershipTransferred", options: EventOptions, cb: Callback<OwnershipTransferred>): void;
135
+ }
@@ -0,0 +1,4 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export {};
@@ -12,6 +12,7 @@ export type { AaveV3LidoProtocolDataProvider } from "./AaveV3LidoProtocolDataPro
12
12
  export type { AaveV3PoolAddressesProvider } from "./AaveV3PoolAddressesProvider";
13
13
  export type { AaveV3ProtocolDataProvider } from "./AaveV3ProtocolDataProvider";
14
14
  export type { AaveV3View } from "./AaveV3View";
15
+ export type { BTCPriceFeed } from "./BTCPriceFeed";
15
16
  export type { BalanceScanner } from "./BalanceScanner";
16
17
  export type { COMPPriceFeed } from "./COMPPriceFeed";
17
18
  export type { CbEth } from "./CbEth";
package/package.json CHANGED
@@ -1,54 +1,54 @@
1
- {
2
- "name": "@defisaver/positions-sdk",
3
- "version": "1.0.11-fluid-dev12",
4
- "description": "",
5
- "main": "./cjs/index.js",
6
- "module": "./esm/index.js",
7
- "types": "./esm/index.d.ts",
8
- "scripts": {
9
- "build:esm": "rm -rf esm && tsc -p tsconfig.esm.json",
10
- "build:cjs": "rm -rf cjs && tsc -p tsconfig.cjs.json",
11
- "build": "npm run lint && npm run generate-contracts && npm run build:cjs && npm run build:esm",
12
- "dev": "npm run generate-contracts && tsc -p tsconfig.json --watch",
13
- "lint": "eslint src/ --fix",
14
- "lint-check": "eslint src/",
15
- "generate-contracts": "node scripts/generateContracts.js",
16
- "test": "mocha tests/*",
17
- "test-single": "mocha ./tests/$npm_config_name.ts",
18
- "test:debugger": "mocha --inspect-brk tests/*",
19
- "build-test": "npm run build && npm run test",
20
- "version-bump": "git commit -am \"Version bump to $(npm version patch | cut -c 2-)\""
21
- },
22
- "keywords": [],
23
- "author": "",
24
- "license": "ISC",
25
- "dependencies": {
26
- "@defisaver/tokens": "^1.6.2",
27
- "@ethersproject/bignumber": "^5.7.0",
28
- "@morpho-org/morpho-aave-v3-sdk": "^1.5.3",
29
- "@types/lodash": "^4.17.15",
30
- "@types/memoizee": "^0.4.12",
31
- "decimal.js": "^10.4.3",
32
- "lodash": "^4.17.21",
33
- "memoizee": "^0.4.17"
34
- },
35
- "devDependencies": {
36
- "@defisaver/eslint-config": "^1.0.1",
37
- "@types/chai": "^5.0.0",
38
- "@types/mocha": "^10.0.9",
39
- "@types/web3": "^1.0.20",
40
- "chai": "^4.3.8",
41
- "dotenv": "^16.3.1",
42
- "eslint": "^8.49.0",
43
- "eslint-plugin-import": "^2.31.0",
44
- "mocha": "^10.2.0",
45
- "nock": "^14.0.0",
46
- "ts-node": "^10.9.2",
47
- "typechain": "^8.3.1",
48
- "typechain-target-web3-v1-3mihai3": "^6.0.2",
49
- "typescript": "^5.2.2"
50
- },
51
- "peerDependencies": {
52
- "web3": "^1.10.2"
53
- }
54
- }
1
+ {
2
+ "name": "@defisaver/positions-sdk",
3
+ "version": "1.0.11-fluid-dev13",
4
+ "description": "",
5
+ "main": "./cjs/index.js",
6
+ "module": "./esm/index.js",
7
+ "types": "./esm/index.d.ts",
8
+ "scripts": {
9
+ "build:esm": "rm -rf esm && tsc -p tsconfig.esm.json",
10
+ "build:cjs": "rm -rf cjs && tsc -p tsconfig.cjs.json",
11
+ "build": "npm run lint && npm run generate-contracts && npm run build:cjs && npm run build:esm",
12
+ "dev": "npm run generate-contracts && tsc -p tsconfig.json --watch",
13
+ "lint": "eslint src/ --fix",
14
+ "lint-check": "eslint src/",
15
+ "generate-contracts": "node scripts/generateContracts.js",
16
+ "test": "mocha tests/*",
17
+ "test-single": "mocha ./tests/$npm_config_name.ts",
18
+ "test:debugger": "mocha --inspect-brk tests/*",
19
+ "build-test": "npm run build && npm run test",
20
+ "version-bump": "git commit -am \"Version bump to $(npm version patch | cut -c 2-)\""
21
+ },
22
+ "keywords": [],
23
+ "author": "",
24
+ "license": "ISC",
25
+ "dependencies": {
26
+ "@defisaver/tokens": "^1.6.6",
27
+ "@ethersproject/bignumber": "^5.7.0",
28
+ "@morpho-org/morpho-aave-v3-sdk": "^1.5.3",
29
+ "@types/lodash": "^4.17.15",
30
+ "@types/memoizee": "^0.4.12",
31
+ "decimal.js": "^10.4.3",
32
+ "lodash": "^4.17.21",
33
+ "memoizee": "^0.4.17"
34
+ },
35
+ "devDependencies": {
36
+ "@defisaver/eslint-config": "^1.0.1",
37
+ "@types/chai": "^5.0.0",
38
+ "@types/mocha": "^10.0.9",
39
+ "@types/web3": "^1.0.20",
40
+ "chai": "^4.3.8",
41
+ "dotenv": "^16.3.1",
42
+ "eslint": "^8.49.0",
43
+ "eslint-plugin-import": "^2.31.0",
44
+ "mocha": "^10.2.0",
45
+ "nock": "^14.0.0",
46
+ "ts-node": "^10.9.2",
47
+ "typechain": "^8.3.1",
48
+ "typechain-target-web3-v1-3mihai3": "^6.0.2",
49
+ "typescript": "^5.2.2"
50
+ },
51
+ "peerDependencies": {
52
+ "web3": "^1.10.2"
53
+ }
54
+ }