Updated on 2026-08-14

This commit is contained in:
Tangem 2026-01-30 14:16:57 +01:00
parent cae7844408
commit 5037fabe32
14 changed files with 602 additions and 122 deletions

View file

@ -0,0 +1,33 @@
package com.tangem.features.feed.components.market.details.portfolio.add
import com.tangem.core.decompose.factory.ComponentFactory
import com.tangem.core.ui.decompose.ComposableBottomSheetComponent
import com.tangem.domain.markets.TokenMarketInfo
import com.tangem.domain.models.currency.CryptoCurrency
import com.tangem.domain.models.wallet.UserWalletId
interface AddToPortfolioPreselectedDataComponent : ComposableBottomSheetComponent {
/**
* @param tokenToAdd token and preselected network (no network selector).
* @param callback callbacks for add-to-portfolio flow.
*/
data class Params(
val tokenToAdd: TokenToAdd,
val callback: Callback,
)
interface Callback {
fun onDismiss()
fun onSuccess(addedToken: CryptoCurrency, walletId: UserWalletId)
}
data class TokenToAdd(
val network: TokenMarketInfo.Network,
val id: CryptoCurrency.RawID,
val name: String,
val symbol: String,
)
interface Factory : ComponentFactory<Params, AddToPortfolioPreselectedDataComponent>
}

View file

@ -2,4 +2,5 @@ package com.tangem.features.feed.entry.featuretoggle
interface FeedFeatureToggle {
val isFeedEnabled: Boolean
val isEarnBlockEnabled: Boolean
}