Updated on 2026-08-14

This commit is contained in:
Tangem 2024-01-10 15:56:05 +03:00
commit 8bba8e1afa
825 changed files with 9837 additions and 22210 deletions

View file

@ -2,27 +2,9 @@ package com.tangem.lib.crypto
import com.tangem.lib.crypto.models.Currency
@Deprecated(message = "Use DerivePublicKeysUseCase instead")
interface DerivationManager {
/**
* Derives missing blockchain and returns flag true if did it successfully
*
* @param currency to derive (Native token or not)
*/
suspend fun deriveMissingBlockchains(currency: Currency): Boolean
/**
* Returns derivationPath or null for blockchain with given networkId
*
* @param networkId
*/
fun getDerivationPathForBlockchain(networkId: String): String?
/**
* Checks that given [networkId] has derivations for [derivationPath]
*/
fun hasDerivation(networkId: String, derivationPath: String): Boolean
/**
* Makes derivation for [Currency] if it is missing and adds token to wallet
*/

View file

@ -31,19 +31,8 @@ interface UserWalletManager {
@Throws(IllegalStateException::class)
suspend fun isTokenAdded(currency: Currency, derivationPath: String?): Boolean
/**
* Adds token to wallet if its not
*
* @param currency to add to wallet
* @param derivationPath if null uses default
*/
@Throws(IllegalStateException::class)
suspend fun addToken(currency: Currency, derivationPath: String?)
suspend fun hideAllTokens()
fun refreshWallet()
/**
* Returns wallet public address for token
*