Commit Graph

3053 Commits

Author SHA1 Message Date
chimp1984
091f82477b
Rename getPaymentMethod to getPaymentMethodId 2021-11-23 00:39:38 +01:00
Christoph Atteneder
ef7ce109ac
Merge pull request #5834 from jmacxx/dispute_ui_add_penalty
Add penalty calculation to dispute agent UI
2021-11-18 17:57:54 +01:00
Christoph Atteneder
c64e6f3298
Fix broken test for new build 2021-11-18 17:11:17 +01:00
jmacxx
5c00e1974e
Add penalty calc to dispute UI 2021-11-18 08:43:06 -06:00
Christoph Atteneder
a27ac4313b
Merge pull request #5826 from chimp1984/improve-fee-handling
Improve fee handling
2021-11-18 09:23:15 +01:00
jmacxx
daee63490e
Fix display of missing failed trade tab 2021-11-15 11:10:16 -06:00
chimp1984
a082fd4a84
Add fee fields to filter 2021-11-14 15:07:32 +01:00
jmacxx
bf311e36fb
Add payment methods ACH Transfer and Domestic Wire Transfer 2021-11-12 11:50:43 -06:00
jmacxx
f72b6c0b0a
Add payment methods Tikkie and TransferWise-USD 2021-11-10 21:48:10 -06:00
Christoph Atteneder
284eaf2c11
Merge pull request #5817 from chimp1984/fix-incorrect-app-initialisation
Fix incorrect app initialisation
2021-11-10 19:22:03 +01:00
chimp1984
5c2199ff49
Add freeMemory to log
Cleanup
2021-11-10 12:32:18 +01:00
chimp1984
880df30ffc
Remove unneeded UserThread.execute wrappers
In desktop we are on the UI thread.
In Seednode we have an outer UserThread.execute call already
2021-11-10 12:27:50 +01:00
Christoph Atteneder
1578f45ffc
Merge pull request #5812 from ghubstan/02-cli-console-formatting-api
Deprecate and replace hard-coded CLI console output formatters
2021-11-09 21:21:52 +01:00
Christoph Atteneder
2eae94e22a
Add missing space 2021-11-09 20:30:14 +01:00
chimp1984
8a4d1cb6db
Return CompletableFuture once applyData is completed with all
calls.
2021-11-09 20:00:34 +01:00
chimp1984
b61d64e1ea
Add mapToUserThread method to ChartView
For initial rendering we need to delay a bit and wait
until async calls are completed.
2021-11-09 20:00:34 +01:00
chimp1984
a4b106cd4a
Apply async handling to DaoChartView as well 2021-11-09 20:00:34 +01:00
chimp1984
6b89bf0da9
Use async methods with CompletableFuture in viewmodel to
avoid that slow operations in data model are running on UI thread
2021-11-09 20:00:34 +01:00
chimp1984
a659a78db6
Do sorting on non UI thread as its slow and only attach
it to table in UI thread afterwards.

Chain updateSelectedTradeStatistics and updateChartData calls.
2021-11-09 19:20:35 +01:00
chimp1984
ce8a91fdb3
Make getUpdateChartResult ansync 2021-11-09 19:20:35 +01:00
chimp1984
041b07e2e1
Move getUpdateChartResult, getCandleData, getTimeFromTickIndex to ChartCalculations
Make maxTicks static and rename to MAX_TICKS
2021-11-09 19:20:35 +01:00
chimp1984
7ad5993aad
Run getUsdAveragePriceMapsPerTickUnit and getTradeStatisticsForCurrency
in parallel and once both are done we call asyncUpdateChartData (not yet refactored).

Clear all data at deactivate
This cause a bit of costs when we activate again but as we delegate
now all work to threads it should be OK. It decreases the memory usage
if we do not keep those data in the fields. The View classes are cached
in the view loader so all data in fields stays in memory once it was
activated once and not manually cleared in deactivate.

Move getTradeStatisticsForCurrency to ChartCalculations
Rename buildUsdPricesPerTickUnit to getUsdAveragePriceMapsPerTickUnit
Rename selectedTradeStatistics to tradeStatisticsByCurrency
Make itemsPerInterval final
Remove modelReady
Add deactivateCalled flag
2021-11-09 19:20:35 +01:00
chimp1984
65706e7c14
Add async handling with CompletableFuture to fillList
The creation of TradeStatistics3ListItem is rather fast but the
applying to the list is due sorting pretty slow (300 ms) as
its > 100k items. We do the applying on the callback thread.
Seems JavaFx permits that. So we can keep the UI thread unblocked.

Remove modelReadyListener

