Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request Description
Summary:
This pull request includes several changes across different parts of the application to enhance the crypto-related functionality. The key changes are as follows:
1.
src/app/campaigns/campaigns.module.ts
cryptoReducerList
from'@app/core/store/crypto-prices/reducer/crypto.reducer'
.CryptoEffectsList
from'@app/core/store/crypto-prices/effects/crypto.effects'
.SharedModule
,StoreModule.forFeature('cryptoPriceList', cryptoReducerList)
, andEffectsModule.forFeature([CryptoEffectsList])
to the@NgModule
decorator.2.
src/app/campaigns/services/format-data.service.ts
map
,take
, andtakeUntil
from 'rxjs/operators'.'../../core/store/crypto-prices/actions/crypto.actions'
,@ngrx/store
,'@app/core/store/crypto-prices/selectors/crypto.selectors'
, and'@app/shared/service/SharedDataService'
.cryptoPriceList: any[] | null | undefined;
declaration.walletFacade
,store
, andsharedDataService
.CryptoActionsList.fetchCryptoPriceList()
and handle the store's crypto price list data.3.
src/app/core/services/crypto-info.service.ts
Observable
,IResponseWallet
, andsattUrl
from appropriate locations.getCharts(id:any, range:any)
for fetching charts data.4. Created Files
src/app/core/store/crypto-prices/actions/crypto.actions.ts
fetchCryptoPriceList
,fetchCryptoPriceListSuccess
, andfetchCryptoPriceListFailure
.src/app/core/store/crypto-prices/effects/crypto.effects.ts
fetchCryptoPriceList$
effect that handles the fetching of crypto price list data.src/app/core/store/crypto-prices/reducer/crypto.reducer.ts
cryptoReducerList
and the necessary state handling logic.src/app/core/store/crypto-prices/selectors/crypto.selectors.ts
selectCryptoPriceList
.src/app/shared/service/SharedDataService.ts
5.
src/app/wallet/components/crypto-info/crypto-info.component.html
6.
src/app/wallet/components/crypto-info/crypto-info.component.ts
ngOnInit
method to handle crypto-related data.handleCryptoList
to fetch crypto charts.translateNetwork
for translating network names.drawChart
method for chart data processing.goToSend
andgoToReceive
methods.7.
src/app/wallet/store/actions/crypto-info.actions.ts
cryptoListLoaded
,loadCryptoList
,loadCryptoListSuccess
, andloadCryptoListFailure
.8.
src/app/wallet/store/effects/crypto-info.effects.ts
loadCryptoList$
effect that handles loading crypto lists.9.
src/app/wallet/store/reducers/crypto-info.reducer.ts
cryptoInfoReducer
.10.
src/app/wallet/store/selectors/crypto-info.selectors.ts
selectCryptoInfoState
andselectCryptoList
.11.
src/app/wallet/wallet.module.ts
cryptoInfoReducer
andCryptoInfoEffects
.StoreModule.forFeature('cryptoInfo', cryptoInfoReducer)
andEffectsModule.forFeature([CryptoInfoEffects])
to the@NgModule
decorator.Testing:
I have tested these changes to ensure that they work as intended and do not introduce any new issues. These enhancements improve the crypto-related functionality in the application.
Please review and merge this pull request.