github.com/Finschia/finschia-sdk@v0.49.1/proto/cosmos/slashing/v1beta1/slashing.proto (about)

     1  syntax = "proto3";
     2  package cosmos.slashing.v1beta1;
     3  
     4  option go_package            = "github.com/Finschia/finschia-sdk/x/slashing/types";
     5  option (gogoproto.equal_all) = true;
     6  
     7  import "gogoproto/gogo.proto";
     8  import "google/protobuf/duration.proto";
     9  import "google/protobuf/timestamp.proto";
    10  
    11  // ValidatorSigningInfo defines a validator's signing info for monitoring their
    12  // liveness activity.
    13  message ValidatorSigningInfo {
    14    option (gogoproto.equal)            = true;
    15    option (gogoproto.goproto_stringer) = false;
    16  
    17    string address = 1;
    18    // Height at which validator was first a candidate OR was unjailed
    19    int64 start_height = 2 [(gogoproto.moretags) = "yaml:\"start_height\""];
    20    // Index which is incremented each time the validator was a bonded
    21    // in a block and may have signed a precommit or not. This in conjunction with the
    22    // `SignedBlocksWindow` param determines the index in the `MissedBlocksBitArray`.
    23    int64 index_offset = 3 [(gogoproto.moretags) = "yaml:\"index_offset\""];
    24    // Timestamp until which the validator is jailed due to liveness downtime.
    25    google.protobuf.Timestamp jailed_until = 4
    26        [(gogoproto.moretags) = "yaml:\"jailed_until\"", (gogoproto.stdtime) = true, (gogoproto.nullable) = false];
    27    // Whether or not a validator has been tombstoned (killed out of validator set). It is set
    28    // once the validator commits an equivocation or for any other configured misbehiavor.
    29    bool tombstoned = 5;
    30    // A counter kept to avoid unnecessary array reads.
    31    // Note that `Sum(MissedBlocksBitArray)` always equals `MissedBlocksCounter`.
    32    int64 missed_blocks_counter = 6 [(gogoproto.moretags) = "yaml:\"missed_blocks_counter\""];
    33  }
    34  
    35  // Params represents the parameters used for by the slashing module.
    36  message Params {
    37    int64 signed_blocks_window  = 1 [(gogoproto.moretags) = "yaml:\"signed_blocks_window\""];
    38    bytes min_signed_per_window = 2 [
    39      (gogoproto.moretags)   = "yaml:\"min_signed_per_window\"",
    40      (gogoproto.customtype) = "github.com/Finschia/finschia-sdk/types.Dec",
    41      (gogoproto.nullable)   = false
    42    ];
    43    google.protobuf.Duration downtime_jail_duration = 3 [
    44      (gogoproto.nullable)    = false,
    45      (gogoproto.stdduration) = true,
    46      (gogoproto.moretags)    = "yaml:\"downtime_jail_duration\""
    47    ];
    48    bytes slash_fraction_double_sign = 4 [
    49      (gogoproto.moretags)   = "yaml:\"slash_fraction_double_sign\"",
    50      (gogoproto.customtype) = "github.com/Finschia/finschia-sdk/types.Dec",
    51      (gogoproto.nullable)   = false
    52    ];
    53    bytes slash_fraction_downtime = 5 [
    54      (gogoproto.moretags)   = "yaml:\"slash_fraction_downtime\"",
    55      (gogoproto.customtype) = "github.com/Finschia/finschia-sdk/types.Dec",
    56      (gogoproto.nullable)   = false
    57    ];
    58  }