Protobuf Audit: Genesis states (#6978)

* Remove some casttypes

* Add more comments

* Finish remaining modules

* Fix lint

* Revert customname

* Revert evidence

* Review nits

* Consistent doc for genesis state

* Make proto-gen

* Update docs for capability

* Remove useless customtype

* Update proto/cosmos/auth/v1beta1/genesis.proto

Co-authored-by: Anil Kumar Kammari <anil@vitwit.com>

* Add godoc

* Update proto/cosmos/evidence/v1beta1/genesis.proto

Co-authored-by: Marie <marie.gauthier63@gmail.com>

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Anil Kumar Kammari <anil@vitwit.com>
Co-authored-by: Marie <marie.gauthier63@gmail.com>
This commit is contained in:
Amaury Martiny 2020-08-12 17:48:22 +02:00 committed by GitHub
parent dda9bd8333
commit 134e1dcecd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
29 changed files with 1149 additions and 1055 deletions

View File

@ -7,11 +7,13 @@ import "cosmos/auth/v1beta1/auth.proto";
option go_package = "github.com/cosmos/cosmos-sdk/x/auth/types"; option go_package = "github.com/cosmos/cosmos-sdk/x/auth/types";
// GenesisState - all auth state that must be provided at genesis // GenesisState defines the auth module's genesis state.
message GenesisState { message GenesisState {
// params defines all the paramaters of the module.
Params params = 1 [ Params params = 1 [
(gogoproto.casttype) = "Params",
(gogoproto.nullable) = false (gogoproto.nullable) = false
]; ];
// accounts are the accounts present at genesis.
repeated google.protobuf.Any accounts = 2; repeated google.protobuf.Any accounts = 2;
} }

View File

@ -9,23 +9,24 @@ option go_package = "github.com/cosmos/cosmos-sdk/x/bank/types";
// GenesisState defines the bank module's genesis state. // GenesisState defines the bank module's genesis state.
message GenesisState { message GenesisState {
// params defines all the paramaters of the module.
Params params = 1 [ Params params = 1 [
(gogoproto.casttype) = "Params",
(gogoproto.nullable) = false (gogoproto.nullable) = false
]; ];
// balances is an array containing the balances of all the accounts.
repeated Balance balances = 2 [ repeated Balance balances = 2 [
(gogoproto.casttype) = "Balance",
(gogoproto.nullable) = false (gogoproto.nullable) = false
]; ];
// supply represents the total supply.
repeated cosmos.base.v1beta1.Coin supply = 3 [ repeated cosmos.base.v1beta1.Coin supply = 3 [
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
(gogoproto.nullable) = false (gogoproto.nullable) = false
]; ];
// denom_metadata defines the metadata of the differents coins.
repeated Metadata denom_metadata = 4 [ repeated Metadata denom_metadata = 4 [
(gogoproto.casttype) = "Metadata",
(gogoproto.moretags) = "yaml:\"denom_metadata\"", (gogoproto.moretags) = "yaml:\"denom_metadata\"",
(gogoproto.nullable) = false (gogoproto.nullable) = false
]; ];
@ -36,8 +37,10 @@ message GenesisState {
message Balance { message Balance {
option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_getters) = false;
// address is the address of the balance holder.
bytes address = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"]; bytes address = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
// coins defines the different coins this balance holds.
repeated cosmos.base.v1beta1.Coin coins = 2 [ repeated cosmos.base.v1beta1.Coin coins = 2 [
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
(gogoproto.nullable) = false (gogoproto.nullable) = false

View File

@ -77,6 +77,7 @@ message QuerySupplyOfRequest {
// QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method. // QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method.
message QuerySupplyOfResponse { message QuerySupplyOfResponse {
// amount is the supply of the coin. // amount is the supply of the coin.
cosmos.base.v1beta1.Coin amount = 1 cosmos.base.v1beta1.Coin amount = 1 [
[(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.nullable) = false]; (gogoproto.nullable) = false
];
} }

View File

@ -8,21 +8,23 @@ option go_package = "github.com/cosmos/cosmos-sdk/x/capability/types";
// GenesisOwners defines the capability owners with their corresponding index. // GenesisOwners defines the capability owners with their corresponding index.
message GenesisOwners { message GenesisOwners {
// index is the index of the capability owner.
uint64 index = 1; uint64 index = 1;
CapabilityOwners owners = 2[
// index_owners are the owners at the given index.
CapabilityOwners index_owners = 2[
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.jsontag) = "index_owners",
(gogoproto.moretags) = "yaml:\"index_owners\"" (gogoproto.moretags) = "yaml:\"index_owners\""
]; ];
} }
// GenesisState represents the Capability module genesis state // GenesisState defines the capability module's genesis state.
message GenesisState { message GenesisState {
// capability global index // index is the capability global index.
uint64 index = 1; uint64 index = 1;
// map from index to owners of the capability index // owners represents a map from index to owners of the capability index
// index key is string to allow amino marshalling // index key is string to allow amino marshalling.
repeated GenesisOwners owners = 2 [ repeated GenesisOwners owners = 2 [
(gogoproto.nullable) = false (gogoproto.nullable) = false
]; ];

View File

@ -6,10 +6,11 @@ option go_package = "github.com/cosmos/cosmos-sdk/x/crisis/types";
import "gogoproto/gogo.proto"; import "gogoproto/gogo.proto";
import "cosmos/base/v1beta1/coin.proto"; import "cosmos/base/v1beta1/coin.proto";
// GenesisState - genesis state of x/crisis // GenesisState defines the crisis module's genesis state.
message GenesisState { message GenesisState {
// constant_fee is the fee used to verify the invariant in the crisis
// module.
cosmos.base.v1beta1.Coin constant_fee = 3 [ cosmos.base.v1beta1.Coin constant_fee = 3 [
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Coin",
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.moretags) = "yaml:\"constant_fee\"" (gogoproto.moretags) = "yaml:\"constant_fee\""
]; ];

View File

@ -8,31 +8,31 @@ import "gogoproto/gogo.proto";
import "cosmos/base/v1beta1/coin.proto"; import "cosmos/base/v1beta1/coin.proto";
import "cosmos/distribution/v1beta1/distribution.proto"; import "cosmos/distribution/v1beta1/distribution.proto";
// genesis types // DelegatorWithdrawInfo is the address for where distributions rewards are withdrawn to by default
// this struct is only used at genesis to feed in default withdraw addresses.
// DelegatorWithdrawInfo
// the address for where distributions rewards are withdrawn to by default
// this struct is only used at genesis to feed in default withdraw addresses
message DelegatorWithdrawInfo { message DelegatorWithdrawInfo {
// delegator_address is the address of the delegator.
bytes delegator_address = 1 [ bytes delegator_address = 1 [
(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress", (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress",
(gogoproto.moretags) = "yaml:\"delegator_address\"" (gogoproto.moretags) = "yaml:\"delegator_address\""
]; ];
// withdraw_address is the address to withdraw the delegation rewards to.
bytes withdraw_address = 2 [ bytes withdraw_address = 2 [
(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress", (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress",
(gogoproto.moretags) = "yaml:\"withdraw_address\"" (gogoproto.moretags) = "yaml:\"withdraw_address\""
]; ];
} }
// ValidatorOutstandingRewardsRecord // ValidatorOutstandingRewardsRecord is used for import/export via genesis json.
// used for import/export via genesis json
message ValidatorOutstandingRewardsRecord { message ValidatorOutstandingRewardsRecord {
// validator_address is the address of the validator.
bytes validator_address = 1 [ bytes validator_address = 1 [
(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress", (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress",
(gogoproto.moretags) = "yaml:\"validator_address\"" (gogoproto.moretags) = "yaml:\"validator_address\""
]; ];
// outstanding_rewards represents the oustanding rewards of a validator.
repeated cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [ repeated cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins",
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
@ -40,146 +40,151 @@ message ValidatorOutstandingRewardsRecord {
]; ];
} }
// ValidatorAccumulatedCommissionRecord // ValidatorAccumulatedCommissionRecord is used for import / export via genesis json.
// used for import / export via genesis json
message ValidatorAccumulatedCommissionRecord { message ValidatorAccumulatedCommissionRecord {
// validator_address is the address of the validator.
bytes validator_address = 1 [ bytes validator_address = 1 [
(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress", (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress",
(gogoproto.moretags) = "yaml:\"validator_address\"" (gogoproto.moretags) = "yaml:\"validator_address\""
]; ];
// accumulated is the accumulated commission of a validator.
ValidatorAccumulatedCommission accumulated = 2 [ ValidatorAccumulatedCommission accumulated = 2 [
(gogoproto.casttype) = "ValidatorAccumulatedCommission",
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.moretags) = "yaml:\"accumulated\"" (gogoproto.moretags) = "yaml:\"accumulated\""
]; ];
} }
// ValidatorHistoricalRewardsRecord // ValidatorHistoricalRewardsRecord is used for import / export via genesis json.
// used for import / export via genesis json
message ValidatorHistoricalRewardsRecord { message ValidatorHistoricalRewardsRecord {
// validator_address is the address of the validator.
bytes validator_address = 1 [ bytes validator_address = 1 [
(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress", (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress",
(gogoproto.moretags) = "yaml:\"validator_address\"" (gogoproto.moretags) = "yaml:\"validator_address\""
]; ];
// period defines the period the historical rewards apply to.
uint64 period = 2; uint64 period = 2;
// rewards defines the historical rewards of a validator.
ValidatorHistoricalRewards rewards = 3[ ValidatorHistoricalRewards rewards = 3[
(gogoproto.casttype) = "ValidatorHistoricalRewards",
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.moretags) = "yaml:\"rewards\"" (gogoproto.moretags) = "yaml:\"rewards\""
]; ];
} }
// ValidatorCurrentRewardsRecord // ValidatorCurrentRewardsRecord is used for import / export via genesis json.
// used for import / export via genesis json
message ValidatorCurrentRewardsRecord { message ValidatorCurrentRewardsRecord {
// validator_address is the address of the validator.
bytes validator_address = 1 [ bytes validator_address = 1 [
(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress", (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress",
(gogoproto.moretags) = "yaml:\"validator_address\"" (gogoproto.moretags) = "yaml:\"validator_address\""
]; ];
// rewards defines the current rewards of a validator.
ValidatorCurrentRewards rewards = 2[ ValidatorCurrentRewards rewards = 2[
(gogoproto.casttype) = "ValidatorCurrentRewards",
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.moretags) = "yaml:\"rewards\"" (gogoproto.moretags) = "yaml:\"rewards\""
]; ];
} }
// DelegatorStartingInfoRecord // DelegatorStartingInfoRecord used for import / export via genesis json.
// used for import / export via genesis json
message DelegatorStartingInfoRecord { message DelegatorStartingInfoRecord {
// delegator_address is the address of the delegator.
bytes delegator_address = 1 [ bytes delegator_address = 1 [
(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress", (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress",
(gogoproto.moretags) = "yaml:\"delegator_address\"" (gogoproto.moretags) = "yaml:\"delegator_address\""
]; ];
// validator_address is the address of the validator.
bytes validator_address = 2 [ bytes validator_address = 2 [
(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress", (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress",
(gogoproto.moretags) = "yaml:\"validator_address\"" (gogoproto.moretags) = "yaml:\"validator_address\""
]; ];
// starting_info defines the starting info of a delegator.
DelegatorStartingInfo starting_info = 3 [ DelegatorStartingInfo starting_info = 3 [
(gogoproto.casttype) = "DelegatorStartingInfo",
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.moretags) = "yaml:\"starting_info\"" (gogoproto.moretags) = "yaml:\"starting_info\""
]; ];
} }
// ValidatorSlashEventRecord // ValidatorSlashEventRecord is used for import / export via genesis json.
// used for import / export via genesis json
message ValidatorSlashEventRecord { message ValidatorSlashEventRecord {
// validator_address is the address of the validator.
bytes validator_address = 1 [ bytes validator_address = 1 [
(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress", (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress",
(gogoproto.moretags) = "yaml:\"validator_address\"" (gogoproto.moretags) = "yaml:\"validator_address\""
]; ];
// height defines the block height at which the slash event occured.
uint64 height = 2; uint64 height = 2;
// period is the period of the slash event.
uint64 period = 3; uint64 period = 3;
// event describes the slash event.
ValidatorSlashEvent event = 4 [ ValidatorSlashEvent event = 4 [
(gogoproto.casttype) = "ValidatorSlashEvent",
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.moretags) = "yaml:\"event\"" (gogoproto.moretags) = "yaml:\"event\""
]; ];
} }
// GenesisState - all distribution state that must be provided at genesis // GenesisState defines the distribution module's genesis state.
message GenesisState { message GenesisState {
// params defines all the paramaters of the module.
Params params = 1 [ Params params = 1 [
(gogoproto.casttype) = "Params",
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.moretags) = "yaml:\"params\"" (gogoproto.moretags) = "yaml:\"params\""
]; ];
// fee_pool defines the fee pool at genesis.
FeePool fee_pool = 2 [ FeePool fee_pool = 2 [
(gogoproto.casttype) = "FeePool",
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.moretags) = "yaml:\"fee_pool\"" (gogoproto.moretags) = "yaml:\"fee_pool\""
]; ];
// fee_pool defines the delegator withdraw infos at genesis.
repeated DelegatorWithdrawInfo delegator_withdraw_infos = 3 [ repeated DelegatorWithdrawInfo delegator_withdraw_infos = 3 [
(gogoproto.casttype) = "DelegatorWithdrawInfo",
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\"" (gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""
]; ];
// fee_pool defines the previous proposer at genesis.
bytes previous_proposer = 4 [ bytes previous_proposer = 4 [
(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ConsAddress", (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ConsAddress",
(gogoproto.moretags) = "yaml:\"previous_proposer\"" (gogoproto.moretags) = "yaml:\"previous_proposer\""
]; ];
// fee_pool defines the outstanding rewards of all validators at genesis.
repeated ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [ repeated ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [
(gogoproto.casttype) = "ValidatorOutstandingRewardsRecord",
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.moretags) = "yaml:\"outstanding_rewards\"" (gogoproto.moretags) = "yaml:\"outstanding_rewards\""
]; ];
// fee_pool defines the accumulated commisions of all validators at genesis.
repeated ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [ repeated ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [
(gogoproto.casttype) = "ValidatorAccumulatedCommissionRecord",
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\"" (gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""
]; ];
// fee_pool defines the historical rewards of all validators at genesis.
repeated ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [ repeated ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [
(gogoproto.casttype) = "ValidatorHistoricalRewardsRecord",
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.moretags) = "yaml:\"validator_historical_rewards\"" (gogoproto.moretags) = "yaml:\"validator_historical_rewards\""
]; ];
// fee_pool defines the current rewards of all validators at genesis.
repeated ValidatorCurrentRewardsRecord validator_current_rewards = 8 [ repeated ValidatorCurrentRewardsRecord validator_current_rewards = 8 [
(gogoproto.casttype) = "ValidatorCurrentRewardsRecord",
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.moretags) = "yaml:\"validator_current_rewards\"" (gogoproto.moretags) = "yaml:\"validator_current_rewards\""
]; ];
// fee_pool defines the delegator starting infos at genesis.
repeated DelegatorStartingInfoRecord delegator_starting_infos = 9 [ repeated DelegatorStartingInfoRecord delegator_starting_infos = 9 [
(gogoproto.casttype) = "DelegatorStartingInfoRecord",
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.moretags) = "yaml:\"delegator_starting_infos\"" (gogoproto.moretags) = "yaml:\"delegator_starting_infos\""
]; ];
// fee_pool defines the validator slash events at genesis.
repeated ValidatorSlashEventRecord validator_slash_events = 10 [ repeated ValidatorSlashEventRecord validator_slash_events = 10 [
(gogoproto.casttype) = "ValidatorSlashEventRecord",
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.moretags) = "yaml:\"validator_slash_events\"" (gogoproto.moretags) = "yaml:\"validator_slash_events\""
]; ];

View File

@ -7,5 +7,6 @@ import "google/protobuf/any.proto";
// GenesisState defines the evidence module's genesis state. // GenesisState defines the evidence module's genesis state.
message GenesisState { message GenesisState {
// evidence defines all the evidence at genesis.
repeated google.protobuf.Any evidence = 1; repeated google.protobuf.Any evidence = 1;
} }

View File

@ -5,8 +5,9 @@ import "gogoproto/gogo.proto";
option go_package = "github.com/cosmos/cosmos-sdk/x/genutil/types"; option go_package = "github.com/cosmos/cosmos-sdk/x/genutil/types";
// GenesisState defines the raw genesis transaction in JSON // GenesisState defines the raw genesis transaction in JSON.
message GenesisState { message GenesisState {
// gen_txs defines the genesis transactions.
repeated bytes gen_txs = 1 [ repeated bytes gen_txs = 1 [
(gogoproto.casttype) = "encoding/json.RawMessage", (gogoproto.casttype) = "encoding/json.RawMessage",
(gogoproto.jsontag) = "gentxs", (gogoproto.jsontag) = "gentxs",

View File

@ -7,34 +7,41 @@ import "cosmos/gov/v1beta1/gov.proto";
option go_package = "github.com/cosmos/cosmos-sdk/x/gov/types"; option go_package = "github.com/cosmos/cosmos-sdk/x/gov/types";
// GenesisState - all staking state that must be provided at genesis // GenesisState defines the gov module's genesis state.
message GenesisState{ message GenesisState{
uint64 starting_proposal_id = 1 [ // starting_proposal_id is the ID of the starting proposal.
(gogoproto.customname) = "StartingProposalID", uint64 starting_proposal_id = 1 [
(gogoproto.moretags) = "yaml:\"starting_proposal_id\"" (gogoproto.customname) = "StartingProposalID",
]; (gogoproto.moretags) = "yaml:\"starting_proposal_id\""
repeated Deposit deposits = 2 [ ];
(gogoproto.castrepeated) = "Deposits", // deposits defines all the deposits present at genesis.
(gogoproto.nullable) = false repeated Deposit deposits = 2 [
]; (gogoproto.castrepeated) = "Deposits",
repeated Vote votes = 3 [ (gogoproto.nullable) = false
(gogoproto.castrepeated) = "Votes", ];
(gogoproto.nullable) = false // votes defines all the votes present at genesis.
]; repeated Vote votes = 3 [
repeated Proposal proposals = 4 [ (gogoproto.castrepeated) = "Votes",
(gogoproto.castrepeated) = "Proposals", (gogoproto.nullable) = false
(gogoproto.nullable) = false ];
]; // proposals defines all the proposals present at genesis.
DepositParams deposit_params = 5 [ repeated Proposal proposals = 4 [
(gogoproto.nullable) = false, (gogoproto.castrepeated) = "Proposals",
(gogoproto.moretags) = "yaml:\"deposit_params\"" (gogoproto.nullable) = false
]; ];
VotingParams voting_params = 6 [ // params defines all the paramaters of related to deposit.
(gogoproto.nullable) = false, DepositParams deposit_params = 5 [
(gogoproto.moretags) = "yaml:\"voting_params\"" (gogoproto.nullable) = false,
]; (gogoproto.moretags) = "yaml:\"deposit_params\""
TallyParams tally_params = 7 [ ];
(gogoproto.nullable) = false, // params defines all the paramaters of related to voting.
(gogoproto.moretags) = "yaml:\"tally_params\"" VotingParams voting_params = 6 [
]; (gogoproto.nullable) = false,
(gogoproto.moretags) = "yaml:\"voting_params\""
];
// params defines all the paramaters of related to tally.
TallyParams tally_params = 7 [
(gogoproto.nullable) = false,
(gogoproto.moretags) = "yaml:\"tally_params\""
];
} }

View File

@ -6,15 +6,15 @@ import "cosmos/mint/v1beta1/mint.proto";
option go_package = "github.com/cosmos/cosmos-sdk/x/mint/types"; option go_package = "github.com/cosmos/cosmos-sdk/x/mint/types";
// GenesisState - minter state // GenesisState defines the mint module's genesis state.
message GenesisState { message GenesisState {
// minter is a space for holding current inflation information.
Minter minter = 1 [ Minter minter = 1 [
(gogoproto.casttype) = "Minter",
(gogoproto.nullable) = false (gogoproto.nullable) = false
]; ];
// params defines all the paramaters of the module.
Params params = 2 [ Params params = 2 [
(gogoproto.casttype) = "Params",
(gogoproto.nullable) = false (gogoproto.nullable) = false
]; ];
} }

View File

@ -6,44 +6,54 @@ option go_package = "github.com/cosmos/cosmos-sdk/x/slashing/types";
import "gogoproto/gogo.proto"; import "gogoproto/gogo.proto";
import "cosmos/slashing/v1beta1/slashing.proto"; import "cosmos/slashing/v1beta1/slashing.proto";
// GenesisState - all slashing state that must be provided at genesis // GenesisState defines the slashing module's genesis state.
message GenesisState { message GenesisState {
// params defines all the paramaters of related to deposit.
Params params = 1 [ Params params = 1 [
(gogoproto.casttype) = "Params",
(gogoproto.nullable) = false (gogoproto.nullable) = false
]; ];
// signing_infos represents a map between validator addresses and their
// signing infos.
repeated SigningInfo signing_infos = 2 [ repeated SigningInfo signing_infos = 2 [
(gogoproto.moretags) = "yaml:\"signing_infos\"", (gogoproto.moretags) = "yaml:\"signing_infos\"",
(gogoproto.nullable) = false (gogoproto.nullable) = false
]; ];
// signing_infos represents a map between validator addresses and their
// missed blocks.
repeated ValidatorMissedBlocks missed_blocks = 3 [ repeated ValidatorMissedBlocks missed_blocks = 3 [
(gogoproto.moretags) = "yaml:\"missed_blocks\"", (gogoproto.moretags) = "yaml:\"missed_blocks\"",
(gogoproto.nullable) = false (gogoproto.nullable) = false
]; ];
} }
// SigningInfo stores validator signing info of corresponding address // SigningInfo stores validator signing info of corresponding address.
message SigningInfo { message SigningInfo {
// address is the validator address.
string address = 1; string address = 1;
// validator_signing_info represents the signing info of this validator.
ValidatorSigningInfo validator_signing_info = 2 [ ValidatorSigningInfo validator_signing_info = 2 [
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.moretags) = "yaml:\"validator_signing_info\"" (gogoproto.moretags) = "yaml:\"validator_signing_info\""
]; ];
} }
// ValidatorMissedBlocks contains array of missed blocks of corresponding address // ValidatorMissedBlocks contains array of missed blocks of corresponding address.
message ValidatorMissedBlocks { message ValidatorMissedBlocks {
// address is the validator address.
string address = 1; string address = 1;
// missed_blocks is an array of missed blocks by the validator.
repeated MissedBlock missed_blocks = 2 [ repeated MissedBlock missed_blocks = 2 [
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.moretags) = "yaml:\"missed_blocks\"" (gogoproto.moretags) = "yaml:\"missed_blocks\""
]; ];
} }
// MissedBlock contains height and missed status as boolean // MissedBlock contains height and missed status as boolean.
message MissedBlock { message MissedBlock {
// index is the height at which the block was missed.
int64 index = 1; int64 index = 1;
// missed is the missed status.
bool missed = 2; bool missed = 2;
} }

View File

@ -6,47 +6,59 @@ option go_package = "github.com/cosmos/cosmos-sdk/x/staking/types";
import "gogoproto/gogo.proto"; import "gogoproto/gogo.proto";
import "cosmos/staking/v1beta1/staking.proto"; import "cosmos/staking/v1beta1/staking.proto";
// GenesisState - all staking state that must be provided at genesis // GenesisState defines the staking module's genesis state.
message GenesisState { message GenesisState {
Params params = 1 [(gogoproto.casttype) = "Params", (gogoproto.nullable) = false]; // params defines all the paramaters of related to deposit.
Params params = 1 [
(gogoproto.nullable) = false
];
// last_total_power tracks the total amounts of bonded tokens recorded during
// the previous end block.
bytes last_total_power = 2 [ bytes last_total_power = 2 [
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
(gogoproto.moretags) = "yaml:\"last_total_power\"", (gogoproto.moretags) = "yaml:\"last_total_power\"",
(gogoproto.nullable) = false (gogoproto.nullable) = false
]; ];
// last_validator_powers is a special index that provides a historical list
// of the last-block's bonded validators.
repeated LastValidatorPower last_validator_powers = 3 [ repeated LastValidatorPower last_validator_powers = 3 [
(gogoproto.casttype) = "LastValidatorPower",
(gogoproto.moretags) = "yaml:\"last_validator_powers\"", (gogoproto.moretags) = "yaml:\"last_validator_powers\"",
(gogoproto.nullable) = false (gogoproto.nullable) = false
]; ];
// delegations defines the validator set at genesis.
repeated Validator validators = 4 [ repeated Validator validators = 4 [
(gogoproto.casttype) = "Validator",
(gogoproto.nullable) = false (gogoproto.nullable) = false
]; ];
// delegations defines the delegations active at genesis.
repeated Delegation delegations = 5 [ repeated Delegation delegations = 5 [
(gogoproto.casttype) = "Delegation",
(gogoproto.nullable) = false (gogoproto.nullable) = false
]; ];
// unbonding_delegations defines the unbonding delegations active at genesis.
repeated UnbondingDelegation unbonding_delegations = 6 [ repeated UnbondingDelegation unbonding_delegations = 6 [
(gogoproto.casttype) = "UnbondingDelegation",
(gogoproto.moretags) = "yaml:\"unbonding_delegations\"", (gogoproto.moretags) = "yaml:\"unbonding_delegations\"",
(gogoproto.nullable) = false (gogoproto.nullable) = false
]; ];
// redelegations defines the redelegations active at genesis.
repeated Redelegation redelegations = 7 [ repeated Redelegation redelegations = 7 [
(gogoproto.casttype) = "Redelegation",
(gogoproto.nullable) = false (gogoproto.nullable) = false
]; ];
bool exported = 8; bool exported = 8;
} }
// LastValidatorPower required for validator set update logic // LastValidatorPower required for validator set update logic.
message LastValidatorPower { message LastValidatorPower {
bytes address = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress"]; // address is the address of the validator.
bytes address = 1 [
(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress"
];
// power defines the power of the validator.
int64 power = 2; int64 power = 2;
} }

View File

@ -24,9 +24,11 @@ var _ = math.Inf
// proto package needs to be updated. // proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// GenesisState - all auth state that must be provided at genesis // GenesisState defines the auth module's genesis state.
type GenesisState struct { type GenesisState struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3,casttype=Params" json:"params"` // params defines all the paramaters of the module.
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
// accounts are the accounts present at genesis.
Accounts []*types.Any `protobuf:"bytes,2,rep,name=accounts,proto3" json:"accounts,omitempty"` Accounts []*types.Any `protobuf:"bytes,2,rep,name=accounts,proto3" json:"accounts,omitempty"`
} }
@ -84,24 +86,23 @@ func init() {
func init() { proto.RegisterFile("cosmos/auth/v1beta1/genesis.proto", fileDescriptor_d897ccbce9822332) } func init() { proto.RegisterFile("cosmos/auth/v1beta1/genesis.proto", fileDescriptor_d897ccbce9822332) }
var fileDescriptor_d897ccbce9822332 = []byte{ var fileDescriptor_d897ccbce9822332 = []byte{
// 259 bytes of a gzipped FileDescriptorProto // 252 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4c, 0xce, 0x2f, 0xce, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4c, 0xce, 0x2f, 0xce,
0xcd, 0x2f, 0xd6, 0x4f, 0x2c, 0x2d, 0xc9, 0xd0, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49, 0x34, 0xd4, 0xcd, 0x2f, 0xd6, 0x4f, 0x2c, 0x2d, 0xc9, 0xd0, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49, 0x34, 0xd4,
0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x86, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x86,
0x28, 0xd1, 0x03, 0x29, 0xd1, 0x83, 0x2a, 0x91, 0x92, 0x4c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, 0xc0, 0x86, 0x1b, 0x03, 0x02,
0x93, 0xd8, 0xc0, 0x86, 0x1b, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x3b, 0x4f, 0x3d, 0x94, 0x5e, 0x00, 0x00, 0xff, 0xff, 0xac, 0xe2, 0xe7, 0xb6, 0x53, 0x01, 0x00, 0x00,
0x01, 0x00, 0x00,
} }
func (m *GenesisState) Marshal() (dAtA []byte, err error) { func (m *GenesisState) Marshal() (dAtA []byte, err error) {

View File

@ -27,10 +27,14 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// GenesisState defines the bank module's genesis state. // GenesisState defines the bank module's genesis state.
type GenesisState struct { type GenesisState struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3,casttype=Params" json:"params"` // params defines all the paramaters of the module.
Balances []Balance `protobuf:"bytes,2,rep,name=balances,proto3,casttype=Balance" json:"balances"` Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
Supply github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=supply,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"supply"` // balances is an array containing the balances of all the accounts.
DenomMetadata []Metadata `protobuf:"bytes,4,rep,name=denom_metadata,json=denomMetadata,proto3,casttype=Metadata" json:"denom_metadata" yaml:"denom_metadata"` Balances []Balance `protobuf:"bytes,2,rep,name=balances,proto3" json:"balances"`
// supply represents the total supply.
Supply github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=supply,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"supply"`
// denom_metadata defines the metadata of the differents coins.
DenomMetadata []Metadata `protobuf:"bytes,4,rep,name=denom_metadata,json=denomMetadata,proto3" json:"denom_metadata" yaml:"denom_metadata"`
} }
func (m *GenesisState) Reset() { *m = GenesisState{} } func (m *GenesisState) Reset() { *m = GenesisState{} }
@ -97,8 +101,10 @@ func (m *GenesisState) GetDenomMetadata() []Metadata {
// Balance defines an account address and balance pair used in the bank module's // Balance defines an account address and balance pair used in the bank module's
// genesis state. // genesis state.
type Balance struct { type Balance struct {
// address is the address of the balance holder.
Address github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=address,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"address,omitempty"` Address github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=address,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"address,omitempty"`
Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"` // coins defines the different coins this balance holds.
Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"`
} }
func (m *Balance) Reset() { *m = Balance{} } func (m *Balance) Reset() { *m = Balance{} }
@ -142,33 +148,32 @@ func init() {
func init() { proto.RegisterFile("cosmos/bank/v1beta1/genesis.proto", fileDescriptor_8f007de11b420c6e) } func init() { proto.RegisterFile("cosmos/bank/v1beta1/genesis.proto", fileDescriptor_8f007de11b420c6e) }
var fileDescriptor_8f007de11b420c6e = []byte{ var fileDescriptor_8f007de11b420c6e = []byte{
// 415 bytes of a gzipped FileDescriptorProto // 397 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x92, 0x31, 0x6f, 0xda, 0x40, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4c, 0xce, 0x2f, 0xce,
0x14, 0x80, 0x6d, 0xa0, 0x06, 0x1d, 0x94, 0x4a, 0x6e, 0x2b, 0xb9, 0xb4, 0xb5, 0xa9, 0x27, 0x18, 0xcd, 0x2f, 0xd6, 0x4f, 0x4a, 0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 0x00,
0xcf, 0x43, 0x00, 0x00, 0x00, 0xff, 0xff, 0x71, 0xf1, 0xcb, 0x90, 0x14, 0x03, 0x00, 0x00,
} }
func (m *GenesisState) Marshal() (dAtA []byte, err error) { func (m *GenesisState) Marshal() (dAtA []byte, err error) {

View File

@ -374,7 +374,7 @@ func (m *QuerySupplyOfRequest) GetDenom() string {
// QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method. // QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method.
type QuerySupplyOfResponse struct { type QuerySupplyOfResponse struct {
// amount is the supply of the coin. // amount is the supply of the coin.
Amount github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,1,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"amount"` Amount types.Coin `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount"`
} }
func (m *QuerySupplyOfResponse) Reset() { *m = QuerySupplyOfResponse{} } func (m *QuerySupplyOfResponse) Reset() { *m = QuerySupplyOfResponse{} }
@ -410,6 +410,13 @@ func (m *QuerySupplyOfResponse) XXX_DiscardUnknown() {
var xxx_messageInfo_QuerySupplyOfResponse proto.InternalMessageInfo var xxx_messageInfo_QuerySupplyOfResponse proto.InternalMessageInfo
func (m *QuerySupplyOfResponse) GetAmount() types.Coin {
if m != nil {
return m.Amount
}
return types.Coin{}
}
func init() { func init() {
proto.RegisterType((*QueryBalanceRequest)(nil), "cosmos.bank.v1beta1.QueryBalanceRequest") proto.RegisterType((*QueryBalanceRequest)(nil), "cosmos.bank.v1beta1.QueryBalanceRequest")
proto.RegisterType((*QueryBalanceResponse)(nil), "cosmos.bank.v1beta1.QueryBalanceResponse") proto.RegisterType((*QueryBalanceResponse)(nil), "cosmos.bank.v1beta1.QueryBalanceResponse")
@ -424,41 +431,41 @@ func init() {
func init() { proto.RegisterFile("cosmos/bank/v1beta1/query.proto", fileDescriptor_9c6fc1939682df13) } func init() { proto.RegisterFile("cosmos/bank/v1beta1/query.proto", fileDescriptor_9c6fc1939682df13) }
var fileDescriptor_9c6fc1939682df13 = []byte{ var fileDescriptor_9c6fc1939682df13 = []byte{
// 544 bytes of a gzipped FileDescriptorProto // 536 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0x31, 0x72, 0xd3, 0x40, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x54, 0xb1, 0x72, 0xd3, 0x40,
0x14, 0x95, 0xc8, 0xc4, 0x0e, 0xdf, 0x54, 0x1b, 0x33, 0x38, 0x2e, 0xa4, 0x8c, 0x0a, 0xe2, 0x64, 0x10, 0x95, 0x08, 0x89, 0xc3, 0x9a, 0xea, 0x62, 0x06, 0x47, 0x85, 0x9c, 0x51, 0x01, 0x4e, 0x26,
0x62, 0x09, 0x3b, 0x27, 0xb0, 0x32, 0x03, 0x45, 0x0a, 0x40, 0x50, 0x51, 0xb1, 0x92, 0x17, 0xa1, 0x3e, 0x61, 0xa7, 0xa0, 0xb6, 0x32, 0x03, 0x45, 0x0a, 0x82, 0xa0, 0xa2, 0xe2, 0x24, 0x1f, 0x42,
0x89, 0xac, 0x55, 0xbc, 0x12, 0x13, 0x0f, 0x05, 0x57, 0xe0, 0x1c, 0x29, 0x38, 0x47, 0x0a, 0x8a, 0x13, 0x59, 0xa7, 0xf8, 0x24, 0x26, 0xae, 0xf8, 0x05, 0xbe, 0x23, 0x05, 0xdf, 0x91, 0x82, 0x22,
0x94, 0x0c, 0x85, 0x61, 0xec, 0x5b, 0x50, 0x31, 0xd2, 0xee, 0x0a, 0x39, 0x36, 0x8a, 0x9a, 0x54, 0x25, 0x55, 0x60, 0xec, 0xbf, 0xa0, 0x62, 0xa4, 0xbb, 0x13, 0x72, 0x6c, 0x14, 0x37, 0xa9, 0x2c,
0x96, 0xd7, 0xef, 0xbf, 0xff, 0xdf, 0xfb, 0x4f, 0x6b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3b, 0xd5, 0xed, 0xd7, 0x44, 0x97, 0xbb, 0x95, 0x45, 0x31, 0x7a, 0x6b, 0xa2, 0xab, 0xdd, 0x2a, 0x5b, 0xad, 0xeb, 0xb6, 0x9c, 0x8b, 0xba, 0x6e,
0x02, 0x50, 0xd5, 0x6d, 0x3d, 0x42, 0x55, 0xdd, 0x36, 0xa4, 0xca, 0x50, 0x90, 0x07, 0x3b, 0x72, 0x2b, 0xa2, 0x62, 0x69, 0xc8, 0x87, 0x6d, 0xb5, 0x14, 0x54, 0x63, 0xca, 0xad, 0x35, 0x1b, 0x07,
0x7f, 0xa8, 0xc2, 0x94, 0x5b, 0x89, 0xe8, 0x1e, 0xd5, 0x81, 0xca, 0x26, 0xf6, 0xe9, 0xf5, 0x42, 0xeb, 0x40, 0x55, 0x13, 0xe7, 0xf8, 0x6a, 0x66, 0xea, 0xd7, 0x33, 0x53, 0xff, 0x3d, 0x33, 0xf5,
0x53, 0x6f, 0x16, 0x9a, 0xfa, 0x7b, 0xa1, 0xa9, 0x5f, 0x97, 0x9a, 0x72, 0xb3, 0xd4, 0x94, 0x1f, 0x6f, 0x73, 0x53, 0xbb, 0x9e, 0x9b, 0xda, 0xcf, 0xb9, 0xa9, 0x7d, 0xd8, 0xaf, 0x0d, 0xde, 0x85,
0x4b, 0x4d, 0x79, 0x77, 0x58, 0xb9, 0xf7, 0x4b, 0xfe, 0x27, 0x90, 0xaf, 0xdf, 0x6d, 0xe4, 0xd7, 0xf8, 0xb2, 0x17, 0xf9, 0xf3, 0xb6, 0x8a, 0x6f, 0xeb, 0xd1, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff,
0xf0, 0xc9, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x74, 0xd8, 0x3c, 0x1b, 0x20, 0x06, 0x00, 0x00, 0x68, 0x7f, 0xc7, 0xdd, 0xf5, 0x05, 0x00, 0x00,
} }
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
@ -931,11 +938,11 @@ func (m *QuerySupplyOfResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
var l int var l int
_ = l _ = l
{ {
size := m.Amount.Size() size, err := m.Amount.MarshalToSizedBuffer(dAtA[:i])
i -= size if err != nil {
if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil {
return 0, err return 0, err
} }
i -= size
i = encodeVarintQuery(dAtA, i, uint64(size)) i = encodeVarintQuery(dAtA, i, uint64(size))
} }
i-- i--

View File

@ -13,8 +13,8 @@ func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState)
// set owners for each index and initialize capability // set owners for each index and initialize capability
for _, genOwner := range genState.Owners { for _, genOwner := range genState.Owners {
k.SetOwners(ctx, genOwner.Index, genOwner.Owners) k.SetOwners(ctx, genOwner.Index, genOwner.IndexOwners)
k.InitializeCapability(ctx, genOwner.Index, genOwner.Owners) k.InitializeCapability(ctx, genOwner.Index, genOwner.IndexOwners)
} }
} }
@ -30,8 +30,8 @@ func ExportGenesis(ctx sdk.Context, k keeper.Keeper) *types.GenesisState {
} }
genOwner := types.GenesisOwners{ genOwner := types.GenesisOwners{
Index: i, Index: i,
Owners: capabilityOwners, IndexOwners: capabilityOwners,
} }
owners = append(owners, genOwner) owners = append(owners, genOwner)
} }

View File

@ -25,7 +25,7 @@ func (gs GenesisState) Validate() error {
} }
for _, genOwner := range gs.Owners { for _, genOwner := range gs.Owners {
if len(genOwner.Owners.Owners) == 0 { if len(genOwner.IndexOwners.Owners) == 0 {
return fmt.Errorf("empty owners in genesis") return fmt.Errorf("empty owners in genesis")
} }
@ -34,7 +34,7 @@ func (gs GenesisState) Validate() error {
return fmt.Errorf("owners exist for index %d outside of valid range: %d-%d", genOwner.Index, 1, gs.Index-1) return fmt.Errorf("owners exist for index %d outside of valid range: %d-%d", genOwner.Index, 1, gs.Index-1)
} }
for _, owner := range genOwner.Owners.Owners { for _, owner := range genOwner.IndexOwners.Owners {
if strings.TrimSpace(owner.Module) == "" { if strings.TrimSpace(owner.Module) == "" {
return fmt.Errorf("owner's module cannot be blank: %s", owner) return fmt.Errorf("owner's module cannot be blank: %s", owner)
} }

View File

@ -25,8 +25,10 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// GenesisOwners defines the capability owners with their corresponding index. // GenesisOwners defines the capability owners with their corresponding index.
type GenesisOwners struct { type GenesisOwners struct {
Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` // index is the index of the capability owner.
Owners CapabilityOwners `protobuf:"bytes,2,opt,name=owners,proto3" json:"index_owners" yaml:"index_owners"` Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
// index_owners are the owners at the given index.
IndexOwners CapabilityOwners `protobuf:"bytes,2,opt,name=index_owners,json=indexOwners,proto3" json:"index_owners" yaml:"index_owners"`
} }
func (m *GenesisOwners) Reset() { *m = GenesisOwners{} } func (m *GenesisOwners) Reset() { *m = GenesisOwners{} }
@ -69,19 +71,19 @@ func (m *GenesisOwners) GetIndex() uint64 {
return 0 return 0
} }
func (m *GenesisOwners) GetOwners() CapabilityOwners { func (m *GenesisOwners) GetIndexOwners() CapabilityOwners {
if m != nil { if m != nil {
return m.Owners return m.IndexOwners
} }
return CapabilityOwners{} return CapabilityOwners{}
} }
// GenesisState represents the Capability module genesis state // GenesisState defines the capability module's genesis state.
type GenesisState struct { type GenesisState struct {
// capability global index // index is the capability global index.
Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
// map from index to owners of the capability index // owners represents a map from index to owners of the capability index
// index key is string to allow amino marshalling // index key is string to allow amino marshalling.
Owners []GenesisOwners `protobuf:"bytes,2,rep,name=owners,proto3" json:"owners"` Owners []GenesisOwners `protobuf:"bytes,2,rep,name=owners,proto3" json:"owners"`
} }
@ -142,25 +144,25 @@ func init() {
} }
var fileDescriptor_94922dd16a11c23e = []byte{ var fileDescriptor_94922dd16a11c23e = []byte{
// 282 bytes of a gzipped FileDescriptorProto // 281 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4f, 0xce, 0x2f, 0xce, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4f, 0xce, 0x2f, 0xce,
0xcd, 0x2f, 0xd6, 0x4f, 0x4e, 0x2c, 0x48, 0x4c, 0xca, 0xcc, 0xc9, 0x2c, 0xa9, 0xd4, 0x2f, 0x33, 0xcd, 0x2f, 0xd6, 0x4f, 0x4e, 0x2c, 0x48, 0x4c, 0xca, 0xcc, 0xc9, 0x2c, 0xa9, 0xd4, 0x2f, 0x33,
0x4c, 0x4a, 0x2d, 0x49, 0x34, 0xd4, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0x4c, 0x4a, 0x2d, 0x49, 0x34, 0xd4, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28,
0xca, 0x2f, 0xc9, 0x17, 0x92, 0x84, 0x28, 0xd4, 0x43, 0x28, 0xd4, 0x83, 0x2a, 0x94, 0x12, 0x49, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x84, 0x28, 0xd4, 0x43, 0x28, 0xd4, 0x83, 0x2a, 0x94, 0x12, 0x49,
0xcf, 0x4f, 0xcf, 0x07, 0xab, 0xd2, 0x07, 0xb1, 0x20, 0x1a, 0xa4, 0xb4, 0x70, 0x9b, 0x8c, 0x64, 0xcf, 0x4f, 0xcf, 0x07, 0xab, 0xd2, 0x07, 0xb1, 0x20, 0x1a, 0xa4, 0xb4, 0x70, 0x9b, 0x8c, 0x64,
0x06, 0x58, 0xad, 0xd2, 0x74, 0x46, 0x2e, 0x5e, 0x77, 0x88, 0x75, 0xfe, 0xe5, 0x79, 0xa9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0x44, 0x83, 0x9f, 0x99, 0xe1, 0x01, 0x00, 0x00, 0xff, 0xfd, 0xf4, 0xf2, 0x5d, 0xdc, 0x01, 0x00, 0x00,
} }
func (m *GenesisOwners) Marshal() (dAtA []byte, err error) { func (m *GenesisOwners) Marshal() (dAtA []byte, err error) {
@ -184,7 +186,7 @@ func (m *GenesisOwners) MarshalToSizedBuffer(dAtA []byte) (int, error) {
var l int var l int
_ = l _ = l
{ {
size, err := m.Owners.MarshalToSizedBuffer(dAtA[:i]) size, err := m.IndexOwners.MarshalToSizedBuffer(dAtA[:i])
if err != nil { if err != nil {
return 0, err return 0, err
} }
@ -263,7 +265,7 @@ func (m *GenesisOwners) Size() (n int) {
if m.Index != 0 { if m.Index != 0 {
n += 1 + sovGenesis(uint64(m.Index)) n += 1 + sovGenesis(uint64(m.Index))
} }
l = m.Owners.Size() l = m.IndexOwners.Size()
n += 1 + l + sovGenesis(uint64(l)) n += 1 + l + sovGenesis(uint64(l))
return n return n
} }
@ -342,7 +344,7 @@ func (m *GenesisOwners) Unmarshal(dAtA []byte) error {
} }
case 2: case 2:
if wireType != 2 { if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Owners", wireType) return fmt.Errorf("proto: wrong wireType = %d for field IndexOwners", wireType)
} }
var msglen int var msglen int
for shift := uint(0); ; shift += 7 { for shift := uint(0); ; shift += 7 {
@ -369,7 +371,7 @@ func (m *GenesisOwners) Unmarshal(dAtA []byte) error {
if postIndex > l { if postIndex > l {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
if err := m.Owners.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { if err := m.IndexOwners.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err return err
} }
iNdEx = postIndex iNdEx = postIndex

View File

@ -22,8 +22,8 @@ func TestValidateGenesis(t *testing.T) {
malleate: func(genState *GenesisState) { malleate: func(genState *GenesisState) {
genState.Index = 10 genState.Index = 10
genOwner := GenesisOwners{ genOwner := GenesisOwners{
Index: 1, Index: 1,
Owners: CapabilityOwners{[]Owner{{Module: "ibc", Name: "port/transfer"}}}, IndexOwners: CapabilityOwners{[]Owner{{Module: "ibc", Name: "port/transfer"}}},
} }
genState.Owners = append(genState.Owners, genOwner) genState.Owners = append(genState.Owners, genOwner)
@ -35,8 +35,8 @@ func TestValidateGenesis(t *testing.T) {
malleate: func(genState *GenesisState) { malleate: func(genState *GenesisState) {
genState.Index = 0 genState.Index = 0
genOwner := GenesisOwners{ genOwner := GenesisOwners{
Index: 0, Index: 0,
Owners: CapabilityOwners{[]Owner{{Module: "ibc", Name: "port/transfer"}}}, IndexOwners: CapabilityOwners{[]Owner{{Module: "ibc", Name: "port/transfer"}}},
} }
genState.Owners = append(genState.Owners, genOwner) genState.Owners = append(genState.Owners, genOwner)
@ -50,8 +50,8 @@ func TestValidateGenesis(t *testing.T) {
malleate: func(genState *GenesisState) { malleate: func(genState *GenesisState) {
genState.Index = 1 genState.Index = 1
genOwner := GenesisOwners{ genOwner := GenesisOwners{
Index: 1, Index: 1,
Owners: CapabilityOwners{[]Owner{{Module: "", Name: "port/transfer"}}}, IndexOwners: CapabilityOwners{[]Owner{{Module: "", Name: "port/transfer"}}},
} }
genState.Owners = append(genState.Owners, genOwner) genState.Owners = append(genState.Owners, genOwner)
@ -64,8 +64,8 @@ func TestValidateGenesis(t *testing.T) {
malleate: func(genState *GenesisState) { malleate: func(genState *GenesisState) {
genState.Index = 1 genState.Index = 1
genOwner := GenesisOwners{ genOwner := GenesisOwners{
Index: 1, Index: 1,
Owners: CapabilityOwners{[]Owner{{Module: "ibc", Name: ""}}}, IndexOwners: CapabilityOwners{[]Owner{{Module: "ibc", Name: ""}}},
} }
genState.Owners = append(genState.Owners, genOwner) genState.Owners = append(genState.Owners, genOwner)
@ -78,8 +78,8 @@ func TestValidateGenesis(t *testing.T) {
malleate: func(genState *GenesisState) { malleate: func(genState *GenesisState) {
genState.Index = 10 genState.Index = 10
genOwner := GenesisOwners{ genOwner := GenesisOwners{
Index: 12, Index: 12,
Owners: CapabilityOwners{[]Owner{{Module: "ibc", Name: "port/transfer"}}}, IndexOwners: CapabilityOwners{[]Owner{{Module: "ibc", Name: "port/transfer"}}},
} }
genState.Owners = append(genState.Owners, genOwner) genState.Owners = append(genState.Owners, genOwner)
@ -92,8 +92,8 @@ func TestValidateGenesis(t *testing.T) {
malleate: func(genState *GenesisState) { malleate: func(genState *GenesisState) {
genState.Index = 10 genState.Index = 10
genOwner := GenesisOwners{ genOwner := GenesisOwners{
Index: 0, Index: 0,
Owners: CapabilityOwners{[]Owner{{Module: "ibc", Name: "port/transfer"}}}, IndexOwners: CapabilityOwners{[]Owner{{Module: "ibc", Name: "port/transfer"}}},
} }
genState.Owners = append(genState.Owners, genOwner) genState.Owners = append(genState.Owners, genOwner)
@ -106,8 +106,8 @@ func TestValidateGenesis(t *testing.T) {
malleate: func(genState *GenesisState) { malleate: func(genState *GenesisState) {
genState.Index = 10 genState.Index = 10
genOwner := GenesisOwners{ genOwner := GenesisOwners{
Index: 0, Index: 0,
Owners: CapabilityOwners{[]Owner{}}, IndexOwners: CapabilityOwners{[]Owner{}},
} }
genState.Owners = append(genState.Owners, genOwner) genState.Owners = append(genState.Owners, genOwner)

View File

@ -5,8 +5,7 @@ package types
import ( import (
fmt "fmt" fmt "fmt"
_ "github.com/cosmos/cosmos-sdk/types" types "github.com/cosmos/cosmos-sdk/types"
github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types"
_ "github.com/gogo/protobuf/gogoproto" _ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto" proto "github.com/gogo/protobuf/proto"
io "io" io "io"
@ -25,9 +24,11 @@ var _ = math.Inf
// proto package needs to be updated. // proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// GenesisState - genesis state of x/crisis // GenesisState defines the crisis module's genesis state.
type GenesisState struct { type GenesisState struct {
ConstantFee github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,3,opt,name=constant_fee,json=constantFee,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"constant_fee" yaml:"constant_fee"` // constant_fee is the fee used to verify the invariant in the crisis
// module.
ConstantFee types.Coin `protobuf:"bytes,3,opt,name=constant_fee,json=constantFee,proto3" json:"constant_fee" yaml:"constant_fee"`
} }
func (m *GenesisState) Reset() { *m = GenesisState{} } func (m *GenesisState) Reset() { *m = GenesisState{} }
@ -63,6 +64,13 @@ func (m *GenesisState) XXX_DiscardUnknown() {
var xxx_messageInfo_GenesisState proto.InternalMessageInfo var xxx_messageInfo_GenesisState proto.InternalMessageInfo
func (m *GenesisState) GetConstantFee() types.Coin {
if m != nil {
return m.ConstantFee
}
return types.Coin{}
}
func init() { func init() {
proto.RegisterType((*GenesisState)(nil), "cosmos.crisis.v1beta1.GenesisState") proto.RegisterType((*GenesisState)(nil), "cosmos.crisis.v1beta1.GenesisState")
} }
@ -72,23 +80,22 @@ func init() {
} }
var fileDescriptor_7a9c2781aa8a27ae = []byte{ var fileDescriptor_7a9c2781aa8a27ae = []byte{
// 251 bytes of a gzipped FileDescriptorProto // 238 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4e, 0xce, 0x2f, 0xce, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4e, 0xce, 0x2f, 0xce,
0xcd, 0x2f, 0xd6, 0x4f, 0x2e, 0xca, 0x2c, 0xce, 0x2c, 0xd6, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49, 0xcd, 0x2f, 0xd6, 0x4f, 0x2e, 0xca, 0x2c, 0xce, 0x2c, 0xd6, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49,
0x34, 0xd4, 0x4f, 0x4f, 0xcd, 0x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x25, 0x95, 0x05, 0xa9, 0xc5, 0x49, 0x6c, 0x60, 0x87, 0x1b,
0x78, 0xad, 0xa9, 0x80, 0x85, 0x1d, 0xd8, 0xbe, 0x24, 0x36, 0xb0, 0x2f, 0x8d, 0x01, 0x01, 0x00, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x2f, 0x43, 0x06, 0xff, 0x2c, 0x01, 0x00, 0x00,
0x00, 0xff, 0xff, 0x08, 0x1c, 0xb6, 0x7f, 0x59, 0x01, 0x00, 0x00,
} }
func (m *GenesisState) Marshal() (dAtA []byte, err error) { func (m *GenesisState) Marshal() (dAtA []byte, err error) {
@ -112,11 +119,11 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) {
var l int var l int
_ = l _ = l
{ {
size := m.ConstantFee.Size() size, err := m.ConstantFee.MarshalToSizedBuffer(dAtA[:i])
i -= size if err != nil {
if _, err := m.ConstantFee.MarshalTo(dAtA[i:]); err != nil {
return 0, err return 0, err
} }
i -= size
i = encodeVarintGenesis(dAtA, i, uint64(size)) i = encodeVarintGenesis(dAtA, i, uint64(size))
} }
i-- i--

View File

@ -26,12 +26,13 @@ var _ = math.Inf
// proto package needs to be updated. // proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// DelegatorWithdrawInfo // DelegatorWithdrawInfo is the address for where distributions rewards are withdrawn to by default
// the address for where distributions rewards are withdrawn to by default // this struct is only used at genesis to feed in default withdraw addresses.
// this struct is only used at genesis to feed in default withdraw addresses
type DelegatorWithdrawInfo struct { type DelegatorWithdrawInfo struct {
// delegator_address is the address of the delegator.
DelegatorAddress github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"delegator_address,omitempty" yaml:"delegator_address"` DelegatorAddress github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"delegator_address,omitempty" yaml:"delegator_address"`
WithdrawAddress github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,2,opt,name=withdraw_address,json=withdrawAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"withdraw_address,omitempty" yaml:"withdraw_address"` // withdraw_address is the address to withdraw the delegation rewards to.
WithdrawAddress github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,2,opt,name=withdraw_address,json=withdrawAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"withdraw_address,omitempty" yaml:"withdraw_address"`
} }
func (m *DelegatorWithdrawInfo) Reset() { *m = DelegatorWithdrawInfo{} } func (m *DelegatorWithdrawInfo) Reset() { *m = DelegatorWithdrawInfo{} }
@ -81,11 +82,12 @@ func (m *DelegatorWithdrawInfo) GetWithdrawAddress() github_com_cosmos_cosmos_sd
return nil return nil
} }
// ValidatorOutstandingRewardsRecord // ValidatorOutstandingRewardsRecord is used for import/export via genesis json.
// used for import/export via genesis json
type ValidatorOutstandingRewardsRecord struct { type ValidatorOutstandingRewardsRecord struct {
ValidatorAddress github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_address,omitempty" yaml:"validator_address"` // validator_address is the address of the validator.
OutstandingRewards github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,2,rep,name=outstanding_rewards,json=outstandingRewards,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"outstanding_rewards" yaml:"outstanding_rewards"` ValidatorAddress github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_address,omitempty" yaml:"validator_address"`
// outstanding_rewards represents the oustanding rewards of a validator.
OutstandingRewards github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,2,rep,name=outstanding_rewards,json=outstandingRewards,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"outstanding_rewards" yaml:"outstanding_rewards"`
} }
func (m *ValidatorOutstandingRewardsRecord) Reset() { *m = ValidatorOutstandingRewardsRecord{} } func (m *ValidatorOutstandingRewardsRecord) Reset() { *m = ValidatorOutstandingRewardsRecord{} }
@ -135,11 +137,11 @@ func (m *ValidatorOutstandingRewardsRecord) GetOutstandingRewards() github_com_c
return nil return nil
} }
// ValidatorAccumulatedCommissionRecord // ValidatorAccumulatedCommissionRecord is used for import / export via genesis json.
// used for import / export via genesis json
type ValidatorAccumulatedCommissionRecord struct { type ValidatorAccumulatedCommissionRecord struct {
// validator_address is the address of the validator.
ValidatorAddress github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_address,omitempty" yaml:"validator_address"` ValidatorAddress github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_address,omitempty" yaml:"validator_address"`
Accumulated ValidatorAccumulatedCommission `protobuf:"bytes,2,opt,name=accumulated,proto3,casttype=ValidatorAccumulatedCommission" json:"accumulated" yaml:"accumulated"` Accumulated ValidatorAccumulatedCommission `protobuf:"bytes,2,opt,name=accumulated,proto3" json:"accumulated" yaml:"accumulated"`
} }
func (m *ValidatorAccumulatedCommissionRecord) Reset() { *m = ValidatorAccumulatedCommissionRecord{} } func (m *ValidatorAccumulatedCommissionRecord) Reset() { *m = ValidatorAccumulatedCommissionRecord{} }
@ -189,12 +191,14 @@ func (m *ValidatorAccumulatedCommissionRecord) GetAccumulated() ValidatorAccumul
return ValidatorAccumulatedCommission{} return ValidatorAccumulatedCommission{}
} }
// ValidatorHistoricalRewardsRecord // ValidatorHistoricalRewardsRecord is used for import / export via genesis json.
// used for import / export via genesis json
type ValidatorHistoricalRewardsRecord struct { type ValidatorHistoricalRewardsRecord struct {
// validator_address is the address of the validator.
ValidatorAddress github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_address,omitempty" yaml:"validator_address"` ValidatorAddress github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_address,omitempty" yaml:"validator_address"`
Period uint64 `protobuf:"varint,2,opt,name=period,proto3" json:"period,omitempty"` // period defines the period the historical rewards apply to.
Rewards ValidatorHistoricalRewards `protobuf:"bytes,3,opt,name=rewards,proto3,casttype=ValidatorHistoricalRewards" json:"rewards" yaml:"rewards"` Period uint64 `protobuf:"varint,2,opt,name=period,proto3" json:"period,omitempty"`
// rewards defines the historical rewards of a validator.
Rewards ValidatorHistoricalRewards `protobuf:"bytes,3,opt,name=rewards,proto3" json:"rewards" yaml:"rewards"`
} }
func (m *ValidatorHistoricalRewardsRecord) Reset() { *m = ValidatorHistoricalRewardsRecord{} } func (m *ValidatorHistoricalRewardsRecord) Reset() { *m = ValidatorHistoricalRewardsRecord{} }
@ -251,11 +255,12 @@ func (m *ValidatorHistoricalRewardsRecord) GetRewards() ValidatorHistoricalRewar
return ValidatorHistoricalRewards{} return ValidatorHistoricalRewards{}
} }
// ValidatorCurrentRewardsRecord // ValidatorCurrentRewardsRecord is used for import / export via genesis json.
// used for import / export via genesis json
type ValidatorCurrentRewardsRecord struct { type ValidatorCurrentRewardsRecord struct {
// validator_address is the address of the validator.
ValidatorAddress github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_address,omitempty" yaml:"validator_address"` ValidatorAddress github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_address,omitempty" yaml:"validator_address"`
Rewards ValidatorCurrentRewards `protobuf:"bytes,2,opt,name=rewards,proto3,casttype=ValidatorCurrentRewards" json:"rewards" yaml:"rewards"` // rewards defines the current rewards of a validator.
Rewards ValidatorCurrentRewards `protobuf:"bytes,2,opt,name=rewards,proto3" json:"rewards" yaml:"rewards"`
} }
func (m *ValidatorCurrentRewardsRecord) Reset() { *m = ValidatorCurrentRewardsRecord{} } func (m *ValidatorCurrentRewardsRecord) Reset() { *m = ValidatorCurrentRewardsRecord{} }
@ -305,12 +310,14 @@ func (m *ValidatorCurrentRewardsRecord) GetRewards() ValidatorCurrentRewards {
return ValidatorCurrentRewards{} return ValidatorCurrentRewards{}
} }
// DelegatorStartingInfoRecord // DelegatorStartingInfoRecord used for import / export via genesis json.
// used for import / export via genesis json
type DelegatorStartingInfoRecord struct { type DelegatorStartingInfoRecord struct {
// delegator_address is the address of the delegator.
DelegatorAddress github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"delegator_address,omitempty" yaml:"delegator_address"` DelegatorAddress github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"delegator_address,omitempty" yaml:"delegator_address"`
// validator_address is the address of the validator.
ValidatorAddress github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_address,omitempty" yaml:"validator_address"` ValidatorAddress github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_address,omitempty" yaml:"validator_address"`
StartingInfo DelegatorStartingInfo `protobuf:"bytes,3,opt,name=starting_info,json=startingInfo,proto3,casttype=DelegatorStartingInfo" json:"starting_info" yaml:"starting_info"` // starting_info defines the starting info of a delegator.
StartingInfo DelegatorStartingInfo `protobuf:"bytes,3,opt,name=starting_info,json=startingInfo,proto3" json:"starting_info" yaml:"starting_info"`
} }
func (m *DelegatorStartingInfoRecord) Reset() { *m = DelegatorStartingInfoRecord{} } func (m *DelegatorStartingInfoRecord) Reset() { *m = DelegatorStartingInfoRecord{} }
@ -367,13 +374,16 @@ func (m *DelegatorStartingInfoRecord) GetStartingInfo() DelegatorStartingInfo {
return DelegatorStartingInfo{} return DelegatorStartingInfo{}
} }
// ValidatorSlashEventRecord // ValidatorSlashEventRecord is used for import / export via genesis json.
// used for import / export via genesis json
type ValidatorSlashEventRecord struct { type ValidatorSlashEventRecord struct {
// validator_address is the address of the validator.
ValidatorAddress github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_address,omitempty" yaml:"validator_address"` ValidatorAddress github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_address,omitempty" yaml:"validator_address"`
Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` // height defines the block height at which the slash event occured.
Period uint64 `protobuf:"varint,3,opt,name=period,proto3" json:"period,omitempty"` Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
Event ValidatorSlashEvent `protobuf:"bytes,4,opt,name=event,proto3,casttype=ValidatorSlashEvent" json:"event" yaml:"event"` // period is the period of the slash event.
Period uint64 `protobuf:"varint,3,opt,name=period,proto3" json:"period,omitempty"`
// event describes the slash event.
Event ValidatorSlashEvent `protobuf:"bytes,4,opt,name=event,proto3" json:"event" yaml:"event"`
} }
func (m *ValidatorSlashEventRecord) Reset() { *m = ValidatorSlashEventRecord{} } func (m *ValidatorSlashEventRecord) Reset() { *m = ValidatorSlashEventRecord{} }
@ -437,18 +447,28 @@ func (m *ValidatorSlashEventRecord) GetEvent() ValidatorSlashEvent {
return ValidatorSlashEvent{} return ValidatorSlashEvent{}
} }
// GenesisState - all distribution state that must be provided at genesis // GenesisState defines the distribution module's genesis state.
type GenesisState struct { type GenesisState struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3,casttype=Params" json:"params" yaml:"params"` // params defines all the paramaters of the module.
FeePool FeePool `protobuf:"bytes,2,opt,name=fee_pool,json=feePool,proto3,casttype=FeePool" json:"fee_pool" yaml:"fee_pool"` Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params" yaml:"params"`
DelegatorWithdrawInfos []DelegatorWithdrawInfo `protobuf:"bytes,3,rep,name=delegator_withdraw_infos,json=delegatorWithdrawInfos,proto3,casttype=DelegatorWithdrawInfo" json:"delegator_withdraw_infos" yaml:"delegator_withdraw_infos"` // fee_pool defines the fee pool at genesis.
PreviousProposer github_com_cosmos_cosmos_sdk_types.ConsAddress `protobuf:"bytes,4,opt,name=previous_proposer,json=previousProposer,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ConsAddress" json:"previous_proposer,omitempty" yaml:"previous_proposer"` FeePool FeePool `protobuf:"bytes,2,opt,name=fee_pool,json=feePool,proto3" json:"fee_pool" yaml:"fee_pool"`
OutstandingRewards []ValidatorOutstandingRewardsRecord `protobuf:"bytes,5,rep,name=outstanding_rewards,json=outstandingRewards,proto3,casttype=ValidatorOutstandingRewardsRecord" json:"outstanding_rewards" yaml:"outstanding_rewards"` // fee_pool defines the delegator withdraw infos at genesis.
ValidatorAccumulatedCommissions []ValidatorAccumulatedCommissionRecord `protobuf:"bytes,6,rep,name=validator_accumulated_commissions,json=validatorAccumulatedCommissions,proto3,casttype=ValidatorAccumulatedCommissionRecord" json:"validator_accumulated_commissions" yaml:"validator_accumulated_commissions"` DelegatorWithdrawInfos []DelegatorWithdrawInfo `protobuf:"bytes,3,rep,name=delegator_withdraw_infos,json=delegatorWithdrawInfos,proto3" json:"delegator_withdraw_infos" yaml:"delegator_withdraw_infos"`
ValidatorHistoricalRewards []ValidatorHistoricalRewardsRecord `protobuf:"bytes,7,rep,name=validator_historical_rewards,json=validatorHistoricalRewards,proto3,casttype=ValidatorHistoricalRewardsRecord" json:"validator_historical_rewards" yaml:"validator_historical_rewards"` // fee_pool defines the previous proposer at genesis.
ValidatorCurrentRewards []ValidatorCurrentRewardsRecord `protobuf:"bytes,8,rep,name=validator_current_rewards,json=validatorCurrentRewards,proto3,casttype=ValidatorCurrentRewardsRecord" json:"validator_current_rewards" yaml:"validator_current_rewards"` PreviousProposer github_com_cosmos_cosmos_sdk_types.ConsAddress `protobuf:"bytes,4,opt,name=previous_proposer,json=previousProposer,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ConsAddress" json:"previous_proposer,omitempty" yaml:"previous_proposer"`
DelegatorStartingInfos []DelegatorStartingInfoRecord `protobuf:"bytes,9,rep,name=delegator_starting_infos,json=delegatorStartingInfos,proto3,casttype=DelegatorStartingInfoRecord" json:"delegator_starting_infos" yaml:"delegator_starting_infos"` // fee_pool defines the outstanding rewards of all validators at genesis.
ValidatorSlashEvents []ValidatorSlashEventRecord `protobuf:"bytes,10,rep,name=validator_slash_events,json=validatorSlashEvents,proto3,casttype=ValidatorSlashEventRecord" json:"validator_slash_events" yaml:"validator_slash_events"` OutstandingRewards []ValidatorOutstandingRewardsRecord `protobuf:"bytes,5,rep,name=outstanding_rewards,json=outstandingRewards,proto3" json:"outstanding_rewards" yaml:"outstanding_rewards"`
// fee_pool defines the accumulated commisions of all validators at genesis.
ValidatorAccumulatedCommissions []ValidatorAccumulatedCommissionRecord `protobuf:"bytes,6,rep,name=validator_accumulated_commissions,json=validatorAccumulatedCommissions,proto3" json:"validator_accumulated_commissions" yaml:"validator_accumulated_commissions"`
// fee_pool defines the historical rewards of all validators at genesis.
ValidatorHistoricalRewards []ValidatorHistoricalRewardsRecord `protobuf:"bytes,7,rep,name=validator_historical_rewards,json=validatorHistoricalRewards,proto3" json:"validator_historical_rewards" yaml:"validator_historical_rewards"`
// fee_pool defines the current rewards of all validators at genesis.
ValidatorCurrentRewards []ValidatorCurrentRewardsRecord `protobuf:"bytes,8,rep,name=validator_current_rewards,json=validatorCurrentRewards,proto3" json:"validator_current_rewards" yaml:"validator_current_rewards"`
// fee_pool defines the delegator starting infos at genesis.
DelegatorStartingInfos []DelegatorStartingInfoRecord `protobuf:"bytes,9,rep,name=delegator_starting_infos,json=delegatorStartingInfos,proto3" json:"delegator_starting_infos" yaml:"delegator_starting_infos"`
// fee_pool defines the validator slash events at genesis.
ValidatorSlashEvents []ValidatorSlashEventRecord `protobuf:"bytes,10,rep,name=validator_slash_events,json=validatorSlashEvents,proto3" json:"validator_slash_events" yaml:"validator_slash_events"`
} }
func (m *GenesisState) Reset() { *m = GenesisState{} } func (m *GenesisState) Reset() { *m = GenesisState{} }
@ -570,77 +590,73 @@ func init() {
} }
var fileDescriptor_76eed0f9489db580 = []byte{ var fileDescriptor_76eed0f9489db580 = []byte{
// 1113 bytes of a gzipped FileDescriptorProto // 1044 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x57, 0x4b, 0x6c, 0x1b, 0x45, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x57, 0xcf, 0x6f, 0x1b, 0x45,
0x18, 0xce, 0xda, 0xad, 0x53, 0x26, 0x0e, 0x6d, 0xb7, 0x69, 0xe2, 0xba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, 0x00, 0xff, 0xff, 0x59, 0x32, 0x1e, 0xb6,
0xe7, 0x93, 0x18, 0x9c, 0xf6, 0xf8, 0xc1, 0xed, 0xcc, 0xf5, 0x86, 0x1f, 0x51, 0x7b, 0xfd, 0xdb, 0x0e, 0x0f, 0x00, 0x00,
0xdd, 0x8a, 0xf6, 0x78, 0xb7, 0xa2, 0xed, 0xec, 0x56, 0xb4, 0xbf, 0x76, 0x2b, 0xda, 0x17, 0x7b,
0x95, 0xa9, 0x9d, 0xbd, 0xca, 0xd4, 0x1f, 0x7b, 0x95, 0xa9, 0xf7, 0x96, 0x33, 0x7b, 0xe1, 0x87,
0xe9, 0xff, 0xfd, 0xa2, 0x35, 0xd6, 0x0b, 0xe2, 0x9f, 0xfe, 0x33, 0xff, 0x04, 0x00, 0x00, 0xff,
0xff, 0xcd, 0xd9, 0xe6, 0xed, 0x99, 0x10, 0x00, 0x00,
} }
func (this *DelegatorWithdrawInfo) Equal(that interface{}) bool { func (this *DelegatorWithdrawInfo) Equal(that interface{}) bool {

View File

@ -25,6 +25,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// GenesisState defines the evidence module's genesis state. // GenesisState defines the evidence module's genesis state.
type GenesisState struct { type GenesisState struct {
// evidence defines all the evidences at genesis.
Evidence []*types.Any `protobuf:"bytes,1,rep,name=evidence,proto3" json:"evidence,omitempty"` Evidence []*types.Any `protobuf:"bytes,1,rep,name=evidence,proto3" json:"evidence,omitempty"`
} }

View File

@ -24,8 +24,9 @@ var _ = math.Inf
// proto package needs to be updated. // proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// GenesisState defines the raw genesis transaction in JSON // GenesisState defines the raw genesis transaction in JSON.
type GenesisState struct { type GenesisState struct {
// gen_txs defines the genesis transactions.
GenTxs []encoding_json.RawMessage `protobuf:"bytes,1,rep,name=gen_txs,json=genTxs,proto3,casttype=encoding/json.RawMessage" json:"gentxs" yaml:"gentxs"` GenTxs []encoding_json.RawMessage `protobuf:"bytes,1,rep,name=gen_txs,json=genTxs,proto3,casttype=encoding/json.RawMessage" json:"gentxs" yaml:"gentxs"`
} }

View File

@ -23,15 +23,22 @@ var _ = math.Inf
// proto package needs to be updated. // proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// GenesisState - all staking state that must be provided at genesis // GenesisState defines the gov module's genesis state.
type GenesisState struct { type GenesisState struct {
StartingProposalID uint64 `protobuf:"varint,1,opt,name=starting_proposal_id,json=startingProposalId,proto3" json:"starting_proposal_id,omitempty" yaml:"starting_proposal_id"` // starting_proposal_id is the ID of the starting proposal.
Deposits Deposits `protobuf:"bytes,2,rep,name=deposits,proto3,castrepeated=Deposits" json:"deposits"` StartingProposalID uint64 `protobuf:"varint,1,opt,name=starting_proposal_id,json=startingProposalId,proto3" json:"starting_proposal_id,omitempty" yaml:"starting_proposal_id"`
Votes Votes `protobuf:"bytes,3,rep,name=votes,proto3,castrepeated=Votes" json:"votes"` // deposits defines all the deposits present at genesis.
Proposals Proposals `protobuf:"bytes,4,rep,name=proposals,proto3,castrepeated=Proposals" json:"proposals"` Deposits Deposits `protobuf:"bytes,2,rep,name=deposits,proto3,castrepeated=Deposits" json:"deposits"`
DepositParams DepositParams `protobuf:"bytes,5,opt,name=deposit_params,json=depositParams,proto3" json:"deposit_params" yaml:"deposit_params"` // votes defines all the votes present at genesis.
VotingParams VotingParams `protobuf:"bytes,6,opt,name=voting_params,json=votingParams,proto3" json:"voting_params" yaml:"voting_params"` Votes Votes `protobuf:"bytes,3,rep,name=votes,proto3,castrepeated=Votes" json:"votes"`
TallyParams TallyParams `protobuf:"bytes,7,opt,name=tally_params,json=tallyParams,proto3" json:"tally_params" yaml:"tally_params"` // proposals defines all the proposals present at genesis.
Proposals Proposals `protobuf:"bytes,4,rep,name=proposals,proto3,castrepeated=Proposals" json:"proposals"`
// params defines all the paramaters of related to deposit.
DepositParams DepositParams `protobuf:"bytes,5,opt,name=deposit_params,json=depositParams,proto3" json:"deposit_params" yaml:"deposit_params"`
// params defines all the paramaters of related to voting.
VotingParams VotingParams `protobuf:"bytes,6,opt,name=voting_params,json=votingParams,proto3" json:"voting_params" yaml:"voting_params"`
// params defines all the paramaters of related to tally.
TallyParams TallyParams `protobuf:"bytes,7,opt,name=tally_params,json=tallyParams,proto3" json:"tally_params" yaml:"tally_params"`
} }
func (m *GenesisState) Reset() { *m = GenesisState{} } func (m *GenesisState) Reset() { *m = GenesisState{} }

View File

@ -23,10 +23,12 @@ var _ = math.Inf
// proto package needs to be updated. // proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// GenesisState - minter state // GenesisState defines the mint module's genesis state.
type GenesisState struct { type GenesisState struct {
Minter Minter `protobuf:"bytes,1,opt,name=minter,proto3,casttype=Minter" json:"minter"` // minter is a space for holding current inflation information.
Params Params `protobuf:"bytes,2,opt,name=params,proto3,casttype=Params" json:"params"` Minter Minter `protobuf:"bytes,1,opt,name=minter,proto3" json:"minter"`
// params defines all the paramaters of the module.
Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
} }
func (m *GenesisState) Reset() { *m = GenesisState{} } func (m *GenesisState) Reset() { *m = GenesisState{} }
@ -83,22 +85,21 @@ func init() {
func init() { proto.RegisterFile("cosmos/mint/v1beta1/genesis.proto", fileDescriptor_0e215eb1d09cd648) } func init() { proto.RegisterFile("cosmos/mint/v1beta1/genesis.proto", fileDescriptor_0e215eb1d09cd648) }
var fileDescriptor_0e215eb1d09cd648 = []byte{ var fileDescriptor_0e215eb1d09cd648 = []byte{
// 227 bytes of a gzipped FileDescriptorProto // 218 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 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0xad, 0x5f, 0x01,
0xff, 0x20, 0x94, 0x6e, 0x71, 0x4a, 0xb6, 0x7e, 0x05, 0xc4, 0xb3, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0xf1, 0x58, 0x49, 0x65, 0x41, 0x6a, 0x71, 0x12, 0x1b, 0xd8, 0x4b, 0xc6, 0x80, 0x00, 0x00, 0x00,
0x49, 0x6c, 0x60, 0x6f, 0x1a, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0xe9, 0x38, 0xec, 0x85, 0x56, 0xff, 0xff, 0xbb, 0xc1, 0x11, 0x51, 0x42, 0x01, 0x00, 0x00,
0x01, 0x00, 0x00,
} }
func (m *GenesisState) Marshal() (dAtA []byte, err error) { func (m *GenesisState) Marshal() (dAtA []byte, err error) {

View File

@ -23,10 +23,15 @@ var _ = math.Inf
// proto package needs to be updated. // proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// GenesisState - all slashing state that must be provided at genesis // GenesisState defines the slashing module's genesis state.
type GenesisState struct { type GenesisState struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3,casttype=Params" json:"params"` // params defines all the paramaters of related to deposit.
SigningInfos []SigningInfo `protobuf:"bytes,2,rep,name=signing_infos,json=signingInfos,proto3" json:"signing_infos" yaml:"signing_infos"` Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
// signing_infos represents a map between validator addresses and their
// signing infos.
SigningInfos []SigningInfo `protobuf:"bytes,2,rep,name=signing_infos,json=signingInfos,proto3" json:"signing_infos" yaml:"signing_infos"`
// signing_infos represents a map between validator addresses and their
// missed blocks.
MissedBlocks []ValidatorMissedBlocks `protobuf:"bytes,3,rep,name=missed_blocks,json=missedBlocks,proto3" json:"missed_blocks" yaml:"missed_blocks"` MissedBlocks []ValidatorMissedBlocks `protobuf:"bytes,3,rep,name=missed_blocks,json=missedBlocks,proto3" json:"missed_blocks" yaml:"missed_blocks"`
} }
@ -84,9 +89,11 @@ func (m *GenesisState) GetMissedBlocks() []ValidatorMissedBlocks {
return nil return nil
} }
// SigningInfo stores validator signing info of corresponding address // SigningInfo stores validator signing info of corresponding address.
type SigningInfo struct { type SigningInfo struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // address is the validator address.
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
// validator_signing_info represents the signing info of this validator.
ValidatorSigningInfo ValidatorSigningInfo `protobuf:"bytes,2,opt,name=validator_signing_info,json=validatorSigningInfo,proto3" json:"validator_signing_info" yaml:"validator_signing_info"` ValidatorSigningInfo ValidatorSigningInfo `protobuf:"bytes,2,opt,name=validator_signing_info,json=validatorSigningInfo,proto3" json:"validator_signing_info" yaml:"validator_signing_info"`
} }
@ -137,9 +144,11 @@ func (m *SigningInfo) GetValidatorSigningInfo() ValidatorSigningInfo {
return ValidatorSigningInfo{} return ValidatorSigningInfo{}
} }
// ValidatorMissedBlocks contains array of missed blocks of corresponding address // ValidatorMissedBlocks contains array of missed blocks of corresponding address.
type ValidatorMissedBlocks struct { type ValidatorMissedBlocks struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // address is the validator address.
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
// missed_blocks is an array of missed blocks by the validator.
MissedBlocks []MissedBlock `protobuf:"bytes,2,rep,name=missed_blocks,json=missedBlocks,proto3" json:"missed_blocks" yaml:"missed_blocks"` MissedBlocks []MissedBlock `protobuf:"bytes,2,rep,name=missed_blocks,json=missedBlocks,proto3" json:"missed_blocks" yaml:"missed_blocks"`
} }
@ -190,10 +199,12 @@ func (m *ValidatorMissedBlocks) GetMissedBlocks() []MissedBlock {
return nil return nil
} }
// MissedBlock contains height and missed status as boolean // MissedBlock contains height and missed status as boolean.
type MissedBlock struct { type MissedBlock struct {
Index int64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` // index is the height at which the block was missed.
Missed bool `protobuf:"varint,2,opt,name=missed,proto3" json:"missed,omitempty"` Index int64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
// missed is the missed status.
Missed bool `protobuf:"varint,2,opt,name=missed,proto3" json:"missed,omitempty"`
} }
func (m *MissedBlock) Reset() { *m = MissedBlock{} } func (m *MissedBlock) Reset() { *m = MissedBlock{} }
@ -255,34 +266,34 @@ func init() {
} }
var fileDescriptor_1923b9188b635394 = []byte{ var fileDescriptor_1923b9188b635394 = []byte{
// 428 bytes of a gzipped FileDescriptorProto // 424 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0xbf, 0x6e, 0xd3, 0x40, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0x3d, 0x8e, 0xd3, 0x40,
0x18, 0xf7, 0x25, 0xc2, 0xc0, 0x39, 0x65, 0x38, 0x99, 0x62, 0x55, 0x60, 0x57, 0x16, 0x45, 0x5d, 0x14, 0xf6, 0x24, 0x10, 0x60, 0x9c, 0x6d, 0x46, 0x66, 0xb1, 0x56, 0xe0, 0xac, 0x2c, 0x16, 0x6d,
0x62, 0xab, 0x65, 0x83, 0xcd, 0x4b, 0xc4, 0x80, 0x84, 0x5c, 0x89, 0x81, 0x25, 0x3a, 0xc7, 0xd7, 0x13, 0x5b, 0xbb, 0x74, 0x20, 0x1a, 0x37, 0x2b, 0x0a, 0x24, 0xe4, 0x95, 0x28, 0x68, 0xa2, 0x71,
0xeb, 0xa9, 0xb6, 0x2f, 0xf8, 0x33, 0x51, 0xfb, 0x0a, 0x4c, 0xcc, 0xbc, 0x06, 0x3c, 0x44, 0xc7, 0x3c, 0x3b, 0x19, 0xc5, 0xf6, 0x04, 0x3f, 0x13, 0x25, 0x57, 0xa0, 0xa2, 0xe6, 0x06, 0xf4, 0x1c,
0x8c, 0x4c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, 0x45, 0xca, 0x6e, 0x54, 0x9e, 0x6e, 0xac, 0x42, 0x25, 0x16, 0xbe, 0x2f, 0xb2, 0x98, 0x4d, 0x54, 0x9e, 0x66, 0xa8, 0x07, 0x72, 0x8a, 0x5b,
0x07, 0x72, 0x88, 0x4d, 0x4d, 0x52, 0xed, 0x3d, 0x88, 0xeb, 0x29, 0x1a, 0xdc, 0xcd, 0x5d, 0x34, 0x9a, 0xa4, 0xda, 0x7b, 0x18, 0x96, 0x53, 0x70, 0x33, 0x5b, 0x3a, 0x68, 0xbe, 0x74, 0xd0, 0xaf,
0x9d, 0xbb, 0xe8, 0xe7, 0xdc, 0x45, 0x5f, 0x16, 0xae, 0x31, 0x5d, 0xb8, 0xc6, 0x8f, 0x85, 0x6b, 0xa5, 0x83, 0xbe, 0xae, 0x1c, 0x63, 0xbe, 0x72, 0x8c, 0x9f, 0x2b, 0xc7, 0xf8, 0xd8, 0xe5, 0xa2,
0x7c, 0xe8, 0x73, 0x51, 0x5d, 0x7d, 0x4a, 0x82, 0x91, 0xcc, 0xc3, 0xfa, 0x26, 0xf4, 0xa7, 0x0f, 0x18, 0x7c, 0x8e, 0xbc, 0xbe, 0x4c, 0xfd, 0xf2, 0x12, 0xf4, 0xa7, 0x0b, 0xf1, 0xd0, 0x9f, 0x6c,
0xe9, 0x75, 0x78, 0xb3, 0x3e, 0x90, 0xea, 0x76, 0xcc, 0x20, 0x31, 0xd5, 0x59, 0xbc, 0xfc, 0x13, 0xcf, 0xa2, 0x98, 0x8e, 0x18, 0x44, 0x2d, 0x75, 0x0c, 0x2f, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff,
0x00, 0x00, 0xff, 0xff, 0xc1, 0x5d, 0x5c, 0xef, 0x96, 0x03, 0x00, 0x00, 0x03, 0x3c, 0xa8, 0xf6, 0x8c, 0x03, 0x00, 0x00,
} }
func (m *GenesisState) Marshal() (dAtA []byte, err error) { func (m *GenesisState) Marshal() (dAtA []byte, err error) {

View File

@ -1,14 +0,0 @@
<!--
order: 7
-->
# Parameters
The staking module contains the following parameters:
| Key | Type | Example |
|---------------|------------------|-------------------|
| UnbondingTime | string (time ns) | "259200000000000" |
| MaxValidators | uint16 | 100 |
| KeyMaxEntries | uint16 | 7 |
| BondDenom | string | "uatom" |

View File

@ -24,16 +24,25 @@ var _ = math.Inf
// proto package needs to be updated. // proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// GenesisState - all staking state that must be provided at genesis // GenesisState defines the staking module's genesis state.
type GenesisState struct { type GenesisState struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3,casttype=Params" json:"params"` // params defines all the paramaters of related to deposit.
LastTotalPower github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=last_total_power,json=lastTotalPower,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"last_total_power" yaml:"last_total_power"` Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
LastValidatorPowers []LastValidatorPower `protobuf:"bytes,3,rep,name=last_validator_powers,json=lastValidatorPowers,proto3,casttype=LastValidatorPower" json:"last_validator_powers" yaml:"last_validator_powers"` // last_total_power tracks the total amounts of bonded tokens recorded during
Validators []Validator `protobuf:"bytes,4,rep,name=validators,proto3,casttype=Validator" json:"validators"` // the previous end block.
Delegations []Delegation `protobuf:"bytes,5,rep,name=delegations,proto3,casttype=Delegation" json:"delegations"` LastTotalPower github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=last_total_power,json=lastTotalPower,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"last_total_power" yaml:"last_total_power"`
UnbondingDelegations []UnbondingDelegation `protobuf:"bytes,6,rep,name=unbonding_delegations,json=unbondingDelegations,proto3,casttype=UnbondingDelegation" json:"unbonding_delegations" yaml:"unbonding_delegations"` // last_validator_powers is a special index that provides a historical list
Redelegations []Redelegation `protobuf:"bytes,7,rep,name=redelegations,proto3,casttype=Redelegation" json:"redelegations"` // of the last-block's bonded validators.
Exported bool `protobuf:"varint,8,opt,name=exported,proto3" json:"exported,omitempty"` LastValidatorPowers []LastValidatorPower `protobuf:"bytes,3,rep,name=last_validator_powers,json=lastValidatorPowers,proto3" json:"last_validator_powers" yaml:"last_validator_powers"`
// delegations defines the validator set at genesis.
Validators []Validator `protobuf:"bytes,4,rep,name=validators,proto3" json:"validators"`
// delegations defines the delegations active at genesis.
Delegations []Delegation `protobuf:"bytes,5,rep,name=delegations,proto3" json:"delegations"`
// unbonding_delegations defines the unbonding delegations active at genesis.
UnbondingDelegations []UnbondingDelegation `protobuf:"bytes,6,rep,name=unbonding_delegations,json=unbondingDelegations,proto3" json:"unbonding_delegations" yaml:"unbonding_delegations"`
// redelegations defines the redelegations active at genesis.
Redelegations []Redelegation `protobuf:"bytes,7,rep,name=redelegations,proto3" json:"redelegations"`
Exported bool `protobuf:"varint,8,opt,name=exported,proto3" json:"exported,omitempty"`
} }
func (m *GenesisState) Reset() { *m = GenesisState{} } func (m *GenesisState) Reset() { *m = GenesisState{} }
@ -118,10 +127,12 @@ func (m *GenesisState) GetExported() bool {
return false return false
} }
// LastValidatorPower required for validator set update logic // LastValidatorPower required for validator set update logic.
type LastValidatorPower struct { type LastValidatorPower struct {
// address is the address of the validator.
Address github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,1,opt,name=address,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"address,omitempty"` Address github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,1,opt,name=address,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"address,omitempty"`
Power int64 `protobuf:"varint,2,opt,name=power,proto3" json:"power,omitempty"` // power defines the power of the validator.
Power int64 `protobuf:"varint,2,opt,name=power,proto3" json:"power,omitempty"`
} }
func (m *LastValidatorPower) Reset() { *m = LastValidatorPower{} } func (m *LastValidatorPower) Reset() { *m = LastValidatorPower{} }
@ -181,40 +192,38 @@ func init() {
} }
var fileDescriptor_9b3dec8894f2831b = []byte{ var fileDescriptor_9b3dec8894f2831b = []byte{
// 528 bytes of a gzipped FileDescriptorProto // 493 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xcf, 0x6e, 0xd3, 0x3e, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x4f, 0x6f, 0xd3, 0x30,
0x1c, 0xaf, 0x7f, 0xfd, 0x2d, 0x2b, 0x6e, 0x99, 0xc0, 0xeb, 0x20, 0xaa, 0x50, 0x52, 0xa2, 0x09, 0x1c, 0x86, 0x6b, 0xba, 0x76, 0x95, 0x5b, 0x10, 0x32, 0x1d, 0x44, 0x15, 0x4a, 0x4a, 0x54, 0xa1,
0x55, 0xc0, 0x12, 0x75, 0xdc, 0xc6, 0x89, 0x08, 0x0d, 0x4d, 0x70, 0x98, 0xcc, 0x98, 0x10, 0x97, 0x0a, 0x58, 0xa2, 0x8e, 0x1b, 0xe2, 0x42, 0x84, 0x98, 0x06, 0x1c, 0xaa, 0x00, 0x3b, 0x70, 0xa9,
0xe2, 0x2e, 0x56, 0x88, 0x96, 0xc6, 0x51, 0xec, 0xee, 0xcf, 0x5b, 0x70, 0x46, 0xe2, 0x35, 0x78, 0xdc, 0xc5, 0x0a, 0xd1, 0xd2, 0x38, 0xca, 0xcf, 0xdd, 0x9f, 0x3b, 0xe2, 0xcc, 0xc7, 0xda, 0x71,
0x86, 0x1d, 0x77, 0x44, 0x1c, 0x22, 0xd4, 0xbe, 0xc1, 0x8e, 0x3d, 0xa1, 0xd8, 0x69, 0x96, 0xad, 0x07, 0x0e, 0x88, 0x43, 0x84, 0xda, 0x6f, 0xb0, 0x23, 0x27, 0x14, 0x3b, 0x0d, 0xa1, 0x5d, 0x10,
0x0d, 0xe2, 0x94, 0xf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2d, 0xb7, 0x3f, 0x4b, 0xcd, 0xad, 0x7f, 0xf8, 0xd1, 0x0f, 0x49, 0xf8, 0x4a, 0x5c, 0xe8, 0xe8, 0xe7, 0x42, 0x47, 0x5f, 0x97, 0x7a, 0xed, 0x72, 0xa9, 0xd7, 0xbe, 0x2f, 0xf5,
0x09, 0xf1, 0xdc, 0x01, 0xb5, 0xe1, 0xca, 0xf5, 0xb9, 0xa9, 0x63, 0xb5, 0x70, 0x77, 0x2f, 0x26, 0xda, 0xc7, 0x27, 0xff, 0xec, 0x39, 0x2b, 0xde, 0xa9, 0x6c, 0x9c, 0x36, 0xe5, 0xf3, 0x7c, 0xfa,
0x06, 0xb8, 0x9c, 0x18, 0xe0, 0xf7, 0xc4, 0x00, 0x5f, 0xa7, 0x46, 0xed, 0x72, 0x6a, 0xd4, 0x7e, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xac, 0x6c, 0x97, 0xa5, 0x1a, 0x04, 0x00, 0x00,
0x4e, 0x8d, 0xda, 0xa7, 0xe7, 0x7f, 0xcd, 0x39, 0x2b, 0x6e, 0x02, 0x99, 0x38, 0xd4, 0xe4, 0x05,
0xf0, 0xe2, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x9f, 0xd8, 0x82, 0x11, 0x7c, 0x04, 0x00, 0x00,
} }
func (m *GenesisState) Marshal() (dAtA []byte, err error) { func (m *GenesisState) Marshal() (dAtA []byte, err error) {

File diff suppressed because it is too large Load Diff