2024-05-31 09:34:59 +00:00
|
|
|
import QtQuick 2.15
|
|
|
|
|
|
|
|
/// SDK requires a visible parent to embed WebEngineView
|
|
|
|
Item {
|
|
|
|
required property string projectId
|
2024-11-07 09:10:10 +00:00
|
|
|
property bool enabled: true
|
2024-05-31 09:34:59 +00:00
|
|
|
|
|
|
|
signal statusChanged(string message)
|
|
|
|
signal sdkInit(bool success, var result)
|
|
|
|
signal pairResponse(bool success)
|
|
|
|
signal sessionProposal(var sessionProposal)
|
|
|
|
signal sessionProposalExpired()
|
2024-11-07 09:10:10 +00:00
|
|
|
signal buildApprovedNamespacesResult(string id, var session, string error)
|
|
|
|
signal approveSessionResult(string proposalId, var approvedNamespaces, string error)
|
|
|
|
signal rejectSessionResult(string proposalId, string error)
|
|
|
|
signal sessionRequestExpired(string id)
|
2024-05-31 09:34:59 +00:00
|
|
|
signal sessionRequestEvent(var sessionRequest)
|
2024-06-04 20:45:03 +00:00
|
|
|
signal sessionRequestUserAnswerResult(string topic, string id, bool accept /* not reject */, string error)
|
2024-10-17 15:02:51 +00:00
|
|
|
signal sessionAuthenticateRequest(var sessionData)
|
2024-11-07 09:10:10 +00:00
|
|
|
signal populateAuthPayloadResult(string id, var authPayload, string error)
|
|
|
|
signal formatAuthMessageResult(string id, var request, string error)
|
|
|
|
signal acceptSessionAuthenticateResult(string id, var result, string error)
|
|
|
|
signal rejectSessionAuthenticateResult(string id, var result, string error)
|
|
|
|
signal buildAuthObjectResult(string id, var authObject, string error)
|
2024-05-31 09:34:59 +00:00
|
|
|
|
|
|
|
signal sessionDelete(var topic, string error)
|
|
|
|
|
|
|
|
property var pair: function(pairLink) {
|
|
|
|
console.error("pair not implemented")
|
|
|
|
}
|
|
|
|
property var getPairings: function(callback) {
|
|
|
|
console.error("getPairings not implemented")
|
|
|
|
}
|
|
|
|
property var getActiveSessions: function(callback) {
|
|
|
|
console.error("getActiveSessions not implemented")
|
|
|
|
}
|
|
|
|
property var disconnectSession: function(topic) {
|
|
|
|
console.error("disconnectSession not implemented")
|
|
|
|
}
|
|
|
|
property var disconnectPairing: function(topic) {
|
|
|
|
console.error("disconnectPairing not implemented")
|
|
|
|
}
|
|
|
|
|
|
|
|
property var ping: function(topic) {
|
|
|
|
console.error("ping not implemented")
|
|
|
|
}
|
|
|
|
|
2024-10-03 18:15:24 +00:00
|
|
|
property var buildApprovedNamespaces: function(id, params, supportedNamespaces) {
|
2024-05-31 09:34:59 +00:00
|
|
|
console.error("buildApprovedNamespaces not implemented")
|
|
|
|
}
|
|
|
|
property var approveSession: function(sessionProposal, supportedNamespaces) {
|
|
|
|
console.error("approveSession not implemented")
|
|
|
|
}
|
|
|
|
|
|
|
|
property var rejectSession: function(id) {
|
|
|
|
console.error("rejectSession not implemented")
|
|
|
|
}
|
|
|
|
|
|
|
|
property var acceptSessionRequest: function(topic, id, signature) {
|
|
|
|
console.error("acceptSessionRequest not implemented")
|
|
|
|
}
|
|
|
|
|
|
|
|
property var rejectSessionRequest: function(topic, id, error) {
|
|
|
|
console.error("rejectSessionRequest not implemented")
|
|
|
|
}
|
2024-10-17 15:02:51 +00:00
|
|
|
|
|
|
|
property var populateAuthPayload: function (id, authPayload, chains, methods) {
|
|
|
|
console.error("populateAuthPayload not implemented")
|
|
|
|
}
|
|
|
|
|
|
|
|
property var formatAuthMessage: function(id, request, iss) {
|
|
|
|
console.error("formatAuthMessage not implemented")
|
|
|
|
}
|
|
|
|
|
|
|
|
property var buildAuthObject: function(id, authPayload, signature, iss) {
|
|
|
|
console.error("buildAuthObject not implemented")
|
|
|
|
}
|
|
|
|
|
|
|
|
property var acceptSessionAuthenticate: function(id, auths) {
|
|
|
|
console.error("acceptSessionAuthenticate not implemented")
|
|
|
|
}
|
|
|
|
|
|
|
|
property var rejectSessionAuthenticate: function(id, error) {
|
|
|
|
console.error("rejectSessionAuthenticate not implemented")
|
|
|
|
}
|
2024-10-23 11:37:32 +00:00
|
|
|
|
|
|
|
property var emitSessionEvent: function(topic, event, chainId) {
|
|
|
|
console.error("emitSessionEvent not implemented")
|
|
|
|
}
|
2024-05-31 09:34:59 +00:00
|
|
|
}
|