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

Adapt to Protocol v11 #199

Merged
merged 6 commits into from
May 14, 2019
Merged

Conversation

overcat
Copy link
Member

@overcat overcat commented May 2, 2019

Resolve #197

/**
* 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}
Copy link
Member Author

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?

Copy link
Contributor

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).

Copy link
Member Author

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.

@overcat
Copy link
Member Author

overcat commented May 2, 2019

I am very new in Java world, if you have any suggestions, feel free to let me know.
Thanks.

@overcat overcat changed the title [WIP] Adapt to Protocol v11 Adapt to Protocol v11 May 2, 2019
@tomquisel
Copy link

This is amazing @overcat! @nullstyle can you prioritize reviewing this?

Copy link
Contributor

@bartekn bartekn left a 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?

overcat added 3 commits May 14, 2019 14:02
… 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.
@bartekn bartekn merged commit 98da775 into lightsail-network:master May 14, 2019
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.

Protocol 11 Compatibility
3 participants