mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-09 22:06:25 +00:00
f5b46d6972
For start support showing sign message only Support rejecting the request Storybook integration Add disabled tests for the main logic and sanity UI tests. They crash on CI only and work locally on mac. Postponed finding out why for now. Closes: #14927
30 lines
685 B
QML
30 lines
685 B
QML
import QtQuick 2.15
|
|
|
|
import StatusQ.Core.Utils 0.1
|
|
|
|
QObject {
|
|
id: root
|
|
|
|
required property var controller
|
|
|
|
/// \c dappsJson serialized from status-go.wallet.GetDapps
|
|
signal dappsListReceived(string dappsJson)
|
|
|
|
function addWalletConnectSession(sessionJson) {
|
|
controller.addWalletConnectSession(sessionJson)
|
|
}
|
|
|
|
/// \c getDapps triggers an async response to \c dappsListReceived
|
|
function getDapps() {
|
|
return controller.getDapps()
|
|
}
|
|
|
|
// Handle async response from controller
|
|
Connections {
|
|
target: controller
|
|
|
|
function onDappsListReceived(dappsJson) {
|
|
root.dappsListReceived(dappsJson)
|
|
}
|
|
}
|
|
} |