2020-05-28 14:58:25 +00:00
|
|
|
pragma Singleton
|
|
|
|
|
2020-06-17 19:18:31 +00:00
|
|
|
import QtQuick 2.13
|
2020-05-28 14:58:25 +00:00
|
|
|
|
|
|
|
QtObject {
|
2020-06-04 18:56:04 +00:00
|
|
|
readonly property int chatTypeOneToOne: 1
|
|
|
|
readonly property int chatTypePublic: 2
|
|
|
|
readonly property int chatTypePrivateGroupChat: 3
|
2020-12-10 11:53:39 +00:00
|
|
|
readonly property int chatTypeStatusUpdate: 4
|
2020-12-11 20:38:10 +00:00
|
|
|
readonly property int chatTypeCommunity: 6
|
|
|
|
|
|
|
|
readonly property int communityChatPublicAccess: 1
|
|
|
|
readonly property int communityChatInvitationOnlyAccess: 2
|
|
|
|
readonly property int communityChatOnRequestAccess: 3
|
2020-05-28 21:34:04 +00:00
|
|
|
|
2020-10-14 12:10:21 +00:00
|
|
|
readonly property int fetchRangeLast24Hours: 86400
|
|
|
|
readonly property int fetchRangeLast2Days: 172800
|
|
|
|
readonly property int fetchRangeLast3Days: 259200
|
|
|
|
readonly property int fetchRangeLast7Days: 604800
|
|
|
|
|
2020-09-25 19:44:40 +00:00
|
|
|
readonly property int limitLongChatText: 500
|
|
|
|
readonly property int limitLongChatTextCompactMode: 1000
|
|
|
|
|
2020-12-07 17:37:39 +00:00
|
|
|
readonly property int notificationPopupTTL: 5000
|
|
|
|
|
2020-10-21 14:45:28 +00:00
|
|
|
readonly property string chat: "chat"
|
|
|
|
readonly property string wallet: "wallet"
|
|
|
|
readonly property string browser: "browser"
|
|
|
|
readonly property string profile: "profile"
|
|
|
|
readonly property string node: "node"
|
|
|
|
readonly property string ui: "ui"
|
|
|
|
|
2020-11-25 10:46:18 +00:00
|
|
|
readonly property int fontSizeXS: 0
|
|
|
|
readonly property int fontSizeS: 1
|
|
|
|
readonly property int fontSizeM: 2
|
|
|
|
readonly property int fontSizeL: 3
|
|
|
|
readonly property int fontSizeXL: 4
|
|
|
|
readonly property int fontSizeXXL: 5
|
|
|
|
|
2020-10-15 11:53:27 +00:00
|
|
|
readonly property int notifyAllMessages: 0
|
|
|
|
readonly property int notifyJustMentions: 1
|
|
|
|
readonly property int notifyNone: 2
|
2020-11-17 19:01:50 +00:00
|
|
|
readonly property int notificationPreviewAnonymous: 0
|
|
|
|
readonly property int notificationPreviewNameOnly: 1
|
|
|
|
readonly property int notificationPreviewNameAndMessage: 2
|
2020-09-04 11:55:24 +00:00
|
|
|
readonly property int fetchMoreMessagesButton: -2
|
2020-06-08 17:29:28 +00:00
|
|
|
readonly property int chatIdentifier: -1
|
2020-06-10 15:14:12 +00:00
|
|
|
readonly property int unknownContentType: 0
|
2020-06-04 18:56:04 +00:00
|
|
|
readonly property int messageType: 1
|
|
|
|
readonly property int stickerType: 2
|
2020-06-10 15:14:12 +00:00
|
|
|
readonly property int statusType: 3
|
|
|
|
readonly property int emojiType: 4
|
|
|
|
readonly property int transactionType: 5
|
|
|
|
readonly property int systemMessagePrivateGroupType: 6
|
2020-07-17 19:44:25 +00:00
|
|
|
readonly property int imageType: 7
|
2020-07-30 16:07:41 +00:00
|
|
|
readonly property int audioType: 8
|
2020-12-11 20:38:10 +00:00
|
|
|
readonly property int communityInviteType: 9
|
2020-06-04 18:56:04 +00:00
|
|
|
|
2020-06-10 15:55:24 +00:00
|
|
|
readonly property string watchWalletType: "watch"
|
|
|
|
readonly property string keyWalletType: "key"
|
|
|
|
readonly property string seedWalletType: "seed"
|
|
|
|
readonly property string generatedWalletType: "generated"
|
|
|
|
|
2020-08-25 18:44:29 +00:00
|
|
|
// Transaction states
|
2020-09-03 20:43:08 +00:00
|
|
|
readonly property int addressRequested: 1
|
|
|
|
readonly property int declined: 2
|
|
|
|
readonly property int addressReceived: 3
|
|
|
|
readonly property int transactionRequested: 4
|
|
|
|
readonly property int transactionDeclined: 5
|
|
|
|
readonly property int pending: 6
|
|
|
|
readonly property int confirmed: 7
|
2020-08-25 18:44:29 +00:00
|
|
|
|
2020-09-25 16:52:06 +00:00
|
|
|
readonly property int maxTokens: 200
|
|
|
|
|
2020-09-03 20:14:44 +00:00
|
|
|
readonly property string zeroAddress: "0x0000000000000000000000000000000000000000"
|
|
|
|
|
2020-06-04 18:56:04 +00:00
|
|
|
readonly property var accountColors: [
|
|
|
|
"#9B832F",
|
|
|
|
"#D37EF4",
|
|
|
|
"#1D806F",
|
|
|
|
"#FA6565",
|
|
|
|
"#7CDA00",
|
|
|
|
"#887af9",
|
|
|
|
"#8B3131"
|
|
|
|
]
|
2020-09-25 19:05:07 +00:00
|
|
|
|
2020-10-15 19:08:56 +00:00
|
|
|
readonly property string networkMainnet: "mainnet_rpc"
|
2020-11-23 19:14:48 +00:00
|
|
|
readonly property string networkPOA: "poa_rpc"
|
|
|
|
readonly property string networkXDai: "xdai_rpc"
|
|
|
|
readonly property string networkGoerli: "goerli_rpc"
|
|
|
|
readonly property string networkRinkeby: "rinkeby_rpc"
|
|
|
|
readonly property string networkRopsten: "testnet_rpc"
|
2020-09-25 19:05:07 +00:00
|
|
|
|
|
|
|
readonly property string api_request: "api-request"
|
2020-10-02 17:30:27 +00:00
|
|
|
readonly property string web3SendAsyncReadOnly: "web3-send-async-read-only"
|
2020-12-14 20:43:46 +00:00
|
|
|
readonly property string web3DisconnectAccount: "web3-disconnect-account"
|
2020-09-25 19:05:07 +00:00
|
|
|
|
|
|
|
readonly property string permission_web3: "web3"
|
|
|
|
readonly property string permission_contactCode: "contact-code"
|
|
|
|
|
2020-10-05 16:24:43 +00:00
|
|
|
readonly property string personal_sign: "personal_sign"
|
|
|
|
readonly property string eth_sign: "eth_sign"
|
|
|
|
readonly property string eth_signTypedData: "eth_signTypedData"
|
|
|
|
readonly property string eth_signTypedData_v3: "eth_signTypedData_v3"
|
2020-11-03 21:04:57 +00:00
|
|
|
|
|
|
|
readonly property string eth_prod: "eth.prod"
|
|
|
|
readonly property string eth_staging: "eth.staging"
|
|
|
|
readonly property string eth_test: "eth.test"
|
2021-01-04 21:06:38 +00:00
|
|
|
|
|
|
|
readonly property int browserSearchEngineNone: 0
|
|
|
|
readonly property int browserSearchEngineGoogle: 1
|
|
|
|
readonly property int browserSearchEngineYahoo: 2
|
|
|
|
readonly property int browserSearchEngineDuckDuckGo: 3
|
2021-01-04 21:23:20 +00:00
|
|
|
|
|
|
|
readonly property int browserEthereumExplorerNone: 0
|
|
|
|
readonly property int browserEthereumExplorerEtherscan: 1
|
|
|
|
readonly property int browserEthereumExplorerEthplorer: 2
|
|
|
|
readonly property int browserEthereumExplorerBlockchair: 3
|
2020-06-04 18:56:04 +00:00
|
|
|
}
|