1
0
Commit Graph

14720 Commits

Author SHA1 Message Date
Sander van Grieken
a44f8d9b3b create new wallet name suggestion and pre-select and focus the textfield 2022-07-07 18:29:02 +02:00
Sander van Grieken
7a26ab259c update channel listmodel when channel opened 2022-07-07 18:29:02 +02:00
Sander van Grieken
2907698c17 support for MAX amounts 2022-07-07 18:29:02 +02:00
Sander van Grieken
e69fc739ca add initial channel close dialog 2022-07-07 18:29:02 +02:00
Sander van Grieken
71cd996379 InvoiceDialog: add balance & expired checks on invoices, add a few ln invoice fields to show 2022-07-07 18:29:02 +02:00
Sander van Grieken
c79651f981 also unregister callbacks from qewallet and qechannellistmodel on destroy 2022-07-07 18:29:02 +02:00
Sander van Grieken
f0d00dca37 unregister callback when object gets destroyed.
turns out we need to use a lambda to have the signal processed,
registering the member function somehow never triggers the
'destroyed' signal
2022-07-07 18:29:02 +02:00
Sander van Grieken
2c40a976b9 copy & share lightning requests 2022-07-07 18:29:02 +02:00
Sander van Grieken
4c9f713f9a further separate invoice objects 2022-07-07 18:29:02 +02:00
Sander van Grieken
12d726efc2 split user entered fields object from invoice uri parsing object 2022-07-07 18:29:01 +02:00
Sander van Grieken
04ce548e42 initial lightning channel details, action menu 2022-07-07 18:29:01 +02:00
Sander van Grieken
329bbaff3d tabbar minor 2022-07-07 18:29:01 +02:00
Sander van Grieken
9243f3b896 implement wallet password change.
implement wallet delete (though actual wallet file delete is left out still)
2022-07-07 18:29:01 +02:00
Sander van Grieken
e9a174711b UI on Wallets screen. Add active/not active/current indicator tags.
initial wallet delete/change password boilerplate
2022-07-07 18:29:01 +02:00
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