1
0
Commit Graph

14742 Commits

Author SHA1 Message Date
SomberNight
b8b629ca66 run_electrum: (android) restore behaviour of only logging in DEBUG builds 2022-07-08 13:31:40 +02:00
Sander van Grieken
a5fc067481 take out routing hints retrieval for display for now. 2022-07-08 12:32:27 +02:00
Sander van Grieken
f5933da348 skip wallet files with leading dot 2022-07-08 11:10:15 +02:00
Sander van Grieken
0228169852 refactor to new event listener framework 2022-07-08 11:09:08 +02:00
Sander van Grieken
1f827f71d2 add info text for all remaining invoice states 2022-07-07 18:30:20 +02:00
Sander van Grieken
537dbab522 fix canRbf value in Send.qml 2022-07-07 18:30:20 +02:00
Sander van Grieken
2a13212ded implement auth by PIN and allow auth override to wallet password
by passing method='wallet' to auth_protect
2022-07-07 18:30:20 +02:00
Sander van Grieken
cc778356eb allow paying when lightning invoice is in status FAILED 2022-07-07 18:30:20 +02:00
Sander van Grieken
cd6d5e577b add unified wallet password support 2022-07-07 18:30:20 +02:00
Sander van Grieken
0130e5aecf invert (in)validPassword property in QEWalletDB, add invalidPassword signal.
This is to better support state in OpenWallet page
2022-07-07 18:30:20 +02:00
Sander van Grieken
e289b8b46c move channels_updated event handling to ui thread, fix some debug statements 2022-07-07 18:30:20 +02:00
Sander van Grieken
dc50da6c62 channel freeze menu items only enabled when channel is open 2022-07-07 18:30:20 +02:00
Sander van Grieken
7298dd0ab7 clean up list of outputs in ConfirmTxDialog 2022-07-07 18:30:20 +02:00
Sander van Grieken
6fecf5b962 disable new_channel call for now as channel is otherwise added twice 2022-07-07 18:30:20 +02:00
Sander van Grieken
6a1c39728f add 'spend unconfirmed' config option 2022-07-07 18:30:20 +02:00
Sander van Grieken
f2857243cb show 'press again to quit' message when pressing back on last page in the stack 2022-07-07 18:30:20 +02:00
Sander van Grieken
cbd4d2a2ae make rbf selection allowed configurable 2022-07-07 18:30:20 +02:00
Sander van Grieken
c656b02319 update tip pthon-for-android qt5-wip 2022-07-07 18:30:16 +02:00
Sander van Grieken
982639919d make sure historymodel is initialized 2022-07-07 18:29:21 +02:00
Sander van Grieken
db9e2ab311 delete channel 2022-07-07 18:29:21 +02:00
Sander van Grieken
456b6048ea properly count open channels, add open channel to hamburger menu 2022-07-07 18:29:21 +02:00
Sander van Grieken
b2fafcb428 add initial submarine swap functionality 2022-07-07 18:29:02 +02:00
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