mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-15 00:55:22 +00:00
36 lines
912 B
QML
36 lines
912 B
QML
import QtQuick 2.15
|
|
|
|
QtObject {
|
|
id: root
|
|
|
|
readonly property var providersModel: walletSectionBuySellCrypto.model
|
|
readonly property bool areProvidersLoading: walletSectionBuySellCrypto.isFetching
|
|
|
|
signal providerUrlReady(string uuid , string url)
|
|
|
|
function fetchProviders() {
|
|
walletSectionBuySellCrypto.fetchProviders()
|
|
}
|
|
|
|
function fetchProviderUrl(
|
|
uuid,
|
|
providerID,
|
|
isRecurrent,
|
|
selectedWalletAddress = "",
|
|
chainID = 0,
|
|
symbol = "") {
|
|
walletSectionBuySellCrypto.fetchProviderUrl(
|
|
uuid,
|
|
providerID,
|
|
isRecurrent,
|
|
selectedWalletAddress,
|
|
chainID,
|
|
symbol
|
|
)
|
|
}
|
|
|
|
Component.onCompleted: {
|
|
walletSectionBuySellCrypto.providerUrlReady.connect(root.providerUrlReady)
|
|
}
|
|
}
|