2024-07-03 20:46:00 +00:00
|
|
|
// This should not be a singleton. TODO: Remove it once the "real" Wallet root store is not a singleton anymore.
|
|
|
|
pragma Singleton
|
|
|
|
|
2024-06-29 20:24:05 +00:00
|
|
|
import QtQml 2.15
|
|
|
|
|
|
|
|
QtObject {
|
|
|
|
id: root
|
2024-07-03 20:46:00 +00:00
|
|
|
|
|
|
|
// TODO: Remove this. This stub should be empty. The color transformation should be done in adaptors or in the first model transformation steps.
|
2024-05-22 08:13:39 +00:00
|
|
|
|
|
|
|
function savedAddressNameExists(name) {
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2024-10-03 20:13:01 +00:00
|
|
|
function createOrUpdateSavedAddress(name, address, ens, colorId) {
|
2024-05-22 08:13:39 +00:00
|
|
|
console.log("createOrUpdateSavedAddress")
|
|
|
|
}
|
|
|
|
|
|
|
|
function getNameForAddress(address) {
|
|
|
|
return "NAMEFOR: %1".arg(address)
|
|
|
|
}
|
|
|
|
|
|
|
|
function getExplorerNameForNetwork(networkName) {
|
|
|
|
return qsTr("%1 Explorer").arg(networkName)
|
|
|
|
}
|
|
|
|
|
|
|
|
function getExplorerUrl(networkShortName, contractAddress, tokenId) {
|
|
|
|
return "https://somedummyurl.com"
|
|
|
|
}
|
|
|
|
|
|
|
|
function getOpenSeaCollectionUrl(networkShortName, contractAddress) {
|
|
|
|
return "https://somedummyurl.com"
|
|
|
|
}
|
|
|
|
|
|
|
|
function getOpenSeaCollectibleUrl(networkShortName, contractAddress, tokenId) {
|
|
|
|
return "https://somedummyurl.com"
|
|
|
|
}
|
2024-06-29 20:24:05 +00:00
|
|
|
}
|