From 3eb2cd36c43c90cb37be208d7cbfe5d2cc83fc8c Mon Sep 17 00:00:00 2001 From: turtlebasket Date: Tue, 30 Aug 2022 21:21:21 +0000 Subject: [PATCH] fmt & leftovers from previous scaffold --- docs/static/openapi.yml | 90 ++++++++++++------------ x/cosmostest/keeper/auction.go | 1 + x/cosmostest/keeper/grpc_query_params.go | 1 + 3 files changed, 47 insertions(+), 45 deletions(-) diff --git a/docs/static/openapi.yml b/docs/static/openapi.yml index e08f75b..7898df2 100644 --- a/docs/static/openapi.yml +++ b/docs/static/openapi.yml @@ -20143,15 +20143,13 @@ paths: type: string description: type: string - bids: - type: array - items: - type: object - properties: - owner: - type: string - amount: - type: string + topBid: + type: object + properties: + owner: + type: string + amount: + type: string pagination: type: object properties: @@ -20244,6 +20242,16 @@ paths: 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 '/cosmos-test/cosmostest/auction/{index}': @@ -20265,15 +20273,13 @@ paths: type: string description: type: string - bids: - type: array - items: - type: object - properties: - owner: - type: string - amount: - type: string + topBid: + type: object + properties: + owner: + type: string + amount: + type: string default: description: An unexpected error response. schema: @@ -47400,15 +47406,13 @@ definitions: type: string description: type: string - bids: - type: array - items: - type: object - properties: - owner: - type: string - amount: - type: string + topBid: + type: object + properties: + owner: + type: string + amount: + type: string cosmostest.cosmostest.Bid: type: object properties: @@ -47446,15 +47450,13 @@ definitions: type: string description: type: string - bids: - type: array - items: - type: object - properties: - owner: - type: string - amount: - type: string + topBid: + type: object + properties: + owner: + type: string + amount: + type: string pagination: type: object properties: @@ -47492,15 +47494,13 @@ definitions: type: string description: type: string - bids: - type: array - items: - type: object - properties: - owner: - type: string - amount: - type: string + topBid: + type: object + properties: + owner: + type: string + amount: + type: string cosmostest.cosmostest.QueryGetNextAuctionResponse: type: object properties: diff --git a/x/cosmostest/keeper/auction.go b/x/cosmostest/keeper/auction.go index 92c30e3..be35eff 100644 --- a/x/cosmostest/keeper/auction.go +++ b/x/cosmostest/keeper/auction.go @@ -2,6 +2,7 @@ package keeper import ( "cosmos-test/x/cosmostest/types" + "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/x/cosmostest/keeper/grpc_query_params.go b/x/cosmostest/keeper/grpc_query_params.go index 92711b0..32c06a7 100644 --- a/x/cosmostest/keeper/grpc_query_params.go +++ b/x/cosmostest/keeper/grpc_query_params.go @@ -4,6 +4,7 @@ import ( "context" "cosmos-test/x/cosmostest/types" + sdk "github.com/cosmos/cosmos-sdk/types" "google.golang.org/grpc/codes" "google.golang.org/grpc/status"