Commit Graph

5647 Commits

Author SHA1 Message Date
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
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
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
ghubstan
3dde3cbeef
Fix typo in toString 2021-02-25 10:37:30 -03: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
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
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
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
jmacxx
4afa846a1c
Check isPubKeyValid only if message is one we are listening for.
The order of checks was wrong.

PRE: it was checking the SignaturePubKey for messages that
were handled by other subsystems, such as OfferAvailability.

POST: make sure that this is a relevant message before checking that
its signature matches the trade.
2021-02-16 10:43:46 -06:00
jmacxx
d82a61d0a6
Fix issue with TriggerPriceService deactivating offer too early
TriggerPriceService is changed to use a BootstrapListener
on the P2PService so that it can start after the P2P network
is ready.

Fixes #5190 : Prevents an Uncaught Exception error at startup.
2021-02-13 15:51:50 -06:00
Christoph Atteneder
31b7292d56
Merge pull request #5117 from jmacxx/add_country_amazon_account
Specify Amazon eGift Card country
2021-02-12 20:34:51 +01:00
jmacxx
f89e4187af
When country not known, prompt user to ask in Trader Chat. 2021-02-12 12:37:56 -06:00
Christoph Atteneder
de57900765
Merge pull request #5175 from jmacxx/fix_NPE_trader_chat
Fix NPE in trader chat
2021-02-12 11:35:44 +01:00
Christoph Atteneder
8bcd32f498
Merge pull request #5123 from jmacxx/add_sepa_countries
Add four SEPA Payment Account countries: AD, SM, VA, JE.
2021-02-12 11:21:02 +01:00
Christoph Atteneder
a520802399
Merge pull request #5137 from jmacxx/replace_deprecated_explorer
Replace deprecated bisq explorer settings
2021-02-12 09:54:03 +01:00
jmacxx
1826902066
Replace deprecated bisq explorer settings
If user preferences were set to a bisq explorer that has been
retired, switch it to another explorer from the provided list.

Users can still choose their own explorer, or enter a custom
explorer address (such as their local node).
2021-02-10 08:23:50 -06:00
sqrrm
7e7c87698f
Merge pull request #5136 from chimp1984/add-warning-if-no-filter-is-delivered
Show popup if no filter is delivered
2021-02-10 14:43:43 +01:00
sqrrm
9ef4ea164d
Merge pull request #5120 from stejbac/speed-up-deposit-and-transactions-view-loads
Speed up deposit and transactions view loads
2021-02-10 14:39:49 +01:00
sqrrm
cedf108926
Merge pull request #5108 from jmacxx/pre_release_notifications
New Feature: Pre-release notifications
2021-02-10 14:38:53 +01:00
sqrrm
570ed0e032
Merge pull request #5148 from bisq-network/release/v1.5.5
Release/v1.5.5
2021-02-10 10:35:35 +01:00
Christoph Atteneder
ae188d9fd8
Merge pull request #5167 from huey735/edit-mediator-name
Fix Mediator's name
2021-02-10 09:57:49 +01:00
Christoph Atteneder
a3c707303b
Merge pull request #5157 from ghubstan/fix-method-help-typos
Fix method help typos
2021-02-10 09:57:16 +01:00
Christoph Atteneder
5ad670fe27
Merge pull request #5178 from jmacxx/refund_agent_payout_fee
Refund agent payout to use withdrawal fee rate from settings
2021-02-09 21:03:25 +01:00
jmacxx
fc04e88a55
Refund agent payout to use withdrawal fee rate from settings 2021-02-09 10:51:01 -06:00