-
Notifications
You must be signed in to change notification settings - Fork 7
/
config.py
113 lines (96 loc) · 4.21 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
import os
import platform
import threading
"""
Configuration File for Monero Subscriptions Wallet
Contains global settings and variables used across the application.
"""
# =====================
# Files
# =====================
subs_file_path = 'Subscriptions.json'
node_filename = "node_to_use.txt"
wallet_name = "subscriptions_wallet"
# =====================
# RPC Settings
# =====================
rpc_bind_port = '18088'
local_rpc_url = f"http://127.0.0.1:{rpc_bind_port}/json_rpc"
rpc_username = "monero"
rpc_password = "monero"
# =====================
# Placeholders and Dynamic Values
# =====================
xmr_unlocked_balance = '--.------------'
wallet_balance_xmr = '--.------------'
wallet_balance_usd = '---.--'
current_monero_price = 150.00
wallet_address = ''
subscriptions = ''
window = ''
start_block_height = None
supported_currencies = ["USD", "XMR"]
withdraw_to_wallet = ''
# =====================
# Flags and Booleans
# =====================
rpc_is_ready = False
stop_flag = threading.Event() # Define a flag to indicate if the threads should stop
# =====================
# Theme Variables
# =====================
# Hex Colors
ui_title_bar = '#222222'
ui_overall_background = '#1D1D1D'
ui_button_a = '#F96800'
ui_button_a_font = '#F0FFFF'
ui_button_b = '#716F74'
ui_button_b_font = '#FFF9FB'
ui_main_font = '#F4F6EE'
ui_sub_font = '#A7B2C7'
ui_lines = '#696563'
ui_outline = '#2E2E2E'
ui_barely_visible = '#373737'
ui_regular = '#FCFCFC'
monero_grey = '#4c4c4c'
monero_orange = '#ff6600'
monero_white = '#FFFFFF'
monero_grayscale_top = '#7D7D7D'
monero_grayscale_bottom = '#505050'
main_text = ui_main_font # this lets separators be orange but text stay white
subscription_text_color = ui_sub_font
subscription_background_color = ui_overall_background # cfg.ui_title_bar
# Set Theme
icon = 'icon.ico'
font = 'Nunito Sans'
title_bar_text = 'Monero Subscriptions Wallet'
icon_png_path = "./icon.png"
# =====================
# Longform Text
# =====================
welcome_popup_text = '''
Welcome to the Monero Subscriptions Wallet!
We're thrilled that you've chosen to use our Free and Open Source Software (FOSS). Before you get started, there are a few important things you should know:
1. Monero Subscriptions Wallet is currently in alpha. Your feedback is valuable to us in making this software better. Please let us know if you encounter any issues or, if you are a developer, help resolve them! All the code is on GitHub.
2. Monero Subscriptions Wallet is intended to be a secondary wallet, rather than your primary one. As an internet-connected hot wallet, its security is only as robust as your computer's. We suggest using it as a side-wallet, maintaining just enough balance for your subscriptions.
3. Upon launching this software, you'll automatically have a $10/mo subscription that serves as a donation to the wallet developer. This helps us continue the development and maintenance of this FOSS project. If you do not want to donate to the developer, you are able to cancel this at any time by clicking on 'Cancel' next to the subscription, and the wallet will continue working as normal.
4. By using this software, you understand and agree that you're doing so at your own risk. The developers cannot be held responsible for any lost funds.
Enjoy using the Monero Subscriptions Wallet, thank you for your support, and if you are a Python developer, please consider helping us improve the project!
https://github.com/lukeprofits/Monero_Subscriptions_Wallet
'''
# =====================
# Platform-Dependent Configurations
# =====================
# Set Monero Wallet CLI Path
if platform.system() == 'Windows':
# Update path to the location of the monero-wallet-cli executable if your on WINDOWS
monero_wallet_cli_path = "" + 'monero-wallet-cli.exe'
else:
# Update path to the location of the monero-wallet-cli executable if your on other platforms
monero_wallet_cli_path = os.getcwd() + '/' + 'monero-wallet-cli'
# Set Wallet Path
if platform.system() == 'Windows':
wallet_file_path = ""
else:
# Update this path to the location where you want to save the wallet file
wallet_file_path = f'{os.getcwd()}/'