forked from cosmos/cosmos-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate gov, ibc-transfer genesis state to proto (cosmos#6866)
* Migrate gov genesis state * Migrate ibc-transfer genesis state * format genesis proto
- Loading branch information
1 parent
72f6bf0
commit 804b80a
Showing
7 changed files
with
1,650 additions
and
607 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,40 @@ | ||
syntax = "proto3"; | ||
|
||
package cosmos.gov; | ||
|
||
import "gogoproto/gogo.proto"; | ||
import "cosmos/gov/gov.proto"; | ||
|
||
option go_package = "github.com/cosmos/cosmos-sdk/x/gov/types"; | ||
|
||
// GenesisState - all staking state that must be provided at genesis | ||
message GenesisState{ | ||
uint64 starting_proposal_id = 1 [ | ||
(gogoproto.customname) = "StartingProposalID", | ||
(gogoproto.moretags) = "yaml:\"starting_proposal_id\"" | ||
]; | ||
repeated Deposit deposits = 2 [ | ||
(gogoproto.castrepeated) = "Deposits", | ||
(gogoproto.nullable) = false | ||
]; | ||
repeated Vote votes = 3 [ | ||
(gogoproto.castrepeated) = "Votes", | ||
(gogoproto.nullable) = false | ||
]; | ||
repeated Proposal proposals = 4 [ | ||
(gogoproto.castrepeated) = "Proposals", | ||
(gogoproto.nullable) = false | ||
]; | ||
DepositParams deposit_params = 5 [ | ||
(gogoproto.nullable) = false, | ||
(gogoproto.moretags) = "yaml:\"deposit_params\"" | ||
]; | ||
VotingParams voting_params = 6 [ | ||
(gogoproto.nullable) = false, | ||
(gogoproto.moretags) = "yaml:\"voting_params\"" | ||
]; | ||
TallyParams tally_params = 7 [ | ||
(gogoproto.nullable) = false, | ||
(gogoproto.moretags) = "yaml:\"tally_params\"" | ||
]; | ||
} |
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,17 @@ | ||
syntax = "proto3"; | ||
package ibc.transfer; | ||
|
||
option go_package = "github.com/cosmos/cosmos-sdk/x/ibc-transfer/types"; | ||
|
||
import "gogoproto/gogo.proto"; | ||
import "cosmos/cosmos.proto"; | ||
import "ibc/transfer/transfer.proto"; | ||
|
||
// GenesisState is currently only used to ensure that the InitGenesis gets run | ||
// by the module manager | ||
message GenesisState{ | ||
string port_id = 1 [ | ||
(gogoproto.customname) = "PortID", | ||
(gogoproto.moretags) = "yaml:\"port_id\"" | ||
]; | ||
} |
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.