Sander van Grieken
190c19d48c
whitespace, imports, code style
2023-09-22 16:38:37 +02:00
ThomasV
e581781775
Merge pull request #8592 from spesmilo/jsondb_cleanup
...
Jsondb cleanup
2023-09-22 15:22:32 +02:00
Sander van Grieken
6e52aa0edd
qml: fix wizard multisig cosigner script and derivation GUI component name
2023-09-22 15:16:30 +02:00
ThomasV
68159b3ef6
walletDB: replace 'manual_upgrades' parameter with 'upgrade', with opposite semantics
2023-09-22 15:02:07 +02:00
ThomasV
b5bc5ff9ed
Separate WalletDB from storage upgrades.
...
Make sure that WalletDB.data is always a StoredDict.
Perform db upgrades in a separate class, since they
operate on a dict object.
2023-09-22 15:02:06 +02:00
Sander van Grieken
af2b0f758d
qml: remove split wallet functionality.
...
old multi-account wallets were never used on mobile, so we don't need to support this.
2023-09-22 14:57:03 +02:00
Sander van Grieken
2caa8f13cf
wizard: make wizard.keystore_from_data more robust;
...
- always store 'keystore_type' in cosigner data and use same types as main
- dont share 'hardware_device' in root of dict, but store for each cosigner
- properly return hardware keystore for hardware cosigners
2023-09-20 14:34:31 +02:00
Sander van Grieken
2a81ab6569
qml: show user feedback when wallet file has action pending
2023-09-20 14:34:31 +02:00
Sander van Grieken
dec4a8e2c7
qml: wizard fixes
2023-09-20 14:34:31 +02:00
Sander van Grieken
3c232d70d1
small fixes
2023-09-20 14:34:31 +02:00
Sander van Grieken
571d16314f
qt: introduce electrum/gui/qt_common, implement remaining trustedcoin views,
...
unify most qml and qt wizard code for trustedcoin,
separate non-GUI trustedcoin wizard definition to trustedcoin.py
2023-09-20 14:34:31 +02:00
Sander van Grieken
a6aff1ec07
qml: check passphrase not empty when checked
2023-09-20 14:34:30 +02:00
Sander van Grieken
c485753ffd
wizard: rename bip39_refine to script_and_derivation
2023-09-20 14:34:30 +02:00
Sander van Grieken
9e096fbf1e
wizard: remove view from is_last_view call, it's never used
2023-09-20 14:34:30 +02:00
Sander van Grieken
3e12d92a41
flake: remove whitespace
2023-09-18 18:03:31 +02:00
Sander van Grieken
bbfe5225b6
qml: port cancel normal swap feature from desktop client
2023-09-18 16:13:32 +02:00
ThomasV
6cd42faa68
QML: show onchain and offchain amounts for groups in txdetails
2023-09-16 15:42:16 +02:00
SomberNight
4c63d8729b
add sanity checks we don't sign tx including dummy addr
...
Somewhat a follow-up to 649ce979ab .
This adds some safety belts so we don't accidentally sign a tx that
contains a dummy address.
Specifically we check that tx does not contain output for dummy addr:
- in wallet.sign_transaction
- in network.broadcast_transaction
The second one is perhaps redundant, but I think it does not hurt.
2023-09-16 04:36:08 +00:00
Sander van Grieken
24f27618e2
qml: handle no wallet password for authed info
2023-09-15 11:42:49 +02:00
ThomasV
d03c77837f
Let the GUI compute the balance displayed in history.
...
Since Qt groups swap transactions, the displayed balance
was sometimes incorrect.
2023-09-14 15:58:58 +02:00
Sander van Grieken
58dbe6690d
qml: create ElCombBox and ElRadioButton that automatically word wrap their text element. Fixes #8611
2023-09-12 17:56:35 +02:00
ThomasV
649ce979ab
send tx change to lightning
2023-09-09 14:14:43 +02:00
Sander van Grieken
a52c715304
qml: show experimental warning before opening first lightning channel. closes #8564
2023-09-04 15:02:40 +02:00
Sander van Grieken
a740a20fc2
qml: pass the invoice/invoiceparser to payOnchain
2023-09-01 15:44:24 +02:00
Sander van Grieken
c348d4d7ce
follow-up 0a804607a4, don't ask confirmation for regular onchain invoices
2023-09-01 15:08:01 +02:00
Sander van Grieken
0a804607a4
qml: properly suggest paying bolt11 invoice onchain if insufficient LN balance.
...
Also, if fallback address is present, don't warn on bolt11 and no ln channels.
2023-09-01 15:03:44 +02:00
SomberNight
ffa3acc013
invoices: don't modify .amount_msat directly
2023-08-22 18:12:15 +00:00
SomberNight
7482e275b9
follow-up storage/db changes
...
follow-up b96cc82333
2023-08-22 14:50:30 +00:00
ThomasV
b96cc82333
Make storage a field of db
...
This comes from the jsonpatch_new branch.
I rather have in master now, because it touches a lot of filese.
2023-08-18 08:08:31 +02:00
SomberNight
5a3abdde85
qml: don't apply ElListView deadzones on Linux desktop
...
otherwise I can't click on list items if the window is moved too far to the right :O
follow-up 583afefe33
Note: on modern Android, apps don't always run full-screen.
You can pop them out into small windows and move them.
Haven't tested how the deadzones work then though.
2023-08-10 15:22:36 +00:00
SomberNight
d663d92424
qml: handle importChannelBackupFailed in WalletMainView
...
error was not being shown when scanning/pasting channel backup from Send screen
2023-08-10 14:46:00 +00:00
ThomasV
40f2087ac3
Add option for support_large_channels.
...
max_funding_sats is a config variable and defaults to the old value.
2023-08-09 16:36:12 +02:00
Sander van Grieken
f4f88f4294
qml: fix wizard text for keystore, wrap text
2023-07-31 11:43:15 +02:00
Sander van Grieken
583afefe33
qml: add deadzones on the edge of the screen to work around android back gesture unintended click events
2023-07-28 14:47:40 +02:00
Sander van Grieken
6b52aad3c8
qml: silence some null deref errors at shutdown
2023-07-14 10:28:50 +02:00
Sander van Grieken
60e007862b
qml: defer updates, fixes listitems not updating
2023-07-13 19:17:16 +02:00
Sander van Grieken
0428fc7c0a
qml: add explanatory infomessage when sending capacity is significantly less than local balance.
...
Show message when attempting unfreeze of gossip channel in trampoline mode
2023-07-13 19:17:16 +02:00
Sander van Grieken
45944d280d
qml: update channelbar when conditions change
2023-07-13 19:17:16 +02:00
Sander van Grieken
2cf4cc1978
qml: render reserved channel capacity in a darker tone, take frozen into account
2023-07-13 19:17:16 +02:00
Sander van Grieken
b6863b4854
qml: add LabelSync toggle
2023-07-11 12:51:37 +02:00
SomberNight
612a8e6424
qt: fix: bip70 pay reqs need x509 verification
...
regression from https://github.com/spesmilo/electrum/pull/8462
- pr.verify() was called in qml, but not in qt gui
- we now call pr.verify() in get_payment_request(), to make the API less error-prone
- it is now ok to call pr.verify() multiple times, the result is cached
2023-07-10 17:50:53 +00:00
Sander van Grieken
023e8ff0eb
qml: remember invoice/qr type on ReceiveDialog
2023-07-10 18:10:15 +02:00
Sander van Grieken
86d79f3ec9
qml: show backup type, as in qt
2023-07-10 14:45:36 +02:00
SomberNight
0b0d58b289
qml: fix "copy" and "share" buttons for channel backup dialogs
...
The QR code was shown but the copy/share buttons did not do anything.
2023-07-10 11:23:31 +00:00
Sander van Grieken
2d95c457dd
qml: addressdetails item order, add technical properties header
2023-07-09 13:43:39 +02:00
Sander van Grieken
016b5eb743
qml: show private key in address details
2023-07-09 13:43:39 +02:00
Sander van Grieken
5f2fee5184
qml: strip whitespace of data pasted/scanned before processing
2023-07-09 11:56:21 +02:00
ThomasV
5cf320b2c7
Merge pull request #8462 from spesmilo/payment_identifiers2
...
Payment identifiers
2023-07-09 10:02:14 +02:00
Sander van Grieken
f980bd97b5
payment_identifier: factor out bip21 functions to bip21.py to break cyclic dependencies,
...
parse bolt11 only once, store invoice internally instead of bolt11 string
add is_onchain method to indicate if payment identifier can be paid onchain
2023-07-08 12:18:37 +02:00
Sander van Grieken
c4e8869c1a
qml: add PIN auth to close channel operation.
2023-07-04 14:05:10 +02:00