Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove GetTradeStatistics service from grpc.proto [#8] #6079

Merged
merged 46 commits into from
Feb 28, 2022

Conversation

ghubstan
Copy link
Contributor

This protobuf definition and service stub has been in place since the start of work on the API, but was never fully implemented, nor intended to be included in the API beta & v1 releases.

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

Based on branch 7-more-grpcproto-comments, PR #6068.

The new console output formatting (tbl) api is working, and the
deprecated classes just add maintenance work.

Update affected test cases.
Much less ambiguous field value at cost of breaking backward compat in API.
Quite a bit of refactoring.  A lot of number-string formatting was removed.
Rename double marketPriceMargin -> marketPriceMarginPct.
Rename double buyerSecurityDeposit -> buyerSecurityDepositPct.
This was overlooked in tests, but client might use a bad offer-id param.
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 bisq-network#6068.
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.
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.
@ghubstan ghubstan changed the title Remove GetTradeStatistics service from grpc.proto Remove GetTradeStatistics service from grpc.proto [#8] Feb 26, 2022
Copy link
Contributor

@ripcurlx ripcurlx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK - Changes are looking fine 👍

@ripcurlx ripcurlx added this to the v1.8.4 milestone Feb 28, 2022
@ripcurlx ripcurlx merged commit 92b48af into bisq-network:master Feb 28, 2022
@ghubstan ghubstan deleted the 8-remove-trdstats-service branch February 28, 2022 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants