Updated on 2026-08-14
This commit is contained in:
parent
74fa237c0d
commit
3b269e6f6a
13 changed files with 158 additions and 11 deletions
|
|
@ -1,5 +1,6 @@
|
|||
package com.tangem.tap.di.domain
|
||||
|
||||
import com.tangem.domain.onramp.repositories.LegacyTopUpRepository
|
||||
import com.tangem.domain.onramp.*
|
||||
import com.tangem.domain.onramp.repositories.HotCryptoRepository
|
||||
import com.tangem.domain.onramp.repositories.OnrampErrorResolver
|
||||
|
|
@ -242,4 +243,10 @@ internal object OnrampDomainModule {
|
|||
fun provideFetchHotCryptoUseCase(hotCryptoRepository: HotCryptoRepository): FetchHotCryptoUseCase {
|
||||
return FetchHotCryptoUseCase(hotCryptoRepository)
|
||||
}
|
||||
|
||||
@Provides
|
||||
@Singleton
|
||||
fun provideGetLegacyTopUpUrlUseCase(legacyTopUpRepository: LegacyTopUpRepository): GetLegacyTopUpUrlUseCase {
|
||||
return GetLegacyTopUpUrlUseCase(legacyTopUpRepository)
|
||||
}
|
||||
}
|
||||
|
|
@ -26,6 +26,7 @@ import java.math.BigDecimal
|
|||
/**
|
||||
[REDACTED_AUTHOR]
|
||||
*/
|
||||
@Deprecated("Remove when navigation refactoring will be implemented")
|
||||
class OnboardingManager(var scanResponse: ScanResponse) {
|
||||
|
||||
private val cardRepository: CardRepository by lazy { store.inject(DaggerGraphState::cardRepository) }
|
||||
|
|
|
|||
|
|
@ -1,160 +0,0 @@
|
|||
package com.tangem.tap.network.exchangeServices.mercuryo
|
||||
|
||||
import com.tangem.blockchain.common.Blockchain
|
||||
|
||||
/**
|
||||
* Map [Blockchain] to ids from [link](https://api.mercuryo.io/v1.6/lib/currencies) [crypto_currencies]
|
||||
*/
|
||||
@Suppress("CyclomaticComplexMethod")
|
||||
internal val Blockchain.mercuryoNetwork: String?
|
||||
get() {
|
||||
return when (this) {
|
||||
Blockchain.Algorand -> "ALGORAND"
|
||||
Blockchain.Arbitrum -> "ARBITRUM"
|
||||
Blockchain.Avalanche -> "AVALANCHE"
|
||||
Blockchain.BSC -> "BINANCESMARTCHAIN"
|
||||
Blockchain.Bitcoin -> "BITCOIN"
|
||||
Blockchain.BitcoinCash -> "BITCOINCASH"
|
||||
Blockchain.Cardano -> "CARDANO"
|
||||
Blockchain.Cosmos -> "COSMOS"
|
||||
Blockchain.Dash -> "DASH"
|
||||
Blockchain.Dogecoin -> "DOGECOIN"
|
||||
Blockchain.Ethereum -> "ETHEREUM"
|
||||
Blockchain.Fantom -> "FANTOM"
|
||||
Blockchain.Kusama -> "KUSAMA"
|
||||
Blockchain.Litecoin -> "LITECOIN"
|
||||
Blockchain.Near -> "NEAR_PROTOCOL"
|
||||
Blockchain.TON -> "NEWTON"
|
||||
Blockchain.Optimism -> "OPTIMISM"
|
||||
Blockchain.Polkadot -> "POLKADOT"
|
||||
Blockchain.Polygon -> "POLYGON"
|
||||
Blockchain.XRP -> "RIPPLE"
|
||||
Blockchain.Solana -> "SOLANA"
|
||||
Blockchain.Stellar -> "STELLAR"
|
||||
Blockchain.Tezos -> "TEZOS"
|
||||
Blockchain.Tron -> "TRON"
|
||||
Blockchain.ZkSyncEra -> "ZKSYNC"
|
||||
Blockchain.Base -> "BASE"
|
||||
Blockchain.ArbitrumTestnet -> null
|
||||
Blockchain.AvalancheTestnet -> null
|
||||
Blockchain.Binance -> null
|
||||
Blockchain.BinanceTestnet -> null
|
||||
Blockchain.BSCTestnet -> null
|
||||
Blockchain.BitcoinTestnet -> null
|
||||
Blockchain.BitcoinCashTestnet -> null
|
||||
Blockchain.CosmosTestnet -> null
|
||||
Blockchain.Ducatus -> null
|
||||
Blockchain.EthereumTestnet -> null
|
||||
Blockchain.EthereumClassic -> null
|
||||
Blockchain.EthereumClassicTestnet -> null
|
||||
Blockchain.FantomTestnet -> null
|
||||
Blockchain.NearTestnet -> null
|
||||
Blockchain.PolkadotTestnet -> null
|
||||
Blockchain.Kava -> null
|
||||
Blockchain.KavaTestnet -> null
|
||||
Blockchain.PolygonTestnet -> null
|
||||
Blockchain.RSK -> null
|
||||
Blockchain.Sei -> null
|
||||
Blockchain.SeiTestnet -> null
|
||||
Blockchain.StellarTestnet -> null
|
||||
Blockchain.SolanaTestnet -> null
|
||||
Blockchain.TronTestnet -> null
|
||||
Blockchain.Gnosis -> null
|
||||
Blockchain.OptimismTestnet -> null
|
||||
Blockchain.Dischain -> null
|
||||
Blockchain.EthereumPow -> null
|
||||
Blockchain.EthereumPowTestnet -> null
|
||||
Blockchain.Kaspa -> null
|
||||
Blockchain.Telos -> null
|
||||
Blockchain.TelosTestnet -> null
|
||||
Blockchain.TONTestnet -> null
|
||||
Blockchain.Ravencoin -> null
|
||||
Blockchain.RavencoinTestnet -> null
|
||||
Blockchain.TerraV1 -> null
|
||||
Blockchain.TerraV2 -> null
|
||||
Blockchain.Cronos -> null
|
||||
Blockchain.AlephZero -> null
|
||||
Blockchain.AlephZeroTestnet -> null
|
||||
Blockchain.OctaSpace -> null
|
||||
Blockchain.OctaSpaceTestnet -> null
|
||||
Blockchain.Chia -> null
|
||||
Blockchain.ChiaTestnet -> null
|
||||
Blockchain.Decimal -> null
|
||||
Blockchain.DecimalTestnet -> null
|
||||
Blockchain.XDC -> null
|
||||
Blockchain.XDCTestnet -> null
|
||||
Blockchain.VeChain -> null
|
||||
Blockchain.VeChainTestnet -> null
|
||||
Blockchain.Aptos -> null
|
||||
Blockchain.AptosTestnet -> null
|
||||
Blockchain.Playa3ull -> null
|
||||
Blockchain.Shibarium -> null
|
||||
Blockchain.ShibariumTestnet -> null
|
||||
Blockchain.AlgorandTestnet -> null
|
||||
Blockchain.Hedera -> null
|
||||
Blockchain.HederaTestnet -> null
|
||||
Blockchain.Aurora -> null
|
||||
Blockchain.AuroraTestnet -> null
|
||||
Blockchain.Alephium -> null
|
||||
Blockchain.AlephiumTestnet -> null
|
||||
Blockchain.Areon -> null
|
||||
Blockchain.AreonTestnet -> null
|
||||
Blockchain.PulseChain -> null
|
||||
Blockchain.PulseChainTestnet -> null
|
||||
Blockchain.ZkSyncEraTestnet -> null
|
||||
Blockchain.Nexa -> null
|
||||
Blockchain.NexaTestnet -> null
|
||||
Blockchain.Moonbeam -> null
|
||||
Blockchain.MoonbeamTestnet -> null
|
||||
Blockchain.Manta -> null
|
||||
Blockchain.MantaTestnet -> null
|
||||
Blockchain.PolygonZkEVM -> null
|
||||
Blockchain.PolygonZkEVMTestnet -> null
|
||||
Blockchain.Radiant -> null
|
||||
Blockchain.Fact0rn -> null
|
||||
Blockchain.BaseTestnet -> null
|
||||
Blockchain.Moonriver -> null
|
||||
Blockchain.MoonriverTestnet -> null
|
||||
Blockchain.Mantle -> null
|
||||
Blockchain.MantleTestnet -> null
|
||||
Blockchain.Flare -> null
|
||||
Blockchain.FlareTestnet -> null
|
||||
Blockchain.Taraxa -> null
|
||||
Blockchain.TaraxaTestnet -> null
|
||||
Blockchain.Koinos -> null
|
||||
Blockchain.KoinosTestnet -> null
|
||||
Blockchain.Joystream -> null
|
||||
Blockchain.Bittensor -> null
|
||||
Blockchain.Filecoin -> null
|
||||
Blockchain.Blast -> null
|
||||
Blockchain.BlastTestnet -> null
|
||||
Blockchain.Cyber -> null
|
||||
Blockchain.CyberTestnet -> null
|
||||
Blockchain.InternetComputer -> null
|
||||
Blockchain.Sui -> null
|
||||
Blockchain.SuiTestnet -> null
|
||||
Blockchain.EnergyWebChain -> null
|
||||
Blockchain.EnergyWebChainTestnet -> null
|
||||
Blockchain.EnergyWebX -> null
|
||||
Blockchain.EnergyWebXTestnet -> null
|
||||
Blockchain.Casper -> null
|
||||
Blockchain.CasperTestnet -> null
|
||||
Blockchain.Core -> null
|
||||
Blockchain.CoreTestnet -> null
|
||||
Blockchain.Chiliz -> null
|
||||
Blockchain.ChilizTestnet -> null
|
||||
Blockchain.VanarChain -> null
|
||||
Blockchain.VanarChainTestnet -> null
|
||||
Blockchain.Unknown -> null
|
||||
Blockchain.Xodex -> null
|
||||
Blockchain.Canxium -> null
|
||||
Blockchain.Clore -> null
|
||||
Blockchain.OdysseyChain, Blockchain.OdysseyChainTestnet -> null
|
||||
Blockchain.Bitrock, Blockchain.BitrockTestnet -> null
|
||||
Blockchain.Sonic, Blockchain.SonicTestnet -> null
|
||||
Blockchain.ApeChain, Blockchain.ApeChainTestnet -> null
|
||||
Blockchain.Scroll, Blockchain.ScrollTestnet -> null
|
||||
Blockchain.ZkLinkNova, Blockchain.ZkLinkNovaTestnet -> null
|
||||
Blockchain.KaspaTestnet -> null
|
||||
}
|
||||
}
|
||||
|
|
@ -6,6 +6,7 @@ import com.tangem.common.extensions.calculateSha512
|
|||
import com.tangem.common.extensions.toHexString
|
||||
import com.tangem.common.services.Result
|
||||
import com.tangem.common.services.performRequest
|
||||
import com.tangem.data.onramp.legacy.mercuryoNetwork
|
||||
import com.tangem.domain.core.utils.lceContent
|
||||
import com.tangem.domain.core.utils.lceError
|
||||
import com.tangem.domain.core.utils.lceLoading
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue