mirror of
https://github.com/colinear-labs/chain.git
synced 2026-03-05 04:34:26 -08:00
scaffold CLR locking types / msg
This commit is contained in:
@@ -5,6 +5,7 @@ import "gogoproto/gogo.proto";
|
||||
import "colinearcore/params.proto";
|
||||
import "colinearcore/next_auction.proto";
|
||||
import "colinearcore/auction.proto";
|
||||
import "colinearcore/locked_users.proto";
|
||||
// this line is used by starport scaffolding # genesis/proto/import
|
||||
|
||||
option go_package = "colinear/x/colinearcore/types";
|
||||
@@ -14,5 +15,6 @@ message GenesisState {
|
||||
Params params = 1 [(gogoproto.nullable) = false];
|
||||
NextAuction nextAuction = 2;
|
||||
repeated Auction auctionList = 3 [(gogoproto.nullable) = false];
|
||||
LockedUsers lockedUsers = 4;
|
||||
// this line is used by starport scaffolding # genesis/proto/state
|
||||
}
|
||||
|
||||
8
proto/colinearcore/locked_users.proto
Normal file
8
proto/colinearcore/locked_users.proto
Normal file
@@ -0,0 +1,8 @@
|
||||
syntax = "proto3";
|
||||
package colinear.colinearcore;
|
||||
|
||||
option go_package = "colinear/x/colinearcore/types";
|
||||
|
||||
message LockedUsers {
|
||||
map<string,string> users = 1;
|
||||
}
|
||||
@@ -8,6 +8,7 @@ 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";
|
||||
@@ -37,6 +38,10 @@ service Query {
|
||||
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";
|
||||
}
|
||||
// this line is used by starport scaffolding # 2
|
||||
}
|
||||
|
||||
@@ -80,4 +85,9 @@ message QueryAuctionBidsResponse {
|
||||
repeated Bid bids = 1;
|
||||
}
|
||||
|
||||
message QueryGetLockedUsersRequest {}
|
||||
|
||||
message QueryGetLockedUsersResponse {
|
||||
LockedUsers LockedUsers = 1 [(gogoproto.nullable) = false];
|
||||
}
|
||||
// this line is used by starport scaffolding # 3
|
||||
|
||||
@@ -9,6 +9,7 @@ option go_package = "colinear/x/colinearcore/types";
|
||||
service Msg {
|
||||
rpc NewAuction(MsgNewAuction) returns (MsgNewAuctionResponse);
|
||||
rpc NewBid(MsgNewBid) returns (MsgNewBidResponse);
|
||||
rpc LockFunds(MsgLockFunds) returns (MsgLockFundsResponse);
|
||||
// this line is used by starport scaffolding # proto/tx/rpc
|
||||
}
|
||||
|
||||
@@ -34,4 +35,11 @@ message MsgNewBid {
|
||||
message MsgNewBidResponse {
|
||||
}
|
||||
|
||||
message MsgLockFunds {
|
||||
string creator = 1;
|
||||
}
|
||||
|
||||
message MsgLockFundsResponse {
|
||||
}
|
||||
|
||||
// this line is used by starport scaffolding # proto/tx/message
|
||||
|
||||
Reference in New Issue
Block a user