2022-02-14 23:27:23 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import utils 1.0
|
|
|
|
|
|
|
|
QtObject {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
property var stickersModule
|
|
|
|
|
|
|
|
function getSigningPhrase() {
|
|
|
|
if(!root.stickersModule)
|
|
|
|
return ""
|
|
|
|
return stickersModule.getSigningPhrase()
|
|
|
|
}
|
|
|
|
|
|
|
|
function getStickersMarketAddress() {
|
|
|
|
if(!root.stickersModule)
|
|
|
|
return ""
|
|
|
|
return stickersModule.getStickersMarketAddress()
|
|
|
|
}
|
|
|
|
|
|
|
|
function getWalletDefaultAddress() {
|
|
|
|
if(!root.stickersModule)
|
|
|
|
return ""
|
|
|
|
return stickersModule.getWalletDefaultAddress()
|
|
|
|
}
|
|
|
|
|
|
|
|
function getCurrentCurrency() {
|
|
|
|
if(!root.stickersModule)
|
|
|
|
return ""
|
|
|
|
return stickersModule.getCurrentCurrency()
|
|
|
|
}
|
|
|
|
|
|
|
|
function getGasEthValue(gweiValue, gasLimit) {
|
|
|
|
if(!root.stickersModule)
|
|
|
|
return ""
|
|
|
|
return stickersModule.getGasEthValue(gweiValue, gasLimit)
|
|
|
|
}
|
|
|
|
|
2024-02-05 16:44:49 +00:00
|
|
|
function getStatusTokenKey() {
|
2022-02-14 23:27:23 +00:00
|
|
|
if(!root.stickersModule)
|
|
|
|
return ""
|
2024-02-05 16:44:49 +00:00
|
|
|
return stickersModule.getStatusTokenKey()
|
2022-02-14 23:27:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function estimate(packId, selectedAccount, price, uuid) {
|
|
|
|
if(!root.stickersModule)
|
|
|
|
return 0
|
|
|
|
return stickersModule.estimate(packId, selectedAccount, price, uuid)
|
|
|
|
}
|
|
|
|
|
2022-10-17 10:17:25 +00:00
|
|
|
function authenticateAndBuy(packId, address, price, gasLimit, gasPrice, tipLimit, overallLimit, eip1559Enabled) {
|
2022-02-14 23:27:23 +00:00
|
|
|
if(!root.stickersModule)
|
|
|
|
return ""
|
2022-10-17 10:17:25 +00:00
|
|
|
return stickersModule.authenticateAndBuy(packId, address, price, gasLimit, gasPrice, tipLimit, overallLimit, eip1559Enabled)
|
2022-05-19 08:53:57 +00:00
|
|
|
}
|
2022-02-14 23:27:23 +00:00
|
|
|
}
|
|
|
|
|