Updated on 2026-08-14

This commit is contained in:
Tangem 2025-06-19 16:37:57 +05:00
parent 664305703e
commit 3b6629f7f4
7 changed files with 71 additions and 15 deletions

View file

@ -41,6 +41,7 @@ dependencies {
/** Tangem libraries */
implementation(projects.libs.tangemSdkApi)
implementation(projects.libs.crypto)
implementation(tangemDeps.card.core)
implementation(tangemDeps.card.android) {
exclude(module = "joda-time")

View file

@ -2,10 +2,15 @@ package com.tangem.features.nft.receive.entity.transformer
import com.tangem.common.ui.bottomsheet.receive.TokenReceiveBottomSheetConfig
import com.tangem.core.ui.components.bottomsheets.TangemBottomSheetConfig
import com.tangem.core.ui.components.notifications.NotificationConfig
import com.tangem.domain.models.network.Network
import com.tangem.domain.models.network.NetworkAddress
import com.tangem.features.nft.receive.entity.NFTReceiveUM
import com.tangem.utils.transformer.Transformer
import com.tangem.core.ui.R
import com.tangem.core.ui.extensions.resourceReference
import com.tangem.lib.crypto.BlockchainUtils
import kotlinx.collections.immutable.toPersistentList
internal class ShowReceiveBottomSheetTransformer(
private val network: Network,
@ -24,6 +29,18 @@ internal class ShowReceiveBottomSheetTransformer(
network = network,
networkAddress = networkAddress,
showMemoDisclaimer = network.transactionExtrasType != Network.TransactionExtrasType.NONE,
customNotifications = buildList {
if (BlockchainUtils.isSolana(network.rawId)) {
add(
NotificationConfig(
title = resourceReference(R.string.nft_receive_unsupported_types),
subtitle = resourceReference(R.string.nft_receive_unsupported_types_description),
iconResId = R.drawable.ic_alert_circle_24,
iconTint = NotificationConfig.IconTint.Attention,
),
)
}
}.toPersistentList(),
onCopyClick = onCopyClick,
onShareClick = onShareClick,
),