github.com/Finschia/finschia-sdk@v0.49.1/proto/cosmos/slashing/v1beta1/genesis.proto (about) 1 syntax = "proto3"; 2 package cosmos.slashing.v1beta1; 3 4 option go_package = "github.com/Finschia/finschia-sdk/x/slashing/types"; 5 6 import "gogoproto/gogo.proto"; 7 import "cosmos/slashing/v1beta1/slashing.proto"; 8 9 // GenesisState defines the slashing 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 // signing_infos represents a map between validator addresses and their 15 // signing infos. 16 repeated SigningInfo signing_infos = 2 17 [(gogoproto.moretags) = "yaml:\"signing_infos\"", (gogoproto.nullable) = false]; 18 19 // missed_blocks represents a map between validator addresses and their 20 // missed blocks. 21 repeated ValidatorMissedBlocks missed_blocks = 3 22 [(gogoproto.moretags) = "yaml:\"missed_blocks\"", (gogoproto.nullable) = false]; 23 } 24 25 // SigningInfo stores validator signing info of corresponding address. 26 message SigningInfo { 27 // address is the validator address. 28 string address = 1; 29 // validator_signing_info represents the signing info of this validator. 30 ValidatorSigningInfo validator_signing_info = 2 31 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"validator_signing_info\""]; 32 } 33 34 // ValidatorMissedBlocks contains array of missed blocks of corresponding 35 // address. 36 message ValidatorMissedBlocks { 37 // address is the validator address. 38 string address = 1; 39 // missed_blocks is an array of missed blocks by the validator. 40 repeated MissedBlock missed_blocks = 2 41 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"missed_blocks\""]; 42 } 43 44 // MissedBlock contains height and missed status as boolean. 45 message MissedBlock { 46 // index is the height at which the block was missed. 47 int64 index = 1; 48 // missed is the missed status. 49 bool missed = 2; 50 }