Skip to content

Commit

Permalink
Merge branch 'v0.45.16-ics-lsm' of github.com:iqlusioninc/cosmos-sdk …
Browse files Browse the repository at this point in the history
…into v0.45.16-ics-lsm
  • Loading branch information
sampocs committed Jul 12, 2023
2 parents 4cae98e + 370c61c commit fc84876
Show file tree
Hide file tree
Showing 6 changed files with 263 additions and 165 deletions.
5 changes: 5 additions & 0 deletions docs/core/proto-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -7260,6 +7260,11 @@ QueryAllTokenizeShareRecordsRequest is request type for the
Query/QueryAllTokenizeShareRecords RPC method.


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| `pagination` | [cosmos.base.query.v1beta1.PageRequest](#cosmos.base.query.v1beta1.PageRequest) | | pagination defines an optional pagination for the request. |





Expand Down
5 changes: 4 additions & 1 deletion proto/cosmos/staking/v1beta1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,10 @@ message QueryTokenizeShareRecordsOwnedResponse {

// QueryAllTokenizeShareRecordsRequest is request type for the
// Query/QueryAllTokenizeShareRecords RPC method.
message QueryAllTokenizeShareRecordsRequest {}
message QueryAllTokenizeShareRecordsRequest {
// pagination defines an optional pagination for the request.
cosmos.base.query.v1beta1.PageRequest pagination = 1;
}

// QueryAllTokenizeShareRecordsResponse is response type for the
// Query/QueryAllTokenizeShareRecords RPC method.
Expand Down
12 changes: 11 additions & 1 deletion x/staking/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,16 @@ $ %s query staking all-tokenize-share-records
}
queryClient := types.NewQueryClient(clientCtx)

res, err := queryClient.AllTokenizeShareRecords(cmd.Context(), &types.QueryAllTokenizeShareRecordsRequest{})
pageReq, err := client.ReadPageRequest(cmd.Flags())
if err != nil {
return err
}

params := &types.QueryAllTokenizeShareRecordsRequest{
Pagination: pageReq,
}

res, err := queryClient.AllTokenizeShareRecords(cmd.Context(), params)
if err != nil {
return err
}
Expand All @@ -909,6 +918,7 @@ $ %s query staking all-tokenize-share-records
}

flags.AddQueryFlagsToCmd(cmd)
flags.AddPaginationFlagsToCmd(cmd, "delegations")

return cmd
}
Expand Down
181 changes: 121 additions & 60 deletions x/staking/types/query.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions x/staking/types/query.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit fc84876

Please sign in to comment.