-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x/evidence genesis protobuf migration (#6864)
* Migrate evidence genesis state to proto * Fix lint error * Remove commented code * Clean up * Add UnpackInterfaces to evidence GenesisState * Add cosmos_proto.accepts_interface to evidence any and fix lint error * Add test for x/evidence ExportGenesis and use table tests * Update x/evidence/types/genesis.go Co-authored-by: Federico Kunze <[email protected]> * Update proto/cosmos/evidence/evidence.proto Co-authored-by: Alexander Bezobchuk <[email protected]> * Keep []Evidence as return type in GenEvidences * Add GenesisState Validate tests * Add test case for NewGenesisState * Add tests for GenesisState UnpackInterfaces Co-authored-by: SaReN <[email protected]> Co-authored-by: Federico Kunze <[email protected]> Co-authored-by: Alexander Bezobchuk <[email protected]>
- Loading branch information
1 parent
bc7e943
commit 2da954f
Showing
11 changed files
with
708 additions
and
127 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,11 @@ | ||
syntax = "proto3"; | ||
package cosmos.evidence; | ||
|
||
option go_package = "github.com/cosmos/cosmos-sdk/x/evidence/types"; | ||
|
||
import "google/protobuf/any.proto"; | ||
|
||
// GenesisState defines the evidence module's genesis state. | ||
message GenesisState { | ||
repeated google.protobuf.Any evidence = 1; | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.