From df7b1a348b40e2c0d0d0ab708c43d284bb928cd3 Mon Sep 17 00:00:00 2001 From: Amit Yadav Date: Fri, 14 Jun 2024 09:35:48 +0530 Subject: [PATCH] fix --- docs/static/openapi.yml | 610 +++++++++++++++--------------- x/leveragelp/types/query.pb.gw.go | 9 + 2 files changed, 321 insertions(+), 298 deletions(-) diff --git a/docs/static/openapi.yml b/docs/static/openapi.yml index f7dbb25c5..a3b09fbba 100644 --- a/docs/static/openapi.yml +++ b/docs/static/openapi.yml @@ -42430,240 +42430,6 @@ paths: type: string tags: - Query - /elys-network/elys/membershiptier/calculate_discount/{user}: - get: - summary: Queries a list of CalculateDiscount items. - operationId: ElysMembershiptierCalculateDiscount - responses: - '200': - description: A successful response. - schema: - type: object - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: user - in: path - required: true - type: string - tags: - - Query - /elys-network/elys/membershiptier/params: - get: - summary: Parameters queries the parameters of the module. - operationId: ElysMembershiptierParams - responses: - '200': - description: A successful response. - schema: - type: object - properties: - params: - description: params holds all the parameters of this module. - type: object - description: >- - QueryParamsResponse is response type for the Query/Params RPC - method. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - tags: - - Query - /elys-network/elys/membershiptier/portfolio: - get: - operationId: ElysMembershiptierPortfolioAll - responses: - '200': - description: A successful response. - schema: - type: object - properties: - portfolio: - type: array - items: - type: object - properties: - creator: - type: string - portfolio: - type: string - pagination: - type: object - properties: - next_key: - type: string - format: byte - description: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently. It will be empty if - there are no more results. - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: >- - PageResponse is to be embedded in gRPC response messages where - the - - corresponding request message has used PageRequest. - - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: pagination.key - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - in: query - required: false - type: string - format: byte - - name: pagination.offset - description: >- - offset is a numeric offset that can be used when key is unavailable. - - It is less efficient than using key. Only one of offset or key - should - - be set. - in: query - required: false - type: string - format: uint64 - - name: pagination.limit - description: >- - limit is the total number of results to be returned in the result - page. - - If left empty it will default to a value to be set by each app. - in: query - required: false - type: string - format: uint64 - - name: pagination.count_total - description: >- - count_total is set to true to indicate that the result set should - include - - a count of the total number of items available for pagination in - UIs. - - count_total is only respected when offset is used. It is ignored - when key - - is set. - in: query - required: false - type: boolean - - name: pagination.reverse - description: >- - reverse is set to true if results are to be returned in the - descending order. - - - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean - tags: - - Query - /elys-network/elys/membershiptier/portfolio/{user}/{assetType}: - get: - summary: Queries a list of Portfolio items. - operationId: ElysMembershiptierPortfolio - responses: - '200': - description: A successful response. - schema: - type: object - properties: - total_portfolio: - type: string - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: user - in: path - required: true - type: string - - name: assetType - in: path - required: true - type: string - tags: - - Query /elys-network/elys/oracle/asset_info: get: summary: Queries a list of AssetInfo items. @@ -44835,6 +44601,247 @@ paths: additionalProperties: {} tags: - Query + /elys-network/elys/membershiptier/calculate_discount/{user}: + get: + summary: Queries a list of CalculateDiscount items. + operationId: ElysTierCalculateDiscount + responses: + '200': + description: A successful response. + schema: + type: object + properties: + discount: + type: string + tier: + type: string + portfolio: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: user + in: path + required: true + type: string + tags: + - Query + /elys-network/elys/membershiptier/params: + get: + summary: Parameters queries the parameters of the module. + operationId: ElysTierParams + responses: + '200': + description: A successful response. + schema: + type: object + properties: + params: + description: params holds all the parameters of this module. + type: object + description: >- + QueryParamsResponse is response type for the Query/Params RPC + method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query + /elys-network/elys/membershiptier/portfolio: + get: + operationId: ElysTierPortfolioAll + responses: + '200': + description: A successful response. + schema: + type: object + properties: + portfolio: + type: array + items: + type: object + properties: + creator: + type: string + portfolio: + type: string + pagination: + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + description: >- + PageResponse is to be embedded in gRPC response messages where + the + + corresponding request message has used PageRequest. + + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false + type: string + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. + + It is less efficient than using key. Only one of offset or key + should + + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. + + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + description: >- + count_total is set to true to indicate that the result set should + include + + a count of the total number of items available for pagination in + UIs. + + count_total is only respected when offset is used. It is ignored + when key + + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. + + + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean + tags: + - Query + /elys-network/elys/membershiptier/portfolio/{user}/{assetType}: + get: + summary: Queries a list of Portfolio items. + operationId: ElysTierPortfolio + responses: + '200': + description: A successful response. + schema: + type: object + properties: + total_portfolio: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: user + in: path + required: true + type: string + - name: assetType + in: path + required: true + type: string + tags: + - Query /elys-network/elys/tokenomics/airdrop: get: operationId: ElysTokenomicsAirdropAll @@ -87671,70 +87678,6 @@ definitions: type: string reward_pending: type: string - elys.membershiptier.MsgSetPortfolioResponse: - type: object - elys.membershiptier.Params: - type: object - description: Params defines the parameters for the module. - elys.membershiptier.Portfolio: - type: object - properties: - creator: - type: string - portfolio: - type: string - elys.membershiptier.QueryAllPortfolioResponse: - type: object - properties: - portfolio: - type: array - items: - type: object - properties: - creator: - type: string - portfolio: - type: string - pagination: - type: object - properties: - next_key: - type: string - format: byte - description: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently. It will be empty if - there are no more results. - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: |- - PageResponse is to be embedded in gRPC response messages where the - corresponding request message has used PageRequest. - - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - elys.membershiptier.QueryCalculateDiscountResponse: - type: object - elys.membershiptier.QueryGetPortfolioResponse: - type: object - properties: - total_portfolio: - type: string - elys.membershiptier.QueryParamsResponse: - type: object - properties: - params: - description: params holds all the parameters of this module. - type: object - description: QueryParamsResponse is response type for the Query/Params RPC method. elys.oracle.AssetInfo: type: object properties: @@ -89162,6 +89105,77 @@ definitions: total_value: type: string description: QueryParamsResponse is response type for the Query/Params RPC method. + elys.tier.MsgSetPortfolioResponse: + type: object + elys.tier.Params: + type: object + description: Params defines the parameters for the module. + elys.tier.Portfolio: + type: object + properties: + creator: + type: string + portfolio: + type: string + elys.tier.QueryAllPortfolioResponse: + type: object + properties: + portfolio: + type: array + items: + type: object + properties: + creator: + type: string + portfolio: + type: string + pagination: + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + description: |- + PageResponse is to be embedded in gRPC response messages where the + corresponding request message has used PageRequest. + + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } + elys.tier.QueryCalculateDiscountResponse: + type: object + properties: + discount: + type: string + tier: + type: string + portfolio: + type: string + elys.tier.QueryGetPortfolioResponse: + type: object + properties: + total_portfolio: + type: string + elys.tier.QueryParamsResponse: + type: object + properties: + params: + description: params holds all the parameters of this module. + type: object + description: QueryParamsResponse is response type for the Query/Params RPC method. elys.tokenomics.Airdrop: type: object properties: diff --git a/x/leveragelp/types/query.pb.gw.go b/x/leveragelp/types/query.pb.gw.go index b52d3898a..c278bbf22 100644 --- a/x/leveragelp/types/query.pb.gw.go +++ b/x/leveragelp/types/query.pb.gw.go @@ -1022,6 +1022,8 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv mux.Handle("GET", pattern_Query_OpenEst_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) if err != nil { @@ -1029,6 +1031,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } resp, md, err := local_request_Query_OpenEst_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) @@ -1042,6 +1045,8 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv mux.Handle("GET", pattern_Query_CloseEst_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) if err != nil { @@ -1049,6 +1054,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } resp, md, err := local_request_Query_CloseEst_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) @@ -1062,6 +1068,8 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv mux.Handle("GET", pattern_Query_Rewards_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) if err != nil { @@ -1069,6 +1077,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } resp, md, err := local_request_Query_Rewards_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)