mirror of
https://github.com/colinear-labs/chain.git
synced 2026-03-05 04:44:25 -08:00
remove hyphen in module name
This commit is contained in:
20
proto/colinearcore/auction.proto
Normal file
20
proto/colinearcore/auction.proto
Normal file
@@ -0,0 +1,20 @@
|
||||
syntax = "proto3";
|
||||
package colinear.colinearcore;
|
||||
|
||||
option go_package = "colinear/x/colinearcore/types";
|
||||
|
||||
import "colinearcore/bid.proto";
|
||||
|
||||
message Auction {
|
||||
string index = 1;
|
||||
string name = 2;
|
||||
string description = 3;
|
||||
Bid best = 4;
|
||||
uint64 deadline = 5;
|
||||
string ceiling = 6;
|
||||
string denom = 7;
|
||||
string owner = 8;
|
||||
uint64 leaseStart = 9;
|
||||
uint64 leaseEnd = 10;
|
||||
string remaining = 11;
|
||||
}
|
||||
10
proto/colinearcore/bid.proto
Normal file
10
proto/colinearcore/bid.proto
Normal file
@@ -0,0 +1,10 @@
|
||||
syntax = "proto3";
|
||||
package colinear.colinearcore;
|
||||
|
||||
option go_package = "colinear/x/colinearcore/types";
|
||||
|
||||
message Bid {
|
||||
|
||||
string owner = 1;
|
||||
string amount = 2;
|
||||
}
|
||||
18
proto/colinearcore/genesis.proto
Normal file
18
proto/colinearcore/genesis.proto
Normal file
@@ -0,0 +1,18 @@
|
||||
syntax = "proto3";
|
||||
package colinear.colinearcore;
|
||||
|
||||
import "gogoproto/gogo.proto";
|
||||
import "colinearcore/params.proto";
|
||||
import "colinearcore/next_auction.proto";
|
||||
import "colinearcore/auction.proto";
|
||||
// this line is used by starport scaffolding # genesis/proto/import
|
||||
|
||||
option go_package = "colinear/x/colinearcore/types";
|
||||
|
||||
// GenesisState defines the colinear module's genesis state.
|
||||
message GenesisState {
|
||||
Params params = 1 [(gogoproto.nullable) = false];
|
||||
NextAuction nextAuction = 2;
|
||||
repeated Auction auctionList = 3 [(gogoproto.nullable) = false];
|
||||
// this line is used by starport scaffolding # genesis/proto/state
|
||||
}
|
||||
8
proto/colinearcore/next_auction.proto
Normal file
8
proto/colinearcore/next_auction.proto
Normal file
@@ -0,0 +1,8 @@
|
||||
syntax = "proto3";
|
||||
package colinear.colinearcore;
|
||||
|
||||
option go_package = "colinear/x/colinearcore/types";
|
||||
|
||||
message NextAuction {
|
||||
uint64 auctionId = 1;
|
||||
}
|
||||
12
proto/colinearcore/params.proto
Normal file
12
proto/colinearcore/params.proto
Normal file
@@ -0,0 +1,12 @@
|
||||
syntax = "proto3";
|
||||
package colinear.colinearcore;
|
||||
|
||||
import "gogoproto/gogo.proto";
|
||||
|
||||
option go_package = "colinear/x/colinearcore/types";
|
||||
|
||||
// Params defines the parameters for the module.
|
||||
message Params {
|
||||
option (gogoproto.goproto_stringer) = false;
|
||||
|
||||
}
|
||||
83
proto/colinearcore/query.proto
Normal file
83
proto/colinearcore/query.proto
Normal file
@@ -0,0 +1,83 @@
|
||||
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";
|
||||
// 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}";
|
||||
}
|
||||
|
||||
// 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;
|
||||
}
|
||||
|
||||
// this line is used by starport scaffolding # 3
|
||||
37
proto/colinearcore/tx.proto
Normal file
37
proto/colinearcore/tx.proto
Normal file
@@ -0,0 +1,37 @@
|
||||
syntax = "proto3";
|
||||
package colinear.colinearcore;
|
||||
|
||||
// this line is used by starport scaffolding # proto/tx/import
|
||||
|
||||
option go_package = "colinear/x/colinearcore/types";
|
||||
|
||||
// Msg defines the Msg service.
|
||||
service Msg {
|
||||
rpc NewAuction(MsgNewAuction) returns (MsgNewAuctionResponse);
|
||||
rpc NewBid(MsgNewBid) returns (MsgNewBidResponse);
|
||||
// this line is used by starport scaffolding # proto/tx/rpc
|
||||
}
|
||||
|
||||
message MsgNewAuction {
|
||||
string creator = 1;
|
||||
string name = 2;
|
||||
string description = 3;
|
||||
string ceiling = 4;
|
||||
string denom = 5;
|
||||
uint64 leaseEnd = 6;
|
||||
}
|
||||
|
||||
message MsgNewAuctionResponse {
|
||||
string auctionId = 1;
|
||||
}
|
||||
|
||||
message MsgNewBid {
|
||||
string creator = 1;
|
||||
string auctionIndex = 2;
|
||||
string amount = 3;
|
||||
}
|
||||
|
||||
message MsgNewBidResponse {
|
||||
}
|
||||
|
||||
// this line is used by starport scaffolding # proto/tx/message
|
||||
Reference in New Issue
Block a user