-
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
6d279e2
commit 589d6a9
Showing
2 changed files
with
43 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/sh | ||
|
||
#ignite scaffold message UserCreate newUser:string alias:string | ||
#ignite scaffold message CardSchemeBuy bid:coin --response cardId:uint | ||
#ignite scaffold message CardSaveContent cardId:uint content:string notes:string artist:string balanceAnchor:bool --response airdropClaimed:bool | ||
ignite scaffold message CardVote cardId:uint voteType:VoteType --response airdropClaimed:bool |
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,37 @@ | ||
syntax = "proto3"; | ||
package decentralCardGame.cardchain.cardchain; | ||
|
||
option go_package = "github.com/DecentralCardGame/cardchain/x/cardchain/types"; | ||
|
||
message VotingResults { | ||
|
||
uint64 totalVotes = 1; | ||
uint64 totalFairEnoughVotes = 2; | ||
uint64 totalOverpoweredVotes = 3; | ||
uint64 totalUnderpoweredVotes = 4; | ||
uint64 totalInappropriateVotes = 5; | ||
repeated VotingResult cardResults = 6; | ||
string notes = 7; | ||
} | ||
|
||
message VotingResult { | ||
|
||
uint64 cardId = 1; | ||
uint64 fairEnoughVotes = 2; | ||
uint64 overpoweredVotes = 3; | ||
uint64 underpoweredVotes = 4; | ||
uint64 inappropriateVotes = 5; | ||
string result = 6; | ||
} | ||
|
||
message SingleVote { | ||
uint64 cardId = 1; | ||
VoteType voteType = 2; | ||
} | ||
|
||
enum VoteType { | ||
fairEnough = 0; | ||
inappropriate = 1; | ||
overpowered = 2; | ||
underpowered = 3; | ||
} |