Commit Graph

16314 Commits

Author SHA1 Message Date
Christoph Atteneder
b95c385ffd
Merge pull request #6087 from jmacxx/fix_dao_resync_popup
Fix DAO needs resync popup.
2022-03-07 16:35:12 +01:00
dependabot[bot]
9d13dacf3f
Bump actions/checkout from 2.4.0 to 3
Bumps [actions/checkout](https://github.com/actions/checkout) from 2.4.0 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](ec3a7ce113...a12a3943b4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-07 14:22:11 +00:00
ghubstan
df2cac3015
Make codacy happy 2022-03-05 21:00:33 -03:00
ghubstan
82549b3c22
Fix comment 2022-03-05 20:45:09 -03: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
Christoph Atteneder
c4a941c352
Merge pull request #6085 from jmacxx/5396_privacy_enhancement
Use a new key for settings badge.
2022-03-03 22:11:52 +01:00
ghubstan
d913022506
Force rebuild after github action ECONNRESET 2022-03-03 16:32:03 -03: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
xyzmaker123
462eaec85c
Currency filtering - possibility to search for all currencies 2022-03-03 18:16:52 +01:00
jmacxx
8fa44d7bfe
Use a new key for settings badge.
Rename the key constant variable to SETTINGS_BADGE_KEY to clarify
that its value should be different each time it is used for a new
feature.
Use a key which describes the new feature being promoted.
2022-03-03 07:44:08 -06:00
Christoph Atteneder
24bd47508b
Revert to SNAPSHOT version 2022-03-03 11:32:48 +01: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
Shubham malik
553501f2c3
Update build.yml 2022-03-02 20:37:34 +05:30
Christoph Atteneder
e7f1bf2d7d
Merge pull request #6082 from bisq-network/dependabot/github_actions/actions/setup-java-3
Bump actions/setup-java from 2.5.0 to 3
2022-02-28 20:47:06 +01:00
Christoph Atteneder
85714febf0
Update data stores for v1.8.3 (again) 2022-02-28 17:08:32 +01:00
dependabot[bot]
60aa44dadb
Bump actions/setup-java from 2.5.0 to 3
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 2.5.0 to 3.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](f0bb916062...f69f00b5e5)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-28 14:13:48 +00:00
xyzmaker123
fcbe3cb6b1
Fix: revert account name on change selected account 2022-02-28 14:33:34 +01:00
xyzmaker123
e6320cdf06
Optimize imports 2022-02-28 13:53:38 +01:00
xyzmaker123
01b1512705
Edit account names - fiat forms 2022-02-28 13:53:37 +01:00
xyzmaker123
702a31f1d6
Edit account names - altcoin forms 2022-02-28 13:53:37 +01:00
xyzmaker123
e8ee3fa4c3
Edit account names - refactor method name 2022-02-28 13:53:32 +01:00
Christoph Atteneder
de1c9bafb2
Merge pull request #6081 from ghubstan/10-fix-grpcproto-tradeinfo-fieldnames
Fix 3 misleading .proto TradeInfo field names [#10]
2022-02-28 09:29:13 +01:00
Christoph Atteneder
bed05714fc
Merge pull request #6080 from ghubstan/9-use-snake_case-field-names
Convert grpc.proto field names to snake_case [#9]
2022-02-28 09:27:58 +01:00
Christoph Atteneder
92b48af6c0
Merge pull request #6079 from ghubstan/8-remove-trdstats-service
Remove GetTradeStatistics service from grpc.proto [#8]
2022-02-28 09:27:03 +01:00
Christoph Atteneder
d301b0d39b
Merge pull request #6068 from ghubstan/7-more-grpcproto-comments
Continue documenting grpc.proto for API reference site [#7]
2022-02-28 09:24:53 +01:00
Christoph Atteneder
a73ee0352b
Merge pull request #6065 from ghubstan/6-disambiguate-api-pct-field-names
Clarify meaning of API/Offer related % fields [#6]
2022-02-28 09:21:18 +01:00
Christoph Atteneder
dbd6f330e1
Merge pull request #6062 from ghubstan/5-change-tradeinfo-proto-prc-n-vol-to-string
Change TradeInfo proto's tradePrice & tradeVolume fields to string [#5]
2022-02-28 09:17:44 +01:00
Christoph Atteneder
532efcc8b8
Merge pull request #6060 from ghubstan/4-change-grpc-proto-volume-to-string
Change API OfferInfo volume/minVolume proto fields to string [#4]
2022-02-28 09:14:04 +01:00
Christoph Atteneder
068fedb9f8
Merge pull request #6057 from ghubstan/3-change-grpc-proto-triggerprice-to-string
Change API grpc.proto triggerPrice field to string [#3]
2022-02-28 09:11:57 +01:00
Christoph Atteneder
c471936789
Merge pull request #6056 from ghubstan/2-change-offerinfo-price-to-string
Change API's OfferInfo proto's price field to string [#2]
2022-02-28 09:09:34 +01:00
ghubstan
06c6b0c3d2
Adjust apitest cases to TradeInfo field name changes
See commit b9b66b4826.
2022-02-27 18:24:19 -03:00
ghubstan
82a0f0060c
Adjust to grpc.proto TradeInfo field name changes
See commit b9b66b4826.
2022-02-27 18:13:54 -03:00
ghubstan
b9b66b4826
Change grpc.proto TradeInfo field names
- is_fiat_sent		->	is_payment_started_message_sent
	Payment can be in altcoin.
- is_fiat_received	->	is_payment_received_message_sent
	Payment can be in altcoin.
- is_withdrawn		->	is_completed
	Trade can be closed with funds kept in Bisq wallet.
2022-02-27 18:09:36 -03:00
ghubstan
68ebdb2b08
Change grpc.proto field names to snake_case
Java client code can still use the camelCase field naming convention,
and other language bindings will not be forced to do the same.

Snake_case field names are also recommended in the Protocol Buffers
Sytle Guide:  https://developers.google.com/protocol-buffers/docs/style
2022-02-27 09:42:17 -03:00
ghubstan
a1f059ded4
Merge branch '7-more-grpcproto-comments' into 8-remove-trdstats-service 2022-02-26 17:53:04 -03:00
ghubstan
3d33aa21c9
Merge branch '7-more-grpcproto-comments' of https://github.com/ghubstan/bisq into 7-more-grpcproto-comments 2022-02-26 17:50:05 -03:00
ghubstan
f14806ea1f
Let minAmount param be optional 2022-02-26 17:48:44 -03:00
ghubstan
c20f2568d4
Allow clients to pass empty string for minAmount param 2022-02-26 17:43:17 -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
ghubstan
c0631eb31f
Fix file/merge conflict 2022-02-25 20:51:55 -03:00
Stan
1499465c11
Merge branch 'master' into 7-more-grpcproto-comments 2022-02-25 20:46:05 -03:00
ghubstan
66c04134fc
Check offer exists before trying to take it
This was overlooked in tests, but client might use a bad offer-id param.
2022-02-25 18:51:07 -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