/
tx.proto
32 lines (25 loc) · 882 Bytes
/
tx.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
syntax = "proto3";
package alice.checkers.v1;
option go_package = "github.com/alice/checkers";
import "cosmos/msg/v1/msg.proto";
import "gogoproto/gogo.proto";
import "alice/checkers/v1/types.proto";
import "cosmos_proto/cosmos.proto";
// Msg defines the module Msg service.
service Msg {
option (cosmos.msg.v1.service) = true;
// CreateGame create a game.
rpc CreateGame(MsgCreateGame)
returns (MsgCreateGameResponse);
}
// MsgCreateGame defines the Msg/CreateGame request type.
message MsgCreateGame {
option (cosmos.msg.v1.signer) = "creator";
// creator is the message sender.
string creator = 1;
string index = 2 ;
string black = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"];
string red = 4 [(cosmos_proto.scalar) = "cosmos.AddressString"];
}
// MsgCreateGameResponse defines the Msg/CreateGame response type.
message MsgCreateGameResponse {}