Updated on 2026-08-14
This commit is contained in:
parent
a44f392d0a
commit
5315e04487
21 changed files with 199 additions and 177 deletions
|
|
@ -0,0 +1,12 @@
|
|||
package com.tangem.domain.markets
|
||||
|
||||
import com.tangem.domain.models.currency.CryptoCurrency
|
||||
|
||||
/**
|
||||
* minimal token info for add-to-portfolio flow
|
||||
*/
|
||||
data class RawMarketToken(
|
||||
val id: CryptoCurrency.RawID,
|
||||
val name: String,
|
||||
val symbol: String,
|
||||
)
|
||||
|
|
@ -10,7 +10,7 @@ class GetTokenMarketCryptoCurrency(
|
|||
) {
|
||||
suspend operator fun invoke(
|
||||
userWalletId: UserWalletId,
|
||||
tokenMarketParams: TokenMarketParams,
|
||||
tokenMarketParams: RawMarketToken,
|
||||
network: TokenMarketInfo.Network,
|
||||
accountIndex: DerivationIndex,
|
||||
): CryptoCurrency? {
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ interface MarketsTokenRepository {
|
|||
|
||||
suspend fun createCryptoCurrency(
|
||||
userWalletId: UserWalletId,
|
||||
token: TokenMarketParams,
|
||||
token: RawMarketToken,
|
||||
network: TokenMarketInfo.Network,
|
||||
accountIndex: DerivationIndex? = null,
|
||||
): CryptoCurrency?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue