2022-01-08 01:59:34 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
package cosmos.slashing.v1beta1;
|
|
|
|
|
|
|
|
option go_package = "github.com/cosmos/cosmos-sdk/x/slashing/types";
|
|
|
|
|
|
|
|
import "gogoproto/gogo.proto";
|
|
|
|
import "cosmos/slashing/v1beta1/slashing.proto";
|
2023-04-04 00:08:45 +00:00
|
|
|
import "cosmos_proto/cosmos.proto";
|
2024-02-06 22:54:10 +00:00
|
|
|
import "amino/amino.proto";
|
2022-01-08 01:59:34 +00:00
|
|
|
|
|
|
|
// GenesisState defines the slashing module's genesis state.
|
|
|
|
message GenesisState {
|
2024-02-06 22:54:10 +00:00
|
|
|
// params defines all the parameters of the module.
|
|
|
|
Params params = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
|
2022-01-08 01:59:34 +00:00
|
|
|
|
|
|
|
// signing_infos represents a map between validator addresses and their
|
|
|
|
// signing infos.
|
2024-02-06 22:54:10 +00:00
|
|
|
repeated SigningInfo signing_infos = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
|
2022-01-08 01:59:34 +00:00
|
|
|
|
|
|
|
// missed_blocks represents a map between validator addresses and their
|
|
|
|
// missed blocks.
|
2024-02-06 22:54:10 +00:00
|
|
|
repeated ValidatorMissedBlocks missed_blocks = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
|
2022-01-08 01:59:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SigningInfo stores validator signing info of corresponding address.
|
|
|
|
message SigningInfo {
|
|
|
|
// address is the validator address.
|
2023-04-04 00:08:45 +00:00
|
|
|
string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
2022-01-08 01:59:34 +00:00
|
|
|
// validator_signing_info represents the signing info of this validator.
|
2024-02-06 22:54:10 +00:00
|
|
|
ValidatorSigningInfo validator_signing_info = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
|
2022-01-08 01:59:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// ValidatorMissedBlocks contains array of missed blocks of corresponding
|
|
|
|
// address.
|
|
|
|
message ValidatorMissedBlocks {
|
|
|
|
// address is the validator address.
|
2023-04-04 00:08:45 +00:00
|
|
|
string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
2022-01-08 01:59:34 +00:00
|
|
|
// missed_blocks is an array of missed blocks by the validator.
|
2024-02-06 22:54:10 +00:00
|
|
|
repeated MissedBlock missed_blocks = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
|
2022-01-08 01:59:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// MissedBlock contains height and missed status as boolean.
|
|
|
|
message MissedBlock {
|
|
|
|
// index is the height at which the block was missed.
|
|
|
|
int64 index = 1;
|
|
|
|
// missed is the missed status.
|
|
|
|
bool missed = 2;
|
|
|
|
}
|