github.com/Finschia/finschia-sdk@v0.48.1/proto/cosmos/staking/v1beta1/genesis.proto (about) 1 syntax = "proto3"; 2 package cosmos.staking.v1beta1; 3 4 option go_package = "github.com/Finschia/finschia-sdk/x/staking/types"; 5 6 import "gogoproto/gogo.proto"; 7 import "cosmos/staking/v1beta1/staking.proto"; 8 9 // GenesisState defines the staking module's genesis state. 10 message GenesisState { 11 // params defines all the paramaters of related to deposit. 12 Params params = 1 [(gogoproto.nullable) = false]; 13 14 // last_total_power tracks the total amounts of bonded tokens recorded during 15 // the previous end block. 16 bytes last_total_power = 2 [ 17 (gogoproto.customtype) = "github.com/Finschia/finschia-sdk/types.Int", 18 (gogoproto.moretags) = "yaml:\"last_total_power\"", 19 (gogoproto.nullable) = false 20 ]; 21 22 // last_validator_powers is a special index that provides a historical list 23 // of the last-block's bonded validators. 24 repeated LastValidatorPower last_validator_powers = 3 25 [(gogoproto.moretags) = "yaml:\"last_validator_powers\"", (gogoproto.nullable) = false]; 26 27 // delegations defines the validator set at genesis. 28 repeated Validator validators = 4 [(gogoproto.nullable) = false]; 29 30 // delegations defines the delegations active at genesis. 31 repeated Delegation delegations = 5 [(gogoproto.nullable) = false]; 32 33 // unbonding_delegations defines the unbonding delegations active at genesis. 34 repeated UnbondingDelegation unbonding_delegations = 6 35 [(gogoproto.moretags) = "yaml:\"unbonding_delegations\"", (gogoproto.nullable) = false]; 36 37 // redelegations defines the redelegations active at genesis. 38 repeated Redelegation redelegations = 7 [(gogoproto.nullable) = false]; 39 40 bool exported = 8; 41 } 42 43 // LastValidatorPower required for validator set update logic. 44 message LastValidatorPower { 45 option (gogoproto.equal) = false; 46 option (gogoproto.goproto_getters) = false; 47 48 // address is the address of the validator. 49 string address = 1; 50 51 // power defines the power of the validator. 52 int64 power = 2; 53 }