2021-09-30 09:43:29 +00:00
|
|
|
pragma Singleton
|
|
|
|
|
|
|
|
import QtQuick 2.13
|
|
|
|
|
|
|
|
QtObject {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
property string activeChannelName: chatsModel.channelView.activeChannel.name
|
|
|
|
|
|
|
|
property var currentNetwork: profileModel.network.current
|
|
|
|
|
|
|
|
function getUrlFromUserInput(input) {
|
|
|
|
return utilsModel.urlFromUserInput(input)
|
|
|
|
}
|
|
|
|
|
|
|
|
function getAscii2Hex(input) {
|
|
|
|
return utilsModel.ascii2Hex(input)
|
|
|
|
}
|
|
|
|
|
|
|
|
function getHex2Ascii(input) {
|
|
|
|
return utilsModel.hex2Ascii(input)
|
|
|
|
}
|
|
|
|
|
|
|
|
function getWei2Eth(wei,decimals) {
|
|
|
|
return utilsModel.wei2Eth(wei,decimals)
|
|
|
|
}
|
|
|
|
|
|
|
|
function generateIdenticon(pk) {
|
|
|
|
return utilsModel.generateIdenticon(pk)
|
|
|
|
}
|
2021-12-16 17:24:26 +00:00
|
|
|
|
|
|
|
function getEth2Hex(eth) {
|
|
|
|
return utilsModel.eth2Hex(eth)
|
|
|
|
}
|
|
|
|
|
|
|
|
function getGwei2Hex(gwei){
|
|
|
|
return utilsModel.gwei2Hex(gwei)
|
|
|
|
}
|
2021-09-30 09:43:29 +00:00
|
|
|
}
|