@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
@@ -1,84 +1,84 @@
1
- // General
2
- export type EthAddress = string;
3
- export type Blockish = number | 'latest';
4
- export type AssetSymbol = string;
5
- export type Amount = string | number;
6
-
7
- export enum NetworkNumber {
8
- Eth = 1,
9
- Opt = 10,
10
- Arb = 42161,
11
- Base = 8453,
12
- }
13
- export type Networkish = string | NetworkNumber;
14
-
15
- // Common
16
- export interface MMAssetData {
17
- symbol: string,
18
- supplyRate: string,
19
- borrowRate: string,
20
- price: string,
21
- collateralFactor: string,
22
- underlyingTokenAddress: string,
23
- marketLiquidity: string,
24
- utilization: string,
25
- borrowCap: string,
26
- totalSupply: string,
27
- canBeBorrowed: boolean,
28
- canBeSupplied: boolean,
29
- totalBorrow: string,
30
- incentiveBorrowApy?: string,
31
- incentiveBorrowToken?: string,
32
- incentiveSupplyApy?: string,
33
- incentiveSupplyToken?: string,
34
- borrowRateP2P?: string,
35
- supplyRateP2P?: string,
36
- }
37
-
38
- export interface MMAssetsData {
39
- [token: string]: MMAssetData,
40
- }
41
- export interface MMMarketData {
42
- assetsData: MMAssetData[],
43
- }
44
- export interface MMUsedAsset {
45
- symbol: string,
46
- supplied: string,
47
- suppliedUsd: string,
48
- isSupplied: boolean,
49
- borrowed: string,
50
- borrowedUsd: string,
51
- isBorrowed: boolean,
52
- debt?: string,
53
- supplyRate?: string,
54
- borrowRate?: string,
55
- discountedBorrowRate?: string,
56
- stableBorrowRate?: string,
57
- interestMode?: string,
58
- collateral?: boolean,
59
- }
60
- export interface MMUsedAssets {
61
- [token: string]: MMUsedAsset,
62
- }
63
- export interface MMUsedAssetWStableB extends MMUsedAsset {
64
- stableBorrowRate: string,
65
- borrowedStable: string,
66
- borrowedVariable: string,
67
- borrowedUsdStable: string,
68
- borrowedUsdVariable: string,
69
- interestMode: string,
70
- }
71
- export interface MMPositionData {
72
- usedAssets: any,
73
- netApy: string,
74
- lastUpdated: number,
75
- // ...
76
- }
77
-
78
- export type Balances = Record<AssetSymbol, Amount>;
79
- export interface PositionBalances {
80
- collateral?: Balances,
81
- debt?: Balances,
82
- selling?: Balances,
83
- deposited?: Balances,
84
- }
1
+ // General
2
+ export type EthAddress = string;
3
+ export type Blockish = number | 'latest';
4
+ export type AssetSymbol = string;
5
+ export type Amount = string | number;
6
+
7
+ export enum NetworkNumber {
8
+ Eth = 1,
9
+ Opt = 10,
10
+ Arb = 42161,
11
+ Base = 8453,
12
+ }
13
+ export type Networkish = string | NetworkNumber;
14
+
15
+ // Common
16
+ export interface MMAssetData {
17
+ symbol: string,
18
+ supplyRate: string,
19
+ borrowRate: string,
20
+ price: string,
21
+ collateralFactor: string,
22
+ underlyingTokenAddress: string,
23
+ marketLiquidity: string,
24
+ utilization: string,
25
+ borrowCap: string,
26
+ totalSupply: string,
27
+ canBeBorrowed: boolean,
28
+ canBeSupplied: boolean,
29
+ totalBorrow: string,
30
+ incentiveBorrowApy?: string,
31
+ incentiveBorrowToken?: string,
32
+ incentiveSupplyApy?: string,
33
+ incentiveSupplyToken?: string,
34
+ borrowRateP2P?: string,
35
+ supplyRateP2P?: string,
36
+ }
37
+
38
+ export interface MMAssetsData {
39
+ [token: string]: MMAssetData,
40
+ }
41
+ export interface MMMarketData {
42
+ assetsData: MMAssetData[],
43
+ }
44
+ export interface MMUsedAsset {
45
+ symbol: string,
46
+ supplied: string,
47
+ suppliedUsd: string,
48
+ isSupplied: boolean,
49
+ borrowed: string,
50
+ borrowedUsd: string,
51
+ isBorrowed: boolean,
52
+ debt?: string,
53
+ supplyRate?: string,
54
+ borrowRate?: string,
55
+ discountedBorrowRate?: string,
56
+ stableBorrowRate?: string,
57
+ interestMode?: string,
58
+ collateral?: boolean,
59
+ }
60
+ export interface MMUsedAssets {
61
+ [token: string]: MMUsedAsset,
62
+ }
63
+ export interface MMUsedAssetWStableB extends MMUsedAsset {
64
+ stableBorrowRate: string,
65
+ borrowedStable: string,
66
+ borrowedVariable: string,
67
+ borrowedUsdStable: string,
68
+ borrowedUsdVariable: string,
69
+ interestMode: string,
70
+ }
71
+ export interface MMPositionData {
72
+ usedAssets: any,
73
+ netApy: string,
74
+ lastUpdated: number,
75
+ // ...
76
+ }
77
+
78
+ export type Balances = Record<AssetSymbol, Amount>;
79
+ export interface PositionBalances {
80
+ collateral?: Balances,
81
+ debt?: Balances,
82
+ selling?: Balances,
83
+ deposited?: Balances,
84
+ }
@@ -1,134 +1,134 @@
1
- import {
2
- MMAssetData, MMPositionData, MMUsedAsset, NetworkNumber,
3
- } from './common';
4
-
5
- export enum CompoundVersions {
6
- 'CompoundV2' = 'v2',
7
- 'CompoundV3USDC' = 'v3-USDC',
8
- 'CompoundV3USDCe' = 'v3-USDC.e',
9
- 'CompoundV3ETH' = 'v3-ETH',
10
- 'CompoundV3USDbC' = 'v3-USDbC',
11
- 'CompoundV3USDT' = 'v3-USDT',
12
- 'CompoundV3USDS' = 'v3-USDS',
13
- 'CompoundV3wstETH' = 'v3-wstETH',
14
- }
15
-
16
- export interface CompoundBulkerOptions {
17
- supply: number | string,
18
- withdraw: number | string,
19
- }
20
-
21
- export interface CompoundMarketData {
22
- chainIds: NetworkNumber[],
23
- label: string,
24
- shortLabel: string,
25
- value: CompoundVersions,
26
- baseAsset: string,
27
- collAssets: readonly string[],
28
- baseMarket: string,
29
- baseMarketAddress: string,
30
- secondLabel: string,
31
- bulkerName: string,
32
- bulkerAddress: string,
33
- bulkerOptions: CompoundBulkerOptions,
34
- // icon: Function,
35
- }
36
-
37
- export interface CompoundUsedAsset extends MMUsedAsset {
38
- collateral: boolean,
39
- limit?: string,
40
- }
41
-
42
- export interface CompoundV2UsedAsset extends CompoundUsedAsset {
43
- }
44
- export interface CompoundV3UsedAsset extends CompoundUsedAsset {
45
- }
46
-
47
- export interface CompoundUsedAssets<T> {
48
- [token: string]: T,
49
- }
50
-
51
- export type CompoundV2UsedAssets = CompoundUsedAssets<CompoundV2UsedAsset>;
52
- export type CompoundV3UsedAssets = CompoundUsedAssets<CompoundV3UsedAsset>;
53
-
54
- export interface CompoundAssetData extends MMAssetData {
55
- supplyCapAlternative?: string,
56
- totalSupplyAlternative?: string,
57
- priceAlternative?: string,
58
- sortIndex?: number,
59
- }
60
-
61
- export interface CompoundV2AssetData extends CompoundAssetData {
62
- }
63
- export interface CompoundV3AssetData extends CompoundAssetData {
64
- borrowCollateralFactor: string,
65
- liquidateCollateralFactor: string,
66
- minDebt: string,
67
- liquidationRatio: string,
68
- supplyCap: string,
69
- priceInBaseAsset: string,
70
- }
71
-
72
- export interface CompoundAssetsData<T> {
73
- [token: string]: T
74
- }
75
- export type CompoundV2AssetsData = CompoundAssetsData<CompoundV2AssetData>;
76
- export type CompoundV3AssetsData = CompoundAssetsData<CompoundV3AssetData>;
77
-
78
- export type CompoundMarketsData<T> = { assetsData: T };
79
- export type CompoundV2MarketsData = CompoundMarketsData<CompoundV2AssetsData>;
80
- export type CompoundV3MarketsData = CompoundMarketsData<CompoundV3AssetsData>;
81
-
82
- export interface BaseAdditionalAssetData {
83
- totalBorrow: string,
84
- utilization: string,
85
- marketLiquidity: string,
86
- rewardSupplySpeed: string,
87
- rewardBorrowSpeed: string,
88
- minDebt: string,
89
- isBase: boolean,
90
- }
91
-
92
- export interface CompoundAggregatedPositionData {
93
- suppliedUsd: string,
94
- suppliedCollateralUsd: string,
95
- borrowedUsd: string,
96
- borrowLimitUsd: string,
97
- liquidationLimitUsd: string,
98
- leftToBorrowUsd: string,
99
- ratio: string,
100
- collRatio: string,
101
- netApy: string,
102
- incentiveUsd: string,
103
- totalInterestUsd: string,
104
- liqRatio: string,
105
- liqPercent: string,
106
- leveragedType: string,
107
- leveragedAsset?: string,
108
- leveragedLsdAssetRatio?: string,
109
- liquidationPrice?: string,
110
- minRatio: string,
111
- debtTooLow: boolean,
112
- minDebt: string,
113
- minCollRatio: string,
114
- collLiquidationRatio: string,
115
- }
116
-
117
- export interface CompoundPositionData extends MMPositionData {
118
- ratio: string,
119
- minRatio: string,
120
- borrowedUsd: string,
121
- borrowLimitUsd: string,
122
- incentiveUsd: string,
123
- totalInterestUsd: string,
124
- isSubscribedToAutomation?: boolean,
125
- automationResubscribeRequired?: boolean,
126
- }
127
-
128
- export interface CompoundV2PositionData extends CompoundPositionData {
129
- usedAssets: CompoundV2UsedAssets,
130
- }
131
-
132
- export interface CompoundV3PositionData extends CompoundPositionData {
133
- usedAssets: CompoundV3UsedAssets,
1
+ import {
2
+ MMAssetData, MMPositionData, MMUsedAsset, NetworkNumber,
3
+ } from './common';
4
+
5
+ export enum CompoundVersions {
6
+ 'CompoundV2' = 'v2',
7
+ 'CompoundV3USDC' = 'v3-USDC',
8
+ 'CompoundV3USDCe' = 'v3-USDC.e',
9
+ 'CompoundV3ETH' = 'v3-ETH',
10
+ 'CompoundV3USDbC' = 'v3-USDbC',
11
+ 'CompoundV3USDT' = 'v3-USDT',
12
+ 'CompoundV3USDS' = 'v3-USDS',
13
+ 'CompoundV3wstETH' = 'v3-wstETH',
14
+ }
15
+
16
+ export interface CompoundBulkerOptions {
17
+ supply: number | string,
18
+ withdraw: number | string,
19
+ }
20
+
21
+ export interface CompoundMarketData {
22
+ chainIds: NetworkNumber[],
23
+ label: string,
24
+ shortLabel: string,
25
+ value: CompoundVersions,
26
+ baseAsset: string,
27
+ collAssets: readonly string[],
28
+ baseMarket: string,
29
+ baseMarketAddress: string,
30
+ secondLabel: string,
31
+ bulkerName: string,
32
+ bulkerAddress: string,
33
+ bulkerOptions: CompoundBulkerOptions,
34
+ // icon: Function,
35
+ }
36
+
37
+ export interface CompoundUsedAsset extends MMUsedAsset {
38
+ collateral: boolean,
39
+ limit?: string,
40
+ }
41
+
42
+ export interface CompoundV2UsedAsset extends CompoundUsedAsset {
43
+ }
44
+ export interface CompoundV3UsedAsset extends CompoundUsedAsset {
45
+ }
46
+
47
+ export interface CompoundUsedAssets<T> {
48
+ [token: string]: T,
49
+ }
50
+
51
+ export type CompoundV2UsedAssets = CompoundUsedAssets<CompoundV2UsedAsset>;
52
+ export type CompoundV3UsedAssets = CompoundUsedAssets<CompoundV3UsedAsset>;
53
+
54
+ export interface CompoundAssetData extends MMAssetData {
55
+ supplyCapAlternative?: string,
56
+ totalSupplyAlternative?: string,
57
+ priceAlternative?: string,
58
+ sortIndex?: number,
59
+ }
60
+
61
+ export interface CompoundV2AssetData extends CompoundAssetData {
62
+ }
63
+ export interface CompoundV3AssetData extends CompoundAssetData {
64
+ borrowCollateralFactor: string,
65
+ liquidateCollateralFactor: string,
66
+ minDebt: string,
67
+ liquidationRatio: string,
68
+ supplyCap: string,
69
+ priceInBaseAsset: string,
70
+ }
71
+
72
+ export interface CompoundAssetsData<T> {
73
+ [token: string]: T
74
+ }
75
+ export type CompoundV2AssetsData = CompoundAssetsData<CompoundV2AssetData>;
76
+ export type CompoundV3AssetsData = CompoundAssetsData<CompoundV3AssetData>;
77
+
78
+ export type CompoundMarketsData<T> = { assetsData: T };
79
+ export type CompoundV2MarketsData = CompoundMarketsData<CompoundV2AssetsData>;
80
+ export type CompoundV3MarketsData = CompoundMarketsData<CompoundV3AssetsData>;
81
+
82
+ export interface BaseAdditionalAssetData {
83
+ totalBorrow: string,
84
+ utilization: string,
85
+ marketLiquidity: string,
86
+ rewardSupplySpeed: string,
87
+ rewardBorrowSpeed: string,
88
+ minDebt: string,
89
+ isBase: boolean,
90
+ }
91
+
92
+ export interface CompoundAggregatedPositionData {
93
+ suppliedUsd: string,
94
+ suppliedCollateralUsd: string,
95
+ borrowedUsd: string,
96
+ borrowLimitUsd: string,
97
+ liquidationLimitUsd: string,
98
+ leftToBorrowUsd: string,
99
+ ratio: string,
100
+ collRatio: string,
101
+ netApy: string,
102
+ incentiveUsd: string,
103
+ totalInterestUsd: string,
104
+ liqRatio: string,
105
+ liqPercent: string,
106
+ leveragedType: string,
107
+ leveragedAsset?: string,
108
+ leveragedLsdAssetRatio?: string,
109
+ liquidationPrice?: string,
110
+ minRatio: string,
111
+ debtTooLow: boolean,
112
+ minDebt: string,
113
+ minCollRatio: string,
114
+ collLiquidationRatio: string,
115
+ }
116
+
117
+ export interface CompoundPositionData extends MMPositionData {
118
+ ratio: string,
119
+ minRatio: string,
120
+ borrowedUsd: string,
121
+ borrowLimitUsd: string,
122
+ incentiveUsd: string,
123
+ totalInterestUsd: string,
124
+ isSubscribedToAutomation?: boolean,
125
+ automationResubscribeRequired?: boolean,
126
+ }
127
+
128
+ export interface CompoundV2PositionData extends CompoundPositionData {
129
+ usedAssets: CompoundV2UsedAssets,
130
+ }
131
+
132
+ export interface CompoundV3PositionData extends CompoundPositionData {
133
+ usedAssets: CompoundV3UsedAssets,
134
134
  }
@@ -0,0 +1,202 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type BN from "bn.js";
6
+ import type { ContractOptions } from "web3-eth-contract";
7
+ import type { EventLog } from "web3-core";
8
+ import type { EventEmitter } from "events";
9
+ import type {
10
+ Callback,
11
+ PayableTransactionObject,
12
+ NonPayableTransactionObject,
13
+ BlockType,
14
+ ContractEventLog,
15
+ BaseContract,
16
+ } from "./types";
17
+
18
+ export interface EventOptions {
19
+ filter?: object;
20
+ fromBlock?: BlockType;
21
+ topics?: string[];
22
+ }
23
+
24
+ export type AnswerUpdated = ContractEventLog<{
25
+ current: string;
26
+ roundId: string;
27
+ updatedAt: string;
28
+ 0: string;
29
+ 1: string;
30
+ 2: string;
31
+ }>;
32
+ export type NewRound = ContractEventLog<{
33
+ roundId: string;
34
+ startedBy: string;
35
+ startedAt: string;
36
+ 0: string;
37
+ 1: string;
38
+ 2: string;
39
+ }>;
40
+ export type OwnershipTransferRequested = ContractEventLog<{
41
+ from: string;
42
+ to: string;
43
+ 0: string;
44
+ 1: string;
45
+ }>;
46
+ export type OwnershipTransferred = ContractEventLog<{
47
+ from: string;
48
+ to: string;
49
+ 0: string;
50
+ 1: string;
51
+ }>;
52
+
53
+ export interface BTCPriceFeed extends BaseContract {
54
+ constructor(
55
+ jsonInterface: any[],
56
+ address?: string,
57
+ options?: ContractOptions
58
+ ): BTCPriceFeed;
59
+ clone(): BTCPriceFeed;
60
+ methods: {
61
+ acceptOwnership(): NonPayableTransactionObject<void>;
62
+
63
+ accessController(): NonPayableTransactionObject<string>;
64
+
65
+ aggregator(): NonPayableTransactionObject<string>;
66
+
67
+ confirmAggregator(_aggregator: string): NonPayableTransactionObject<void>;
68
+
69
+ decimals(): NonPayableTransactionObject<string>;
70
+
71
+ description(): NonPayableTransactionObject<string>;
72
+
73
+ getAnswer(
74
+ _roundId: number | string | BN
75
+ ): NonPayableTransactionObject<string>;
76
+
77
+ getRoundData(
78
+ _roundId: number | string | BN
79
+ ): NonPayableTransactionObject<
80
+ [string, string, string, string, string] & {
81
+ roundId: string;
82
+ answer: string;
83
+ startedAt: string;
84
+ updatedAt: string;
85
+ answeredInRound: string;
86
+ }
87
+ >;
88
+
89
+ getTimestamp(
90
+ _roundId: number | string | BN
91
+ ): NonPayableTransactionObject<string>;
92
+
93
+ latestAnswer(): NonPayableTransactionObject<string>;
94
+
95
+ latestRound(): NonPayableTransactionObject<string>;
96
+
97
+ latestRoundData(): NonPayableTransactionObject<
98
+ [string, string, string, string, string] & {
99
+ roundId: string;
100
+ answer: string;
101
+ startedAt: string;
102
+ updatedAt: string;
103
+ answeredInRound: string;
104
+ }
105
+ >;
106
+
107
+ latestTimestamp(): NonPayableTransactionObject<string>;
108
+
109
+ owner(): NonPayableTransactionObject<string>;
110
+
111
+ phaseAggregators(
112
+ arg0: number | string | BN
113
+ ): NonPayableTransactionObject<string>;
114
+
115
+ phaseId(): NonPayableTransactionObject<string>;
116
+
117
+ proposeAggregator(_aggregator: string): NonPayableTransactionObject<void>;
118
+
119
+ proposedAggregator(): NonPayableTransactionObject<string>;
120
+
121
+ proposedGetRoundData(
122
+ _roundId: number | string | BN
123
+ ): NonPayableTransactionObject<
124
+ [string, string, string, string, string] & {
125
+ roundId: string;
126
+ answer: string;
127
+ startedAt: string;
128
+ updatedAt: string;
129
+ answeredInRound: string;
130
+ }
131
+ >;
132
+
133
+ proposedLatestRoundData(): NonPayableTransactionObject<
134
+ [string, string, string, string, string] & {
135
+ roundId: string;
136
+ answer: string;
137
+ startedAt: string;
138
+ updatedAt: string;
139
+ answeredInRound: string;
140
+ }
141
+ >;
142
+
143
+ setController(_accessController: string): NonPayableTransactionObject<void>;
144
+
145
+ transferOwnership(_to: string): NonPayableTransactionObject<void>;
146
+
147
+ version(): NonPayableTransactionObject<string>;
148
+ };
149
+ events: {
150
+ AnswerUpdated(cb?: Callback<AnswerUpdated>): EventEmitter;
151
+ AnswerUpdated(
152
+ options?: EventOptions,
153
+ cb?: Callback<AnswerUpdated>
154
+ ): EventEmitter;
155
+
156
+ NewRound(cb?: Callback<NewRound>): EventEmitter;
157
+ NewRound(options?: EventOptions, cb?: Callback<NewRound>): EventEmitter;
158
+
159
+ OwnershipTransferRequested(
160
+ cb?: Callback<OwnershipTransferRequested>
161
+ ): EventEmitter;
162
+ OwnershipTransferRequested(
163
+ options?: EventOptions,
164
+ cb?: Callback<OwnershipTransferRequested>
165
+ ): EventEmitter;
166
+
167
+ OwnershipTransferred(cb?: Callback<OwnershipTransferred>): EventEmitter;
168
+ OwnershipTransferred(
169
+ options?: EventOptions,
170
+ cb?: Callback<OwnershipTransferred>
171
+ ): EventEmitter;
172
+
173
+ allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
174
+ };
175
+
176
+ once(event: "AnswerUpdated", cb: Callback<AnswerUpdated>): void;
177
+ once(
178
+ event: "AnswerUpdated",
179
+ options: EventOptions,
180
+ cb: Callback<AnswerUpdated>
181
+ ): void;
182
+
183
+ once(event: "NewRound", cb: Callback<NewRound>): void;
184
+ once(event: "NewRound", options: EventOptions, cb: Callback<NewRound>): void;
185
+
186
+ once(
187
+ event: "OwnershipTransferRequested",
188
+ cb: Callback<OwnershipTransferRequested>
189
+ ): void;
190
+ once(
191
+ event: "OwnershipTransferRequested",
192
+ options: EventOptions,
193
+ cb: Callback<OwnershipTransferRequested>
194
+ ): void;
195
+
196
+ once(event: "OwnershipTransferred", cb: Callback<OwnershipTransferred>): void;
197
+ once(
198
+ event: "OwnershipTransferred",
199
+ options: EventOptions,
200
+ cb: Callback<OwnershipTransferred>
201
+ ): void;
202
+ }
@@ -15,6 +15,7 @@ export type { AaveV3LidoProtocolDataProvider } from "./AaveV3LidoProtocolDataPro
15
15
  export type { AaveV3PoolAddressesProvider } from "./AaveV3PoolAddressesProvider";
16
16
  export type { AaveV3ProtocolDataProvider } from "./AaveV3ProtocolDataProvider";
17
17
  export type { AaveV3View } from "./AaveV3View";
18
+ export type { BTCPriceFeed } from "./BTCPriceFeed";
18
19
  export type { BalanceScanner } from "./BalanceScanner";
19
20
  export type { COMPPriceFeed } from "./COMPPriceFeed";
20
21
  export type { CbEth } from "./CbEth";