gpu-compute-chain/proto/colinearcore/query.proto

94 lines
2.8 KiB
Protocol Buffer
Raw Normal View History

2022-08-25 16:51:14 -07:00
syntax = "proto3";
package colinear.colinearcore;
2022-08-25 16:51:14 -07:00
import "gogoproto/gogo.proto";
import "google/api/annotations.proto";
import "cosmos/base/query/v1beta1/pagination.proto";
2022-09-06 15:18:09 -07:00
import "colinearcore/params.proto";
import "colinearcore/next_auction.proto";
import "colinearcore/auction.proto";
import "colinearcore/bid.proto";
2022-09-07 13:25:57 -07:00
import "colinearcore/locked_users.proto";
2022-08-25 16:51:14 -07:00
// this line is used by starport scaffolding # 1
2022-09-06 15:18:09 -07:00
option go_package = "colinear/x/colinearcore/types";
2022-08-25 16:51:14 -07:00
// Query defines the gRPC querier service.
service Query {
// Parameters queries the parameters of the module.
rpc Params(QueryParamsRequest) returns (QueryParamsResponse) {
2022-09-06 15:18:09 -07:00
option (google.api.http).get = "/colinearcore/colinearcore/params";
2022-08-25 16:51:14 -07:00
}
// Queries a NextAuction by index.
rpc NextAuction(QueryGetNextAuctionRequest) returns (QueryGetNextAuctionResponse) {
2022-09-06 15:18:09 -07:00
option (google.api.http).get = "/colinearcore/colinearcore/next_auction";
}
// Queries a Auction by index.
rpc Auction(QueryGetAuctionRequest) returns (QueryGetAuctionResponse) {
2022-09-06 15:18:09 -07:00
option (google.api.http).get = "/colinearcore/colinearcore/auction/{index}";
}
// Queries a list of Auction items.
rpc AuctionAll(QueryAllAuctionRequest) returns (QueryAllAuctionResponse) {
2022-09-06 15:18:09 -07:00
option (google.api.http).get = "/colinearcore/colinearcore/auction";
}
2022-08-30 14:27:12 -07:00
// Queries a list of AuctionBids items.
rpc AuctionBids(QueryAuctionBidsRequest) returns (QueryAuctionBidsResponse) {
2022-09-06 15:18:09 -07:00
option (google.api.http).get = "/colinearcore/colinearcore/auction_bids/{index}";
2022-08-30 14:27:12 -07:00
}
2022-09-07 13:25:57 -07:00
// Queries a LockedUsers by index.
rpc LockedUsers(QueryGetLockedUsersRequest) returns (QueryGetLockedUsersResponse) {
option (google.api.http).get = "/colinear/colinearcore/locked_users";
}
// this line is used by starport scaffolding # 2
2022-08-25 16:51:14 -07:00
}
// QueryParamsRequest is request type for the Query/Params RPC method.
message QueryParamsRequest {}
// QueryParamsResponse is response type for the Query/Params RPC method.
message QueryParamsResponse {
// params holds all the parameters of this module.
Params params = 1 [(gogoproto.nullable) = false];
}
message QueryGetNextAuctionRequest {}
message QueryGetNextAuctionResponse {
NextAuction NextAuction = 1 [(gogoproto.nullable) = false];
}
message QueryGetAuctionRequest {
string index = 1;
}
message QueryGetAuctionResponse {
Auction auction = 1 [(gogoproto.nullable) = false];
}
message QueryAllAuctionRequest {
cosmos.base.query.v1beta1.PageRequest pagination = 1;
}
message QueryAllAuctionResponse {
repeated Auction auction = 1 [(gogoproto.nullable) = false];
cosmos.base.query.v1beta1.PageResponse pagination = 2;
}
2022-08-30 14:27:12 -07:00
message QueryAuctionBidsRequest {
string index = 1;
}
message QueryAuctionBidsResponse {
2022-08-30 14:47:39 -07:00
repeated Bid bids = 1;
2022-08-30 14:27:12 -07:00
}
2022-09-07 13:25:57 -07:00
message QueryGetLockedUsersRequest {}
message QueryGetLockedUsersResponse {
LockedUsers LockedUsers = 1 [(gogoproto.nullable) = false];
}
2022-08-25 16:51:14 -07:00
// this line is used by starport scaffolding # 3