-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
convert vote extension to protobuf & use legacyDec.BigInt
- Loading branch information
1 parent
c29d16a
commit f828fee
Showing
6 changed files
with
1,170 additions
and
75 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,28 @@ | ||
syntax = "proto3"; | ||
package kujira.oracle; | ||
|
||
import "gogoproto/gogo.proto"; | ||
import "kujira/oracle/genesis.proto"; | ||
import "tendermint/abci/types.proto"; | ||
|
||
option go_package = "github.com/Team-Kujira/core/x/oracle/types"; | ||
|
||
message DenomPrice { | ||
string denom = 1; | ||
string price = 2 [ | ||
(gogoproto.nullable) = false, | ||
(gogoproto.customtype) = "cosmossdk.io/math.Int" | ||
]; | ||
} | ||
|
||
message VoteExtension { | ||
int64 height = 1; | ||
repeated DenomPrice prices = 2 [ (gogoproto.nullable) = false ]; | ||
} | ||
|
||
// VoteExtensionTx defines vote extension execution tx | ||
message VoteExtensionTx { | ||
repeated DenomPrice stake_weighted_prices = 1 [ (gogoproto.nullable) = false ]; | ||
MissCounter miss_counter = 2 [ (gogoproto.nullable) = false ]; | ||
tendermint.abci.ExtendedCommitInfo extended_commit_info = 3 [ (gogoproto.nullable) = false ]; | ||
} |
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.