Updated on 2026-08-14

This commit is contained in:
Tangem 2025-04-02 15:09:12 +07:00
parent dc28193531
commit bcd10fbe27
4 changed files with 6 additions and 3 deletions

View file

@ -19,6 +19,7 @@ internal sealed class WalletConnect(
AnalyticsParam.SOURCE to when (source) {
SourceType.QR -> "QR"
SourceType.DEEPLINK -> "DeepLink"
SourceType.CLIPBOARD -> "Clipboard"
SourceType.ETC -> "etc"
},
),

View file

@ -459,7 +459,7 @@ internal class DefaultLegacyWalletConnectRepository(
val session = currentSessions.find { it.topic == requestData.topic }
analyticsHandler.send(
WalletConnect.SignatureRequestHandled(
WalletConnect.SignatureRequestFailed(
WalletConnect.RequestHandledParams(
dAppName = session?.name ?: "",
dAppUrl = session?.url ?: "",

View file

@ -17,7 +17,7 @@ sealed class WalletConnectAction : Action {
val wcUri: String,
val source: SourceType,
) : WalletConnectAction() {
enum class SourceType { QR, DEEPLINK, ETC }
enum class SourceType { QR, DEEPLINK, CLIPBOARD, ETC }
}
data class DisconnectSession(val topic: String) : WalletConnectAction()

View file

@ -17,7 +17,9 @@ object ClipboardOrScanQrDialog {
setTitle(context.getString(R.string.common_select_action))
setMessage(context.getText(R.string.wallet_connect_clipboard_alert))
setPositiveButton(context.getText(R.string.wallet_connect_paste_from_clipboard)) { _, _ ->
store.dispatch(WalletConnectAction.OpenSession(wcUri, WalletConnectAction.OpenSession.SourceType.ETC))
store.dispatch(
WalletConnectAction.OpenSession(wcUri, WalletConnectAction.OpenSession.SourceType.CLIPBOARD),
)
}
setNegativeButton(context.getText(R.string.wallet_connect_scan_new_code)) { _, _ ->
store.dispatchNavigationAction {