Commit graph

48 commits

Author SHA1 Message Date
Manfred Karrer
b8f8fbff20
Use percentage based value for security deposits
Use percentage based value of trade amount for buyer and seller
security deposit.
To ensure that the BTC value is not getting too low, we apply a min.
value for both.
2019-03-04 23:35:35 -05:00
Manfred Karrer
03d0a22580
Allow spending of unconfirmed BSQ change outputs
When creating a BSQ transaction (actually at commit time as we can create a tx and then
cancel it in the confirmation popup) we store the change output (only that not the other
possible BSQ output) in a persisted list. The BsqCoinSelector will take that list to
allow spending those coins. We use the txType to find the index of the cahnge output.
We only have one change output in the transactions created in Bisq. Multiple change
outputs would be valid but our goal is only increased usability in the Bisq app and it is
not related to validation rules.

We update out list at each new block confirmation.

With that approach we avoid too much dependencies to the BitcoinJ side.

- Add UnconfirmedBsqChangeOutputListService and persisted UnconfirmedBsqChangeOutputList
for storing unconfirmed outputs
- Add lookup for unconfirmed BSQ change outputs at BsqCoinSelector and allow spending if
found
- Pass TxType for walletsManager.publishAndCommitBsqTx calls
- Add TxType to bsqWalletService.commitTx
- Refactor getPreparedSendTx methods for BSQ and BTC sending to one common method with a
coinselector parameter.
- Add getChangeAddress method to BsqWalletService to make change outputs more explicit
- Add unconfirmedChangeBalance to onUpdateBalances handlers
- Rename availableBalance to availableConfirmedBalance in onUpdateBalances
- Unify onUpdateBalances parameter names
2019-02-28 23:22:43 -05:00
Manfred Karrer
11bc11fd24
Remove code for Venmo, Cashapp and OKPay
- We had an automate remove accounts for those payment methods for long
time, so we can assume that no traders have any of those accounts still
in their persisted user objects and it is safe to completely remove them.
Only part where we cannot remove it is the PB definitions (actually I
think we could remove those as well, but not 100% sure and it seems to
be more safe to mark those as deprecated and leave the entries).
2019-02-13 21:34:51 -05:00
Manfred Karrer
d1faa846ea
Merge pull request #2410 from ripcurlx/add-utm-parameters-for-website-links
Add utm parameters to bisq.network links
2019-02-12 07:58:05 -05:00
Manfred Karrer
a4b39135f8
Remove empty lines 2019-02-12 07:41:59 -05:00
Christoph Atteneder
eb2e1a96bf
Add utm parameters to bisq.network links to be able to track referral traffic from client 2019-02-12 12:35:33 +01:00
Christoph Atteneder
10f7007037
Add application launchers for UI test files 2019-02-07 21:18:34 +01:00
Christoph Atteneder
efcee3e28f
Fix broken test 2019-01-23 22:31:46 +01:00
Manfred Karrer
83d67e3532
Merge pull request #2310 from ripcurlx/fix-tradecurrency-selection
Fix trade currency handling for multiple currency payment accounts
2019-01-23 20:07:20 +01:00
Manfred Karrer
fc815eed77
Fix testclass 2019-01-23 13:47:10 +01:00
Manfred Karrer
200c90b7aa
Merge pull request #2251 from ManfredKarrer/refactor-fee-estimation
Refactor fee estimation
2019-01-23 13:44:27 +01:00
Christoph Atteneder
0a7c85f7d8
Use selected trade currency if available in payment account 2019-01-23 13:16:55 +01:00
Christoph Atteneder
f8d77de642
Improve exception if offer of removed assets is edited 2019-01-22 17:33:38 +01:00
Devin Bileck
7a16b3f3c6
Fix CurrencyListTest when locale is not en_US
When declaring a fiat currency and only providing the currency code,
it uses the system locale to get the currency display name.
This potentially causes different sorting results in
testUpdateWhenNotSortNumerically when locale is not en_US.

Now, it specifies the en_US locale when defining the fiat currencies
for this test.

