github.com/ari-anchor/sei-tendermint@v0.0.0-20230519144642-dc826b7b56bb/proto/tendermint/statesync/types.proto (about) 1 syntax = "proto3"; 2 package seitendermint.statesync; 3 4 option go_package = "github.com/ari-anchor/sei-tendermint/proto/tendermint/statesync"; 5 6 import "gogoproto/gogo.proto"; 7 import "tendermint/types/types.proto"; 8 import "tendermint/types/params.proto"; 9 10 message Message { 11 oneof sum { 12 SnapshotsRequest snapshots_request = 1; 13 SnapshotsResponse snapshots_response = 2; 14 ChunkRequest chunk_request = 3; 15 ChunkResponse chunk_response = 4; 16 LightBlockRequest light_block_request = 5; 17 LightBlockResponse light_block_response = 6; 18 ParamsRequest params_request = 7; 19 ParamsResponse params_response = 8; 20 } 21 } 22 23 message SnapshotsRequest {} 24 25 message SnapshotsResponse { 26 uint64 height = 1; 27 uint32 format = 2; 28 uint32 chunks = 3; 29 bytes hash = 4; 30 bytes metadata = 5; 31 } 32 33 message ChunkRequest { 34 uint64 height = 1; 35 uint32 format = 2; 36 uint32 index = 3; 37 } 38 39 message ChunkResponse { 40 uint64 height = 1; 41 uint32 format = 2; 42 uint32 index = 3; 43 bytes chunk = 4; 44 bool missing = 5; 45 } 46 47 message LightBlockRequest { 48 uint64 height = 1; 49 } 50 51 message LightBlockResponse { 52 seitendermint.types.LightBlock light_block = 1; 53 } 54 55 message ParamsRequest { 56 uint64 height = 1; 57 } 58 59 message ParamsResponse { 60 uint64 height = 1; 61 seitendermint.types.ConsensusParams consensus_params = 2 62 [(gogoproto.nullable) = false]; 63 }