Updated on 2026-08-14
This commit is contained in:
parent
8b75e37e30
commit
a9bca131c3
386 changed files with 1369 additions and 1347 deletions
|
|
@ -27,6 +27,7 @@ dependencies {
|
|||
implementation(projects.core.decompose)
|
||||
implementation(projects.core.navigation)
|
||||
implementation(projects.core.ui)
|
||||
implementation(projects.core.utils)
|
||||
|
||||
/** Domain models */
|
||||
implementation(projects.domain.account)
|
||||
|
|
@ -73,7 +74,6 @@ dependencies {
|
|||
implementation(deps.arrow.core)
|
||||
implementation(deps.decompose.ext.compose)
|
||||
implementation(deps.kotlin.immutable.collections)
|
||||
implementation(deps.timber)
|
||||
implementation(tangemDeps.card.core)
|
||||
implementation(tangemDeps.blockchain)
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ import kotlinx.coroutines.flow.MutableStateFlow
|
|||
import kotlinx.coroutines.flow.StateFlow
|
||||
import kotlinx.coroutines.flow.update
|
||||
import kotlinx.coroutines.launch
|
||||
import timber.log.Timber
|
||||
import com.tangem.utils.logging.TangemLogger
|
||||
import javax.inject.Inject
|
||||
|
||||
@Stable
|
||||
|
|
@ -60,7 +60,7 @@ internal class WcConnectedAppInfoModel @Inject constructor(
|
|||
modelScope.launch {
|
||||
val session = wcSessionsUseCase.findByTopic(topic = topic)
|
||||
if (session == null) {
|
||||
Timber.e("Can not find WcSession by topic: $topic")
|
||||
TangemLogger.e("Can not find WcSession by topic: $topic")
|
||||
messageSender.send(SnackbarMessage(stringReference("Can not find WcSession by topic: $topic")))
|
||||
dismiss()
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import com.tangem.features.walletconnect.connections.entity.*
|
|||
import com.tangem.features.walletconnect.impl.R
|
||||
import com.tangem.features.walletconnect.transaction.ui.sign.accountPortfolioName
|
||||
import kotlinx.collections.immutable.persistentListOf
|
||||
import timber.log.Timber
|
||||
import com.tangem.utils.logging.TangemLogger
|
||||
import java.util.UUID
|
||||
|
||||
internal object WcConnectionsPreviewData {
|
||||
|
|
@ -24,13 +24,13 @@ internal object WcConnectionsPreviewData {
|
|||
iconUrl = "$BASE_URL/satoshi.png",
|
||||
subtitle = "https://react-app.walletconnect.com/",
|
||||
verifiedState = VerifiedDAppState.Verified {},
|
||||
onClick = { Timber.d("Moralis clicked") },
|
||||
onClick = { TangemLogger.d("Moralis clicked") },
|
||||
),
|
||||
WcConnectedAppInfo(
|
||||
name = "website.com",
|
||||
iconUrl = "$BASE_URL/doge_again_lol.jpg",
|
||||
subtitle = "https://react-app.walletconnect.com/",
|
||||
onClick = { Timber.d("website.com clicked") },
|
||||
onClick = { TangemLogger.d("website.com clicked") },
|
||||
verifiedState = VerifiedDAppState.Unknown,
|
||||
),
|
||||
),
|
||||
|
|
@ -44,7 +44,7 @@ internal object WcConnectionsPreviewData {
|
|||
iconUrl = "$BASE_URL/LiteCoin.png",
|
||||
subtitle = "https://react-app.walletconnect.com/",
|
||||
verifiedState = VerifiedDAppState.Verified {},
|
||||
onClick = { Timber.d("React app clicked") },
|
||||
onClick = { TangemLogger.d("React app clicked") },
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
@ -57,14 +57,14 @@ internal object WcConnectionsPreviewData {
|
|||
iconUrl = "$BASE_URL/satoshi.png",
|
||||
subtitle = "https://react-app.walletconnect.com/",
|
||||
verifiedState = VerifiedDAppState.Verified {},
|
||||
onClick = { Timber.d("Moralis clicked") },
|
||||
onClick = { TangemLogger.d("Moralis clicked") },
|
||||
),
|
||||
WcConnectedAppInfo(
|
||||
name = "website.com",
|
||||
iconUrl = "$BASE_URL/doge_again_lol.jpg",
|
||||
subtitle = "https://react-app.walletconnect.com/",
|
||||
verifiedState = VerifiedDAppState.Unknown,
|
||||
onClick = { Timber.d("website.com clicked") },
|
||||
onClick = { TangemLogger.d("website.com clicked") },
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
@ -76,7 +76,7 @@ internal object WcConnectionsPreviewData {
|
|||
name = "React app",
|
||||
iconUrl = "$BASE_URL/LiteCoin.png",
|
||||
subtitle = "https://react-app.walletconnect.com/",
|
||||
onClick = { Timber.d("React app clicked") },
|
||||
onClick = { TangemLogger.d("React app clicked") },
|
||||
verifiedState = VerifiedDAppState.Verified {},
|
||||
),
|
||||
),
|
||||
|
|
@ -90,13 +90,13 @@ internal object WcConnectionsPreviewData {
|
|||
iconUrl = "$BASE_URL/satoshi.png",
|
||||
subtitle = "https://react-app.walletconnect.com/",
|
||||
verifiedState = VerifiedDAppState.Verified {},
|
||||
onClick = { Timber.d("Moralis clicked") },
|
||||
onClick = { TangemLogger.d("Moralis clicked") },
|
||||
),
|
||||
WcConnectedAppInfo(
|
||||
name = "website.com",
|
||||
iconUrl = "$BASE_URL/doge_again_lol.jpg",
|
||||
subtitle = "https://react-app.walletconnect.com/",
|
||||
onClick = { Timber.d("website.com clicked") },
|
||||
onClick = { TangemLogger.d("website.com clicked") },
|
||||
verifiedState = VerifiedDAppState.Unknown,
|
||||
),
|
||||
),
|
||||
|
|
@ -110,7 +110,7 @@ internal object WcConnectionsPreviewData {
|
|||
iconUrl = "$BASE_URL/LiteCoin.png",
|
||||
subtitle = "https://react-app.walletconnect.com/",
|
||||
verifiedState = VerifiedDAppState.Verified {},
|
||||
onClick = { Timber.d("React app clicked") },
|
||||
onClick = { TangemLogger.d("React app clicked") },
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
@ -137,7 +137,7 @@ internal object WcConnectionsPreviewData {
|
|||
iconUrl = "$BASE_URL/LiteCoin.png",
|
||||
subtitle = "https://react-app.walletconnect.com/",
|
||||
verifiedState = VerifiedDAppState.Verified {},
|
||||
onClick = { Timber.d("React app clicked") },
|
||||
onClick = { TangemLogger.d("React app clicked") },
|
||||
)
|
||||
|
||||
val walletHeader
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import com.tangem.features.walletconnect.components.deeplink.WalletConnectDeepLi
|
|||
import dagger.assisted.Assisted
|
||||
import dagger.assisted.AssistedFactory
|
||||
import dagger.assisted.AssistedInject
|
||||
import timber.log.Timber
|
||||
import com.tangem.utils.logging.TangemLogger
|
||||
import java.net.URLDecoder
|
||||
|
||||
internal class DefaultWalletConnectDeepLinkHandler @AssistedInject constructor(
|
||||
|
|
@ -24,7 +24,7 @@ internal class DefaultWalletConnectDeepLinkHandler @AssistedInject constructor(
|
|||
// It is okay here, we are navigating from outside, and there is no other way to getting UserWallet
|
||||
getSelectedWalletSyncUseCase().fold(
|
||||
ifLeft = {
|
||||
Timber.e("Error on getting user wallet: $it")
|
||||
TangemLogger.e("Error on getting user wallet: $it")
|
||||
},
|
||||
ifRight = { wallet ->
|
||||
val decodedWcUri = URLDecoder.decode(wcUri, DEFAULT_CHARSET_NAME)
|
||||
|
|
@ -38,7 +38,7 @@ internal class DefaultWalletConnectDeepLinkHandler @AssistedInject constructor(
|
|||
},
|
||||
)
|
||||
} catch (e: Exception) {
|
||||
Timber.e(e)
|
||||
TangemLogger.e("Error", e)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
package com.tangem.features.walletconnect.transaction.converter
|
||||
|
||||
import com.tangem.utils.logging.TangemLogger
|
||||
import com.tangem.core.ui.extensions.resourceReference
|
||||
import com.tangem.domain.walletconnect.model.sdkcopy.WcSdkSessionRequest
|
||||
import com.tangem.domain.walletconnect.usecase.method.WcMessageSignUseCase
|
||||
|
|
@ -8,7 +9,6 @@ import com.tangem.features.walletconnect.transaction.entity.common.WcTransaction
|
|||
import com.tangem.features.walletconnect.transaction.entity.common.WcTransactionRequestInfoItemUM
|
||||
import com.tangem.utils.converter.Converter
|
||||
import kotlinx.collections.immutable.toImmutableList
|
||||
import timber.log.Timber
|
||||
import javax.inject.Inject
|
||||
|
||||
internal class WcTransactionRequestBlockUMConverter @Inject constructor(
|
||||
|
|
@ -42,7 +42,7 @@ internal class WcTransactionRequestBlockUMConverter @Inject constructor(
|
|||
try {
|
||||
addAll(transactionParamsConverter.convert(params))
|
||||
} catch (exception: Exception) {
|
||||
Timber.e(exception, "Error while parsing transaction params - %s", params)
|
||||
TangemLogger.e("Error while parsing transaction params - $params", exception)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue