Commit Graph

6591 Commits

Author SHA1 Message Date
jmacxx
91a9804572
Check failed trades for sensitive data purge. 2022-04-04 16:34:42 -05:00
jmacxx
581deb7056
Remove unused imports 2022-04-03 17:40:47 -05:00
jmacxx
60db9440c7
Generate addresses field from script when necessary (v22+ RPC) 2022-04-03 17:32:35 -05:00
jmacxx
d0a9e660b3
Get TXO address from scriptPubKey 2022-03-28 15:16:53 -05:00
Christoph Atteneder
a384071cff
Merge pull request #6109 from xyzmaker123/5979-price-validation
Update trigger price validation
2022-03-21 12:26:47 +01:00
xyzmaker123
55c55dbf47
Update trigger price validation - refactor 2022-03-21 11:43:09 +01:00
Christoph Atteneder
06dd94f77a
Merge pull request #6107 from xyzmaker123/growth-241-validate-with-iban
IBAN validation for SEPA account
2022-03-18 12:38:47 +01:00
xyzmaker123
044bc2d33b
Transactions View - Trade ID column 2022-03-17 15:57:01 +01:00
xyzmaker123
ab5d7dd928
Locked view - Trade ID column 2022-03-17 15:56:51 +01:00
xyzmaker123
d548dcba07
Reserved view - Offer ID column 2022-03-17 15:56:35 +01:00
xyzmaker123
41256367af
Update trigger price validation 2022-03-17 12:42:41 +01:00
xyzmaker123
ab1a8a8a2b
SEPA IBAN - fix country code validation 2022-03-16 15:17:45 +01:00
xyzmaker123
7fc406761a
Validate if IBAN country code belongs to SEPA zone 2022-03-16 10:22:29 +01:00
xyzmaker123
fd776954cc
Validate IBAN to match selected country 2022-03-16 09:29:03 +01:00
ghubstan
a3990783a4
Send pretty payment details to api clients
Non-CLI clients need a better way of accessing payment details
than a contract json string.

- Add grpc.proto PaymentAccountPayloadInfo field: payment_details.
- Adjust proto wrapper PaymentAccountPayloadInfo to new field.
- Add test asserts to verify payment details are sent to client.
- Fix a test name: testKeepFunds -> testCloseTrade.

Based on branch `master` @ Sat 12 Mar 2022 01:42 PM -03 ,
         commit c6293b5273
2022-03-12 14:33:23 -03:00
Bisq GitHub Admin
c6293b5273
Merge pull request #6096 from bisq-network/release/v1.8.4
Release/v1.8.4
2022-03-11 15:57:55 +01:00
Christoph Atteneder
a188266d65
Merge pull request #6099 from jmacxx/mediation_enhancements_202203
Dispute subsystem enhancements
2022-03-11 15:55:42 +01:00
jmacxx
7e802e5e28
Dispute subsystem enhancements.
Dispute result show payout suggestion and penalty.
Feature allowing trader chat upload to dispute agents.
2022-03-10 20:20:37 -06:00
ghubstan
24e5f193be
Exclude persistedAccountName field from json payment acct forms
This recently added field is automatically set inside PaymentAccount.
It should not be included in the payment acct json forms used by API clients.

Based on branch `master`.
2022-03-09 12:07:33 -03:00
Christoph Atteneder
0ea70dc36b
Merge pull request #6014 from xyzmaker123/6009-account-names-editable
Editable account names
2022-03-09 14:56:00 +01:00
Christoph Atteneder
b3b488c38c
Merge pull request #6094 from ghubstan/3-fix-is-activated-setting-bug
API bug-fix for incorrect BsqSwap's OfferInfo.isActivated value [No. 3]
2022-03-08 11:26:44 +01:00
Christoph Atteneder
20a3ec0592
Merge pull request #6088 from ghubstan/2-improve-grpc-exception-status-code-mapping
Send meaningful io.grpc.Status.Code to gRPC clients [No. 2]
2022-03-08 11:25:35 +01:00
Christoph Atteneder
ae17da93ea
Merge pull request #6086 from ghubstan/move-cli-crypto-offer-filter-to-server
Move get (cryptocurrency) offer filter to daemon [No. 1]
2022-03-08 11:23:05 +01:00
ghubstan
1ba2b6ca18
Fix API OfferInfo.isActivated setting for bsqswaps
I think this bug was introduced when deprecating GrpcOffersService
 .getMyOffer(id), in favor of using only getOffer(id) for 'my'
