Commit graph

5740 commits

Author SHA1 Message Date
sqrrm
463f87b39e
Merge pull request #5284 from ghubstan/07-validate-paymentacct-n-new-offer
Validate offer <-> payment-acct in createoffer
2021-03-09 16:51:56 +01:00
ghubstan
2161c936f1
Adjust canceloffer to getmyoffer bugfix (commit d6c79fc) 2021-03-08 16:36:01 -03:00
ghubstan
d6c79fca70
Filter out 'my' offers from 'available' offers 2021-03-08 16:26:16 -03:00
ghubstan
04b52f873e
Fix setSelectedCurrency bug, and replace unnecessary reflection usage
Commit de59c0a5f9 did not persist the
assigned selected currency, this fixes the bug.
2021-03-08 16:02:18 -03:00
ghubstan
de59c0a5f9
Assign selected trading currency on new payment accts (api only)
If a new account has a trading currency, assign it as the selected trading currency.

Also fixed a payment acct console formatting issue (left justify the ccy code).
2021-03-08 15:22:28 -03:00
ghubstan
b4f4d90e05
Add tradeCurrencies field to Transferwise acct form
These changes make tradeCurrencies a required twise acct form field.

Addresses issue https://github.com/bisq-network/bisq/issues/5281

- Added comment to PaymentAccountForm about special 'tradeCurrencies' field handling.
- Added support for Transferwise 'tradeCurrencies' to PaymentAccountTypeAdapter.
- Added instance of isTransferwiseAccount check to PaymentAccount.
- Added methods to CurrencyUtil to convert comma delimited code list to TradeCurrency list.
- Added methods to ReflectionUtil for getting fields and methods on class.
- Added required field check to CorePaymentAccountsService.
- Added CreatePaymentAccount test cases.
2021-03-08 14:47:30 -03:00
ghubstan
baca7001ea
Fix unnecessary use of fully qualified name 'String.format' 2021-03-07 20:05:39 -03:00
ghubstan
99fea74e09
Validate offer <-> payment-acct in createoffer
This change prohibits creation of new offers with incompatible payment
accounts with the api.

- PaymentAccountUtil
  Renamed isAnyTakerPaymentAccountValidForOffer -> isAnyPaymentAccountValidForOffer.
  Renmaed isTakerPaymentAccountValidForOffer -> isPaymentAccountValidForOffer.
  Deleted commented code.

- PaymentAccounts: Adjusted to PaymentAccountUtil method name changes.

- OfferFilter: Adjusted to PaymentAccountUtil method name changes.

- OfferBookViewModelTest: Adjusted to PaymentAccountUtil method name changes.

- Add CoreOffersService#verifyPaymentAccountIsValidForOffer

- ValidateCreateOfferTest, OfferTest: Added test cases.
2021-03-07 19:51:29 -03:00
chimp1984
f43dc2032f
Handle flush at shutdown differently to flush at backup 2021-03-06 12:02:17 -05:00
chimp1984
569a2de641
Call onAllServicesInitialized on PersistenceManager and
prevent write to disk before it is called.

In case the user started Bisq 2 times, the second process
would have called the flushAllDataToDisk at shutdown and
overwrote data from the running app.
2021-03-06 10:24:25 -05:00
jmacxx
cc56470b2f
Improve chat functionality of mediation/arbitration
Show badge with number of unread chat messages on each ticket
Use icons for chat, info and process ticket functions
Select a row by clicking on it, no clunky select button needed.
Show chat messages in a movable popup window.
More space for ticket list.

Implement requested feature additions:

Indicate if the trade period is over
Indicate more clearly the sender of each chat message
Support badge count
Indicate the XMR tx proof (when applicable)
Allow trader to close own mediation ticket if the trade is paid out

Fixes:

null check for cases when extraData null/not applicable
when upgrading closed disputes, clear chat unread count
2021-03-03 18:41:17 -06:00
BtcContributor
ba5705ca74
fix setpassword text button 2021-03-03 12:13:10 +01:00
Christoph Atteneder
0c9d278629
Merge pull request #5235 from jmacxx/mempool_minimumFee
Obtain minimumFee from mempool api in place of hardcoded value
2021-03-01 11:18:16 +01:00
sqrrm
80c722803d
Merge pull request #5247 from bisq-network/release/v1.5.7
Release/v1.5.7
2021-02-26 22:34:08 +01:00
jmacxx
fd7ce51bf9
Field id strings for FeeService extracted to Config.java 2021-02-25 11:51:40 -06:00
ghubstan
e125ba8ab8
Prepare to adjust api to new minimum fee per vbyte (from feeService)
Commit c33ac1b983 changed the source of
the min tx fee rate, and the api will adjust after the associated PR
is merged.  For now, the required change is a comment.
2021-02-25 11:53:12 -03:00
ghubstan
b725f06514
Adjust api to new minimum fee per vbyte
The BaseCurrencyNetwork#getDefaultMinFeePerVbyte now returns
15 (sats/byte) since commit b341bb6e89.

