From 081814daf9a67c12f99bf22569f59476b0705537 Mon Sep 17 00:00:00 2001 From: Doston Kamalov Date: Fri, 24 Nov 2023 18:12:56 +0500 Subject: [PATCH 1/6] AND-5337 Fixed getBlock url bug and hided tx history for some currencies --- .../ethereum/EthereumJsonRpcProvidersExt.kt | 2 +- .../TransactionHistoryProviderExt.kt | 23 +++++++++---------- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/blockchain/src/main/java/com/tangem/blockchain/blockchains/ethereum/EthereumJsonRpcProvidersExt.kt b/blockchain/src/main/java/com/tangem/blockchain/blockchains/ethereum/EthereumJsonRpcProvidersExt.kt index 013bbd1f2..733ef2266 100644 --- a/blockchain/src/main/java/com/tangem/blockchain/blockchains/ethereum/EthereumJsonRpcProvidersExt.kt +++ b/blockchain/src/main/java/com/tangem/blockchain/blockchains/ethereum/EthereumJsonRpcProvidersExt.kt @@ -200,7 +200,7 @@ private fun getNowNodesProvider( } private fun getGetBlockProvider(accessToken: String): EthereumJsonRpcProvider = - EthereumJsonRpcProvider(baseUrl = "go.getblock.io/$accessToken") + EthereumJsonRpcProvider(baseUrl = "https://go.getblock.io/$accessToken/") private fun getInfuraProvider( baseUrl: String, diff --git a/blockchain/src/main/java/com/tangem/blockchain/common/txhistory/TransactionHistoryProviderExt.kt b/blockchain/src/main/java/com/tangem/blockchain/common/txhistory/TransactionHistoryProviderExt.kt index 822b7d7b8..6d82a11a4 100644 --- a/blockchain/src/main/java/com/tangem/blockchain/common/txhistory/TransactionHistoryProviderExt.kt +++ b/blockchain/src/main/java/com/tangem/blockchain/common/txhistory/TransactionHistoryProviderExt.kt @@ -2,7 +2,6 @@ package com.tangem.blockchain.common.txhistory import com.tangem.blockchain.blockchains.bitcoin.BitcoinTransactionHistoryProvider import com.tangem.blockchain.blockchains.ethereum.EthereumTransactionHistoryProvider -import com.tangem.blockchain.blockchains.tron.TronTransactionHistoryProvider import com.tangem.blockchain.common.Blockchain import com.tangem.blockchain.common.BlockchainSdkConfig import com.tangem.blockchain.network.blockbook.config.BlockBookConfig @@ -30,9 +29,9 @@ internal fun Blockchain.getTransactionHistoryProvider( Blockchain.Arbitrum, Blockchain.Avalanche, Blockchain.BSC, - Blockchain.Polygon, + // Blockchain.Polygon, Blockchain.EthereumPow, - Blockchain.Kava, + // Blockchain.Kava, -> { EthereumTransactionHistoryProvider( blockchain = this, @@ -43,15 +42,15 @@ internal fun Blockchain.getTransactionHistoryProvider( ) } - Blockchain.Tron -> { - TronTransactionHistoryProvider( - blockchain = this, - BlockBookApi( - config = BlockBookConfig.NowNodes(nowNodesCredentials = config.nowNodeCredentials), - blockchain = this, - ) - ) - } + // Blockchain.Tron -> { + // TronTransactionHistoryProvider( + // blockchain = this, + // BlockBookApi( + // config = BlockBookConfig.NowNodes(nowNodesCredentials = config.nowNodeCredentials), + // blockchain = this, + // ) + // ) + // } else -> DefaultTransactionHistoryProvider } From 7f02ab9c4d7e30d8eaa5c127c25f0b3769e69cdb Mon Sep 17 00:00:00 2001 From: Doston Kamalov Date: Wed, 29 Nov 2023 18:22:37 +0500 Subject: [PATCH 2/6] AND-5376 Fixed stellar provider switching --- .../stellar/StellarNetworkService.kt | 7 --- .../stellar/StellarWrapperNetworkProvider.kt | 56 +++++++++++++------ .../blockchain/network/ResultChecker.kt | 9 ++- 3 files changed, 44 insertions(+), 28 deletions(-) diff --git a/blockchain/src/main/java/com/tangem/blockchain/blockchains/stellar/StellarNetworkService.kt b/blockchain/src/main/java/com/tangem/blockchain/blockchains/stellar/StellarNetworkService.kt index 131f069fa..ca03baaba 100644 --- a/blockchain/src/main/java/com/tangem/blockchain/blockchains/stellar/StellarNetworkService.kt +++ b/blockchain/src/main/java/com/tangem/blockchain/blockchains/stellar/StellarNetworkService.kt @@ -238,10 +238,3 @@ class StellarNetworkService( ) } } - -fun T.getPrivateProperty(variableName: String): Any? { - return javaClass.getDeclaredField(variableName).let { field -> - field.isAccessible = true - return@let field.get(this) - } -} \ No newline at end of file diff --git a/blockchain/src/main/java/com/tangem/blockchain/blockchains/stellar/StellarWrapperNetworkProvider.kt b/blockchain/src/main/java/com/tangem/blockchain/blockchains/stellar/StellarWrapperNetworkProvider.kt index 6ef6e0fc8..bc5171565 100644 --- a/blockchain/src/main/java/com/tangem/blockchain/blockchains/stellar/StellarWrapperNetworkProvider.kt +++ b/blockchain/src/main/java/com/tangem/blockchain/blockchains/stellar/StellarWrapperNetworkProvider.kt @@ -1,6 +1,7 @@ package com.tangem.blockchain.blockchains.stellar import com.tangem.blockchain.common.NetworkProvider +import com.tangem.blockchain.common.toBlockchainSdkError import okhttp3.HttpUrl.Companion.toHttpUrlOrNull import org.stellar.sdk.Server import org.stellar.sdk.Transaction @@ -13,6 +14,8 @@ import org.stellar.sdk.responses.RootResponse import org.stellar.sdk.responses.SubmitTransactionResponse import org.stellar.sdk.responses.operations.OperationResponse import shadow.okhttp3.OkHttpClient +import com.tangem.blockchain.extensions.Result +import org.stellar.sdk.requests.ErrorResponse import java.io.IOException internal class StellarWrapperNetworkProvider( @@ -25,34 +28,51 @@ internal class StellarWrapperNetworkProvider( get() = server.httpClient @Throws(IOException::class) - fun submitTransaction(transaction: Transaction?): SubmitTransactionResponse { - return server.submitTransaction(transaction) + fun submitTransaction(transaction: Transaction?): Result { + return runWithErrorHandling { server.submitTransaction(transaction) } } - fun accountCall(data: String): AccountResponse { - return server.accounts().account(data) + fun accountCall(data: String): Result { + return runWithErrorHandling { server.accounts().account(data) } } - fun rootCall(): RootResponse { - return server.root() + fun rootCall(): Result { + return runWithErrorHandling { server.root() } } - fun ledgerCall(ledgerSeq: Long): LedgerResponse { - return server.ledgers().ledger(ledgerSeq) + fun ledgerCall(ledgerSeq: Long): Result { + return runWithErrorHandling { server.ledgers().ledger(ledgerSeq) } } - fun paymentsCall(accountId: String): Page { - return server.payments().forAccount(accountId).order(RequestBuilder.Order.DESC).execute() + fun paymentsCall(accountId: String): Result> { + return runWithErrorHandling { + server.payments().forAccount(accountId).order(RequestBuilder.Order.DESC).execute() + } } - fun feeCall(): FeeStatsResponse { - return server.feeStats().execute() + fun feeCall(): Result { + return runWithErrorHandling { server.feeStats().execute() } } - fun operationsLimit(accountId: String): Page { - return server.operations().forAccount(accountId) - .limit(RECORD_LIMIT) - .includeFailed(true) - .execute() + fun operationsLimit(accountId: String): Result> { + return runWithErrorHandling { + server.operations().forAccount(accountId) + .limit(RECORD_LIMIT) + .includeFailed(true) + .execute() + } } -} \ No newline at end of file + + private fun runWithErrorHandling(block: () -> T): Result { + return try { + val result = block() + Result.Success(result) + } catch (exception: Exception) { + if (exception is ErrorResponse && exception.code == 404) { + throw exception // handled in NetworkService + } else { + Result.Failure(exception.toBlockchainSdkError()) + } + } + } +} diff --git a/blockchain/src/main/java/com/tangem/blockchain/network/ResultChecker.kt b/blockchain/src/main/java/com/tangem/blockchain/network/ResultChecker.kt index f54412a03..076819847 100644 --- a/blockchain/src/main/java/com/tangem/blockchain/network/ResultChecker.kt +++ b/blockchain/src/main/java/com/tangem/blockchain/network/ResultChecker.kt @@ -5,6 +5,7 @@ import com.tangem.blockchain.blockchains.ethereum.network.EthereumResponse import com.tangem.blockchain.common.BlockchainSdkError import com.tangem.blockchain.extensions.Result import com.tangem.blockchain.extensions.SimpleResult +import org.stellar.sdk.requests.ErrorResponse import retrofit2.HttpException import java.io.IOException @@ -63,8 +64,10 @@ object ResultChecker { } private fun BlockchainSdkError.WrappedThrowable.isNetworkError(): Boolean { - return cause is IOException || cause is HttpException || cause is JsonDataException + return cause is IOException || cause is HttpException || cause is JsonDataException || stellarNetworkError(cause) } -} - + private fun stellarNetworkError(cause: Throwable?): Boolean { + return cause is ErrorResponse && cause.code != 404 + } +} From 95e26c11b0dcfe3d16a5ed27aa6275b61d92ed5f Mon Sep 17 00:00:00 2001 From: Doston Kamalov Date: Wed, 29 Nov 2023 21:21:49 +0500 Subject: [PATCH 3/6] AND-5383 Replaced RVN not working provider --- .../blockchains/bitcoin/BitcoinJsonRpcProvidersExt.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blockchain/src/main/java/com/tangem/blockchain/blockchains/bitcoin/BitcoinJsonRpcProvidersExt.kt b/blockchain/src/main/java/com/tangem/blockchain/blockchains/bitcoin/BitcoinJsonRpcProvidersExt.kt index a4f9eb76e..65857d314 100644 --- a/blockchain/src/main/java/com/tangem/blockchain/blockchains/bitcoin/BitcoinJsonRpcProvidersExt.kt +++ b/blockchain/src/main/java/com/tangem/blockchain/blockchains/bitcoin/BitcoinJsonRpcProvidersExt.kt @@ -47,7 +47,7 @@ internal fun Blockchain.getBitcoinNetworkProviders( } else { listOf( "https://api.ravencoin.org/api/", - "https://ravencoin.network/api/", + "https://explorer.rvn.zelcore.io/api/", ) }.map(::RavencoinNetworkProvider) else -> throw IllegalStateException("$this isn't supported") From 33e71908e5c3ae5194ae1f5982ff3b6926dadfc3 Mon Sep 17 00:00:00 2001 From: Anton Tkachev Date: Tue, 28 Nov 2023 20:08:51 +0400 Subject: [PATCH 4/6] AND-5394 Fixed the address sequence for Decimal network --- .../decimal/DecimalAddressService.kt | 7 +-- .../decimal/DecimalNetworkService.kt | 43 +++++++++++++++++++ .../network/EthereumNetworkService.kt | 7 ++- .../blockchain/common/address/AddressType.kt | 4 ++ .../impl/DecimalWalletManagerAssembly.kt | 6 +-- 5 files changed, 57 insertions(+), 10 deletions(-) create mode 100644 blockchain/src/main/java/com/tangem/blockchain/blockchains/decimal/DecimalNetworkService.kt diff --git a/blockchain/src/main/java/com/tangem/blockchain/blockchains/decimal/DecimalAddressService.kt b/blockchain/src/main/java/com/tangem/blockchain/blockchains/decimal/DecimalAddressService.kt index 457f2439b..e0a3f8837 100644 --- a/blockchain/src/main/java/com/tangem/blockchain/blockchains/decimal/DecimalAddressService.kt +++ b/blockchain/src/main/java/com/tangem/blockchain/blockchains/decimal/DecimalAddressService.kt @@ -28,11 +28,8 @@ internal class DecimalAddressService : AddressService() { val ercAddress = makeErcAddress(walletPublicKey) return setOf( - SdkAddress(ercAddress), - SdkAddress( - convertErcAddressToDscAddress(ercAddress), - AddressType.Legacy, - ) + SdkAddress(ercAddress, AddressType.Legacy), + SdkAddress(convertErcAddressToDscAddress(ercAddress), AddressType.Default), ) } diff --git a/blockchain/src/main/java/com/tangem/blockchain/blockchains/decimal/DecimalNetworkService.kt b/blockchain/src/main/java/com/tangem/blockchain/blockchains/decimal/DecimalNetworkService.kt new file mode 100644 index 000000000..41812a56f --- /dev/null +++ b/blockchain/src/main/java/com/tangem/blockchain/blockchains/decimal/DecimalNetworkService.kt @@ -0,0 +1,43 @@ +package com.tangem.blockchain.blockchains.decimal + +import com.tangem.blockchain.blockchains.ethereum.network.EthereumInfoResponse +import com.tangem.blockchain.blockchains.ethereum.network.EthereumJsonRpcProvider +import com.tangem.blockchain.blockchains.ethereum.network.EthereumNetworkService +import com.tangem.blockchain.common.Token +import com.tangem.blockchain.extensions.Result +import com.tangem.blockchain.network.blockchair.BlockchairToken +import java.math.BigDecimal +import java.math.BigInteger + +internal class DecimalNetworkService( + jsonRpcProviders: List, +) : EthereumNetworkService(jsonRpcProviders, blockcypherNetworkProvider = null, blockchairEthNetworkProvider = null) { + + override suspend fun getInfo(address: String, tokens: Set): Result { + return super.getInfo(convertAddress(address), tokens) + } + + override suspend fun getAllowance(ownerAddress: String, token: Token, spenderAddress: String): Result { + return super.getAllowance(convertAddress(ownerAddress), token, spenderAddress) + } + + override suspend fun getSignatureCount(address: String): Result { + return super.getSignatureCount(convertAddress(address)) + } + + override suspend fun getTokensBalance(address: String, tokens: Set): Result> { + return super.getTokensBalance(convertAddress(address), tokens) + } + + override suspend fun findErc20Tokens(address: String): Result> { + return super.findErc20Tokens(convertAddress(address)) + } + + override suspend fun getGasLimit(to: String, from: String, value: String?, data: String?): Result { + return super.getGasLimit(convertAddress(to), convertAddress(from), value, data) + } + + private fun convertAddress(address: String): String { + return DecimalAddressService.convertDscAddressToErcAddress(address) ?: address + } +} diff --git a/blockchain/src/main/java/com/tangem/blockchain/blockchains/ethereum/network/EthereumNetworkService.kt b/blockchain/src/main/java/com/tangem/blockchain/blockchains/ethereum/network/EthereumNetworkService.kt index a971c1e53..235e44d36 100644 --- a/blockchain/src/main/java/com/tangem/blockchain/blockchains/ethereum/network/EthereumNetworkService.kt +++ b/blockchain/src/main/java/com/tangem/blockchain/blockchains/ethereum/network/EthereumNetworkService.kt @@ -1,7 +1,10 @@ package com.tangem.blockchain.blockchains.ethereum.network import com.tangem.blockchain.blockchains.ethereum.EthereumUtils -import com.tangem.blockchain.common.* +import com.tangem.blockchain.common.Blockchain +import com.tangem.blockchain.common.BlockchainSdkError +import com.tangem.blockchain.common.Token +import com.tangem.blockchain.common.toBlockchainSdkError import com.tangem.blockchain.extensions.Result import com.tangem.blockchain.extensions.SimpleResult import com.tangem.blockchain.network.MultiNetworkProvider @@ -13,7 +16,7 @@ import kotlinx.coroutines.coroutineScope import java.math.BigDecimal import java.math.BigInteger -class EthereumNetworkService( +open class EthereumNetworkService( jsonRpcProviders: List, private val blockcypherNetworkProvider: BlockcypherNetworkProvider? = null, private val blockchairEthNetworkProvider: BlockchairEthNetworkProvider? = null, diff --git a/blockchain/src/main/java/com/tangem/blockchain/common/address/AddressType.kt b/blockchain/src/main/java/com/tangem/blockchain/common/address/AddressType.kt index 08b8aae38..f8b90aa80 100644 --- a/blockchain/src/main/java/com/tangem/blockchain/common/address/AddressType.kt +++ b/blockchain/src/main/java/com/tangem/blockchain/common/address/AddressType.kt @@ -6,6 +6,10 @@ package com.tangem.blockchain.common.address // btc: // segwit = default + +// decimal: +// 0x = legacy +// d0 = default enum class AddressType { Default, Legacy diff --git a/blockchain/src/main/java/com/tangem/blockchain/common/assembly/impl/DecimalWalletManagerAssembly.kt b/blockchain/src/main/java/com/tangem/blockchain/common/assembly/impl/DecimalWalletManagerAssembly.kt index 39f65221a..8a0cb2a60 100644 --- a/blockchain/src/main/java/com/tangem/blockchain/common/assembly/impl/DecimalWalletManagerAssembly.kt +++ b/blockchain/src/main/java/com/tangem/blockchain/common/assembly/impl/DecimalWalletManagerAssembly.kt @@ -1,9 +1,9 @@ package com.tangem.blockchain.common.assembly.impl +import com.tangem.blockchain.blockchains.decimal.DecimalNetworkService import com.tangem.blockchain.blockchains.decimal.DecimalWalletManager import com.tangem.blockchain.blockchains.ethereum.EthereumTransactionBuilder import com.tangem.blockchain.blockchains.ethereum.getEthereumJsonRpcProviders -import com.tangem.blockchain.blockchains.ethereum.network.EthereumNetworkService import com.tangem.blockchain.common.assembly.WalletManagerAssembly import com.tangem.blockchain.common.assembly.WalletManagerAssemblyInput @@ -15,9 +15,9 @@ internal object DecimalWalletManagerAssembly : WalletManagerAssembly Date: Tue, 28 Nov 2023 20:20:56 +0400 Subject: [PATCH 5/6] AND-5394 Improved DecimalAddressService --- .../decimal/DecimalAddressService.kt | 21 +++++++++++-------- .../decimal/DecimalNetworkService.kt | 2 +- .../decimal/DecimalWalletManager.kt | 2 +- .../providers/DecimalExternalLinkProvider.kt | 2 +- 4 files changed, 15 insertions(+), 12 deletions(-) diff --git a/blockchain/src/main/java/com/tangem/blockchain/blockchains/decimal/DecimalAddressService.kt b/blockchain/src/main/java/com/tangem/blockchain/blockchains/decimal/DecimalAddressService.kt index e0a3f8837..a63c020f6 100644 --- a/blockchain/src/main/java/com/tangem/blockchain/blockchains/decimal/DecimalAddressService.kt +++ b/blockchain/src/main/java/com/tangem/blockchain/blockchains/decimal/DecimalAddressService.kt @@ -18,22 +18,23 @@ import com.tangem.blockchain.common.address.Address as SdkAddress internal class DecimalAddressService : AddressService() { override fun makeAddress(walletPublicKey: ByteArray, curve: EllipticCurve?): String { - return makeErcAddress(walletPublicKey) + return makeDscAddress(walletPublicKey) } override fun makeAddresses( walletPublicKey: ByteArray, curve: EllipticCurve?, ): Set { - val ercAddress = makeErcAddress(walletPublicKey) + val dscAddress = makeDscAddress(walletPublicKey) return setOf( - SdkAddress(ercAddress, AddressType.Legacy), - SdkAddress(convertErcAddressToDscAddress(ercAddress), AddressType.Default), + SdkAddress(dscAddress, AddressType.Legacy), + SdkAddress(convertDscAddressToDelAddress(dscAddress), AddressType.Default), ) } - private fun makeErcAddress(walletPublicKey: ByteArray): String { + /** Same as ERC55 address */ + private fun makeDscAddress(walletPublicKey: ByteArray): String { val decompressedPublicKey = walletPublicKey .toDecompressedPublicKey() .sliceArray(1..64) @@ -47,7 +48,7 @@ internal class DecimalAddressService : AddressService() { override fun validate(address: String): Boolean { val addressToValidate = when { address.startsWith(ADDRESS_PREFIX) || address.startsWith(LEGACY_ADDRESS_PREFIX) -> { - convertDscAddressToErcAddress(address) ?: return false + convertDelAddressToDscAddress(address) } else -> address @@ -61,20 +62,22 @@ internal class DecimalAddressService : AddressService() { private const val LEGACY_ADDRESS_PREFIX = "dx" private const val ERC55_ADDRESS_PREFIX = "0x" - fun convertDscAddressToErcAddress(addressHex: String): String? { + fun convertDelAddressToDscAddress(addressHex: String): String { if (addressHex.startsWith(ERC55_ADDRESS_PREFIX)) { return addressHex } val (prefix, addressBytes) = Bech32.decode(addressHex).let { it.hrp to it.data } - if (prefix == null || addressBytes == null) return null + require(value = prefix != null && addressBytes != null) { + "Unable to convert DEL address to DSC address: $addressHex" + } val convertedAddressBytes = Crypto.convertBits(addressBytes, 0, addressBytes.size, 5, 8, false) return convertedAddressBytes.toHexString() } - fun convertErcAddressToDscAddress(addressHex: String): String { + fun convertDscAddressToDelAddress(addressHex: String): String { if (addressHex.startsWith(ADDRESS_PREFIX) || addressHex.startsWith(LEGACY_ADDRESS_PREFIX)) { return addressHex } diff --git a/blockchain/src/main/java/com/tangem/blockchain/blockchains/decimal/DecimalNetworkService.kt b/blockchain/src/main/java/com/tangem/blockchain/blockchains/decimal/DecimalNetworkService.kt index 41812a56f..d9e168187 100644 --- a/blockchain/src/main/java/com/tangem/blockchain/blockchains/decimal/DecimalNetworkService.kt +++ b/blockchain/src/main/java/com/tangem/blockchain/blockchains/decimal/DecimalNetworkService.kt @@ -38,6 +38,6 @@ internal class DecimalNetworkService( } private fun convertAddress(address: String): String { - return DecimalAddressService.convertDscAddressToErcAddress(address) ?: address + return DecimalAddressService.convertDelAddressToDscAddress(address) } } diff --git a/blockchain/src/main/java/com/tangem/blockchain/blockchains/decimal/DecimalWalletManager.kt b/blockchain/src/main/java/com/tangem/blockchain/blockchains/decimal/DecimalWalletManager.kt index 95db45e90..a1646a79a 100644 --- a/blockchain/src/main/java/com/tangem/blockchain/blockchains/decimal/DecimalWalletManager.kt +++ b/blockchain/src/main/java/com/tangem/blockchain/blockchains/decimal/DecimalWalletManager.kt @@ -55,6 +55,6 @@ internal class DecimalWalletManager( ) private fun convertAddress(destinationAddress: String): String { - return DecimalAddressService.convertDscAddressToErcAddress(destinationAddress) ?: destinationAddress + return DecimalAddressService.convertDelAddressToDscAddress(destinationAddress) } } diff --git a/blockchain/src/main/java/com/tangem/blockchain/externallinkprovider/providers/DecimalExternalLinkProvider.kt b/blockchain/src/main/java/com/tangem/blockchain/externallinkprovider/providers/DecimalExternalLinkProvider.kt index 87a29e8d2..88214b9c2 100644 --- a/blockchain/src/main/java/com/tangem/blockchain/externallinkprovider/providers/DecimalExternalLinkProvider.kt +++ b/blockchain/src/main/java/com/tangem/blockchain/externallinkprovider/providers/DecimalExternalLinkProvider.kt @@ -14,7 +14,7 @@ internal class DecimalExternalLinkProvider(isTestnet: Boolean) : ExternalLinkPro override val testNetTopUpUrl: String = "https://testnet.console.decimalchain.com/wallet/" override fun explorerUrl(walletAddress: String, contractAddress: String?): String { - val address = DecimalAddressService.convertErcAddressToDscAddress(walletAddress) + val address = DecimalAddressService.convertDscAddressToDelAddress(walletAddress) return explorerBaseUrl + "address/$address" } From 7a641a16a3c57ae80cbf589c72c951261146016a Mon Sep 17 00:00:00 2001 From: Vlad Kozarez Date: Fri, 1 Dec 2023 17:27:09 +0300 Subject: [PATCH 6/6] AND-5439 hide arbitrum txh --- .../common/txhistory/TransactionHistoryProviderExt.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blockchain/src/main/java/com/tangem/blockchain/common/txhistory/TransactionHistoryProviderExt.kt b/blockchain/src/main/java/com/tangem/blockchain/common/txhistory/TransactionHistoryProviderExt.kt index 6d82a11a4..8f9da2831 100644 --- a/blockchain/src/main/java/com/tangem/blockchain/common/txhistory/TransactionHistoryProviderExt.kt +++ b/blockchain/src/main/java/com/tangem/blockchain/common/txhistory/TransactionHistoryProviderExt.kt @@ -26,7 +26,7 @@ internal fun Blockchain.getTransactionHistoryProvider( Blockchain.Ethereum, Blockchain.EthereumTestnet, - Blockchain.Arbitrum, + // Blockchain.Arbitrum, Blockchain.Avalanche, Blockchain.BSC, // Blockchain.Polygon,