diff --git a/client/docs/swagger-ui/swagger.yaml b/client/docs/swagger-ui/swagger.yaml index 862faf8f..cf93c971 100644 --- a/client/docs/swagger-ui/swagger.yaml +++ b/client/docs/swagger-ui/swagger.yaml @@ -8588,7 +8588,7 @@ paths: type: boolean tags: - Hard - /kava/hard/v1beta1/interest-factors/{denom}: + /kava/hard/v1beta1/interest-factors: get: summary: InterestFactors queries hard module interest factors. operationId: HardInterestFactors @@ -8810,12 +8810,12 @@ paths: } parameters: - name: denom - in: path - required: true + in: query + required: false type: string tags: - Hard - /kava/hard/v1beta1/interest-rate/{denom}: + /kava/hard/v1beta1/interest-rate: get: summary: InterestRate queries the hard module interest rates. operationId: HardInterestRate @@ -9037,8 +9037,8 @@ paths: } parameters: - name: denom - in: path - required: true + in: query + required: false type: string tags: - Hard @@ -9294,7 +9294,7 @@ paths: } tags: - Hard - /kava/hard/v1beta1/reserves/{denom}: + /kava/hard/v1beta1/reserves: get: summary: Reserves queries total hard reserve coins. operationId: HardReserves @@ -9517,12 +9517,12 @@ paths: } parameters: - name: denom - in: path - required: true + in: query + required: false type: string tags: - Hard - /kava/hard/v1beta1/total-borrowed/{denom}: + /kava/hard/v1beta1/total-borrowed: get: summary: TotalBorrowed queries total coins borrowed from hard liquidity pools. operationId: HardTotalBorrowed @@ -9745,12 +9745,12 @@ paths: } parameters: - name: denom - in: path - required: true + in: query + required: false type: string tags: - Hard - /kava/hard/v1beta1/total-deposited/{denom}: + /kava/hard/v1beta1/total-deposited: get: summary: TotalDeposited queries total coins deposited to hard liquidity pools. operationId: HardTotalDeposited @@ -9973,8 +9973,8 @@ paths: } parameters: - name: denom - in: path - required: true + in: query + required: false type: string tags: - Hard diff --git a/docs/core/proto-docs.md b/docs/core/proto-docs.md index 0d944bd6..ecca0b83 100644 --- a/docs/core/proto-docs.md +++ b/docs/core/proto-docs.md @@ -4459,13 +4459,13 @@ Query defines the gRPC querier service for bep3 module. | `Accounts` | [QueryAccountsRequest](#kava.hard.v1beta1.QueryAccountsRequest) | [QueryAccountsResponse](#kava.hard.v1beta1.QueryAccountsResponse) | Accounts queries module accounts. | GET|/kava/hard/v1beta1/accounts| | `Deposits` | [QueryDepositsRequest](#kava.hard.v1beta1.QueryDepositsRequest) | [QueryDepositsResponse](#kava.hard.v1beta1.QueryDepositsResponse) | Deposits queries hard deposits. | GET|/kava/hard/v1beta1/deposits| | `UnsyncedDeposits` | [QueryUnsyncedDepositsRequest](#kava.hard.v1beta1.QueryUnsyncedDepositsRequest) | [QueryUnsyncedDepositsResponse](#kava.hard.v1beta1.QueryUnsyncedDepositsResponse) | UnsyncedDeposits queries unsynced deposits. | GET|/kava/hard/v1beta1/unsynced-deposits| -| `TotalDeposited` | [QueryTotalDepositedRequest](#kava.hard.v1beta1.QueryTotalDepositedRequest) | [QueryTotalDepositedResponse](#kava.hard.v1beta1.QueryTotalDepositedResponse) | TotalDeposited queries total coins deposited to hard liquidity pools. | GET|/kava/hard/v1beta1/total-deposited/{denom}| +| `TotalDeposited` | [QueryTotalDepositedRequest](#kava.hard.v1beta1.QueryTotalDepositedRequest) | [QueryTotalDepositedResponse](#kava.hard.v1beta1.QueryTotalDepositedResponse) | TotalDeposited queries total coins deposited to hard liquidity pools. | GET|/kava/hard/v1beta1/total-deposited| | `Borrows` | [QueryBorrowsRequest](#kava.hard.v1beta1.QueryBorrowsRequest) | [QueryBorrowsResponse](#kava.hard.v1beta1.QueryBorrowsResponse) | Borrows queries hard borrows. | GET|/kava/hard/v1beta1/borrows| | `UnsyncedBorrows` | [QueryUnsyncedBorrowsRequest](#kava.hard.v1beta1.QueryUnsyncedBorrowsRequest) | [QueryUnsyncedBorrowsResponse](#kava.hard.v1beta1.QueryUnsyncedBorrowsResponse) | UnsyncedBorrows queries unsynced borrows. | GET|/kava/hard/v1beta1/unsynced-borrows| -| `TotalBorrowed` | [QueryTotalBorrowedRequest](#kava.hard.v1beta1.QueryTotalBorrowedRequest) | [QueryTotalBorrowedResponse](#kava.hard.v1beta1.QueryTotalBorrowedResponse) | TotalBorrowed queries total coins borrowed from hard liquidity pools. | GET|/kava/hard/v1beta1/total-borrowed/{denom}| -| `InterestRate` | [QueryInterestRateRequest](#kava.hard.v1beta1.QueryInterestRateRequest) | [QueryInterestRateResponse](#kava.hard.v1beta1.QueryInterestRateResponse) | InterestRate queries the hard module interest rates. | GET|/kava/hard/v1beta1/interest-rate/{denom}| -| `Reserves` | [QueryReservesRequest](#kava.hard.v1beta1.QueryReservesRequest) | [QueryReservesResponse](#kava.hard.v1beta1.QueryReservesResponse) | Reserves queries total hard reserve coins. | GET|/kava/hard/v1beta1/reserves/{denom}| -| `InterestFactors` | [QueryInterestFactorsRequest](#kava.hard.v1beta1.QueryInterestFactorsRequest) | [QueryInterestFactorsResponse](#kava.hard.v1beta1.QueryInterestFactorsResponse) | InterestFactors queries hard module interest factors. | GET|/kava/hard/v1beta1/interest-factors/{denom}| +| `TotalBorrowed` | [QueryTotalBorrowedRequest](#kava.hard.v1beta1.QueryTotalBorrowedRequest) | [QueryTotalBorrowedResponse](#kava.hard.v1beta1.QueryTotalBorrowedResponse) | TotalBorrowed queries total coins borrowed from hard liquidity pools. | GET|/kava/hard/v1beta1/total-borrowed| +| `InterestRate` | [QueryInterestRateRequest](#kava.hard.v1beta1.QueryInterestRateRequest) | [QueryInterestRateResponse](#kava.hard.v1beta1.QueryInterestRateResponse) | InterestRate queries the hard module interest rates. | GET|/kava/hard/v1beta1/interest-rate| +| `Reserves` | [QueryReservesRequest](#kava.hard.v1beta1.QueryReservesRequest) | [QueryReservesResponse](#kava.hard.v1beta1.QueryReservesResponse) | Reserves queries total hard reserve coins. | GET|/kava/hard/v1beta1/reserves| +| `InterestFactors` | [QueryInterestFactorsRequest](#kava.hard.v1beta1.QueryInterestFactorsRequest) | [QueryInterestFactorsResponse](#kava.hard.v1beta1.QueryInterestFactorsResponse) | InterestFactors queries hard module interest factors. | GET|/kava/hard/v1beta1/interest-factors| diff --git a/proto/kava/hard/v1beta1/query.proto b/proto/kava/hard/v1beta1/query.proto index a9edbb59..92ef7248 100644 --- a/proto/kava/hard/v1beta1/query.proto +++ b/proto/kava/hard/v1beta1/query.proto @@ -35,7 +35,7 @@ service Query { // TotalDeposited queries total coins deposited to hard liquidity pools. rpc TotalDeposited(QueryTotalDepositedRequest) returns (QueryTotalDepositedResponse) { - option (google.api.http).get = "/kava/hard/v1beta1/total-deposited/{denom}"; + option (google.api.http).get = "/kava/hard/v1beta1/total-deposited"; } // Borrows queries hard borrows. @@ -50,22 +50,22 @@ service Query { // TotalBorrowed queries total coins borrowed from hard liquidity pools. rpc TotalBorrowed(QueryTotalBorrowedRequest) returns (QueryTotalBorrowedResponse) { - option (google.api.http).get = "/kava/hard/v1beta1/total-borrowed/{denom}"; + option (google.api.http).get = "/kava/hard/v1beta1/total-borrowed"; } // InterestRate queries the hard module interest rates. rpc InterestRate(QueryInterestRateRequest) returns (QueryInterestRateResponse) { - option (google.api.http).get = "/kava/hard/v1beta1/interest-rate/{denom}"; + option (google.api.http).get = "/kava/hard/v1beta1/interest-rate"; } // Reserves queries total hard reserve coins. rpc Reserves(QueryReservesRequest) returns (QueryReservesResponse) { - option (google.api.http).get = "/kava/hard/v1beta1/reserves/{denom}"; + option (google.api.http).get = "/kava/hard/v1beta1/reserves"; } // InterestFactors queries hard module interest factors. rpc InterestFactors(QueryInterestFactorsRequest) returns (QueryInterestFactorsResponse) { - option (google.api.http).get = "/kava/hard/v1beta1/interest-factors/{denom}"; + option (google.api.http).get = "/kava/hard/v1beta1/interest-factors"; } } diff --git a/x/hard/types/query.pb.go b/x/hard/types/query.pb.go index 455a2a51..631f7864 100644 --- a/x/hard/types/query.pb.go +++ b/x/hard/types/query.pb.go @@ -1494,91 +1494,90 @@ func init() { func init() { proto.RegisterFile("kava/hard/v1beta1/query.proto", fileDescriptor_1eedf429c9bff7da) } var fileDescriptor_1eedf429c9bff7da = []byte{ - // 1334 bytes of a gzipped FileDescriptorProto + // 1318 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x58, 0xcd, 0x6f, 0x1b, 0x45, - 0x14, 0xcf, 0x3a, 0x24, 0x4d, 0x5f, 0xdb, 0xa4, 0x0c, 0xa6, 0xb5, 0x9d, 0xc4, 0x4d, 0xb7, 0xe4, - 0x83, 0x24, 0xf6, 0x3a, 0x49, 0x05, 0x57, 0x6a, 0xaa, 0x22, 0x90, 0x82, 0x60, 0x5b, 0x24, 0x84, - 0x84, 0xa2, 0xb5, 0x77, 0x70, 0x56, 0x71, 0x76, 0xdc, 0x9d, 0x75, 0xda, 0xf0, 0x75, 0xa8, 0xc4, - 0x85, 0x53, 0xa1, 0x27, 0x04, 0x12, 0x87, 0x22, 0x21, 0x01, 0x47, 0xb8, 0x20, 0x71, 0xe1, 0xd4, - 0x63, 0x05, 0x17, 0x4e, 0x80, 0x12, 0xfe, 0x02, 0xfe, 0x02, 0xb4, 0x33, 0x6f, 0xd6, 0xde, 0xf5, - 0xee, 0x3a, 0x48, 0x14, 0xa5, 0xa7, 0x76, 0x67, 0xde, 0xc7, 0xef, 0xfd, 0xde, 0xbc, 0xe7, 0xf7, - 0x02, 0xb3, 0x3b, 0xd6, 0x9e, 0x65, 0x6c, 0x5b, 0x9e, 0x6d, 0xec, 0xad, 0x35, 0xa8, 0x6f, 0xad, - 0x19, 0x37, 0xbb, 0xd4, 0xdb, 0xaf, 0x76, 0x3c, 0xe6, 0x33, 0xf2, 0x64, 0x70, 0x5d, 0x0d, 0xae, - 0xab, 0x78, 0x5d, 0x2a, 0x37, 0x19, 0xdf, 0x65, 0xdc, 0xb0, 0xba, 0xfe, 0x76, 0xa8, 0x13, 0x7c, - 0x48, 0x95, 0xd2, 0x32, 0xde, 0x37, 0x2c, 0x4e, 0xa5, 0xad, 0x50, 0xaa, 0x63, 0xb5, 0x1c, 0xd7, - 0xf2, 0x1d, 0xe6, 0xa2, 0x6c, 0xb9, 0x5f, 0x56, 0x49, 0x35, 0x99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80, 0xcf, 0x0f, 0x54, 0x14, 0x38, 0x6a, 0x1b, 0xef, 0x89, 0x32, 0xfa, - 0x80, 0x7c, 0x08, 0x27, 0x70, 0xfe, 0x24, 0xa9, 0x6f, 0x35, 0x3a, 0x4e, 0x97, 0x16, 0x87, 0xca, - 0x21, 0x1e, 0x5d, 0xe0, 0x99, 0x21, 0xa5, 0x04, 0x3c, 0x6a, 0x2c, 0xfd, 0x52, 0x83, 0xa9, 0xd8, - 0x20, 0x4c, 0xaa, 0xc3, 0x32, 0x13, 0x03, 0x64, 0x1c, 0x59, 0x1e, 0x81, 0xad, 0x08, 0x60, 0xf3, - 0xe4, 0x52, 0x56, 0x22, 0xfb, 0x10, 0x9e, 0x89, 0xcc, 0xad, 0x64, 0x35, 0x33, 0x2f, 0xb1, 0x91, - 0xb8, 0x54, 0x39, 0xa2, 0x34, 0x62, 0x5b, 0x13, 0xd8, 0x56, 0xc8, 0xb3, 0xa9, 0x49, 0x54, 0x83, - 0x6c, 0x98, 0xc3, 0xcf, 0x35, 0x38, 0x1d, 0xe9, 0xbb, 0x2b, 0x69, 0x2e, 0x13, 0xa6, 0xdd, 0xd2, - 0xea, 0xd1, 0x84, 0x11, 0x5e, 0x4d, 0xc0, 0x5b, 0x26, 0x4b, 0x09, 0xf0, 0x54, 0x4f, 0xad, 0x04, - 0x4d, 0x3e, 0x44, 0xf7, 0xb1, 0x06, 0x13, 0x6a, 0xe4, 0x4c, 0x6f, 0x19, 0xb1, 0x11, 0x36, 0xbd, - 0x65, 0xc4, 0xa7, 0xd7, 0xcc, 0x64, 0x7a, 0x28, 0x1c, 0x82, 0xf9, 0x5a, 0x83, 0xf8, 0xb4, 0x97, - 0xfe, 0xdc, 0x92, 0x47, 0xd5, 0xf4, 0xe7, 0x96, 0x32, 0xa4, 0xea, 0x1b, 0x02, 0x61, 0x85, 0xac, - 0x64, 0x71, 0x86, 0xd3, 0xab, 0x42, 0x5a, 0x7f, 0xe1, 0xc1, 0x41, 0x59, 0x7b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, 0xf1, 0x9c, 0x25, 0xd5, 0xcb, 0x73, 0x96, 0xdc, 0xbf, 0xe2, 0xf9, 0x50, 0x83, + 0x8b, 0x29, 0x75, 0x26, 0xc5, 0xce, 0x3a, 0xe4, 0x45, 0x57, 0x73, 0xb0, 0x1d, 0xa9, 0x74, 0x68, + 0x96, 0xf0, 0x48, 0x06, 0x08, 0x3b, 0xeb, 0x90, 0x97, 0xd7, 0x11, 0xd3, 0x18, 0x96, 0x1a, 0xf5, + 0x48, 0x2c, 0x81, 0x86, 0xfe, 0xa9, 0x06, 0x13, 0xd1, 0xe0, 0x52, 0xc0, 0x5c, 0x83, 0x0b, 0x71, + 0xd3, 0xf2, 0xfd, 0x23, 0x9c, 0x7c, 0x3d, 0x81, 0xa8, 0x40, 0x2b, 0x1e, 0x02, 0x6a, 0x49, 0x48, + 0x79, 0x9e, 0x90, 0xc6, 0x9b, 0xbf, 0x9c, 0x87, 0x11, 0x51, 0x85, 0xc8, 0x07, 0x30, 0x2a, 0xc7, + 0x3e, 0xb2, 0x98, 0x70, 0xd3, 0xfd, 0xf3, 0x65, 0x69, 0x69, 0x90, 0x98, 0xbc, 0x39, 0x7d, 0xfe, + 0xfe, 0x6f, 0x7f, 0x1f, 0xe6, 0xa6, 0x49, 0xd1, 0xe8, 0x1f, 0x62, 0xe5, 0x68, 0x49, 0xee, 0x6b, + 0x30, 0xa6, 0xc6, 0x47, 0xb2, 0x9c, 0x66, 0x37, 0x36, 0x78, 0x96, 0x56, 0x06, 0x0b, 0x22, 0x84, + 0x05, 0x01, 0x61, 0x96, 0x4c, 0x27, 0x40, 0x50, 0x83, 0xa6, 0x00, 0xa1, 0x06, 0x89, 0x74, 0x10, + 0xb1, 0xc9, 0x28, 0x1d, 0x44, 0x7c, 0x26, 0xc9, 0x04, 0x11, 0x8e, 0x17, 0x0f, 0x35, 0x98, 0x8a, + 0x4f, 0x35, 0xc4, 0x48, 0xf3, 0x91, 0x32, 0xae, 0x95, 0xd6, 0x4f, 0xae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, 0xba, 0xb9, 0xf4, 0xb4, 0x4a, 0x6e, 0x45, 0xd3, 0xd3, 0x2a, 0xa5, 0x09, 0xcd, + 0x4c, 0xab, 0x90, 0x23, 0xec, 0x4e, 0x6b, 0x2f, 0x3f, 0x3a, 0x2a, 0x6b, 0x8f, 0x8f, 0xca, 0xda, + 0x5f, 0x47, 0x65, 0xed, 0xc1, 0x71, 0x79, 0xe8, 0xf1, 0x71, 0x79, 0xe8, 0xf7, 0xe3, 0xf2, 0xd0, + 0xbb, 0x4b, 0x3d, 0xdd, 0x47, 0x60, 0xa8, 0xd2, 0xb2, 0xea, 0x5c, 0x9a, 0xbc, 0x27, 0x8d, 0x8a, + 0x0e, 0xa4, 0x3e, 0x2a, 0x7e, 0xd0, 0xbc, 0xfa, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x50, 0x6b, + 0x16, 0xfb, 0xdd, 0x15, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/x/hard/types/query.pb.gw.go b/x/hard/types/query.pb.gw.go index 3deba9d3..725144d6 100644 --- a/x/hard/types/query.pb.gw.go +++ b/x/hard/types/query.pb.gw.go @@ -141,26 +141,19 @@ func local_request_Query_UnsyncedDeposits_0(ctx context.Context, marshaler runti } +var ( + filter_Query_TotalDeposited_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + func request_Query_TotalDeposited_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryTotalDepositedRequest var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["denom"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "denom") + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - - protoReq.Denom, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "denom", err) + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_TotalDeposited_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } msg, err := client.TotalDeposited(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) @@ -172,22 +165,11 @@ func local_request_Query_TotalDeposited_0(ctx context.Context, marshaler runtime var protoReq QueryTotalDepositedRequest var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["denom"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "denom") + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - - protoReq.Denom, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "denom", err) + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_TotalDeposited_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } msg, err := server.TotalDeposited(ctx, &protoReq) @@ -267,26 +249,19 @@ func local_request_Query_UnsyncedBorrows_0(ctx context.Context, marshaler runtim } +var ( + filter_Query_TotalBorrowed_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + func request_Query_TotalBorrowed_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryTotalBorrowedRequest var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["denom"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "denom") + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - - protoReq.Denom, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "denom", err) + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_TotalBorrowed_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } msg, err := client.TotalBorrowed(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) @@ -298,22 +273,11 @@ func local_request_Query_TotalBorrowed_0(ctx context.Context, marshaler runtime. var protoReq QueryTotalBorrowedRequest var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["denom"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "denom") + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - - protoReq.Denom, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "denom", err) + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_TotalBorrowed_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } msg, err := server.TotalBorrowed(ctx, &protoReq) @@ -321,26 +285,19 @@ func local_request_Query_TotalBorrowed_0(ctx context.Context, marshaler runtime. } +var ( + filter_Query_InterestRate_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + func request_Query_InterestRate_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryInterestRateRequest var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["denom"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "denom") + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - - protoReq.Denom, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "denom", err) + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_InterestRate_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } msg, err := client.InterestRate(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) @@ -352,22 +309,11 @@ func local_request_Query_InterestRate_0(ctx context.Context, marshaler runtime.M var protoReq QueryInterestRateRequest var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["denom"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "denom") + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - - protoReq.Denom, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "denom", err) + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_InterestRate_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } msg, err := server.InterestRate(ctx, &protoReq) @@ -375,26 +321,19 @@ func local_request_Query_InterestRate_0(ctx context.Context, marshaler runtime.M } +var ( + filter_Query_Reserves_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + func request_Query_Reserves_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryReservesRequest var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["denom"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "denom") + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - - protoReq.Denom, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "denom", err) + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Reserves_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } msg, err := client.Reserves(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) @@ -406,22 +345,11 @@ func local_request_Query_Reserves_0(ctx context.Context, marshaler runtime.Marsh var protoReq QueryReservesRequest var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["denom"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "denom") + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - - protoReq.Denom, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "denom", err) + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Reserves_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } msg, err := server.Reserves(ctx, &protoReq) @@ -429,26 +357,19 @@ func local_request_Query_Reserves_0(ctx context.Context, marshaler runtime.Marsh } +var ( + filter_Query_InterestFactors_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + func request_Query_InterestFactors_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryInterestFactorsRequest var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["denom"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "denom") + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - - protoReq.Denom, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "denom", err) + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_InterestFactors_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } msg, err := client.InterestFactors(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) @@ -460,22 +381,11 @@ func local_request_Query_InterestFactors_0(ctx context.Context, marshaler runtim var protoReq QueryInterestFactorsRequest var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["denom"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "denom") + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - - protoReq.Denom, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "denom", err) + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_InterestFactors_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } msg, err := server.InterestFactors(ctx, &protoReq) @@ -1015,19 +925,19 @@ var ( pattern_Query_UnsyncedDeposits_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"kava", "hard", "v1beta1", "unsynced-deposits"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_TotalDeposited_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"kava", "hard", "v1beta1", "total-deposited", "denom"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_TotalDeposited_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"kava", "hard", "v1beta1", "total-deposited"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_Borrows_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"kava", "hard", "v1beta1", "borrows"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_UnsyncedBorrows_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"kava", "hard", "v1beta1", "unsynced-borrows"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_TotalBorrowed_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"kava", "hard", "v1beta1", "total-borrowed", "denom"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_TotalBorrowed_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"kava", "hard", "v1beta1", "total-borrowed"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_InterestRate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"kava", "hard", "v1beta1", "interest-rate", "denom"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_InterestRate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"kava", "hard", "v1beta1", "interest-rate"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_Reserves_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"kava", "hard", "v1beta1", "reserves", "denom"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_Reserves_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"kava", "hard", "v1beta1", "reserves"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_InterestFactors_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"kava", "hard", "v1beta1", "interest-factors", "denom"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_InterestFactors_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"kava", "hard", "v1beta1", "interest-factors"}, "", runtime.AssumeColonVerbOpt(false))) ) var (