Skip to content

Commit

Permalink
feat: add funders to params query
Browse files Browse the repository at this point in the history
  • Loading branch information
shifty11 committed Oct 5, 2023
1 parent b9a9fb8 commit 448b2b8
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 31 deletions.
12 changes: 12 additions & 0 deletions docs/swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4506,6 +4506,18 @@ paths:
pool_inflation_payout_rate:
type: string
description: pool_inflation_payout_rate ...
funders_params:
description: funders_params ...
type: object
properties:
min_funding_amount:
type: string
format: uint64
description: Minimum amount of tokens that can be funded.
min_funding_amount_per_bundle:
type: string
format: uint64
description: Minimum amount of tokens that can be funded per bundle.
description: QueryParamsResponse ...
default:
description: An unexpected error response.
Expand Down
5 changes: 4 additions & 1 deletion proto/kyve/query/v1beta1/params.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ import "kyve/delegation/v1beta1/params.proto";
import "kyve/global/v1beta1/global.proto";
import "kyve/pool/v1beta1/params.proto";
import "kyve/stakers/v1beta1/params.proto";
import "kyve/funders/v1beta1/params.proto";

option go_package = "github.com/KYVENetwork/chain/x/query/types";

// QueryPool ...
// QueryParams ...
service QueryParams {
// Pools queries for all pools.
rpc Params(QueryParamsRequest) returns (QueryParamsResponse) {
Expand Down Expand Up @@ -41,4 +42,6 @@ message QueryParamsResponse {
kyve.stakers.v1beta1.Params stakers_params = 5;
// pool_params ...
kyve.pool.v1beta1.Params pool_params = 6;
// funders_params ...
kyve.funders.v1beta1.Params funders_params = 7;
}
123 changes: 93 additions & 30 deletions x/query/types/params.pb.go

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

0 comments on commit 448b2b8

Please sign in to comment.