Fixes https://github.com/bisq-network/bisq/issues/2259
2019-01-13 22:27:06 -08:00
Manfred Karrer
28d0db8ac8
Fix missing param in test class 2019-01-12 00:16:57 +01:00
Christoph Atteneder
fe864724f3
Configure jMockit for desktop module 2019-01-11 16:59:18 +01:00
Christoph Atteneder
e31a314904
Fix ignored test cases 2019-01-11 16:17:56 +01:00
Manfred Karrer
f0eb12df06
Remove param from CreateOfferViewModelTest 2019-01-07 12:19:45 +01:00
Christoph Atteneder
9e22a7df6d
Add print tool for all markets used in https://github.com/bisq-network/bisq-website/blob/master/_includes/market_currency_selector.html 2018-12-13 14:54:08 +01:00
Christoph Atteneder
0bc29e198c
Ignore monospace spacing tests until re-introduced again 2018-12-13 14:20:13 +01:00
Jeffrey Ko
4cd2ac8d40
Add advanced cash payment method 2018-11-23 20:50:03 +07:00
Manfred Karrer
b852a6b94a
Merge branch 'master' into release-candidate-0.9.0 2018-11-12 20:36:47 -05:00
Manfred Karrer
16e4b72d4d
Fix tests 2018-11-12 00:25:25 -05:00
Manfred Karrer
6861e76d61
Merge branch 'master' into release-candidate-0.9.0
# Conflicts:
#	desktop/src/main/java/bisq/desktop/util/GUIUtil.java
#	desktop/src/test/java/bisq/desktop/util/GUIUtilTest.java
#	gradle/witness/gradle-witness.gradle
2018-11-08 16:55:03 -05:00
Manfred Karrer
4fd86c64e3
Fix tests and improve the isCryptoCurrency method.
- We return true at isCryptoCurrency in those cases:
- The code is BTC
- The code is found in assetRegistry
- If not found we check if we have a fiat currency for that code,
if not we treat it as crypto (case of a removed asset)
2018-11-07 16:31:32 -05:00
Manfred Karrer
526a9f5442
Merge branch 'master' into release-candidate-0.9.0
# Conflicts:
#	desktop/src/main/java/bisq/desktop/components/paymentmethods/InteracETransferForm.java
2018-10-30 14:03:12 -05:00
Jeffrey Ko
ee51292d87
add interac e-transfer question/answer validation 2018-10-30 21:53:32 +07:00
Manfred Karrer
5ac35284ef
Fix test 2018-10-27 18:43:50 -05:00
Christoph Atteneder
45060575bd
Merge branch 'master' of github.com:bisq-network/bisq into redesign
# Conflicts:
#	desktop/src/main/java/bisq/desktop/main/dao/governance/ProposalDisplay.java
#	desktop/src/main/java/bisq/desktop/main/dao/wallet/send/BsqSendView.java
#	desktop/src/main/java/bisq/desktop/main/settings/preferences/PreferencesView.java
2018-10-24 13:52:49 +02:00
Manfred Karrer
538538ec34
FIx missing arguments in test, Ignore test (JMockit issue)
@Christoph Can you have a look why JMockit is not working anymore
in that module? TradesChartsViewModel is null and creates a nullpointer.
Adding RunWith("JMockit") as it was earlier does not work with changed gradle file
with newer JMockit version.
2018-10-23 13:13:36 -05:00
Christoph Atteneder
15aa9c9e30
Updated Components Demo 2018-10-23 18:20:01 +02:00
Christoph Atteneder
ecf8e05889
Remove unused converter 2018-10-22 10:47:56 +02:00
Christoph Atteneder
4f9ff4412a
Use new currency factories 2018-10-19 15:56:53 +02:00
Christoph Atteneder
0edbb1733c
Merge branch 'master' of github.com:bisq-network/bisq-desktop into redesign
# Conflicts:
#	desktop/src/main/java/bisq/desktop/main/settings/preferences/PreferencesView.java
#	desktop/src/main/java/bisq/desktop/util/FormBuilder.java
2018-10-16 10:09:37 +02:00
Manfred Karrer
a9e32c0bdd
Move maker classes back to desktop module 2018-09-27 00:16:24 -05:00
Manfred Karrer
c231750900
Move classed from desktop to core 2018-09-26 16:03:42 -05:00
Christoph Atteneder
a22e5d5b2b
Adapt create offer screen 2018-09-24 11:31:41 +02:00
Manfred Karrer
bb20264473
Move classes 2018-09-23 15:35:06 -05:00
Manfred Karrer
920ad2e1b5
Rename network package to nodes 2018-09-23 15:29:09 -05:00
Manfred Karrer
f7d8b35b32
Add model package and move classes 2018-09-23 15:13:42 -05:00
Manfred Karrer
0d86176f4e
Further refactorings: move classes to other packages 2018-09-23 15:09:22 -05:00
Manfred Karrer
16fac73b6d
Further refactorings move classes to other packages 2018-09-23 14:56:46 -05:00
Christoph Atteneder
c6324b4ad6
Add demo class to test customization of components 2018-09-20 12:13:21 +02:00
Christoph Atteneder
4c068af7b3
Use default security provider instead of Bouncy Castle 2018-09-14 16:02:58 +02:00
Christoph Atteneder
64370f7adb
Fix JMockit setup 2018-09-13 10:46:07 +02:00
Christoph Atteneder
8ed7f4218f
Add not working JMockit setup (help wanted) 2018-09-07 14:03:52 +02:00
Christoph Atteneder
e319449186
Make power mock tests Java 10 compatibile 2018-09-07 14:02:22 +02:00
Christoph Atteneder
c1c38a3ceb
Move desktop to subdirectory 2018-09-05 09:50:29 +02:00