and 'available' offers.  This change explicitly sets the proto's
isActivated flag in the OfferInfo factory methods, and adds checks
to api offer test cases.

Based on branch `2-improve-grpc-exception-status-code-mapping`,
PR https://github.com/bisq-network/bisq/pull/6088
2022-03-07 20:46:27 -03:00
jmacxx
e9c021eac6
Fix DAO needs resync popup.
The resync popup was being shown when flag isInConflictWithSeedNode
was set, but there is also a different relevant flag
isDaoStateBlockChainNotConnecting which can happen in certain
situations.  For that case we also need to show the popup.
2022-03-07 16:35:20 +01:00
ghubstan
784e2ae894
Send meaningful io.grpc.Status.Code to gRPC clients
Exceptions thrown by the core.api services for the daemon Grpc*Services
have to be converted into gRPC StatusRuntimeExceptions before being sent to
gRPC clients.  Most of these gRPC StatusRuntimeExceptions had a gRPC
Status.Code.UNKNOWN, which not helpful to client error handlers.

This change partially resolves the issue by sending more meaningful
io.grpc.Status.Codes to clients, where possible.  But it is not as
comprehensive as it an be for a webapp because HTTP has so many more
possible response status codes than the gRPC library (sixteen). See:
https://github.com/grpc/grpc-java/blob/master/api/src/main/java/io/grpc/Status.java

There are three types of changes:

- Create custom exceptions in bisq.core.api.exception.

- Map any custom bisq.core.api.exception to a meaningful
  io.grpc.Status.Code within daemon Grpc*Service classes.

- Adjust apitest cases to new grpc status codes.

Based on branch `move-cli-crypto-offer-filter-to-server`,  PR https://github.com/bisq-network/bisq/pull/6086
2022-03-05 20:31:50 -03:00
jmacxx
5b03c1a4c5
Fix DAO needs resync popup.
The resync popup was being shown when flag isInConflictWithSeedNode
was set, but there is also a different relevant flag
isDaoStateBlockChainNotConnecting which can happen in certain
situations.  For that case we also need to show the popup.
2022-03-04 14:17:53 -06:00
ghubstan
b7fb3df0d4
Move get (cryptocurrency) offer filter to daemon
Some API reference & Python bot examples exposed an API bug the Java CLI
has been hiding. Due due this Bisq v1 Offer entity design:

- In fiat offers, the baseCurrencyCode=BTC, counterCurrencyCode=FiatCode
- In altcoin offers, baseCurrencyCode=AltcoinCode, counterCurrencyCode=BTC,

new API examples were not doing what the CLI has been doing for several
months, which is get (cryptocurrency) all BTC offers from the server,
and filter on the altcoin code.  The CLI side filtering should have been
done on the server, as it is in this commit.

A lot of dead gRPC client side offer filtering code is removed as well.

