Updated on 2026-08-14
This commit is contained in:
parent
68f451d926
commit
8643eb4a90
10 changed files with 256 additions and 30 deletions
|
|
@ -7,5 +7,6 @@ plugins {
|
|||
dependencies {
|
||||
implementation(deps.moshi.adapters)
|
||||
implementation(deps.kotlin.serialization)
|
||||
implementation(projects.domain.models)
|
||||
implementation(projects.domain.tokens.models)
|
||||
}
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
package com.tangem.domain.express.models
|
||||
|
||||
import com.tangem.domain.models.currency.CryptoCurrency
|
||||
import java.math.BigDecimal
|
||||
|
||||
/**
|
||||
|
|
@ -8,9 +9,12 @@ import java.math.BigDecimal
|
|||
* @property id The asset identifier (network id + contract address).
|
||||
* @property amount Human-readable amount (already scaled by [decimals]).
|
||||
* @property decimals The asset's decimals.
|
||||
* @property cryptoCurrency The portfolio [CryptoCurrency] this asset was resolved to (matched by network id +
|
||||
* contract address across all accounts). `null` when no portfolio currency matched and no fallback could be built.
|
||||
*/
|
||||
data class ExpressTransactionAsset(
|
||||
val id: ExpressAsset.ID,
|
||||
val amount: BigDecimal,
|
||||
val decimals: Int,
|
||||
val cryptoCurrency: CryptoCurrency? = null,
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue