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

Refactorings for api support #3611

Merged
merged 30 commits into from
Nov 19, 2019

Conversation

chimp1984
Copy link
Contributor

For API access we need to move code for creating an offer to the core module.
https://github.com/chimp1984/bisq/tree/grpc is based on that code. This PR does not add anythign API related just prepares the required refactoring.

API will use getTradeStatistics and expect TradeStatistics2 not
PersistableNetworkPayload
- Rename estimateTxSize to updateEstimatedFeeAndTxSize
- Add getEstimatedFeeAndTxSize method to CreateOfferService
- Add dependent methods and fields
- Use getBuyerSecurityDepositAsCoin and getSellerSecurityDepositAsCoin
from CreateOfferService
- Use getEstimatedFeeAndTxSize from CreateOfferService for
txFeeFromFeeService
chimp1984 added a commit to chimp1984/bisq that referenced this pull request Nov 15, 2019
Copy link
Contributor

@freimair freimair left a comment

Choose a reason for hiding this comment

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

Ack - ie. passed a small smoke test. Changes look good though.

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.

ACK - Tested trading and offer editing on Regtest and everything still seems to work as is. Code looks fine as well.

@ripcurlx ripcurlx merged commit 8c8c711 into bisq-network:master Nov 19, 2019
@chimp1984 chimp1984 deleted the refactorings-for-api-support branch November 24, 2019 21:29
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.

3 participants