-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
[GraphQL] Deprecate exchange rates + staking pool resolver #17577
[GraphQL] Deprecate exchange rates + staking pool resolver #17577
Conversation
…g_pool_id and exchange_rates_table resolver to fix previous issues
The latest updates on your projects. Learn more about Vercel for Git ↗︎
3 Ignored Deployments
|
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.
So if I understand correctly, the stakingPool is an object wrapped in the validator struct, and the exchangeRatesTable is a table wrapped in the stakingPool wrapped in the validator struct?
That is correct. |
that's wild man |
Deprecates the ` exchange_rates` and `staking_pool` resolvers on validator type, and adds a `staking_pool_id` and `exchange_rates_table` resolver to correctly return the staking pool id and the wrapped exchange rates object. Existing tests: ``` cd sui-graphql-e2e-tests && cargo nextest run --features pg_integration ``` --- Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required. For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates. - [ ] Protocol: - [ ] Nodes (Validators and Full nodes): - [ ] Indexer: - [ ] JSON-RPC: - [x] GraphQL: Deprecated the ` exchange_rates` and `staking_pool` resolvers on validator type, and added a `staking_pool_id` and `exchange_rates_table` resolver to correctly return the staking pool id and the wrapped exchange rates object. - [ ] CLI: - [ ] Rust SDK:
Description
Deprecates the
exchange_rates
andstaking_pool
resolvers on validator type, and adds astaking_pool_id
andexchange_rates_table
resolver to correctly return the staking pool id and the wrapped exchange rates object.Test plan
Existing tests:
Release notes
Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.
For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.
exchange_rates
andstaking_pool
resolvers on validator type, and added astaking_pool_id
andexchange_rates_table
resolver to correctly return the staking pool ID and the wrapped exchange rates object.