github.com/ari-anchor/sei-tendermint@v0.0.0-20230519144642-dc826b7b56bb/proto/tendermint/state/types.proto (about)

     1  syntax = "proto3";
     2  package seitendermint.state;
     3  
     4  option go_package = "github.com/ari-anchor/sei-tendermint/proto/tendermint/state";
     5  
     6  import "gogoproto/gogo.proto";
     7  import "tendermint/abci/types.proto";
     8  import "tendermint/types/types.proto";
     9  import "tendermint/types/validator.proto";
    10  import "tendermint/types/params.proto";
    11  import "tendermint/version/types.proto";
    12  import "google/protobuf/timestamp.proto";
    13  
    14  message ABCIResponses {
    15    repeated seitendermint.abci.ResponseDeliverTx deliver_txs = 1;
    16    seitendermint.abci.ResponseEndBlock           end_block   = 2;
    17    seitendermint.abci.ResponseBeginBlock         begin_block = 3;
    18  }
    19  
    20  // ValidatorsInfo represents the latest validator set, or the last height it changed
    21  message ValidatorsInfo {
    22    seitendermint.types.ValidatorSet validator_set       = 1;
    23    int64                         last_height_changed = 2;
    24  }
    25  
    26  // ConsensusParamsInfo represents the latest consensus params, or the last height it changed
    27  message ConsensusParamsInfo {
    28    seitendermint.types.ConsensusParams consensus_params    = 1 [(gogoproto.nullable) = false];
    29    int64                            last_height_changed = 2;
    30  }
    31  
    32  message Version {
    33    seitendermint.version.Consensus consensus = 1 [(gogoproto.nullable) = false];
    34    string                       software  = 2;
    35  }
    36  
    37  message State {
    38    Version version = 1 [(gogoproto.nullable) = false];
    39  
    40    // immutable
    41    string chain_id       = 2 [(gogoproto.customname) = "ChainID"];
    42    int64  initial_height = 14;
    43  
    44    // LastBlockHeight=0 at genesis (ie. block(H=0) does not exist)
    45    int64                    last_block_height = 3;
    46    seitendermint.types.BlockID last_block_id     = 4
    47        [(gogoproto.nullable) = false, (gogoproto.customname) = "LastBlockID"];
    48    google.protobuf.Timestamp last_block_time = 5
    49        [(gogoproto.nullable) = false, (gogoproto.stdtime) = true];
    50  
    51    // LastValidators is used to validate block.LastCommit.
    52    // Validators are persisted to the database separately every time they change,
    53    // so we can query for historical validator sets.
    54    // Note that if s.LastBlockHeight causes a valset change,
    55    // we set s.LastHeightValidatorsChanged = s.LastBlockHeight + 1 + 1
    56    // Extra +1 due to nextValSet delay.
    57    seitendermint.types.ValidatorSet next_validators                = 6;
    58    seitendermint.types.ValidatorSet validators                     = 7;
    59    seitendermint.types.ValidatorSet last_validators                = 8;
    60    int64                         last_height_validators_changed = 9;
    61  
    62    // Consensus parameters used for validating blocks.
    63    // Changes returned by EndBlock and updated after Commit.
    64    seitendermint.types.ConsensusParams consensus_params                     = 10 [(gogoproto.nullable) = false];
    65    int64                            last_height_consensus_params_changed = 11;
    66  
    67    // Merkle root of the results from executing prev block
    68    bytes last_results_hash = 12;
    69  
    70    // the latest AppHash we've received from calling abci.Commit()
    71    bytes app_hash = 13;
    72  }