github.com/prysmaticlabs/prysm@v1.4.4/proto/eth/v1/events_service.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.25.0 4 // protoc v3.15.8 5 // source: proto/eth/v1/events_service.proto 6 7 package v1 8 9 import ( 10 context "context" 11 reflect "reflect" 12 sync "sync" 13 14 proto "github.com/golang/protobuf/proto" 15 _ "github.com/golang/protobuf/protoc-gen-go/descriptor" 16 gateway "github.com/grpc-ecosystem/grpc-gateway/v2/proto/gateway" 17 github_com_prysmaticlabs_eth2_types "github.com/prysmaticlabs/eth2-types" 18 _ "github.com/prysmaticlabs/prysm/proto/eth/ext" 19 _ "google.golang.org/genproto/googleapis/api/annotations" 20 grpc "google.golang.org/grpc" 21 codes "google.golang.org/grpc/codes" 22 status "google.golang.org/grpc/status" 23 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 24 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 25 ) 26 27 const ( 28 // Verify that this generated code is sufficiently up-to-date. 29 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 30 // Verify that runtime/protoimpl is sufficiently up-to-date. 31 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 32 ) 33 34 // This is a compile-time assertion that a sufficiently up-to-date version 35 // of the legacy proto package is being used. 36 const _ = proto.ProtoPackageIsVersion4 37 38 type StreamEventsRequest struct { 39 state protoimpl.MessageState 40 sizeCache protoimpl.SizeCache 41 unknownFields protoimpl.UnknownFields 42 43 Topics []string `protobuf:"bytes,1,rep,name=topics,proto3" json:"topics,omitempty"` 44 } 45 46 func (x *StreamEventsRequest) Reset() { 47 *x = StreamEventsRequest{} 48 if protoimpl.UnsafeEnabled { 49 mi := &file_proto_eth_v1_events_service_proto_msgTypes[0] 50 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 51 ms.StoreMessageInfo(mi) 52 } 53 } 54 55 func (x *StreamEventsRequest) String() string { 56 return protoimpl.X.MessageStringOf(x) 57 } 58 59 func (*StreamEventsRequest) ProtoMessage() {} 60 61 func (x *StreamEventsRequest) ProtoReflect() protoreflect.Message { 62 mi := &file_proto_eth_v1_events_service_proto_msgTypes[0] 63 if protoimpl.UnsafeEnabled && x != nil { 64 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 65 if ms.LoadMessageInfo() == nil { 66 ms.StoreMessageInfo(mi) 67 } 68 return ms 69 } 70 return mi.MessageOf(x) 71 } 72 73 // Deprecated: Use StreamEventsRequest.ProtoReflect.Descriptor instead. 74 func (*StreamEventsRequest) Descriptor() ([]byte, []int) { 75 return file_proto_eth_v1_events_service_proto_rawDescGZIP(), []int{0} 76 } 77 78 func (x *StreamEventsRequest) GetTopics() []string { 79 if x != nil { 80 return x.Topics 81 } 82 return nil 83 } 84 85 type EventHead struct { 86 state protoimpl.MessageState 87 sizeCache protoimpl.SizeCache 88 unknownFields protoimpl.UnknownFields 89 90 Slot github_com_prysmaticlabs_eth2_types.Slot `protobuf:"varint,1,opt,name=slot,proto3" json:"slot,omitempty" cast-type:"github.com/prysmaticlabs/eth2-types.Slot"` 91 Block []byte `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty" ssz-size:"32"` 92 State []byte `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty" ssz-size:"32"` 93 EpochTransition bool `protobuf:"varint,4,opt,name=epoch_transition,json=epochTransition,proto3" json:"epoch_transition,omitempty"` 94 PreviousDutyDependentRoot []byte `protobuf:"bytes,5,opt,name=previous_duty_dependent_root,json=previousDutyDependentRoot,proto3" json:"previous_duty_dependent_root,omitempty" ssz-size:"32"` 95 CurrentDutyDependentRoot []byte `protobuf:"bytes,6,opt,name=current_duty_dependent_root,json=currentDutyDependentRoot,proto3" json:"current_duty_dependent_root,omitempty" ssz-size:"32"` 96 } 97 98 func (x *EventHead) Reset() { 99 *x = EventHead{} 100 if protoimpl.UnsafeEnabled { 101 mi := &file_proto_eth_v1_events_service_proto_msgTypes[1] 102 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 103 ms.StoreMessageInfo(mi) 104 } 105 } 106 107 func (x *EventHead) String() string { 108 return protoimpl.X.MessageStringOf(x) 109 } 110 111 func (*EventHead) ProtoMessage() {} 112 113 func (x *EventHead) ProtoReflect() protoreflect.Message { 114 mi := &file_proto_eth_v1_events_service_proto_msgTypes[1] 115 if protoimpl.UnsafeEnabled && x != nil { 116 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 117 if ms.LoadMessageInfo() == nil { 118 ms.StoreMessageInfo(mi) 119 } 120 return ms 121 } 122 return mi.MessageOf(x) 123 } 124 125 // Deprecated: Use EventHead.ProtoReflect.Descriptor instead. 126 func (*EventHead) Descriptor() ([]byte, []int) { 127 return file_proto_eth_v1_events_service_proto_rawDescGZIP(), []int{1} 128 } 129 130 func (x *EventHead) GetSlot() github_com_prysmaticlabs_eth2_types.Slot { 131 if x != nil { 132 return x.Slot 133 } 134 return github_com_prysmaticlabs_eth2_types.Slot(0) 135 } 136 137 func (x *EventHead) GetBlock() []byte { 138 if x != nil { 139 return x.Block 140 } 141 return nil 142 } 143 144 func (x *EventHead) GetState() []byte { 145 if x != nil { 146 return x.State 147 } 148 return nil 149 } 150 151 func (x *EventHead) GetEpochTransition() bool { 152 if x != nil { 153 return x.EpochTransition 154 } 155 return false 156 } 157 158 func (x *EventHead) GetPreviousDutyDependentRoot() []byte { 159 if x != nil { 160 return x.PreviousDutyDependentRoot 161 } 162 return nil 163 } 164 165 func (x *EventHead) GetCurrentDutyDependentRoot() []byte { 166 if x != nil { 167 return x.CurrentDutyDependentRoot 168 } 169 return nil 170 } 171 172 type EventBlock struct { 173 state protoimpl.MessageState 174 sizeCache protoimpl.SizeCache 175 unknownFields protoimpl.UnknownFields 176 177 Slot github_com_prysmaticlabs_eth2_types.Slot `protobuf:"varint,1,opt,name=slot,proto3" json:"slot,omitempty" cast-type:"github.com/prysmaticlabs/eth2-types.Slot"` 178 Block []byte `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty" ssz-size:"32"` 179 } 180 181 func (x *EventBlock) Reset() { 182 *x = EventBlock{} 183 if protoimpl.UnsafeEnabled { 184 mi := &file_proto_eth_v1_events_service_proto_msgTypes[2] 185 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 186 ms.StoreMessageInfo(mi) 187 } 188 } 189 190 func (x *EventBlock) String() string { 191 return protoimpl.X.MessageStringOf(x) 192 } 193 194 func (*EventBlock) ProtoMessage() {} 195 196 func (x *EventBlock) ProtoReflect() protoreflect.Message { 197 mi := &file_proto_eth_v1_events_service_proto_msgTypes[2] 198 if protoimpl.UnsafeEnabled && x != nil { 199 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 200 if ms.LoadMessageInfo() == nil { 201 ms.StoreMessageInfo(mi) 202 } 203 return ms 204 } 205 return mi.MessageOf(x) 206 } 207 208 // Deprecated: Use EventBlock.ProtoReflect.Descriptor instead. 209 func (*EventBlock) Descriptor() ([]byte, []int) { 210 return file_proto_eth_v1_events_service_proto_rawDescGZIP(), []int{2} 211 } 212 213 func (x *EventBlock) GetSlot() github_com_prysmaticlabs_eth2_types.Slot { 214 if x != nil { 215 return x.Slot 216 } 217 return github_com_prysmaticlabs_eth2_types.Slot(0) 218 } 219 220 func (x *EventBlock) GetBlock() []byte { 221 if x != nil { 222 return x.Block 223 } 224 return nil 225 } 226 227 type EventChainReorg struct { 228 state protoimpl.MessageState 229 sizeCache protoimpl.SizeCache 230 unknownFields protoimpl.UnknownFields 231 232 Slot github_com_prysmaticlabs_eth2_types.Slot `protobuf:"varint,1,opt,name=slot,proto3" json:"slot,omitempty" cast-type:"github.com/prysmaticlabs/eth2-types.Slot"` 233 Depth uint64 `protobuf:"varint,2,opt,name=depth,proto3" json:"depth,omitempty"` 234 OldHeadBlock []byte `protobuf:"bytes,3,opt,name=old_head_block,json=oldHeadBlock,proto3" json:"old_head_block,omitempty" ssz-size:"32"` 235 NewHeadBlock []byte `protobuf:"bytes,4,opt,name=new_head_block,json=newHeadBlock,proto3" json:"new_head_block,omitempty" ssz-size:"32"` 236 OldHeadState []byte `protobuf:"bytes,5,opt,name=old_head_state,json=oldHeadState,proto3" json:"old_head_state,omitempty" ssz-size:"32"` 237 NewHeadState []byte `protobuf:"bytes,6,opt,name=new_head_state,json=newHeadState,proto3" json:"new_head_state,omitempty" ssz-size:"32"` 238 Epoch github_com_prysmaticlabs_eth2_types.Epoch `protobuf:"varint,7,opt,name=epoch,proto3" json:"epoch,omitempty" cast-type:"github.com/prysmaticlabs/eth2-types.Epoch"` 239 } 240 241 func (x *EventChainReorg) Reset() { 242 *x = EventChainReorg{} 243 if protoimpl.UnsafeEnabled { 244 mi := &file_proto_eth_v1_events_service_proto_msgTypes[3] 245 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 246 ms.StoreMessageInfo(mi) 247 } 248 } 249 250 func (x *EventChainReorg) String() string { 251 return protoimpl.X.MessageStringOf(x) 252 } 253 254 func (*EventChainReorg) ProtoMessage() {} 255 256 func (x *EventChainReorg) ProtoReflect() protoreflect.Message { 257 mi := &file_proto_eth_v1_events_service_proto_msgTypes[3] 258 if protoimpl.UnsafeEnabled && x != nil { 259 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 260 if ms.LoadMessageInfo() == nil { 261 ms.StoreMessageInfo(mi) 262 } 263 return ms 264 } 265 return mi.MessageOf(x) 266 } 267 268 // Deprecated: Use EventChainReorg.ProtoReflect.Descriptor instead. 269 func (*EventChainReorg) Descriptor() ([]byte, []int) { 270 return file_proto_eth_v1_events_service_proto_rawDescGZIP(), []int{3} 271 } 272 273 func (x *EventChainReorg) GetSlot() github_com_prysmaticlabs_eth2_types.Slot { 274 if x != nil { 275 return x.Slot 276 } 277 return github_com_prysmaticlabs_eth2_types.Slot(0) 278 } 279 280 func (x *EventChainReorg) GetDepth() uint64 { 281 if x != nil { 282 return x.Depth 283 } 284 return 0 285 } 286 287 func (x *EventChainReorg) GetOldHeadBlock() []byte { 288 if x != nil { 289 return x.OldHeadBlock 290 } 291 return nil 292 } 293 294 func (x *EventChainReorg) GetNewHeadBlock() []byte { 295 if x != nil { 296 return x.NewHeadBlock 297 } 298 return nil 299 } 300 301 func (x *EventChainReorg) GetOldHeadState() []byte { 302 if x != nil { 303 return x.OldHeadState 304 } 305 return nil 306 } 307 308 func (x *EventChainReorg) GetNewHeadState() []byte { 309 if x != nil { 310 return x.NewHeadState 311 } 312 return nil 313 } 314 315 func (x *EventChainReorg) GetEpoch() github_com_prysmaticlabs_eth2_types.Epoch { 316 if x != nil { 317 return x.Epoch 318 } 319 return github_com_prysmaticlabs_eth2_types.Epoch(0) 320 } 321 322 type EventFinalizedCheckpoint struct { 323 state protoimpl.MessageState 324 sizeCache protoimpl.SizeCache 325 unknownFields protoimpl.UnknownFields 326 327 Block []byte `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty" ssz-size:"32"` 328 State []byte `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty" ssz-size:"32"` 329 Epoch github_com_prysmaticlabs_eth2_types.Epoch `protobuf:"varint,3,opt,name=epoch,proto3" json:"epoch,omitempty" cast-type:"github.com/prysmaticlabs/eth2-types.Epoch"` 330 } 331 332 func (x *EventFinalizedCheckpoint) Reset() { 333 *x = EventFinalizedCheckpoint{} 334 if protoimpl.UnsafeEnabled { 335 mi := &file_proto_eth_v1_events_service_proto_msgTypes[4] 336 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 337 ms.StoreMessageInfo(mi) 338 } 339 } 340 341 func (x *EventFinalizedCheckpoint) String() string { 342 return protoimpl.X.MessageStringOf(x) 343 } 344 345 func (*EventFinalizedCheckpoint) ProtoMessage() {} 346 347 func (x *EventFinalizedCheckpoint) ProtoReflect() protoreflect.Message { 348 mi := &file_proto_eth_v1_events_service_proto_msgTypes[4] 349 if protoimpl.UnsafeEnabled && x != nil { 350 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 351 if ms.LoadMessageInfo() == nil { 352 ms.StoreMessageInfo(mi) 353 } 354 return ms 355 } 356 return mi.MessageOf(x) 357 } 358 359 // Deprecated: Use EventFinalizedCheckpoint.ProtoReflect.Descriptor instead. 360 func (*EventFinalizedCheckpoint) Descriptor() ([]byte, []int) { 361 return file_proto_eth_v1_events_service_proto_rawDescGZIP(), []int{4} 362 } 363 364 func (x *EventFinalizedCheckpoint) GetBlock() []byte { 365 if x != nil { 366 return x.Block 367 } 368 return nil 369 } 370 371 func (x *EventFinalizedCheckpoint) GetState() []byte { 372 if x != nil { 373 return x.State 374 } 375 return nil 376 } 377 378 func (x *EventFinalizedCheckpoint) GetEpoch() github_com_prysmaticlabs_eth2_types.Epoch { 379 if x != nil { 380 return x.Epoch 381 } 382 return github_com_prysmaticlabs_eth2_types.Epoch(0) 383 } 384 385 var File_proto_eth_v1_events_service_proto protoreflect.FileDescriptor 386 387 var file_proto_eth_v1_events_service_proto_rawDesc = []byte{ 388 0x0a, 0x21, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x65, 0x74, 0x68, 0x2f, 0x76, 0x31, 0x2f, 0x65, 389 0x76, 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 390 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 0x74, 391 0x68, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 392 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 393 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 394 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 395 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x65, 0x74, 0x68, 0x2f, 396 0x65, 0x78, 0x74, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 397 0x6f, 0x1a, 0x20, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 398 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 399 0x6f, 0x74, 0x6f, 0x22, 0x2d, 0x0a, 0x13, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x45, 0x76, 0x65, 400 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x6f, 401 0x70, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x74, 0x6f, 0x70, 0x69, 402 0x63, 0x73, 0x22, 0xc4, 0x02, 0x0a, 0x09, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x65, 0x61, 0x64, 403 0x12, 0x40, 0x0a, 0x04, 0x73, 0x6c, 0x6f, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x42, 0x2c, 404 0x82, 0xb5, 0x18, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 405 0x72, 0x79, 0x73, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x65, 0x74, 0x68, 406 0x32, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x53, 0x6c, 0x6f, 0x74, 0x52, 0x04, 0x73, 0x6c, 407 0x6f, 0x74, 0x12, 0x1c, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 408 0x0c, 0x42, 0x06, 0x8a, 0xb5, 0x18, 0x02, 0x33, 0x32, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 409 0x12, 0x1c, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x42, 410 0x06, 0x8a, 0xb5, 0x18, 0x02, 0x33, 0x32, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x29, 411 0x0a, 0x10, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 412 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x54, 413 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x47, 0x0a, 0x1c, 0x70, 0x72, 0x65, 414 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x64, 0x75, 0x74, 0x79, 0x5f, 0x64, 0x65, 0x70, 0x65, 0x6e, 415 0x64, 0x65, 0x6e, 0x74, 0x5f, 0x72, 0x6f, 0x6f, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x42, 416 0x06, 0x8a, 0xb5, 0x18, 0x02, 0x33, 0x32, 0x52, 0x19, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 417 0x73, 0x44, 0x75, 0x74, 0x79, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x74, 0x52, 0x6f, 418 0x6f, 0x74, 0x12, 0x45, 0x0a, 0x1b, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x75, 419 0x74, 0x79, 0x5f, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x74, 0x5f, 0x72, 0x6f, 0x6f, 420 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x06, 0x8a, 0xb5, 0x18, 0x02, 0x33, 0x32, 0x52, 421 0x18, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x44, 0x75, 0x74, 0x79, 0x44, 0x65, 0x70, 0x65, 422 0x6e, 0x64, 0x65, 0x6e, 0x74, 0x52, 0x6f, 0x6f, 0x74, 0x22, 0x6c, 0x0a, 0x0a, 0x45, 0x76, 0x65, 423 0x6e, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x40, 0x0a, 0x04, 0x73, 0x6c, 0x6f, 0x74, 0x18, 424 0x01, 0x20, 0x01, 0x28, 0x04, 0x42, 0x2c, 0x82, 0xb5, 0x18, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 425 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x72, 0x79, 0x73, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x6c, 426 0x61, 0x62, 0x73, 0x2f, 0x65, 0x74, 0x68, 0x32, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x53, 427 0x6c, 0x6f, 0x74, 0x52, 0x04, 0x73, 0x6c, 0x6f, 0x74, 0x12, 0x1c, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 428 0x63, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x06, 0x8a, 0xb5, 0x18, 0x02, 0x33, 0x32, 429 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x22, 0xe6, 0x02, 0x0a, 0x0f, 0x45, 0x76, 0x65, 0x6e, 430 0x74, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x6f, 0x72, 0x67, 0x12, 0x40, 0x0a, 0x04, 0x73, 431 0x6c, 0x6f, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x42, 0x2c, 0x82, 0xb5, 0x18, 0x28, 0x67, 432 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x72, 0x79, 0x73, 0x6d, 0x61, 433 0x74, 0x69, 0x63, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x65, 0x74, 0x68, 0x32, 0x2d, 0x74, 0x79, 0x70, 434 0x65, 0x73, 0x2e, 0x53, 0x6c, 0x6f, 0x74, 0x52, 0x04, 0x73, 0x6c, 0x6f, 0x74, 0x12, 0x14, 0x0a, 435 0x05, 0x64, 0x65, 0x70, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x64, 0x65, 436 0x70, 0x74, 0x68, 0x12, 0x2c, 0x0a, 0x0e, 0x6f, 0x6c, 0x64, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x5f, 437 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x06, 0x8a, 0xb5, 0x18, 438 0x02, 0x33, 0x32, 0x52, 0x0c, 0x6f, 0x6c, 0x64, 0x48, 0x65, 0x61, 0x64, 0x42, 0x6c, 0x6f, 0x63, 439 0x6b, 0x12, 0x2c, 0x0a, 0x0e, 0x6e, 0x65, 0x77, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x5f, 0x62, 0x6c, 440 0x6f, 0x63, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x06, 0x8a, 0xb5, 0x18, 0x02, 0x33, 441 0x32, 0x52, 0x0c, 0x6e, 0x65, 0x77, 0x48, 0x65, 0x61, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 442 0x2c, 0x0a, 0x0e, 0x6f, 0x6c, 0x64, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x74, 443 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x06, 0x8a, 0xb5, 0x18, 0x02, 0x33, 0x32, 0x52, 444 0x0c, 0x6f, 0x6c, 0x64, 0x48, 0x65, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x2c, 0x0a, 445 0x0e, 0x6e, 0x65, 0x77, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 446 0x06, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x06, 0x8a, 0xb5, 0x18, 0x02, 0x33, 0x32, 0x52, 0x0c, 0x6e, 447 0x65, 0x77, 0x48, 0x65, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x43, 0x0a, 0x05, 0x65, 448 0x70, 0x6f, 0x63, 0x68, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x42, 0x2d, 0x82, 0xb5, 0x18, 0x29, 449 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x72, 0x79, 0x73, 0x6d, 450 0x61, 0x74, 0x69, 0x63, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x65, 0x74, 0x68, 0x32, 0x2d, 0x74, 0x79, 451 0x70, 0x65, 0x73, 0x2e, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 452 0x22, 0x9b, 0x01, 0x0a, 0x18, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 453 0x7a, 0x65, 0x64, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 454 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x06, 0x8a, 0xb5, 455 0x18, 0x02, 0x33, 0x32, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x1c, 0x0a, 0x05, 0x73, 456 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x06, 0x8a, 0xb5, 0x18, 0x02, 457 0x33, 0x32, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x43, 0x0a, 0x05, 0x65, 0x70, 0x6f, 458 0x63, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x42, 0x2d, 0x82, 0xb5, 0x18, 0x29, 0x67, 0x69, 459 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x72, 0x79, 0x73, 0x6d, 0x61, 0x74, 460 0x69, 0x63, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x65, 0x74, 0x68, 0x32, 0x2d, 0x74, 0x79, 0x70, 0x65, 461 0x73, 0x2e, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x32, 0x6e, 462 0x0a, 0x06, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x64, 0x0a, 0x0c, 0x53, 0x74, 0x72, 0x65, 463 0x61, 0x6d, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x24, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 464 0x65, 0x75, 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 465 0x6d, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 466 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53, 0x6f, 467 0x75, 0x72, 0x63, 0x65, 0x22, 0x16, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x10, 0x12, 0x0e, 0x2f, 0x65, 468 0x74, 0x68, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x30, 0x01, 0x42, 0x7b, 469 0x0a, 0x13, 0x6f, 0x72, 0x67, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 470 0x74, 0x68, 0x2e, 0x76, 0x31, 0x42, 0x11, 0x42, 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x45, 0x76, 0x65, 471 0x6e, 0x74, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 472 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x72, 0x79, 0x73, 0x6d, 0x61, 0x74, 0x69, 0x63, 473 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x70, 0x72, 0x79, 0x73, 0x6d, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 474 0x2f, 0x65, 0x74, 0x68, 0x2f, 0x76, 0x31, 0xaa, 0x02, 0x0f, 0x45, 0x74, 0x68, 0x65, 0x72, 0x65, 475 0x75, 0x6d, 0x2e, 0x45, 0x74, 0x68, 0x2e, 0x76, 0x31, 0xca, 0x02, 0x0f, 0x45, 0x74, 0x68, 0x65, 476 0x72, 0x65, 0x75, 0x6d, 0x5c, 0x45, 0x74, 0x68, 0x5c, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 477 0x74, 0x6f, 0x33, 478 } 479 480 var ( 481 file_proto_eth_v1_events_service_proto_rawDescOnce sync.Once 482 file_proto_eth_v1_events_service_proto_rawDescData = file_proto_eth_v1_events_service_proto_rawDesc 483 ) 484 485 func file_proto_eth_v1_events_service_proto_rawDescGZIP() []byte { 486 file_proto_eth_v1_events_service_proto_rawDescOnce.Do(func() { 487 file_proto_eth_v1_events_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_eth_v1_events_service_proto_rawDescData) 488 }) 489 return file_proto_eth_v1_events_service_proto_rawDescData 490 } 491 492 var file_proto_eth_v1_events_service_proto_msgTypes = make([]protoimpl.MessageInfo, 5) 493 var file_proto_eth_v1_events_service_proto_goTypes = []interface{}{ 494 (*StreamEventsRequest)(nil), // 0: ethereum.eth.v1.StreamEventsRequest 495 (*EventHead)(nil), // 1: ethereum.eth.v1.EventHead 496 (*EventBlock)(nil), // 2: ethereum.eth.v1.EventBlock 497 (*EventChainReorg)(nil), // 3: ethereum.eth.v1.EventChainReorg 498 (*EventFinalizedCheckpoint)(nil), // 4: ethereum.eth.v1.EventFinalizedCheckpoint 499 (*gateway.EventSource)(nil), // 5: gateway.EventSource 500 } 501 var file_proto_eth_v1_events_service_proto_depIdxs = []int32{ 502 0, // 0: ethereum.eth.v1.Events.StreamEvents:input_type -> ethereum.eth.v1.StreamEventsRequest 503 5, // 1: ethereum.eth.v1.Events.StreamEvents:output_type -> gateway.EventSource 504 1, // [1:2] is the sub-list for method output_type 505 0, // [0:1] is the sub-list for method input_type 506 0, // [0:0] is the sub-list for extension type_name 507 0, // [0:0] is the sub-list for extension extendee 508 0, // [0:0] is the sub-list for field type_name 509 } 510 511 func init() { file_proto_eth_v1_events_service_proto_init() } 512 func file_proto_eth_v1_events_service_proto_init() { 513 if File_proto_eth_v1_events_service_proto != nil { 514 return 515 } 516 if !protoimpl.UnsafeEnabled { 517 file_proto_eth_v1_events_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 518 switch v := v.(*StreamEventsRequest); i { 519 case 0: 520 return &v.state 521 case 1: 522 return &v.sizeCache 523 case 2: 524 return &v.unknownFields 525 default: 526 return nil 527 } 528 } 529 file_proto_eth_v1_events_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 530 switch v := v.(*EventHead); i { 531 case 0: 532 return &v.state 533 case 1: 534 return &v.sizeCache 535 case 2: 536 return &v.unknownFields 537 default: 538 return nil 539 } 540 } 541 file_proto_eth_v1_events_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 542 switch v := v.(*EventBlock); i { 543 case 0: 544 return &v.state 545 case 1: 546 return &v.sizeCache 547 case 2: 548 return &v.unknownFields 549 default: 550 return nil 551 } 552 } 553 file_proto_eth_v1_events_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 554 switch v := v.(*EventChainReorg); i { 555 case 0: 556 return &v.state 557 case 1: 558 return &v.sizeCache 559 case 2: 560 return &v.unknownFields 561 default: 562 return nil 563 } 564 } 565 file_proto_eth_v1_events_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 566 switch v := v.(*EventFinalizedCheckpoint); i { 567 case 0: 568 return &v.state 569 case 1: 570 return &v.sizeCache 571 case 2: 572 return &v.unknownFields 573 default: 574 return nil 575 } 576 } 577 } 578 type x struct{} 579 out := protoimpl.TypeBuilder{ 580 File: protoimpl.DescBuilder{ 581 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 582 RawDescriptor: file_proto_eth_v1_events_service_proto_rawDesc, 583 NumEnums: 0, 584 NumMessages: 5, 585 NumExtensions: 0, 586 NumServices: 1, 587 }, 588 GoTypes: file_proto_eth_v1_events_service_proto_goTypes, 589 DependencyIndexes: file_proto_eth_v1_events_service_proto_depIdxs, 590 MessageInfos: file_proto_eth_v1_events_service_proto_msgTypes, 591 }.Build() 592 File_proto_eth_v1_events_service_proto = out.File 593 file_proto_eth_v1_events_service_proto_rawDesc = nil 594 file_proto_eth_v1_events_service_proto_goTypes = nil 595 file_proto_eth_v1_events_service_proto_depIdxs = nil 596 } 597 598 // Reference imports to suppress errors if they are not otherwise used. 599 var _ context.Context 600 var _ grpc.ClientConnInterface 601 602 // This is a compile-time assertion to ensure that this generated file 603 // is compatible with the grpc package it is being compiled against. 604 const _ = grpc.SupportPackageIsVersion6 605 606 // EventsClient is the client API for Events service. 607 // 608 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 609 type EventsClient interface { 610 StreamEvents(ctx context.Context, in *StreamEventsRequest, opts ...grpc.CallOption) (Events_StreamEventsClient, error) 611 } 612 613 type eventsClient struct { 614 cc grpc.ClientConnInterface 615 } 616 617 func NewEventsClient(cc grpc.ClientConnInterface) EventsClient { 618 return &eventsClient{cc} 619 } 620 621 func (c *eventsClient) StreamEvents(ctx context.Context, in *StreamEventsRequest, opts ...grpc.CallOption) (Events_StreamEventsClient, error) { 622 stream, err := c.cc.NewStream(ctx, &_Events_serviceDesc.Streams[0], "/ethereum.eth.v1.Events/StreamEvents", opts...) 623 if err != nil { 624 return nil, err 625 } 626 x := &eventsStreamEventsClient{stream} 627 if err := x.ClientStream.SendMsg(in); err != nil { 628 return nil, err 629 } 630 if err := x.ClientStream.CloseSend(); err != nil { 631 return nil, err 632 } 633 return x, nil 634 } 635 636 type Events_StreamEventsClient interface { 637 Recv() (*gateway.EventSource, error) 638 grpc.ClientStream 639 } 640 641 type eventsStreamEventsClient struct { 642 grpc.ClientStream 643 } 644 645 func (x *eventsStreamEventsClient) Recv() (*gateway.EventSource, error) { 646 m := new(gateway.EventSource) 647 if err := x.ClientStream.RecvMsg(m); err != nil { 648 return nil, err 649 } 650 return m, nil 651 } 652 653 // EventsServer is the server API for Events service. 654 type EventsServer interface { 655 StreamEvents(*StreamEventsRequest, Events_StreamEventsServer) error 656 } 657 658 // UnimplementedEventsServer can be embedded to have forward compatible implementations. 659 type UnimplementedEventsServer struct { 660 } 661 662 func (*UnimplementedEventsServer) StreamEvents(*StreamEventsRequest, Events_StreamEventsServer) error { 663 return status.Errorf(codes.Unimplemented, "method StreamEvents not implemented") 664 } 665 666 func RegisterEventsServer(s *grpc.Server, srv EventsServer) { 667 s.RegisterService(&_Events_serviceDesc, srv) 668 } 669 670 func _Events_StreamEvents_Handler(srv interface{}, stream grpc.ServerStream) error { 671 m := new(StreamEventsRequest) 672 if err := stream.RecvMsg(m); err != nil { 673 return err 674 } 675 return srv.(EventsServer).StreamEvents(m, &eventsStreamEventsServer{stream}) 676 } 677 678 type Events_StreamEventsServer interface { 679 Send(*gateway.EventSource) error 680 grpc.ServerStream 681 } 682 683 type eventsStreamEventsServer struct { 684 grpc.ServerStream 685 } 686 687 func (x *eventsStreamEventsServer) Send(m *gateway.EventSource) error { 688 return x.ServerStream.SendMsg(m) 689 } 690 691 var _Events_serviceDesc = grpc.ServiceDesc{ 692 ServiceName: "ethereum.eth.v1.Events", 693 HandlerType: (*EventsServer)(nil), 694 Methods: []grpc.MethodDesc{}, 695 Streams: []grpc.StreamDesc{ 696 { 697 StreamName: "StreamEvents", 698 Handler: _Events_StreamEvents_Handler, 699 ServerStreams: true, 700 }, 701 }, 702 Metadata: "proto/eth/v1/events_service.proto", 703 }