-
Notifications
You must be signed in to change notification settings - Fork 52
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
ef46d55
commit 5c66b4e
Showing
28 changed files
with
563 additions
and
619 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
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
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 |
---|---|---|
@@ -1,15 +1,27 @@ | ||
syntax = "proto3"; | ||
package bnbchain.greenfield.challenge; | ||
|
||
import "cosmos_proto/cosmos.proto"; | ||
import "gogoproto/gogo.proto"; | ||
|
||
option go_package = "github.com/bnb-chain/greenfield/x/challenge/types"; | ||
|
||
message Challenge { | ||
uint64 id = 1; | ||
string challenger_address = 2; | ||
enum VoteResult { | ||
option (gogoproto.goproto_enum_prefix) = false; | ||
|
||
// The challenge failed, for further extension. | ||
CHALLENGE_FAILED = 0; | ||
|
||
// The challenge succeed. | ||
CHALLENGE_SUCCEED = 1; | ||
} | ||
|
||
message Slash { | ||
string sp_operator_address = 1; | ||
uint64 object_id = 2; | ||
string object_id = 2 [ | ||
(cosmos_proto.scalar) = "cosmos.Uint", | ||
(gogoproto.customtype) = "Uint", | ||
(gogoproto.nullable) = false | ||
]; | ||
uint64 height = 3; | ||
} |
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
Oops, something went wrong.