Renamed model.selectedTradeStatistics to model.tradeStatisticsByCurrency
2021-11-09 19:20:35 +01:00
chimp1984
ca145b0eb3
Add static method getTradeStatisticsForCurrency and
use it instead of updateSelectedTradeStatistics
(preparation for follow up commit)
2021-11-09 19:20:34 +01:00
chimp1984
0271af995b
Add modelReady property and let view fill list once model is ready 2021-11-09 19:20:34 +01:00
chimp1984
ea66a510dc
Make buildUsdPricesPerTickUnit async using CompletableFuture 2021-11-09 19:20:34 +01:00
chimp1984
deeb912f9b
Move buildUsdPricesPerTickUnit to ChartCalculations 2021-11-09 19:20:34 +01:00
chimp1984
c51060a6d4
Move getAveragePrice and roundToTick to ChartCalculations
Make buildUsdPricesPerTickUnit static and pass params
Rename usdPriceMapsPerTickUnit to usdAveragePriceMapsPerTickUnit
Rename local variable map to usdAveragePriceMap

Move method calls syncPriceFeedCurrency() and
setMarketPriceFeedCurrency() before other calls (those will become async later)
2021-11-09 19:20:33 +01:00
ghubstan
4f1899265f
Fix conflicts from previous master/merge 2021-11-09 09:48:33 -03:00
chimp1984
4d2d0717b5
Add getBlockTimeAtBlockHeight method
Improve getBlockStartDateByCycleIndex method
2021-11-09 13:01:18 +01:00
Christoph Atteneder
65c308f5ed
Merge pull request #5782 from chimp1984/redesign-dao-state-monitoring
Redesign dao state monitoring [4]
2021-11-09 12:12:22 +01:00
chimp1984
7e1696b095
Fix typos, cleanups 2021-11-08 21:49:08 +01:00
Christoph Atteneder
00d7913bc6
Merge pull request #5055 from Jakub-CZ/button-buy-bsq
Add "Buy BSQ" button next to trade fee selector
2021-11-08 11:13:52 +01:00
Christoph Atteneder
07e224e40a
Simplify containers and improve truncation behavior 2021-11-08 11:06:00 +01:00
Christoph Atteneder
2b90633263
Improve naming of helper method 2021-11-08 11:05:27 +01:00
Christoph Atteneder
fac4b3c5c3
Fix combobox BSQ selection error 2021-11-04 13:22:32 +01:00
chimp1984
8e3f95383e
Add daoStateBlockChainNotConnecting property (impl. will come in other commits)
Add Preferences to service classes
2021-11-04 12:48:09 +01:00
chimp1984
1f929926cc
Remove prevHash from StateHash classes (the prevHash was only used for display.
For creating the hash we take the hash from the previous element. By removing it
we safe about 3 MB on data)

Add isSelfCreated field to DaoStateHash (indicates if we have created
the hash by ourself or if we have received it from a peer -> will be
part of later commits)
2021-11-04 12:48:09 +01:00
chimp1984
1abe68637d
Add useFullModeDaoMonitor field to PreferencesPayload
Add toggle to PreferencesView
Set useFullModeDaoMonitor default to true for headless nodes
2021-11-04 12:48:08 +01:00
chimp1984
cd3e8217ae
Rename onChangeAfterBatchProcessing to onDaoStateHashesChanged
at DaoStateMonitoringService.Listener
2021-11-04 12:48:07 +01:00
Christoph Atteneder
851bdcf9ff
Merge pull request #5797 from jmacxx/fix_exception_opening_mediation
Prevent NPE in case delayedPayoutTx is not present (failed trade)
2021-11-04 11:47:17 +01:00
Christoph Atteneder
0e4933f8d1
Fix rebase merge errors 2021-11-04 10:55:51 +01:00
Christoph Atteneder
928208c200
Merge pull request #5791 from jmacxx/fix_monese_satispay
Include holder name field for Monese & Satispay accounts
2021-11-04 10:54:12 +01:00
Christoph Atteneder
e17fd9ef54
Add informational popup after account creation 2021-11-04 10:46:37 +01:00
Christoph Atteneder
55826cb4a2
Fix failing tests 2021-11-04 10:46:37 +01:00
Christoph Atteneder
b7c4e5ed17
Create BSQ account and take offer if not existing
Conflicts:
	desktop/src/main/java/bisq/desktop/main/offer/offerbook/OfferBookView.java
	desktop/src/main/java/bisq/desktop/main/offer/offerbook/OfferBookViewModel.java
	desktop/src/main/java/bisq/desktop/util/DisplayUtils.java
2021-11-04 10:46:27 +01:00
Christoph Atteneder
a5b2859d7e
Simplify and clean up data models
Conflicts:
	desktop/src/main/java/bisq/desktop/main/account/content/altcoinaccounts/AltCoinAccountsDataModel.java
2021-11-04 10:41:46 +01:00
Christoph Atteneder
60a0d875fc
Refactor account name generation 2021-11-04 10:40:41 +01:00
Christoph Atteneder
4063b72b7d
Add tooltip for disabled create offer button
Conflicts:
	desktop/src/main/java/bisq/desktop/main/offer/offerbook/OfferBookView.java
2021-11-04 10:40:16 +01:00
Christoph Atteneder
5527208894
Add more context to buy BSQ button 2021-11-04 10:36:59 +01:00