-
Notifications
You must be signed in to change notification settings - Fork 313
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
Support filtering accounts participating in a given LP and update accounts balance response #688
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ude a new type of balance line for liquidity pools: `BalanceLineLiquidityPool`.
…ool change trust.
Shaptic
approved these changes
Aug 30, 2021
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.
Very nice! Just left some minor grammar nits, feel free to ignore.
…uidity_pool" filter to the endpoint'`.
14 tasks
marcelosalloum
changed the title
Support
Support filtering accounts participating in a given LP and update accounts balance response
Aug 31, 2021
/accounts?liquidity_pool={:pool_id}
and update the response from /accounts/{:acc_id}
Shaptic
added a commit
that referenced
this pull request
Sep 2, 2021
* Use stellar-base 6.0.1 from the npm registry. * Correctly process transaction response for offers based on XDR changes (#681) * Adds a basic call builder for the `/liquidity_pools` endpoint. (#682) * Add call builder for liquidity pools, w/ filters by reserve asset * Update TradesCallBuilder to accept the trade_type filter and support Liquidity Pool trades (#685) * [CD/CI] Add GitHub Actions to run tests on PRs (#686) * Support filtering accounts participating in a given LP and update accounts balance response (#688) * Allow querying a single liquidity pool by its specific ID. (#687) * Allow querying actions (ops, txs, fx) related to a specific liquidity pool. (#689) * Add new effect types (#690) * Refactors call builders to simplify referencing 'neighbor' endpoints (#691) * Update with CAP-38 operations (#692) * Simplifies an expression to be more readable (#695) * Updates the CHANGELOG to be more uniform and specific. (#694) * Fix how the ?reserves filter works on the /accounts endpoint (#698) * Update more call builders to use the new helper API. (#699) * Add integration tests against the real mock API server (#697) * Prepares the v9.0.0 branch for merging into master (#701) * Update Horizon API fields to reflect the coming post-AMM API (#702) Co-authored-by: Marcelo Salloum dos Santos <marcelo@stellar.org> Co-authored-by: George <Shaptic@users.noreply.github.com> Co-authored-by: George Kudrayvtsev <george@stellar.org>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Support
/accounts?liquidity_pool={:pool_id}
and update the response from/accounts/{:acc_id}
Update
liquidity_pool_shares
was added, which is included in the accountbalances
array and causes a breaking change (see below) (#688)./accounts
endpoint based on participation in a certain liquidity pool (#688).Breaking Changes
balances
array from an account response now supports liquidity pool balances (#688).asset_type
field can now beliquidity_pool_shares
.buying_liabilities
,selling_liabilities
,asset_code
, andasset_issuer
are omitted from the response for pool shares because they are not relevant to liquidity pools.ChangeTrustOperationResponse
interface so it can conform to a change in a liquidity pool trustline (#688).asset_type
can now beliquidity_pool_shares
.asset_code
andasset_issuer
are now optional.liquidity_pool_id
as an optional field.