github.com/InjectiveLabs/sdk-go@v1.53.0/proto/injective/auction/v1beta1/query.proto (about)

     1  syntax = "proto3";
     2  package injective.auction.v1beta1;
     3  
     4  import "google/api/annotations.proto";
     5  import "injective/auction/v1beta1/auction.proto";
     6  import "injective/auction/v1beta1/genesis.proto";
     7  import "gogoproto/gogo.proto";
     8  import "cosmos/base/v1beta1/coin.proto";
     9  option go_package = "github.com/InjectiveLabs/injective-core/injective-chain/modules/auction/types";
    10  
    11  // Query defines the gRPC querier service.
    12  service Query {
    13  
    14    // Retrieves auction params
    15    rpc AuctionParams(QueryAuctionParamsRequest)
    16        returns (QueryAuctionParamsResponse) {
    17      option (google.api.http).get = "/injective/auction/v1beta1/params";
    18    }
    19  
    20    // Retrieves current auction basket with current highest bid and bidder
    21    rpc CurrentAuctionBasket(QueryCurrentAuctionBasketRequest)
    22        returns (QueryCurrentAuctionBasketResponse) {
    23      option (google.api.http).get = "/injective/auction/v1beta1/basket";
    24    };
    25  
    26    // Retrieves the entire auction module's state
    27    rpc AuctionModuleState(QueryModuleStateRequest)
    28        returns (QueryModuleStateResponse) {
    29      option (google.api.http).get = "/injective/auction/v1beta1/module_state";
    30    }
    31  
    32    rpc LastAuctionResult(QueryLastAuctionResultRequest)
    33        returns (QueryLastAuctionResultResponse) {
    34      option (google.api.http).get =
    35          "/injective/auction/v1beta1/last_auction_result";
    36    }
    37  }
    38  
    39  // QueryAuctionParamsRequest is the request type for the Query/AuctionParams RPC
    40  // method.
    41  message QueryAuctionParamsRequest {}
    42  
    43  // QueryAuctionParamsRequest is the response type for the Query/AuctionParams
    44  // RPC method.
    45  message QueryAuctionParamsResponse {
    46    Params params = 1 [ (gogoproto.nullable) = false ];
    47  }
    48  
    49  // QueryCurrentAuctionBasketRequest is the request type for the
    50  // Query/CurrentAuctionBasket RPC method.
    51  message QueryCurrentAuctionBasketRequest {}
    52  
    53  // QueryCurrentAuctionBasketResponse is the response type for the
    54  // Query/CurrentAuctionBasket RPC method.
    55  message QueryCurrentAuctionBasketResponse {
    56    // amount describes the amount put on auction
    57    repeated cosmos.base.v1beta1.Coin amount = 1 [
    58      (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
    59      (gogoproto.nullable) = false
    60    ];
    61    // auctionRound describes current auction round
    62    uint64 auctionRound = 2;
    63    // auctionClosingTime describes auction close time for the round
    64    int64 auctionClosingTime = 3;
    65    // highestBidder describes highest bidder on current round
    66    string highestBidder = 4;
    67    // highestBidAmount describes highest bid amount on current round
    68    string highestBidAmount = 5 [
    69      (gogoproto.customtype) = "cosmossdk.io/math.Int",
    70      (gogoproto.nullable) = false
    71    ];
    72  }
    73  
    74  // QueryModuleStateRequest is the request type for the Query/AuctionModuleState
    75  // RPC method.
    76  message QueryModuleStateRequest {}
    77  
    78  // QueryModuleStateResponse is the response type for the
    79  // Query/AuctionModuleState RPC method.
    80  message QueryModuleStateResponse { GenesisState state = 1; }
    81  
    82  message QueryLastAuctionResultRequest {}
    83  
    84  message QueryLastAuctionResultResponse {
    85    LastAuctionResult last_auction_result = 1;
    86  }