-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.py
137 lines (117 loc) · 4.38 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
import os
import platform
import threading
"""
Configuration File for Monero Business Wallet
Contains global settings and variables used across the application.
"""
# =====================
# Files
# =====================
received_transactions_file = 'received_transactions.csv'
sent_transactions_file = 'sent_transactions.csv'
node_filename = "node_to_use.txt"
wallet_name = "business_wallet"
swap_file = 'swap_info.csv'
# =====================
# 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"
# =====================
# Cold Wallet Configurations
# =====================
cold_wallet_filename = 'cold_wallet.txt'
cold_wallet = ''
# =====================
# Convert Wallet Configurations
# =====================
convert_wallet_filename = 'conversion_wallet.txt'
convert_wallet = ''
convert_coin = ''
convert_network = ''
# =====================
# Placeholders and Dynamic Values
# =====================
xmr_unlocked_balance = '--.------------'
wallet_balance_xmr = '--.------------'
wallet_balance_usd = '---.--'
current_monero_price = 150.00
wallet_address = ''
# =====================
# Amounts
# =====================
usd_amount_to_leave_in_wallet_for_tx_fees = 1
# =====================
# Flags and Booleans
# =====================
convert = False
forward = False
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 = '#00A9AF' # Updated to be a blue-green with grey
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 = '#00F6FF' # Updated to be a blue-green
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
# Other
icon = 'icon.ico'
font = 'Nunito Sans'
title_bar_text = ''
# =====================
# GUI Settings
# =====================
random_amounts = False # Forward As Multiple Random Amounts
random_delay = False # Use Random Time Delay Before Forwarding
wait_for_balance = False # Do Not Forward Until Balance Is Over $100
delay_days = 30
wait_for_min_usd = 10
# =====================
# Longform Text
# =====================
welcome_popup_text = '''
Welcome to the Monero Business 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 Business 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 Business Wallet is an internet-connected hot wallet, its security is only as robust as your computer's is.
3. 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 Business 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_Business_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()}/'