This change adjusts the api to the new min tx fee rate by validating
the api's setTxFeeRatePreference param, and throwing an appropirate
exception if the param value is below the minimum.  Also adjusted a broken
test, and added a new test to check the appropriate exception is received
from the server.
2021-02-25 11:31:13 -03:00
jmacxx
be78f47b0e
Update Preferences tests to new constructor signature 2021-02-25 08:27:30 -06:00
ghubstan
3dde3cbeef
Fix typo in toString 2021-02-25 10:37:30 -03:00
jmacxx
c33ac1b983
Obtain minimumFee from mempool api in place of hardcoded value 2021-02-24 22:47:06 -06:00
Christoph Atteneder
0feb1079b8
Merge pull request #5223 from BtcContributor/lengthcheck
Fix length check text on manual payout tool
2021-02-24 10:33:06 +01:00
jmacxx
dab8b638ae
TraderChatManager to handle onAllServicesInitialized
Upon receipt of onAllServicesInitialized, TraderChatManager should
call tryApplyMessages in order to process any pending mailbox
messages stored up while offline.
2021-02-24 09:14:02 +01:00
jmacxx
b3263be5e9
Fix initialization ordering issue
TradeManager must be inited before MailboxMessageService
2021-02-24 09:13:52 +01:00
jmacxx
d3b62b1a58
TraderChatManager to handle onAllServicesInitialized
Upon receipt of onAllServicesInitialized, TraderChatManager should
call tryApplyMessages in order to process any pending mailbox
messages stored up while offline.
2021-02-23 21:12:59 -06:00
BtcContributor
6edb318236
Fix length check text on manual payout tool 2021-02-23 17:57:47 +01:00
Christoph Atteneder
5951e140e3
Fix key shortcut documentation when using CMD+Y
This behavior change as you cannot manually fails an open trade anymore. Only unfail it after selecting it in the failed trades section and pressing CMD+Y
2021-02-23 09:23:31 +01:00
jmacxx
0e5c7e5de7
Fix initialization ordering issue
TradeManager must be inited before MailboxMessageService
2021-02-22 17:56:30 -06:00
Christoph Atteneder
aae52f801a
Update translations for v1.5.7 2021-02-22 15:54:53 +01:00
Christoph Atteneder
c30fd72990
Update bitcoinj checkpoints for v1.5.7 2021-02-22 15:51:33 +01:00
Huey
b8d24291b7
Rename summary notes "Seller not responding" category
I renamed the string for the
disputeSummaryWindow.reason.SELLER_NOT_RESPONDING key because
BTC buyers can also be unresponsive.
2021-02-22 10:16:32 +00:00
Jared Boone
5ddce75213
resolves #5208 2021-02-19 17:12:35 -08:00
Christoph Atteneder
314e6ce314
Merge pull request #5142 from chimp1984/add-coin-input-control
Add coin input control
2021-02-19 19:13:31 +01:00
jmacxx
df0acf1469
Improve mediation tools.
Emergency payout tool to also show Open mediation tickets.
Log txHex of MediatedPayoutTxPublished.
2021-02-18 16:15:35 -06:00
Christoph Atteneder
14ae0c3f8c
Merge pull request #5156 from chimp1984/improve-facts-and-figures
Improve facts and figures
2021-02-18 21:32:17 +01:00
Christoph Atteneder
2e89e590b3
Merge pull request #5196 from jmacxx/fix_SignaturePubKey_error
Prevent erroneous logging of 'SignaturePubKey in message does not match'
2021-02-18 21:18:49 +01:00
chimp1984
9ae76b621f
Add comment 2021-02-18 11:44:12 -05:00
chimp1984
5b2fed0b8a
Fix typos 2021-02-18 11:42:16 -05:00
chimp1984
fdad973f4c
Add TxInputSelectionWindow for coin input selection.
It is both for BSQ and non-BSQ (BTC) used.
2021-02-18 11:42:16 -05:00
chimp1984
b345918219
Add getSpendableBsqTransactionOutputs and getSpendableNonBsqTransactionOutputs
methods.
Add overridden getPreparedSendBsqTx and getPreparedSendBtcTx methods
with utxoCandidates param.

If utxoCandidates is not null we apply it to our coinSelector.
As the coin selector is re-used we re-set it immediately after
it was applied (inside coin selector select method).

Set preferences in nonBsqCoinSelector
2021-02-18 11:42:16 -05:00
chimp1984
06a7ecd382
Add support for utxo set used in coin selection if set
We use that to use only the selected utxos instead of all available.
2021-02-18 11:42:16 -05:00
chimp1984
24370146e6
Implement isDustAttackUtxo protection 2021-02-18 11:42:15 -05:00
chimp1984
cd0a28361f
Add average bsq price text fields from timeline selection 2021-02-18 11:40:30 -05:00
chimp1984
683e768a00
Add total volume text fields 2021-02-18 11:40:30 -05:00
chimp1984
25f35fea9e
Update text field values when time interval selection changes 2021-02-18 11:40:30 -05:00
chimp1984
f421411bba
Add price and volume charts 2021-02-18 11:40:30 -05:00
chimp1984
d2f43373fd
Add comments 2021-02-18 11:40:29 -05:00
chimp1984
9dab4fd65a
Add total issuance and total burned series 2021-02-18 11:40:29 -05:00
chimp1984
632653a751
Add new chart view 2021-02-18 11:40:28 -05:00
chimp1984
db86b89377
Exclude proof of burn amounts from trade fee display.
Use Proof of burn fee instead of burned BSQ from invalid tx.
2021-02-18 11:40:10 -05:00
ghubstan
1154085632
Add api method 'stop'
This change gives CLI users a 'stop' command to shutdown a daemon.

- Server side gRPC boilerpate was added to :proto and :daemon.

- When the new GrpcShutdownService accepts a 'stop' request from the CLI,
  it calls UserThread.runAfter(BisqHeadlessApp.getShutDownHandler(), 500, MILLISECONDS);

- Method help file 'stop-help.txt' was added to :core.

- Client side gRPC boiler plate and 'stop' implementation was added to :cli.
2021-02-18 11:54:10 -03:00