1
0
Commit Graph

14706 Commits

Author SHA1 Message Date
Sander van Grieken
0d0aed1aaa fixes after rebase a3faf85e3c 2022-07-07 18:29:01 +02:00
Sander van Grieken
c505de2fe0 fixes after rebase persist_lnwatcher 2022-07-07 18:29:01 +02:00
Sander van Grieken
7cb8c347b5 Add @auth_protect decorator.
This guards function calls by storing the function, args and kwargs into
an added attribute '__auth_fcall' on the object using the decorator,
then emits a signal that can be handled by the UI.

The UI can signal auth-success or auth-failure back to the object by
calling either the authProceed() slot or the authCancel slot.

The object utilizing this decorator MUST inherit/mixin the AuthMixin
class, which provides the above two slots, and handling of state.

The decorator also accepts a 'reject' parameter, containing the name of
a parameterless function on the object, which is called when
authentication has failed/is cancelled.
2022-07-07 18:29:01 +02:00
Sander van Grieken
0b8de89e66 add hamburger menu to Wallets page 2022-07-07 18:29:01 +02:00
Sander van Grieken
f8dd411148 styling 2022-07-07 18:29:01 +02:00
Sander van Grieken
4e98022686 fix some issues with QEAmount use
- always cast amount_sat and amount_msat to int within QEAmount to avoid conversion issues
  on the Qt/python boundary
- lightningBalance/lightningCanSend/lightningCanReceive were returning a floating QEAMount instance, leading to a crash
2022-07-07 18:29:01 +02:00
Sander van Grieken
b3920f0408 add frozen balance to balancesummary 2022-07-07 18:29:01 +02:00
Sander van Grieken
5889c92e81 improve network status display and states of items when no wallet loaded 2022-07-07 18:29:01 +02:00
Sander van Grieken
d3e88064d0 Use screen size as upper bound for qr code size
also fix some typing issues
2022-07-07 18:29:01 +02:00
Sander van Grieken
486ef414af implement enable lightning button 2022-07-07 18:29:01 +02:00
Sander van Grieken
098b384348 enable generating lightning request.
currently very simple heuristics: if requested amount < lightningCanReceive
then create a lightning request, else onchain
2022-07-07 18:29:01 +02:00
Sander van Grieken
e340f3fe9f make QR always fit within 400px 2022-07-07 18:29:01 +02:00
Sander van Grieken
8819a7189c try tabbar at bottom 2022-07-07 18:29:01 +02:00
Sander van Grieken
1d5a273629 add address to InvoiceDialog for OnchainInvoice type 2022-07-07 18:29:01 +02:00
Sander van Grieken
02ccd46fd5 add numtx and address history model to addres details 2022-07-07 18:29:01 +02:00
Sander van Grieken
8f8a1fc8cf wip 2022-07-07 18:29:01 +02:00
Sander van Grieken
f6a46f3900 initial create invoice from user input 2022-07-07 18:29:01 +02:00
Sander van Grieken
d7c8a1592e the invoice/request key issue is annoying 2022-07-07 18:29:01 +02:00
Sander van Grieken
3fd33169f5 frontend improvements, refactor qeinvoicelistmodel 2022-07-07 18:29:01 +02:00
Sander van Grieken
3046c0bbae rename ConfirmInvoiceDialog to InvoiceDialog and style buttons like RequestDialog 2022-07-07 18:29:01 +02:00
Sander van Grieken
6a9df9b665 fix one init_model call on a potentially undefined _addressModel 2022-07-07 18:29:01 +02:00
Sander van Grieken
c3db1e5cc1 add can send/can receive (totals and per-channel), fiat, channel ratio indicator 2022-07-07 18:29:01 +02:00
Sander van Grieken
7ef52c6625 listmodels self-initialize,
lazy-load listmodels in QEWallet,
process channel updates in qechannellistmodel
2022-07-07 18:29:01 +02:00
Sander van Grieken
3c1926c3c2 some fixes, add lightning balance to BalanceSummary 2022-07-07 18:29:01 +02:00
Sander van Grieken
d69ed7a204 initial channel list model and delegate 2022-07-07 18:29:01 +02:00
Sander van Grieken
dc69391204 initial working channel open flow 2022-07-07 18:29:01 +02:00
Sander van Grieken
81b1f774e2 expose more trampoline boilerplate
allow delegation of make_tx and accept/send
2022-07-07 18:29:01 +02:00
Sander van Grieken
8807a428ed rename ConfirmPaymentDialog to ConfirmTxDialog
generalize/parameterize some labels
and inject TxFinalizer instead of encapsulate
2022-07-07 18:29:01 +02:00
Sander van Grieken
c55aa7bb48 wip lightning 2022-07-07 18:29:01 +02:00
Sander van Grieken
69eb0f3f47 also move new-quotes event to FiatField 2022-07-07 18:29:01 +02:00
Sander van Grieken
e84bc4561f bold font wasn't loaded when regular font loading was succesful
some styling fixes
2022-07-07 18:29:01 +02:00
Sander van Grieken
5e92624f33 refactor btc <-> fiat amount behaviour into separate controls 2022-07-07 18:29:01 +02:00
Sander van Grieken
532d19979d expose additional wallet properties
(lightning enabled, balance, masterpubkey)

and a few smaller improvements
2022-07-07 18:29:01 +02:00
Sander van Grieken
98c03ec991 about page 2022-07-07 18:29:01 +02:00
Sander van Grieken
bbc1f4dba8 enable android share option 2022-07-07 18:29:01 +02:00
Sander van Grieken
a6e72ae42f add initial Transaction Details page and backing qobject 2022-07-07 18:29:01 +02:00
Sander van Grieken
e78a239bf5 bugfixes, lifecycle improvements 2022-07-07 18:29:01 +02:00
Sander van Grieken
a584c06eb2 more rebase fixes, add invoice delete 2022-07-07 18:29:01 +02:00
Sander van Grieken
e1f53c4ea0 QEDaemon uses internal QEWalletDB for wallet open pre-checks
various other fixes
2022-07-07 18:29:01 +02:00
Sander van Grieken
52c1ed10dc add section dependent datetime formatting 2022-07-07 18:29:01 +02:00
Sander van Grieken
4cc3acabb3 colors in history 2022-07-07 18:29:01 +02:00
Sander van Grieken
b188b48e2f after-rebase fixes 2022-07-07 18:29:01 +02:00
Sander van Grieken
00430d674e font sizes, accent colors 2022-07-07 18:29:01 +02:00
Sander van Grieken
81435f431c use rbf flag, show tx outputs, actually send tx in confirmpaymentdialog 2022-07-07 18:29:01 +02:00
Sander van Grieken
7cd0d752a2 fiat and balance amount fixes 2022-07-07 18:29:01 +02:00
Sander van Grieken
15dec47516 compat with android/python3.8 2022-07-07 18:29:01 +02:00
Sander van Grieken
bb2b1738b7 add initial address detail page 2022-07-07 18:29:01 +02:00
Sander van Grieken
ef91969fba support update of address in addresslistmodel 2022-07-07 18:29:01 +02:00
Sander van Grieken
2b691c9216 small fixes 2022-07-07 18:29:01 +02:00
Sander van Grieken
300e5e2168 add fiat to balance summary 2022-07-07 18:29:01 +02:00