@metamask-previews/earn-controller 0.14.0-preview-2723071f → 0.15.0-preview-39fa8d37

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/CHANGELOG.md CHANGED
@@ -7,8 +7,86 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ### Added
11
+
12
+ - **BREAKING:** Added `addTransactionFn` option to the controller contructor which accepts the `TransactionController` `addTransaction` method ([#5828](https://github.com/MetaMask/core/pull/5828))
13
+ - Added `@ethersproject/bignumber` as a dependency ([#5828](https://github.com/MetaMask/core/pull/5828))
14
+ - Added `reselect` as a dependency ([#5828](https://github.com/MetaMask/core/pull/5828))
15
+ - Added new lending-related types: ([#5828](https://github.com/MetaMask/core/pull/5828))
16
+ - `LendingMarketWithPosition`
17
+ - `LendingPositionWithMarket`
18
+ - `LendingPositionWithMarketReference`
19
+ - Added new lending-related selectors: ([#5828](https://github.com/MetaMask/core/pull/5828))
20
+ - `selectLendingMarkets`
21
+ - `selectLendingPositions`
22
+ - `selectLendingMarketsWithPosition`
23
+ - `selectLendingPositionsByProtocol`
24
+ - `selectLendingMarketByProtocolAndTokenAddress`
25
+ - `selectLendingMarketForProtocolAndTokenAddress`
26
+ - `selectLendingPositionsByChainId`
27
+ - `selectLendingMarketsByChainId`
28
+ - `selectLendingMarketsByProtocolAndId`
29
+ - `selectLendingMarketForProtocolAndId`
30
+ - `selectLendingPositionsWithMarket`
31
+ - `selectLendingMarketsForChainId`
32
+ - `selectIsLendingEligible`
33
+ - `selectLendingPositionsByProtocolChainIdMarketId`
34
+ - `selectLendingMarketsByTokenAddress`
35
+ - `selectLendingMarketsByChainIdAndOutputTokenAddress`
36
+ - `selectLendingMarketsByChainIdAndTokenAddress`
37
+ - Added exports from `@metamask/stake-sdk`: ([#5828](https://github.com/MetaMask/core/pull/5828))
38
+ - `isSupportedLendingChain`
39
+ - `isSupportedPooledStakingChain`
40
+ - `CHAIN_ID_TO_AAVE_POOL_CONTRACT`
41
+ - Added new lending-related methods to `EarnController`: ([#5828](https://github.com/MetaMask/core/pull/5828))
42
+ - `refreshLendingMarkets`
43
+ - `refreshLendingPositions`
44
+ - `refreshLendingEligibility`
45
+ - `refreshLendingData`
46
+ - `getLendingPositionHistory`
47
+ - `getLendingMarketDailyApysAndAverages`
48
+ - `executeLendingDeposit`
49
+ - `executeLendingWithdraw`
50
+ - `executeLendingTokenApprove`
51
+ - `getLendingTokenAllowance`
52
+ - `getLendingTokenMaxWithdraw`
53
+ - `getLendingTokenMaxDeposit`
54
+ - **BREAKING:** Added `lending` key to the controller state to replace `stablecoin_lending` ([#5828](https://github.com/MetaMask/core/pull/5828))
55
+ - Added optional `env` option which accepts an `EarnEnvironments` enum ([#5828](https://github.com/MetaMask/core/pull/5828))
56
+ - Added async lending state data update on constructor initialization ([#5828](https://github.com/MetaMask/core/pull/5828))
57
+ - Added refresh of lending positions and market data when the network state is updated ([#5828](https://github.com/MetaMask/core/pull/5828))
58
+ - Added refresh of lending positions when the user account address is updated ([#5828](https://github.com/MetaMask/core/pull/5828))
59
+ - Added refresh of lending positions when a transaction matching lending type is confirmed ([#5828](https://github.com/MetaMask/core/pull/5828))
60
+
61
+ ### Changed
62
+
63
+ - **BREAKING:** Updated `refreshPooledStakingVaultDailyApys` method to take chain id as its first param ([#5828](https://github.com/MetaMask/core/pull/5828))
64
+ - **BREAKING:** bump `@metamask/accounts-controller` peer dependency to `^30.0.0` ([#5888](https://github.com/MetaMask/core/pull/5888))
65
+ - **BREAKING:** updates controller state to allow pooled staking data to be stored per supported chain id ([#5828](https://github.com/MetaMask/core/pull/5828))
66
+ - Updated `refreshPooledStakingData` to refresh pooled staking data for all supported chains ([#5828](https://github.com/MetaMask/core/pull/5828))
67
+ - Updated these methods to take an optional chain id to control which chain data is fetched for ([#5828](https://github.com/MetaMask/core/pull/5828))
68
+ - `refreshPooledStakingVaultMetadata`
69
+ - `refreshPooledStakes`
70
+ - `refreshPooledStakingVaultDailyApys`
71
+ - `refreshPooledStakingVaultApyAverages`
72
+ - Updated `refreshStakingEligibility` to update the eligibility in the lending state scope as well pooled staking ([#5828](https://github.com/MetaMask/core/pull/5828))
73
+ - Updated `refreshPooledStakes` method to take an optional chain id to control which chain data is fetched for ([#5828](https://github.com/MetaMask/core/pull/5828))
74
+ - Updated to refresh pooled staking data for all chains when the network state is updated ([#5828](https://github.com/MetaMask/core/pull/5828))
75
+ - Bump `@metamask/controller-utils` to `^11.9.0` ([#5812](https://github.com/MetaMask/core/pull/5812))
76
+ - Bump `@metamask/stake-sdk` dependency to `^3.2.0` ([#5828](https://github.com/MetaMask/core/pull/5828))
77
+
78
+ ### Removed
79
+
80
+ - **BREAKING:** Removed lending-related types: ([#5828](https://github.com/MetaMask/core/pull/5828))
81
+ - `StablecoinLendingState`
82
+ - `StablecoinVault`
83
+ - **BREAKING:** Removed `stablecoin_lending` key from the controller state to replace with `lending` ([#5828](https://github.com/MetaMask/core/pull/5828))
84
+
85
+ ## [0.15.0]
86
+
10
87
  ### Changed
11
88
 
89
+ - **BREAKING:** bump `@metamask/accounts-controller` peer dependency to `^30.0.0` ([#5888](https://github.com/MetaMask/core/pull/5888))
12
90
  - Bump `@metamask/controller-utils` to `^11.9.0` ([#5812](https://github.com/MetaMask/core/pull/5812))
13
91
 
14
92
  ## [0.14.0]
@@ -109,7 +187,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
109
187
 
110
188
  - Initial release ([#5271](https://github.com/MetaMask/core/pull/5271))
111
189
 
112
- [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/earn-controller@0.14.0...HEAD
190
+ [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/earn-controller@0.15.0...HEAD
191
+ [0.15.0]: https://github.com/MetaMask/core/compare/@metamask/earn-controller@0.14.0...@metamask/earn-controller@0.15.0
113
192
  [0.14.0]: https://github.com/MetaMask/core/compare/@metamask/earn-controller@0.13.0...@metamask/earn-controller@0.14.0
114
193
  [0.13.0]: https://github.com/MetaMask/core/compare/@metamask/earn-controller@0.12.0...@metamask/earn-controller@0.13.0
115
194
  [0.12.0]: https://github.com/MetaMask/core/compare/@metamask/earn-controller@0.11.0...@metamask/earn-controller@0.12.0