Commit Graph

1683 Commits

Author SHA1 Message Date
tomFlowee 3aa28743f1 Start implementing the sweep module
This adds scanning of private key and processing the data.
2024-10-02 23:04:38 +02:00
tomFlowee 9b7d6749e4 Start new send-sweep module 2024-10-01 21:26:01 +02:00
tomFlowee ad1e187c54 minor fix. More space for touch 2024-10-01 21:14:54 +02:00
tomFlowee 4cdb393f20 Add a recycle icon for the delete-swipe 2024-10-01 19:57:17 +02:00
tomFlowee f1f97f5347 Add op-return creation UI for desktop 2024-10-01 17:55:05 +02:00
tomFlowee 410763fc6f minor; consistent naming. 2024-09-25 16:02:24 +02:00
tomFlowee aa6c3b68ce Help avoid mallocs; mark CoW containers const 2024-09-24 21:27:10 +02:00
tomFlowee 17e05d69a2 Loosen reading from Payment methods
The Payment specific methods paymentAmount and paymentAmountFiat are now
made to return the data from the first output and no longer required
there to be exactly one.
This allows these methods to still give useful info in the case of
payment protocol based creation of more complex payment objects.
2024-09-24 21:22:52 +02:00
tomFlowee 0a8b44c562 Fix costness issue.
As found by KDE/clazy.
2024-09-23 23:00:02 +02:00
tomFlowee a49f6ee0a1 Add basic support for bip21 op-return argument.
This takes the concept added some 5 years ago to Electron-Cash and adds
this to Flowee Pay as well.
In a nutshell, it allows a bip21 style payment request to include a
'comment' with the argument op_return_raw

This comment is expected to be a hex-encoded data payload that then will
be added as a single output to the transaction we build to fullfill the
payment request.

As a natural consequence of how uri's work, adding the argument multiple
times will cause multiple outputs to be generated. We check that this
does not exceed the expected max sizing for op-return.
2024-09-23 22:51:10 +02:00
tomFlowee ea4435f9d0 Follow Tx::Iterator change in Flowee Libs
The Tx::Iterator no longer returns the token data as part of the
output-script, but instead sees them as separate tags.
This removes most of the code here, and makes future deeper
support of cashtokens much easier.
2024-09-07 20:47:05 +02:00
tomFlowee a9b4f60f0b Follow API change in Flowee Libs 2024-09-07 19:53:27 +02:00
tomFlowee 0ed828c6e3 Simplify 2024-09-07 19:50:30 +02:00
tomFlowee f3c9576688 Add currency rules for Slovakia / Slovenia
THese two countries use the Euro, but unline most Euro
countries they put the currency indicator behind the
numbers.
With Slovenia even avoiding the euro-sign in most places.

This adds the specialization based on the phone set country.
2024-08-31 21:49:31 +02:00
tomFlowee 4550d3f512 Hungarian currency display update 2024-08-28 22:45:47 +02:00
tomFlowee 98906ac3e1 Make history return timestamp with price
this changes the call for historicalPrice() to now take the (int based)
timestamp as a ref and we change that to the actually found timestamp
upon success.
2024-07-05 13:05:40 +02:00
tomFlowee 238a5d3f40 Add indicator for price data being old.
When we start up we use the last known price information and also fetch
new data.
When the user shows the price details popup before the fetch has
completed, they may be mislead into thinking that they are looking at
current data while they are not.
So this shows a bouncy while we are fetching.
2024-07-05 12:40:16 +02:00
tomFlowee d89597d89a Remove unneeded bottom padding.
This is no longer needed after a typo fix in the popup ovelay class.
2024-07-03 23:06:45 +02:00
tomFlowee 58de1827e0 Improve display of tx-details
The popup showing details of a certain list-item had the down-side that
the list item we selected was made darker with the rest of the screen,
making it harder to understand the whole info.
This change repeats the clicked item inside the popup in a way that
makes it immediately clear which transaction we are showing details of.
2024-07-03 23:06:15 +02:00
tomFlowee e671d41a10 Skip fees when unknown
We can't calculate fees when we don't know all inputs. In that case we
simply return negative fees, which the UI then does not show.
2024-07-03 18:03:17 +02:00
tomFlowee 92e7da561e Improve logging for the indexer-service component 2024.07.0 2024-06-30 23:35:12 +02:00
tomFlowee 6950f641f2 Small clarification to docs 2024-06-30 23:33:55 +02:00
tomFlowee 1960bb6260 Improve the import screens a little.
This applies the knowledge learned from mobile to desktop too.
Also set the initially selected import year to 2023 and avoid
long imports for most people.
2024-06-30 23:26:25 +02:00
tomFlowee f31fcbac4d hide options irrelevant for a single-wallet user.
These two features are only relevant when there are multiple wallets
in the users app, so if that isn't the case we simply hide them.
2024-06-30 22:59:17 +02:00
tomFlowee 0c315370dd Fixes in CoinSelector
This (desktop only) component now works properly with:

