Updated on 2026-08-14
This commit is contained in:
parent
0b7e1f6bb5
commit
0b00f8f277
6 changed files with 13 additions and 4 deletions
|
|
@ -2,6 +2,7 @@ package com.tangem.tap.features.send.redux.reducers
|
|||
|
||||
import com.tangem.blockchain.common.AmountType
|
||||
import com.tangem.blockchain.common.Blockchain
|
||||
import com.tangem.blockchain.common.FeePaidCurrency
|
||||
import com.tangem.tap.common.CurrencyConverter
|
||||
import com.tangem.tap.common.entities.IndeterminateProgressButton
|
||||
import com.tangem.tap.features.send.redux.*
|
||||
|
|
@ -109,7 +110,8 @@ private class PrepareSendScreenStatesReducer : SendInternalReducer {
|
|||
}
|
||||
|
||||
private fun isFeePaidInNetworkCurrency(blockchain: Blockchain): Boolean =
|
||||
blockchain.tokenTransactionFeePaidInNetworkCurrency()
|
||||
// blockchain.tokenTransactionFeePaidInNetworkCurrency()
|
||||
blockchain.feePaidCurrency() == FeePaidCurrency.SameCurrency // TODO [REDACTED_TASK_KEY]
|
||||
|
||||
private fun isCoinAmount(typeOfAmount: AmountType): Boolean = typeOfAmount == AmountType.Coin
|
||||
}
|
||||
|
|
|
|||
|
|
@ -129,7 +129,6 @@ internal class ConfigManagerImpl @Inject constructor() : ConfigManager {
|
|||
tron = GetBlockAccessToken(rest = accessTokens.tron?.rest),
|
||||
cosmos = GetBlockAccessToken(rest = accessTokens.cosmos?.rest),
|
||||
near = GetBlockAccessToken(jsonRpc = accessTokens.near?.jsonRPC),
|
||||
luna = GetBlockAccessToken(rest = accessTokens.luna?.rest),
|
||||
dogecoin = GetBlockAccessToken(
|
||||
jsonRpc = accessTokens.dogecoin?.jsonRPC,
|
||||
blockBookRest = accessTokens.dogecoin?.blockBookRest,
|
||||
|
|
|
|||
|
|
@ -62,7 +62,6 @@ data class GetBlockAccessTokens(
|
|||
@Json(name = "tron") val tron: GetBlockToken?,
|
||||
@Json(name = "cosmos-hub") val cosmos: GetBlockToken?,
|
||||
@Json(name = "near") val near: GetBlockToken?,
|
||||
@Json(name = "terra-2") val luna: GetBlockToken?,
|
||||
@Json(name = "dogecoin") val dogecoin: GetBlockToken?,
|
||||
@Json(name = "litecoin") val litecoin: GetBlockToken?,
|
||||
@Json(name = "dash") val dash: GetBlockToken?,
|
||||
|
|
|
|||
|
|
@ -74,6 +74,8 @@ fun Blockchain.Companion.fromNetworkId(networkId: String): Blockchain? {
|
|||
"near-protocol/test" -> Blockchain.NearTestnet
|
||||
"decimal" -> Blockchain.Decimal
|
||||
"decimal/test" -> Blockchain.DecimalTestnet
|
||||
"TODO" -> Blockchain.Vechain // TODO [REDACTED_TASK_KEY]
|
||||
"TODO/test" -> Blockchain.VechainTestnet // TODO [REDACTED_TASK_KEY]
|
||||
else -> null
|
||||
}
|
||||
}
|
||||
|
|
@ -149,6 +151,8 @@ fun Blockchain.toNetworkId(): String {
|
|||
Blockchain.NearTestnet -> "near-protocol/test"
|
||||
Blockchain.Decimal -> "decimal"
|
||||
Blockchain.DecimalTestnet -> "decimal/test"
|
||||
Blockchain.Vechain -> "TODO" // TODO [REDACTED_TASK_KEY]
|
||||
Blockchain.VechainTestnet -> "TODO/test" // TODO [REDACTED_TASK_KEY]
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -196,6 +200,8 @@ fun Blockchain.toCoinId(): String {
|
|||
Blockchain.Near -> "near"
|
||||
Blockchain.NearTestnet -> "near/test"
|
||||
Blockchain.Decimal, Blockchain.DecimalTestnet -> "decimal"
|
||||
Blockchain.Vechain -> "TODO" // TODO [REDACTED_TASK_KEY]
|
||||
Blockchain.VechainTestnet -> "TODO/test" // TODO [REDACTED_TASK_KEY]
|
||||
Blockchain.Unknown -> "unknown"
|
||||
}
|
||||
}
|
||||
|
|
@ -223,4 +229,6 @@ private const val NODL_AMOUNT_TO_CREATE_ACCOUNT = 1.5
|
|||
private val excludedBlockchains = listOf(
|
||||
Blockchain.Unknown,
|
||||
Blockchain.Ducatus,
|
||||
Blockchain.Vechain, // TODO [REDACTED_TASK_KEY]
|
||||
Blockchain.VechainTestnet, // TODO [REDACTED_TASK_KEY]
|
||||
)
|
||||
|
|
@ -1299,6 +1299,7 @@ internal class SwapInteractorImpl @Inject constructor(
|
|||
return when (this) {
|
||||
is Fee.Common -> 0
|
||||
is Fee.Ethereum -> this.gasLimit.toInt()
|
||||
is Fee.Vechain -> TODO() // TODO [REDACTED_TASK_KEY]
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ spr-client = "3.6.2"
|
|||
# endregion Other libraries
|
||||
|
||||
# region Tangem
|
||||
tangemBlockchainSdk = "develop-440"
|
||||
tangemBlockchainSdk = "develop-444"
|
||||
#tangemBlockchainSdk = "0.0.1" # Keep it! - used for local builds
|
||||
tangemCardSdk = "develop-317"
|
||||
#tangemCardSdk = "0.0.1" # Keep it! - used for local builds ^
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue