mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-10 05:36:23 +00:00
35b81eadf6
Things done here: Integrate basic functionality for wallet connect in status-go Update the list of dapps from the SDK Retrieve the persistence dapps list from the backend as a fallback if there is no connection and SDK can't be initialized Provide a basic simple view of dapps in the wallet connect popup Closes: #14557
28 lines
690 B
QML
28 lines
690 B
QML
import QtQuick 2.15
|
|
|
|
QtObject {
|
|
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
|
|
property Connections _connections: Connections {
|
|
target: controller
|
|
|
|
function onDappsListReceived(dappsJson) {
|
|
root.dappsListReceived(dappsJson)
|
|
}
|
|
}
|
|
} |