-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e6a1612
commit eb48e8d
Showing
2 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
syntax = "proto3"; | ||
package cardchain.cardchain; | ||
|
||
option go_package = "github.com/DecentralCardGame/cardchain/x/cardchain/types"; | ||
import "cardchain/cardchain/voting.proto"; | ||
|
||
message Match { | ||
|
||
uint64 timestamp = 1; | ||
string reporter = 2; | ||
MatchPlayer playerA = 3; | ||
MatchPlayer playerB = 4; | ||
Outcome outcome = 7; | ||
bool coinsDistributed = 10; | ||
bool serverConfirmed = 8; | ||
} | ||
|
||
message MatchPlayer { | ||
string addr = 1; | ||
repeated uint64 playedCards = 2; | ||
bool confirmed = 3; | ||
Outcome outcome = 4; | ||
repeated uint64 deck = 5; | ||
repeated SingleVote votedCards = 6; | ||
} | ||
|
||
enum Outcome { | ||
AWon = 0; | ||
BWon = 1; | ||
Draw = 2; | ||
Aborted = 3; | ||
} |