Skip to content

Commit

Permalink
fix: remove search from fundings queries
Browse files Browse the repository at this point in the history
  • Loading branch information
shifty11 committed Oct 26, 2023
1 parent b5ace00 commit 3c30fc8
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 182 deletions.
10 changes: 0 additions & 10 deletions docs/swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8680,11 +8680,6 @@ paths:
in: query
required: false
type: boolean
- name: search
description: search.
in: query
required: false
type: string
- name: with_inactive_fundings
description: with_inactive_fundings ...
in: query
Expand Down Expand Up @@ -9007,11 +9002,6 @@ paths:
in: query
required: false
type: boolean
- name: search
description: search.
in: query
required: false
type: string
- name: with_inactive_fundings
description: with_inactive_fundings ...
in: query
Expand Down
8 changes: 2 additions & 6 deletions proto/kyve/query/v1beta1/funders.proto
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,8 @@ message QueryFundingsByFunderRequest {
cosmos.base.query.v1beta1.PageRequest pagination = 1;
// address ...
string address = 2;
// search
string search = 3;
// with_inactive_fundings ...
bool with_inactive_fundings = 4;
bool with_inactive_fundings = 3;
}

// QueryFundingsByFunderResponse is the response type for the Query/FundingsByFunder RPC method.
Expand All @@ -150,10 +148,8 @@ message QueryFundingsByPoolRequest {
cosmos.base.query.v1beta1.PageRequest pagination = 1;
// pool_id ...
uint64 pool_id = 2;
// search
string search = 3;
// with_inactive_fundings ...
bool with_inactive_fundings = 4;
bool with_inactive_fundings = 3;
}

// QueryFundingsByPoolResponse is the response type for the Query/FundingsByPool RPC method.
Expand Down
1 change: 1 addition & 0 deletions x/funders/keeper/getters_funding.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ func (k Keeper) SetFunding(ctx sdk.Context, funding *types.Funding) {
}

// GetPaginatedFundingQuery performs a full search on all fundings with the given parameters.
// Requires either funderAddress or poolId to be provided.
func (k Keeper) GetPaginatedFundingQuery(
ctx sdk.Context,
pagination *query.PageRequest,
Expand Down
228 changes: 62 additions & 166 deletions x/query/types/funders.pb.go

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

0 comments on commit 3c30fc8

Please sign in to comment.