Updated on 2026-08-14
This commit is contained in:
commit
57f3a55298
88 changed files with 4510 additions and 68 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
@ -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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue