Updated on 2026-08-14
This commit is contained in:
parent
d7d7b3f301
commit
62a032e3d1
9 changed files with 119 additions and 30 deletions
|
|
@ -1,8 +1,8 @@
|
|||
package com.tangem.crypto
|
||||
package com.tangem.lib.crypto
|
||||
|
||||
interface DerivationManager {
|
||||
|
||||
fun deriveMissingBlockchains(networkId: String?)
|
||||
suspend fun deriveMissingBlockchains(networkId: String)
|
||||
|
||||
fun hasDerivation(): Boolean
|
||||
fun hasDerivation(networkId: String): Boolean
|
||||
}
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
package com.tangem.crypto
|
||||
package com.tangem.lib.crypto
|
||||
|
||||
import com.tangem.crypto.models.Token
|
||||
import com.tangem.lib.crypto.models.Token
|
||||
|
||||
/**
|
||||
* Provider for user tokens data
|
||||
|
|
@ -10,7 +10,7 @@ interface UserWalletManager {
|
|||
/**
|
||||
* Returns all user tokens (merged from local and backend)
|
||||
*/
|
||||
fun getUserTokens(): List<Token>
|
||||
suspend fun getUserTokens(): List<Token>
|
||||
|
||||
/**
|
||||
* Returns user walletId
|
||||
|
|
@ -22,7 +22,7 @@ interface UserWalletManager {
|
|||
*
|
||||
* @param token to receive referral payments
|
||||
*/
|
||||
fun isTokenAdded(token: Token): Boolean
|
||||
suspend fun isTokenAdded(token: Token): Boolean
|
||||
|
||||
/**
|
||||
* Adds token to wallet if its not
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
package com.tangem.crypto.models
|
||||
package com.tangem.lib.crypto.models
|
||||
|
||||
data class Token(
|
||||
val id: String,
|
||||
val name: String,
|
||||
val symbol: String,
|
||||
val networkId: String?,
|
||||
val networkId: String,
|
||||
val contractAddress: String?,
|
||||
val decimalCount: Int?,
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue