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

Add grpc option IncludePoolData to QueryUserDeposits #390

Merged
merged 9 commits into from
Feb 16, 2024

Conversation

jcompagni10
Copy link
Contributor

In order to facilitate easier state computation for the duality frontend additional pool data needs to be included in the UserDepositsQuery. See duality-labs/duality-web-app#493 for more details

@jcompagni10
Copy link
Contributor Author

jcompagni10 commented Jan 23, 2024

pr0n00gler
pr0n00gler previously approved these changes Jan 24, 2024
Copy link
Contributor

@swelf19 swelf19 left a comment

Choose a reason for hiding this comment

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

  1. pls regenerate openapi
  2. neutron-sdk's proto files has to be regenerated https://github.com/neutron-org/neutron-sdk/tree/main/packages/neutron-sdk/src/proto_types

@@ -18,4 +19,11 @@ message DepositRecord {
int64 lower_tick_index = 4;
int64 upper_tick_index = 5;
uint64 fee = 6;
string total_shares = 7 [
(gogoproto.moretags) = "yaml:\"total_shares\"",
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
Copy link
Contributor

Choose a reason for hiding this comment

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

github.com/cosmos/cosmos-sdk/types.Int is deprecated and it is an alias to cosmossdk.io/math.Int. But it's not necessary to fix it right now. We want to move sometime, but in standalone task

x/dex/client/cli/query_user_deposits.go Outdated Show resolved Hide resolved
x/dex/keeper/grpc_query_user_deposits.go Show resolved Hide resolved
x/dex/keeper/grpc_query_user_deposits.go Outdated Show resolved Hide resolved
@sotnikov-s
Copy link
Contributor

manually regenerated proto for neutron-sdk here: neutron-org/neutron-sdk#127

pr0n00gler
pr0n00gler previously approved these changes Feb 8, 2024
NeverHappened
NeverHappened previously approved these changes Feb 12, 2024
Copy link
Contributor

@NeverHappened NeverHappened left a comment

Choose a reason for hiding this comment

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

Please rerun integration tests, otherwise lgtm

swelf19
swelf19 previously approved these changes Feb 12, 2024
@jcompagni10
Copy link
Contributor Author

@jcompagni10
Copy link
Contributor Author

NOTE: openapi.yml has been generated with ignite v28.2.0

@pr0n00gler pr0n00gler merged commit c9899a5 into main Feb 16, 2024
9 checks passed
@pr0n00gler pr0n00gler deleted the feat/add_data_to_user_deps_query branch August 7, 2024 08:31
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.

5 participants