-
Notifications
You must be signed in to change notification settings - Fork 159
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
Adapt to Protocol v11 #199
Conversation
…ta from the right position
/** | ||
* Represents <a href="https://www.stellar.org/developers/learn/concepts/list-of-operations.html#create-passive-offer" target="_blank">CreatePassiveOffer</a> operation. | ||
* @see <a href="https://www.stellar.org/developers/learn/concepts/list-of-operations.html" target="_blank">List of Operations</a> | ||
* @deprecated Use {@link CreatePassiveSellOfferOperation} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I deprecate a class like this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should deprecate this class but it needs to work until removed. We are still pre 1.0.0 version so we can remove it in the next minor version (assuming these changes will be part of 0.7.0, then deprecated methods can be removed in 0.8.0).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added them back, but some behavior may change due to the XDR changes.
I am very new in Java world, if you have any suggestions, feel free to let me know. |
This is amazing @overcat! @nullstyle can you prioritize reviewing this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, except deprecations (old classes should still be there in the next version). Could you also add some ManageBuyOffer
tests?
… partial forward compatibility. ManageOfferOperation actually generates MANAGE_SELL_OFFER, CreatePassiveOfferOperation actually generates CREATE_PASSIVE_SELL_OFFER. BREAKING CHANGE: Looking at the commit description, I recommend using the new class immediately.
Resolve #197