- Showing the CF-logo for approriate coins.
- Clicking on a locked coin no longer selects it.
2024-06-30 22:50:16 +02:00
tomFlowee 3a6e0470a5 Move processing out of UI thread
Processing can take several seconds on a mobile, so we should do that in
its own thread in order to make the progress icon continue rotating.
2024-06-30 22:27:58 +02:00
tomFlowee a291826f8b New Android version 2024-06-30 17:16:28 +02:00
tomFlowee 845bdbab89 Improve for smaller screens 2024-06-30 16:47:08 +02:00
tomFlowee c6a4b200c7 Update to newer blockheaders
This moves the blockheaders we ship to actually be for 2024 :-)
2024-06-30 15:45:38 +02:00
tomFlowee c7f1fec322 Import translations from crowdin 2024-06-30 12:45:51 +02:00
tomFlowee 8776e5763a Make 'back' button do what we'd expect. 2024-06-29 12:15:30 +02:00
tomFlowee 59949ebe47 Add the ability to restart download
This adds a label showing the download failed and adds a retry button to
start it again.
2024-06-29 12:15:30 +02:00
tomFlowee b073a6ab64 Fix regression, handle the checkbox in all cases. 2024-06-29 12:15:30 +02:00
tomFlowee f34bd4e52a Redo out-of-bounds check
This changes us to no longer use the exception to find out the
time is before the checkpoint, but instead checks directly.
This was needed since upstream changed to no longer throw since that's
still a bad practice in C++
2024-06-29 12:15:30 +02:00
tomFlowee 05732c1998 Set timeouts on network
Make requests fail on no network activity for some time. We should then
allow the user to try again.
2024-06-29 12:15:30 +02:00
tomFlowee 7cab767283 Allow the download to be restarted.
We check the first block to figure out if the download is actually the
same one we are about to start, and if it is then Pay will not re-
download the part that is already on disk.
2024-06-29 12:15:30 +02:00
tomFlowee 19efc6575f Split processing and update UI
We set the UI to change from 'downloading' state to 'processing' state,
and now we give the UI the processor time to actually show this new
state on the screen before we start that processing step.
2024-06-29 12:15:30 +02:00
tomFlowee bfa373dc99 Update basic description of the Blocks module
This also adds an icon.
2024-06-26 23:39:30 +02:00
tomFlowee c371d3b47a Import translations from Crowdin 2024-06-26 22:06:15 +02:00
tomFlowee c9d3e5ade4 Fix replacement headers on Android
seems renaming a file that is mapped is not possible on Android, but
remove is. This code now removes the original static headers after we
get an approval of the downloaded file.
2024-06-26 21:30:03 +02:00
tomFlowee c8023e5e11 Start new version 2024-06-26 19:40:19 +02:00
tomFlowee 1bcabee85e Add a basic info screen to the 'blocks' module. 2024-06-26 17:58:28 +02:00
tomFlowee e2d1251fc3 Move the UI to allow imports only from 2011 2024-06-26 17:55:53 +02:00
tomFlowee 9bbc82686b Add helpful debug message 2024-06-25 23:50:35 +02:00
tomFlowee 74b387e43e install desktop file without x flag 2024-06-25 10:05:36 +02:00
tomFlowee 7ba275fd53 On resolve start-date, show it in the UI
We use the same header-heights lookup table to show the actual month to
the user on resolve.
The resolve is the fetch of first-use of an address or seed, this
returns a blockheight from elecrum servers only and that isn't very
user-friendly. As such this now fills the comboboxes with the proper
month/year for better understanding.
2024-06-24 22:33:53 +02:00
tomFlowee 92be995fdd Hide 'blocks' module from user for now
There isn't yet any user interface they can see, so no point in showing
it to the user in the 'explore' part of the app.
2024-06-23 19:55:11 +02:00
tomFlowee 074c79d042 Change overwrite policy of static headers (Android)
As we start to ship headers based on a checkpoint, the earlier code
to overwrite an existing static-headers file when the new delivable
is larger is no longer useful.
This is because just being larger doesn't mean the checkpoint it
extends will stay the same.

We simply won't overwrite a static headers file anymore.
2024-06-23 19:37:58 +02:00
tomFlowee 40dce2a91b Minor text improvement. 2024-06-23 19:37:58 +02:00
tomFlowee 7ee064dd59 Add assert detecting misuse. 2024-06-23 19:37:58 +02:00