Based on `master`.
2022-03-03 16:19:00 -03:00
Christoph Atteneder
ea1222b8c9
Merge pull request #6077 from ripcurlx/update-data-stores-for-v1.8.3
Update data stores for v1.8.3
2022-03-02 21:03:58 +01:00
xyzmaker123
e6320cdf06
Optimize imports 2022-02-28 13:53:38 +01:00
ghubstan
82a0f0060c
Adjust to grpc.proto TradeInfo field name changes
See commit b9b66b4826.
2022-02-27 18:13:54 -03:00
ghubstan
a1f059ded4
Merge branch '7-more-grpcproto-comments' into 8-remove-trdstats-service 2022-02-26 17:53:04 -03:00
ghubstan
f14806ea1f
Let minAmount param be optional 2022-02-26 17:48:44 -03:00
ghubstan
b904002991
Avoid number formatting problems if clients pass empty (default) str params 2022-02-26 17:17:42 -03:00
ghubstan
aa6f530555
Revert "Allow editoffer clients to pass empty string for price parameter"
This reverts commit fcd2bcd34f.
2022-02-26 15:26:24 -03:00
ghubstan
fcd2bcd34f
Allow editoffer clients to pass empty string for price parameter
The client may have passed an empty string for the price parameter,
if only enabling or disabling the offer.  If so, validate with new
price = old price.
2022-02-26 15:13:21 -03:00
ghubstan
ab8a3433c3
Use a zero fixed-price if useMarketBasedPrice=true
The CLI and apitest cases always pass "0", but java & python clients
might pass an empty string. This change avoids number formatting
& scaling problems when clients pass an empty string in the price
parameter.
2022-02-26 14:27:52 -03:00
ghubstan
2e9e51eb41
Remove GetTradeStatistics service from grpc.proto
This protobuf definition and service stub has been in place since
the start of work on the API, but was never fully implmented, nor
intended to be included in the API beta & v1 releases.

Its presence added a useless section to the gRPC API Reference doc.

	https://ghubstan.github.io/slate

Based on branch `7-more-grpcproto-comments`,
PR https://github.com/bisq-network/bisq/pull/6068.
2022-02-26 11:11:26 -03:00
Stan
1499465c11
Merge branch 'master' into 7-more-grpcproto-comments 2022-02-25 20:46:05 -03:00
Christoph Atteneder
c0ab215388
Merge pull request #6078 from jmacxx/5396_privacy_enhancement
[1.8.3] Clear sensitive dispute data based on dispute opening date.
2022-02-25 17:29:02 +01:00
jmacxx
a983e4a45e
Clear sensitive dispute data based on dispute opening date.
Change recommended setting for sensitive data clearing to 60 days.
2022-02-25 17:09:29 +01:00
jmacxx
327ea680ac
Clear sensitive dispute data based on dispute opening date.
Change recommended setting for sensitive data clearing to 60 days.
2022-02-25 09:49:36 -06:00
jmacxx
3bc096417e
Keep first dispute chat msg when clearing sensitive data.
Fixes https://github.com/bisq-network/bisq/pull/6001#issuecomment-1049710029
2022-02-25 16:01:32 +01:00
Christoph Atteneder
5824c9cabb
Merge pull request #6076 from jmacxx/5396_privacy_enhancement
[1.8.3] Keep first dispute chat msg when clearing sensitive data.
2022-02-25 16:01:25 +01:00
Christoph Atteneder
382c2a1681
Update bitcoinj checkpoints for v1.8.3 2022-02-24 20:47:32 +01:00
jmacxx
f430243b5e
Keep first dispute chat msg when clearing sensitive data.
Fixes https://github.com/bisq-network/bisq/pull/6001#issuecomment-1049710029
2022-02-24 11:44:36 -06:00
Christoph Atteneder
07f0e70731
Merge pull request #6072 from jmacxx/5396_privacy_enhancement
[1.8.3 fix] Get payment method ID from offerPayload pt.II
2022-02-23 15:42:54 +01:00
jmacxx
c12fb2e004
Get payment method ID from offerPayload.
Another problem with closed trades older than v1.7.0.
The payment method ID can always be obtained from offerPayload.
2022-02-23 15:42:34 +01:00
jmacxx
70752a1ffd
Get payment method ID from offerPayload.
Another problem with closed trades older than v1.7.0.
The payment method ID can always be obtained from offerPayload.
2022-02-21 23:22:54 -06:00
jmacxx
2bdfa524cf
Get payment method ID from offerPayload.
Was getting an NPE with closed trades older than v1.7.0.
makerPaymentMethodId was new at that point (null for older trades).
makerPaymentAccountPayload can be null for trades where we have
removed account info for privacy reasons (see #6001).
The payment method ID can always be obtained from offerPayload.
2022-02-21 20:23:14 +01:00