-
Notifications
You must be signed in to change notification settings - Fork 8
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
f2e7597
commit a459e41
Showing
7 changed files
with
2,135 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
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,46 @@ | ||
syntax = "proto3"; | ||
package layer.dispute; | ||
|
||
option go_package = "github.com/tellor-io/layer/x/dispute/types"; | ||
import "gogoproto/gogo.proto"; | ||
import "cosmos/base/v1beta1/coin.proto"; | ||
import "layer/dispute/payment_info.proto"; | ||
|
||
message Dispute { | ||
|
||
bytes hashId = 1; // represents the hash of Report+category | ||
uint64 disputeId = 2; | ||
DisputeCategory category = 3; | ||
uint64 disputeFee = 4; | ||
uint64 startTime = 5; | ||
uint64 endTime = 6; | ||
uint64 block = 7; | ||
DisputeStatus status = 8; | ||
MicroReport report = 9; | ||
repeated PaymentInfo feePayers = 10 [(gogoproto.nullable) = false]; | ||
cosmos.base.v1beta1.Coin feeTotal = 11 [(gogoproto.nullable) = false]; | ||
uint64 round = 12; | ||
repeated uint64 prevDisputeIds = 13; | ||
} | ||
|
||
enum DisputeCategory { | ||
INVALID = 0; | ||
WARNING = 1; | ||
MINOR = 2; | ||
MAJOR = 3; | ||
} | ||
|
||
enum DisputeStatus { | ||
PREVOTE = 0; // CURRENTLY IN WAITING PERIOD | ||
VOTING = 1; // VOTING IN PROGRESS | ||
RESOLVED = 2; // VOTING CONCLUDED AND QUORUM REACHED | ||
UNRESOLVED = 3; // VOTING FAILED TO REACH QUORUM | ||
FAILED = 4; // FEES NOT MET TO BEGIN VOTING | ||
} | ||
|
||
message MicroReport { | ||
string reporter = 1; | ||
string qid = 2; | ||
string value = 3; | ||
uint64 timestamp = 4; | ||
} |
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,12 @@ | ||
syntax = "proto3"; | ||
package layer.dispute; | ||
|
||
option go_package = "github.com/tellor-io/layer/x/dispute/types"; | ||
import "gogoproto/gogo.proto"; | ||
import "layer/dispute/dispute.proto"; | ||
|
||
message DisputeParams { | ||
|
||
MicroReport report = 1 [(gogoproto.nullable) = false]; | ||
DisputeCategory category = 2; | ||
} |
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,12 @@ | ||
syntax = "proto3"; | ||
package layer.dispute; | ||
|
||
option go_package = "github.com/tellor-io/layer/x/dispute/types"; | ||
import "gogoproto/gogo.proto"; | ||
import "cosmos/base/v1beta1/coin.proto"; | ||
|
||
message PaymentInfo { | ||
|
||
bytes disputer = 1; //sdk.AccAddress type | ||
cosmos.base.v1beta1.Coin amount = 2 [(gogoproto.nullable) = false]; | ||
} |
Oops, something went wrong.