Sander van Grieken
26622a0de6
trustedcoin: inherit WalletWizardComponent instead of WizardComponent
2024-10-21 16:14:58 +02:00
Sander van Grieken
974ad64688
trustedcoin: clean up imports, flake warnings
2024-10-21 14:11:18 +02:00
ThomasV
eccc5900e0
move plugin icons to plugins
2024-10-17 13:32:30 +02:00
Sander van Grieken
9e1c1bd0ad
trustedcoin: fix continuation of 2fa wallet file with keystore-only encryption
2024-10-14 11:32:15 +02:00
SomberNight
383f99796a
qt gui: follow-up qt6: fix args for QWidget.setFocus()
...
Traceback (most recent call last):
File "...\electrum\electrum\gui\qt\main_window.py", line 1797, in toggle_search
self.search_box.setFocus(1)
TypeError: arguments did not match any overloaded call:
setFocus(self): too many arguments
setFocus(self, reason: Qt.FocusReason): argument 1 has unexpected type 'int'
2024-09-18 17:39:46 +00:00
SomberNight
cfe8502f96
qt desktop gui: upgrade qt5->qt6
...
closes https://github.com/spesmilo/electrum/issues/8007
2024-09-18 15:48:38 +00:00
SomberNight
7827be17d1
qt wizard: fix offline 2fa wallet creation in some cases
...
fixes https://github.com/spesmilo/electrum/issues/9037
2024-05-28 15:31:37 +00:00
Sander van Grieken
cea9055a65
wizard: fix wrong icon and icon disappearing when resuming unfinished wallet
2024-05-16 00:08:07 +02:00
Sander van Grieken
da1727b2f7
trustedcoin: validate numeric format of OTP user entry ( fixes #8905 )
2024-02-21 13:33:46 +01:00
Sander van Grieken
0a2a22b822
qt: use selected_key instead of selected_item[0] for ChoiceWidgets
2024-02-05 14:39:03 +01:00
Sander van Grieken
3d9996ab8b
trustedcoin: disable OTP entry after successful validation
2024-01-16 12:30:24 +01:00
Sander van Grieken
ec81f00896
trustedcoin: cannot reset OTP when seed is not available (online wallet creation continuation)
2024-01-15 17:45:29 +01:00
SomberNight
66b8ec1833
trustedcoin: rm some dead code
...
used by old qt wizard
2024-01-05 15:29:21 +00:00
Sander van Grieken
4c8287358a
qt, qml: remove email entry from 2FA wallet ToS pages
2023-12-08 12:07:03 +01:00
ThomasV
56e80c20d7
wallet_db upgrade: do not use '/' in StoredDict keys
2023-09-23 11:05:36 +02:00
Sander van Grieken
0aebc1a31e
qt+plugins: cleanup. remove all old wizard code
2023-09-20 14:34:31 +02:00
Sander van Grieken
1c7da01dae
rename qt_common to common_qt
2023-09-20 14:34:31 +02:00
Sander van Grieken
314e3f958d
qt: new wizard 2fa offline setup
2023-09-20 14:34:31 +02:00
Sander van Grieken
eb8212ab77
qt: trustedcoin plugin helper scoping refactor
2023-09-20 14:34:31 +02:00
Sander van Grieken
65fee652c4
trustedcoin: ChoicesLayout -> ChoiceWidget
2023-09-20 14:34:31 +02:00
Sander van Grieken
7a2633b2de
flake happifier
2023-09-20 14:34:31 +02:00
Sander van Grieken
fd28c66670
qt: 2fa implement OTP check
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
15773086e5
qt: initial trustedcoin wizard pages
2023-09-20 14:34:30 +02:00
SomberNight
24980feab7
config: introduce ConfigVars
...
A new config API is introduced, and ~all of the codebase is adapted to it.
The old API is kept but mainly only for dynamic usage where its extra flexibility is needed.
Using examples, the old config API looked this:
```
>>> config.get("request_expiry", 86400)
604800
>>> config.set_key("request_expiry", 86400)
>>>
```
The new config API instead:
```
>>> config.WALLET_PAYREQ_EXPIRY_SECONDS
604800
>>> config.WALLET_PAYREQ_EXPIRY_SECONDS = 86400
>>>
```
The old API operated on arbitrary string keys, the new one uses
a static ~enum-like list of variables.
With the new API:
- there is a single centralised list of config variables, as opposed to
these being scattered all over
- no more duplication of default values (in the getters)
- there is now some (minimal for now) type-validation/conversion for
the config values
closes https://github.com/spesmilo/electrum/pull/5640
closes https://github.com/spesmilo/electrum/pull/5649
Note: there is yet a third API added here, for certain niche/abstract use-cases,
where we need a reference to the config variable itself.
It should only be used when needed:
```
>>> var = config.cv.WALLET_PAYREQ_EXPIRY_SECONDS
>>> var
<ConfigVarWithConfig key='request_expiry'>
>>> var.get()
604800
>>> var.set(3600)
>>> var.get_default_value()
86400
>>> var.is_set()
True
>>> var.is_modifiable()
True
```
2023-05-25 17:39:48 +00:00
SomberNight
03ab33f4b2
SimpleConfig: change API of set_key(): "save" is now kwarg-only
2023-05-25 17:37:16 +00:00
ThomasV
f770905551
follow-up d56162c588
2023-03-14 17:28:33 +01:00
SomberNight
4b8790c919
qt 2fa: show different status-bar icon for "2fa disabled" wallet
...
related: https://github.com/spesmilo/electrum/issues/8018
2022-10-16 15:10:46 +00:00
SomberNight
98feff07ad
threading.Thread: fix some DeprecationWarnings
...
"DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead"
2022-05-23 17:52:39 +02:00
SomberNight
1851ec962f
trustedcoin: fix two-step wallet creation (offline->online)
...
got broken in c46fbf08a5
2020-12-09 18:31:08 +01:00
SomberNight
95b08e9961
plugins: remove 'on_new_window' hook
2020-12-08 10:33:43 +01:00
SomberNight
07f5d6b745
keystore: 'get_tx_derivations' no longer public
2020-02-12 18:14:00 +01:00
ThomasV
e1ce3aace7
Separate db from storage
...
- storage is content-agnostic
- db and storage are passed to wallet contructor
2020-02-10 17:45:23 +01:00
ThomasV
16e293c289
follow-up cefa4762ba
2019-09-10 16:24:21 +02:00
SomberNight
f60f690ca9
change many str(e) to repr(e) as some exceptions were cryptic
...
it's often valuable to see the type of the exception
(especially as for some exceptions str(e) == '')
2019-07-17 20:12:52 +02:00
SomberNight
003e6c3e79
fix 2fa wallet creation via qt gui
...
closes #5334
2019-05-14 15:32:57 +02:00
SomberNight
3385a94753
logging: basics
2019-05-02 15:19:03 +02:00
SomberNight
1cfac928f9
trustedcoin: longer timeout for server signing
...
fixes #5221
2019-03-25 23:36:52 +01:00
SomberNight
a62bf2a53a
trustedcoin: better UX in Qt when cannot connect to TC server
...
closes #5184
2019-03-16 20:05:10 +01:00
ThomasV
d5790ea109
wizard: do not use on storage object during wallet creation
2019-02-28 09:02:58 +01:00
SomberNight
026448837f
no more "import *"
...
fixes #5101
fixes #5105
2019-02-11 20:21:24 +01:00
SomberNight
9013f6d59e
wizard: make 'stack' private
2019-02-04 20:27:00 +01:00
SomberNight
16bac5fd73
rm qt icons file
...
so we don't need pyrcc5, which is not deterministic,
and so we don't need the submodule for the icons
based on electrumsv/electrumsv@bf8802c2ea
2019-02-01 20:15:28 +01:00
SomberNight
7b90d69443
trustedcoin: p2wpkh billing addresses
2018-12-11 09:28:35 +01:00
Janus
097ac144d9
file reorganization with top-level module
2018-07-13 14:01:37 +02:00