-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathlightWallet.kv
More file actions
526 lines (502 loc) · 17.2 KB
/
lightWallet.kv
File metadata and controls
526 lines (502 loc) · 17.2 KB
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
#:kivy 1.8.0
<RootWidget>:
id: root_widget
orientation: "vertical"
root_widget: root_widget
# Tx history tab id items
# empty
# Transfer tab id items
address_input_textinput: address_input_textinput
amount_input_textinput: amount_input_textinput
mixin_input_textinput: mixin_input_textinput
paymentid_input_textinput: paymentid_input_textinput
# Wallet account tab id items
wallet_account_label: wallet_account_label
wallet_address_label: wallet_address_label
wallet_block_label: wallet_block_label
unlocked_balance_label: unlocked_balance_label
total_balance_label: total_balance_label
calculated_balance_label: calculated_balance_label
wallet_savetime_label: wallet_savetime_label
# Bitmonerod daemon tab id items
daemon_server_textinput: daemon_server_textinput
blockheight_label: blockheight_label
last_reward_label: last_reward_label
last_block_time_label: last_block_time_label
time_since_last_label: time_since_last_label
AccordionItem:
id: tx_accordion
title: "Transaction history"
BoxLayout:
padding: 30, 30, 30, 30
orientation: "vertical"
Label:
text: "Transaction outputs history list (scrollable).\nClick button to copy tx_id."
size_hint_y: 0.1
halign: "center"
MarkupLabel:
text: "[color=00ffff][b]Unspent tx outputs[/color][/b]"
size_hint_y: 0.1
ScrollView:
id: unspent_tx_scroller
size_hint: 1, 0.35
GridLayout:
cols: 1
spacing: 7
size_hint_y: None
id: unspent_tx_list
MarkupLabel:
text: "[color=00ffff][b]Spent tx outputs[/color][/b]"
size_hint_y: 0.1
ScrollView:
id: spent_tx_scroller
size_hint: 1, 0.35
GridLayout:
cols: 1
spacing: 7
size_hint_y: None
id: spent_tx_list
AccordionItem:
title: "Send XMR"
BoxLayout:
padding: 20, 30, 20, 30
orientation: 'vertical'
BoxLayout:
orientation: 'horizontal'
size_hint_y: 0.1
Label:
text: "Send to\naddress:"
size_hint_x: 0.15
TextInput:
id: address_input_textinput
size_hint_x: 0.85
font_size: 9
multiline: False
Label:
size_hint_y: 0.05
BoxLayout:
orientation: 'horizontal'
size_hint_y: 0.1
Label:
text: "Amount XMR:"
size_hint_x: 0.4
TextInput:
id: amount_input_textinput
size_hint_x: 0.6
font_size: 20
multiline: False
Label:
size_hint_y: 0.05
BoxLayout:
orientation: 'horizontal'
size_hint_y: 0.1
Label:
text: "Mixin amount:\n(Please use 0 or >= 2)"
size_hint_x: 0.4
TextInput:
id: mixin_input_textinput
size_hint_x: 0.6
font_size: 20
multiline: False
# Slider:
# min: 0
# max: 10
# value: 1
Label:
size_hint_y: 0.05
BoxLayout:
orientation: 'horizontal'
size_hint_y: 0.1
Label:
text: "Payment ID\n(Needed to send\nto exchanges!):"
size_hint_x: 0.3
TextInput:
id: paymentid_input_textinput
size_hint_x: 0.7
font_size: 9
text: ""
multiline: False
Label:
size_hint_y: 0.05
Button:
size_hint: 1, 0.15
halign: "center"
text: "Transfer funds"
on_press: root.transferfunds()
# on_press: root.storeformdata()
font_size: 20
Label:
size_hint_y: 0.05
# BoxLayout:
# orientation: 'horizontal'
# size_hint_y: 0.15
# MarkupLabel:
# size_hint_x: 0.7
# halign: "center"
# text: "Please donate to Cool Mining for generously\nrunning an open node and supporting lightWallet."
# Button:
# size_hint_x: 0.3
# halign: "center"
# text: "Click to donate XMR\nto Cool Mining Club"
# on_press: root.donate_CMC()
BoxLayout:
orientation: 'horizontal'
size_hint_y: 0.15
MarkupLabel:
size_hint_x: 0.7
halign: "center"
text: "Please donate to Monero core developers\nfor generously donating their time and effort."
Button:
size_hint_x: 0.3
halign: "center"
text: "Click to donate XMR\nto the core Monero devs"
on_press: root.donate_core()
AccordionItem:
title: "Simplewallet account"
BoxLayout:
orientation: 'vertical'
padding: 30, 30, 30, 30
BoxLayout:
orientation: 'horizontal'
size_hint_y: 0.1
Label:
text: "Account name: "
MarkupLabel:
id: wallet_account_label
BoxLayout:
orientation: 'horizontal'
size_hint_y: 0.15
Label:
size_hint_x: 0.05
text: "Address: "
Label:
size_hint_x: 0.1
MarkupLabel:
id: wallet_address_label
halign: "center"
size_hint_x: 0.85
font_size: 8
on_ref_press: root.selectAddress()
BoxLayout:
orientation: 'horizontal'
size_hint_y: 0.1
Label:
text: "Blocks synced: "
MarkupLabel:
id: wallet_block_label
BoxLayout:
orientation: 'horizontal'
size_hint_y: 0.1
Label:
text: "Unlocked balance: "
MarkupLabel:
id: unlocked_balance_label
BoxLayout:
orientation: 'horizontal'
size_hint_y: 0.1
Label:
text: "Total balance: "
MarkupLabel:
id: total_balance_label
BoxLayout:
orientation: 'horizontal'
size_hint_y: 0.1
Label:
text: "Calculated balance: "
MarkupLabel:
id: calculated_balance_label
Label:
size_hint_y: 0.1
text: "*If you can see a number for the Unlocked and Total balances, then it should be OK to transfer XMR.\nSometimes the Blocks synced lags a bit, but if you see your Unlocked and Total balances, transfers should work."
font_size: 10
BoxLayout:
orientation: 'horizontal'
size_hint_y: 0.25
Button:
text: "Save wallet (Attempts to\nautosave every 3 minutes)"
halign: "center"
on_press: root.saveWallet(0.1)
MarkupLabel:
id: wallet_savetime_label
text: "Wallet last saved @"
AccordionItem:
title: "Bitmonerod daemon"
BoxLayout:
orientation: 'vertical'
padding: 30, 30, 30, 30
Image:
size_hint_y: 0.3
source: 'logo.png'
Label:
size_hint_y: 0.05
text: "A lightweight Monero GUI account manager"
Label:
size_hint_y: 0.05
Label:
text: "Daemon ip address (default is MoneroClub)\nto use a local instance enter http://localhost:18081\nin CONFIG.file in local directory."
size_hint_y: 0.1
BoxLayout:
size_hint_y: 0.15
orientation: 'horizontal'
padding: 0, 8, 0, 0
MarkupLabel:
size_hint_x: 0.6
color: 0, 1, 0
id: daemon_server_textinput
# text: "http://xmr1.coolmining.club:5012"
# text: "http://localhost:18081"
Button:
text: "Click to change tab\norientation."
halign: "center"
size_hint_x: 0.4
on_press: root.changeTabs()
Label:
size_hint_y: 0.1
BoxLayout:
size_hint_y: 0.05
orientation: 'horizontal'
Label:
text: 'Blockchain height:'
MarkupLabel:
id: blockheight_label
BoxLayout:
size_hint_y: 0.05
orientation: 'horizontal'
Label:
text: 'Last block reward:'
MarkupLabel:
id: last_reward_label
BoxLayout:
size_hint_y: 0.05
orientation: 'horizontal'
Label:
text: 'Last block time:'
MarkupLabel:
id: last_block_time_label
BoxLayout:
size_hint_y: 0.05
orientation: 'horizontal'
Label:
text: 'Time since last block:'
MarkupLabel:
id: time_since_last_label
<InitialPopup>:
id: initial_popup
title: "Initial Setup Window"
size_hint: 0.75, 0.75
auto_dismiss: "False"
BoxLayout:
orientation: 'vertical'
Label:
halign: "center"
text: "It appears that this is your first time loading CryptoNote Kivy GUI\n(or you have deleted your CONFIG.file file).\n\nPlease select if you would like to create a new wallet,\nload an existing wallet, or exit the program."
BoxLayout:
orientation: 'horizontal'
padding: 30, 20, 30, 20
Button:
halign: "center"
text: "Create\nNew\nWallet"
on_press: root.createWalletPopup()
Button:
halign: "center"
text: "Load\nExisting\nWallet"
on_press: root.loadWalletPopup()
Button:
halign: "center"
text: "Exit\nlightWallet"
on_press: root.quit()
<CreateWalletPopup>:
id: create_wallet_popup
title: "Create Wallet Window"
auto_dismiss: False
size_hint: 0.75, 0.75
wallet_name: wallet_name
wallet_pw: wallet_pw
repeat_wallet_pw: repeat_wallet_pw
BoxLayout:
padding: 60, 60, 60, 60
orientation: 'vertical'
MarkupLabel:
text: "[color=#00ffff][b]Wallet name must be alphanumeric (0-9, a-z, A-Z, -, ., (), [], {}, +, _, etc.).\nPassword may also contain special characters such as !, @, #, etc.[/color][/b]"
Label:
text: "Enter wallet name:"
AsciiInput:
id: wallet_name
next: wallet_pw
on_text_validate: root.submitForm()
Label:
text: "Enter wallet password:"
TabTextInput:
id: wallet_pw
password: True
next: repeat_wallet_pw
on_text_validate: root.submitForm()
Label:
text: "Repeat wallet password:"
TabTextInput:
id: repeat_wallet_pw
password: True
next: wallet_name
on_text_validate: root.submitForm()
Button:
text: "Click to create wallet"
on_press: root.submitForm()
<LoadWalletPopup>:
id: load_wallet_popup
title: "Load Wallet Window"
size_hint: 0.75, 0.75
auto_dismiss: False
wallet_path: wallet_path
wallet_pw: wallet_pw
repeat_wallet_pw: repeat_wallet_pw
BoxLayout:
padding: 60, 30, 60, 30
orientation: 'vertical'
MarkupLabel:
size_hint_y: 0.3
halign: "center"
text: "Enter wallet keys path (make sure you include file extension)\nNote: this will copy your keys file to a local subdirectory;\nit will not use your original wallet file(s).\nExample - [b][color=00ffff]C:\\Users\\Satoshi\\SecretStuff\\Wallets\\Monero\\wallet.bin.keys[/b][/color]:"
AsciiSlashInput:
size_hint_y: 0.1
id: wallet_path
next: wallet_pw
on_text_validate: root.submitForm()
Label:
size_hint_y: 0.1
text: "Enter wallet password:"
TabTextInput:
size_hint_y: 0.1
id: wallet_pw
password: True
next: repeat_wallet_pw
on_text_validate: root.submitForm()
Label:
size_hint_y: 0.1
text: "Repeat wallet password:"
TabTextInput:
size_hint_y: 0.1
id: repeat_wallet_pw
password: True
next: wallet_path
on_text_validate: root.submitForm()
Label:
size_hint_y: 0.1
text: "Note - this wallet will be set as your default wallet"
Button:
size_hint_y: 0.15
text: "Click to load wallet"
on_press: root.submitForm()
<PasswordPopup>
title: "Password entry popup"
size_hint: 0.75, 0.75
auto_dismiss: False
walletname_label: walletname_label
wallet_pw: wallet_pw
BoxLayout:
orientation: "vertical"
padding: 20, 20, 20, 20
Label:
size_hint: 1, 0.2
id: walletname_label
TabTextInput:
size_hint: 1, 0.1
id: wallet_pw
password: True
on_text_validate: root.submitForm()
Label:
size_hint: 1, 0.2
Button:
text: "Click to launch wallet"
on_press: root.submitForm()
size_hint: 1, 0.5
<TransferPopup>
transfer_popup_label: transfer_popup_label
size_hint: 0.9, 0.9
auto_dismiss: False
title: "Transfer Popup"
BoxLayout:
orientation: 'vertical'
Label:
# text: "are you sure?"
id: transfer_popup_label
text: ""
markup: True
BoxLayout:
orientation: 'horizontal'
Button:
text: "Yes, transfer XMR."
on_press: root.transfer()
on_press: root.dismiss()
Button:
text: "No, cancel transaction."
on_press: root.dismiss()
<TxIDPopup>
title: "Tx ID Popup"
address_popup_label: address_popup_label
paymentid_popup_label: paymentid_popup_label
txid_popup_label: txid_popup_label
size_hint: 0.9, 0.9
BoxLayout:
orientation: 'vertical'
padding: 30, 30, 30, 30
MarkupLabel:
halign: "center"
font_size: 9
id: address_popup_label
text: ""
on_ref_press: root.selectaddress()
MarkupLabel:
halign: "center"
font_size: 9
id: paymentid_popup_label
text: ""
on_ref_press: root.selectpaymentid()
MarkupLabel:
halign: "center"
font_size: 9
id: txid_popup_label
text: ""
on_ref_press: root.selecttxid()
Button:
text: "OK, dismiss."
on_press: root.dismiss()
<DonateCMC>
title: "Donate to Cool Mining Club"
size_hint: 0.75, 0.75
donation_amount_CMC: donation_amount_CMC
BoxLayout:
padding: 30, 30, 30, 30
orientation: 'vertical'
Label:
text: "Enter amount of XMR to donate:"
TextInput:
id: donation_amount_CMC
BoxLayout:
Button:
text: "Donate!"
on_press: root.make_donation()
Button:
text: "Cancel :("
on_press: root.dismiss()
<DonateCore>
title: "Donate to Monero core devs"
size_hint: 0.75, 0.75
donation_amount_core: donation_amount_core
BoxLayout:
padding: 30, 30, 30, 30
orientation: 'vertical'
Label:
text: "Enter amount of XMR to donate:"
TextInput:
id: donation_amount_core
BoxLayout:
Button:
text: "Donate!"
on_press: root.make_donation()
Button:
text: "Cancel :("
on_press: root.dismiss()
<MarkupLabel>
markup: True
<TabTextInput>
multiline: False