121 lines
3.5 KiB
Protocol Buffer
121 lines
3.5 KiB
Protocol Buffer
syntax = "proto3";
|
|
package colinear.colinearcore;
|
|
|
|
import "gogoproto/gogo.proto";
|
|
import "google/api/annotations.proto";
|
|
import "cosmos/base/query/v1beta1/pagination.proto";
|
|
import "colinearcore/params.proto";
|
|
import "colinearcore/next_auction.proto";
|
|
import "colinearcore/auction.proto";
|
|
import "colinearcore/bid.proto";
|
|
import "colinearcore/locked_users.proto";
|
|
// this line is used by starport scaffolding # 1
|
|
|
|
option go_package = "colinear/x/colinearcore/types";
|
|
|
|
// Query defines the gRPC querier service.
|
|
service Query {
|
|
// Parameters queries the parameters of the module.
|
|
rpc Params(QueryParamsRequest) returns (QueryParamsResponse) {
|
|
option (google.api.http).get = "/colinearcore/colinearcore/params";
|
|
}
|
|
// Queries a NextAuction by index.
|
|
rpc NextAuction(QueryGetNextAuctionRequest) returns (QueryGetNextAuctionResponse) {
|
|
option (google.api.http).get = "/colinearcore/colinearcore/next_auction";
|
|
}
|
|
// Queries a Auction by index.
|
|
rpc Auction(QueryGetAuctionRequest) returns (QueryGetAuctionResponse) {
|
|
option (google.api.http).get = "/colinearcore/colinearcore/auction/{index}";
|
|
}
|
|
|
|
// Queries a list of Auction items.
|
|
rpc AuctionAll(QueryAllAuctionRequest) returns (QueryAllAuctionResponse) {
|
|
option (google.api.http).get = "/colinearcore/colinearcore/auction";
|
|
}
|
|
|
|
// Queries a list of AuctionBids items.
|
|
rpc AuctionBids(QueryAuctionBidsRequest) returns (QueryAuctionBidsResponse) {
|
|
option (google.api.http).get = "/colinearcore/colinearcore/auction_bids/{index}";
|
|
}
|
|
|
|
// Queries a LockedUsers by index.
|
|
rpc LockedUsers(QueryGetLockedUsersRequest) returns (QueryGetLockedUsersResponse) {
|
|
option (google.api.http).get = "/colinear/colinearcore/locked_users";
|
|
}
|
|
// Queries a list of LockedFunds items.
|
|
rpc LockedFunds(QueryLockedFundsRequest) returns (QueryLockedFundsResponse) {
|
|
option (google.api.http).get = "/colinear/colinearcore/locked_funds/{owner}";
|
|
}
|
|
|
|
// Queries a list of AuctionInfo items.
|
|
rpc AuctionInfo(QueryAuctionInfoRequest) returns (QueryAuctionInfoResponse) {
|
|
option (google.api.http).get = "/colinear/colinearcore/auction_info/{auctionId}";
|
|
}
|
|
|
|
// this line is used by starport scaffolding # 2
|
|
}
|
|
|
|
// 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;
|
|
}
|
|
|
|
message QueryAuctionBidsRequest {
|
|
string index = 1;
|
|
}
|
|
|
|
message QueryAuctionBidsResponse {
|
|
repeated Bid bids = 1;
|
|
}
|
|
|
|
message QueryGetLockedUsersRequest {}
|
|
|
|
message QueryGetLockedUsersResponse {
|
|
LockedUsers LockedUsers = 1 [(gogoproto.nullable) = false];
|
|
}
|
|
message QueryLockedFundsRequest {
|
|
string owner = 1;
|
|
}
|
|
|
|
message QueryLockedFundsResponse {
|
|
string amount = 1;
|
|
}
|
|
|
|
message QueryAuctionInfoRequest {
|
|
string auctionId = 1;
|
|
}
|
|
|
|
message QueryAuctionInfoResponse {
|
|
repeated Bid bids = 1;
|
|
repeated string verifiedProviders = 2;
|
|
}
|
|
|
|
// this line is used by starport scaffolding # 3
|