Updated on 2026-08-14

This commit is contained in:
Tangem 2025-08-25 15:32:01 +03:00
commit 57f3a55298
88 changed files with 4510 additions and 68 deletions

View file

@ -0,0 +1,37 @@
package com.tangem.domain.models
import com.tangem.domain.models.currency.CryptoCurrency
import com.tangem.domain.models.wallet.UserWalletId
import kotlinx.serialization.Serializable
@Serializable
data class TokenReceiveConfig(
val shouldShowWarning: Boolean,
val cryptoCurrency: CryptoCurrency,
val userWalletId: UserWalletId,
val showMemoDisclaimer: Boolean,
val receiveAddress: List<ReceiveAddressModel>,
val tokenReceiveNotification: List<TokenReceiveNotification> = emptyList(),
val asset: Asset = Asset.Currency,
)
@Serializable
data class ReceiveAddressModel(
val nameService: NameService,
val value: String,
val displayName: String,
) {
enum class NameService {
Default, Ens
}
}
@Serializable
data class TokenReceiveNotification(
val title: Int,
val subtitle: Int,
)
enum class Asset {
Currency, NFT
}

View file

@ -0,0 +1,7 @@
package com.tangem.domain.models.ens
sealed interface EnsAddress {
data class Address(val name: String) : EnsAddress
data class Error(val error: Exception) : EnsAddress
data object NotSupported : EnsAddress
}