Updated on 2026-08-14
This commit is contained in:
parent
dc28193531
commit
bcd10fbe27
4 changed files with 6 additions and 3 deletions
|
|
@ -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"
|
||||
},
|
||||
),
|
||||
|
|
|
|||
|
|
@ -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 ?: "",
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue