github.com/prysmaticlabs/prysm@v1.4.4/proto/beacon/db/powchain.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/beacon/db/powchain.proto 6 7 package db 8 9 import ( 10 reflect "reflect" 11 sync "sync" 12 13 proto "github.com/golang/protobuf/proto" 14 v1 "github.com/prysmaticlabs/prysm/proto/beacon/p2p/v1" 15 v1alpha1 "github.com/prysmaticlabs/prysm/proto/eth/v1alpha1" 16 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 17 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 18 ) 19 20 const ( 21 // Verify that this generated code is sufficiently up-to-date. 22 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 23 // Verify that runtime/protoimpl is sufficiently up-to-date. 24 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 25 ) 26 27 // This is a compile-time assertion that a sufficiently up-to-date version 28 // of the legacy proto package is being used. 29 const _ = proto.ProtoPackageIsVersion4 30 31 type ETH1ChainData struct { 32 state protoimpl.MessageState 33 sizeCache protoimpl.SizeCache 34 unknownFields protoimpl.UnknownFields 35 36 CurrentEth1Data *LatestETH1Data `protobuf:"bytes,1,opt,name=current_eth1_data,json=currentEth1Data,proto3" json:"current_eth1_data,omitempty"` 37 ChainstartData *ChainStartData `protobuf:"bytes,2,opt,name=chainstart_data,json=chainstartData,proto3" json:"chainstart_data,omitempty"` 38 BeaconState *v1.BeaconState `protobuf:"bytes,3,opt,name=beacon_state,json=beaconState,proto3" json:"beacon_state,omitempty"` 39 Trie *SparseMerkleTrie `protobuf:"bytes,4,opt,name=trie,proto3" json:"trie,omitempty"` 40 DepositContainers []*DepositContainer `protobuf:"bytes,5,rep,name=deposit_containers,json=depositContainers,proto3" json:"deposit_containers,omitempty"` 41 } 42 43 func (x *ETH1ChainData) Reset() { 44 *x = ETH1ChainData{} 45 if protoimpl.UnsafeEnabled { 46 mi := &file_proto_beacon_db_powchain_proto_msgTypes[0] 47 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 48 ms.StoreMessageInfo(mi) 49 } 50 } 51 52 func (x *ETH1ChainData) String() string { 53 return protoimpl.X.MessageStringOf(x) 54 } 55 56 func (*ETH1ChainData) ProtoMessage() {} 57 58 func (x *ETH1ChainData) ProtoReflect() protoreflect.Message { 59 mi := &file_proto_beacon_db_powchain_proto_msgTypes[0] 60 if protoimpl.UnsafeEnabled && x != nil { 61 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 62 if ms.LoadMessageInfo() == nil { 63 ms.StoreMessageInfo(mi) 64 } 65 return ms 66 } 67 return mi.MessageOf(x) 68 } 69 70 // Deprecated: Use ETH1ChainData.ProtoReflect.Descriptor instead. 71 func (*ETH1ChainData) Descriptor() ([]byte, []int) { 72 return file_proto_beacon_db_powchain_proto_rawDescGZIP(), []int{0} 73 } 74 75 func (x *ETH1ChainData) GetCurrentEth1Data() *LatestETH1Data { 76 if x != nil { 77 return x.CurrentEth1Data 78 } 79 return nil 80 } 81 82 func (x *ETH1ChainData) GetChainstartData() *ChainStartData { 83 if x != nil { 84 return x.ChainstartData 85 } 86 return nil 87 } 88 89 func (x *ETH1ChainData) GetBeaconState() *v1.BeaconState { 90 if x != nil { 91 return x.BeaconState 92 } 93 return nil 94 } 95 96 func (x *ETH1ChainData) GetTrie() *SparseMerkleTrie { 97 if x != nil { 98 return x.Trie 99 } 100 return nil 101 } 102 103 func (x *ETH1ChainData) GetDepositContainers() []*DepositContainer { 104 if x != nil { 105 return x.DepositContainers 106 } 107 return nil 108 } 109 110 type LatestETH1Data struct { 111 state protoimpl.MessageState 112 sizeCache protoimpl.SizeCache 113 unknownFields protoimpl.UnknownFields 114 115 BlockHeight uint64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` 116 BlockTime uint64 `protobuf:"varint,3,opt,name=block_time,json=blockTime,proto3" json:"block_time,omitempty"` 117 BlockHash []byte `protobuf:"bytes,4,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"` 118 LastRequestedBlock uint64 `protobuf:"varint,5,opt,name=last_requested_block,json=lastRequestedBlock,proto3" json:"last_requested_block,omitempty"` 119 } 120 121 func (x *LatestETH1Data) Reset() { 122 *x = LatestETH1Data{} 123 if protoimpl.UnsafeEnabled { 124 mi := &file_proto_beacon_db_powchain_proto_msgTypes[1] 125 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 126 ms.StoreMessageInfo(mi) 127 } 128 } 129 130 func (x *LatestETH1Data) String() string { 131 return protoimpl.X.MessageStringOf(x) 132 } 133 134 func (*LatestETH1Data) ProtoMessage() {} 135 136 func (x *LatestETH1Data) ProtoReflect() protoreflect.Message { 137 mi := &file_proto_beacon_db_powchain_proto_msgTypes[1] 138 if protoimpl.UnsafeEnabled && x != nil { 139 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 140 if ms.LoadMessageInfo() == nil { 141 ms.StoreMessageInfo(mi) 142 } 143 return ms 144 } 145 return mi.MessageOf(x) 146 } 147 148 // Deprecated: Use LatestETH1Data.ProtoReflect.Descriptor instead. 149 func (*LatestETH1Data) Descriptor() ([]byte, []int) { 150 return file_proto_beacon_db_powchain_proto_rawDescGZIP(), []int{1} 151 } 152 153 func (x *LatestETH1Data) GetBlockHeight() uint64 { 154 if x != nil { 155 return x.BlockHeight 156 } 157 return 0 158 } 159 160 func (x *LatestETH1Data) GetBlockTime() uint64 { 161 if x != nil { 162 return x.BlockTime 163 } 164 return 0 165 } 166 167 func (x *LatestETH1Data) GetBlockHash() []byte { 168 if x != nil { 169 return x.BlockHash 170 } 171 return nil 172 } 173 174 func (x *LatestETH1Data) GetLastRequestedBlock() uint64 { 175 if x != nil { 176 return x.LastRequestedBlock 177 } 178 return 0 179 } 180 181 type ChainStartData struct { 182 state protoimpl.MessageState 183 sizeCache protoimpl.SizeCache 184 unknownFields protoimpl.UnknownFields 185 186 Chainstarted bool `protobuf:"varint,1,opt,name=chainstarted,proto3" json:"chainstarted,omitempty"` 187 GenesisTime uint64 `protobuf:"varint,2,opt,name=genesis_time,json=genesisTime,proto3" json:"genesis_time,omitempty"` 188 GenesisBlock uint64 `protobuf:"varint,3,opt,name=genesis_block,json=genesisBlock,proto3" json:"genesis_block,omitempty"` 189 Eth1Data *v1alpha1.Eth1Data `protobuf:"bytes,4,opt,name=eth1_data,json=eth1Data,proto3" json:"eth1_data,omitempty"` 190 ChainstartDeposits []*v1alpha1.Deposit `protobuf:"bytes,5,rep,name=chainstart_deposits,json=chainstartDeposits,proto3" json:"chainstart_deposits,omitempty"` 191 } 192 193 func (x *ChainStartData) Reset() { 194 *x = ChainStartData{} 195 if protoimpl.UnsafeEnabled { 196 mi := &file_proto_beacon_db_powchain_proto_msgTypes[2] 197 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 198 ms.StoreMessageInfo(mi) 199 } 200 } 201 202 func (x *ChainStartData) String() string { 203 return protoimpl.X.MessageStringOf(x) 204 } 205 206 func (*ChainStartData) ProtoMessage() {} 207 208 func (x *ChainStartData) ProtoReflect() protoreflect.Message { 209 mi := &file_proto_beacon_db_powchain_proto_msgTypes[2] 210 if protoimpl.UnsafeEnabled && x != nil { 211 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 212 if ms.LoadMessageInfo() == nil { 213 ms.StoreMessageInfo(mi) 214 } 215 return ms 216 } 217 return mi.MessageOf(x) 218 } 219 220 // Deprecated: Use ChainStartData.ProtoReflect.Descriptor instead. 221 func (*ChainStartData) Descriptor() ([]byte, []int) { 222 return file_proto_beacon_db_powchain_proto_rawDescGZIP(), []int{2} 223 } 224 225 func (x *ChainStartData) GetChainstarted() bool { 226 if x != nil { 227 return x.Chainstarted 228 } 229 return false 230 } 231 232 func (x *ChainStartData) GetGenesisTime() uint64 { 233 if x != nil { 234 return x.GenesisTime 235 } 236 return 0 237 } 238 239 func (x *ChainStartData) GetGenesisBlock() uint64 { 240 if x != nil { 241 return x.GenesisBlock 242 } 243 return 0 244 } 245 246 func (x *ChainStartData) GetEth1Data() *v1alpha1.Eth1Data { 247 if x != nil { 248 return x.Eth1Data 249 } 250 return nil 251 } 252 253 func (x *ChainStartData) GetChainstartDeposits() []*v1alpha1.Deposit { 254 if x != nil { 255 return x.ChainstartDeposits 256 } 257 return nil 258 } 259 260 type SparseMerkleTrie struct { 261 state protoimpl.MessageState 262 sizeCache protoimpl.SizeCache 263 unknownFields protoimpl.UnknownFields 264 265 Depth uint64 `protobuf:"varint,1,opt,name=depth,proto3" json:"depth,omitempty"` 266 Layers []*TrieLayer `protobuf:"bytes,2,rep,name=layers,proto3" json:"layers,omitempty"` 267 OriginalItems [][]byte `protobuf:"bytes,3,rep,name=original_items,json=originalItems,proto3" json:"original_items,omitempty"` 268 } 269 270 func (x *SparseMerkleTrie) Reset() { 271 *x = SparseMerkleTrie{} 272 if protoimpl.UnsafeEnabled { 273 mi := &file_proto_beacon_db_powchain_proto_msgTypes[3] 274 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 275 ms.StoreMessageInfo(mi) 276 } 277 } 278 279 func (x *SparseMerkleTrie) String() string { 280 return protoimpl.X.MessageStringOf(x) 281 } 282 283 func (*SparseMerkleTrie) ProtoMessage() {} 284 285 func (x *SparseMerkleTrie) ProtoReflect() protoreflect.Message { 286 mi := &file_proto_beacon_db_powchain_proto_msgTypes[3] 287 if protoimpl.UnsafeEnabled && x != nil { 288 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 289 if ms.LoadMessageInfo() == nil { 290 ms.StoreMessageInfo(mi) 291 } 292 return ms 293 } 294 return mi.MessageOf(x) 295 } 296 297 // Deprecated: Use SparseMerkleTrie.ProtoReflect.Descriptor instead. 298 func (*SparseMerkleTrie) Descriptor() ([]byte, []int) { 299 return file_proto_beacon_db_powchain_proto_rawDescGZIP(), []int{3} 300 } 301 302 func (x *SparseMerkleTrie) GetDepth() uint64 { 303 if x != nil { 304 return x.Depth 305 } 306 return 0 307 } 308 309 func (x *SparseMerkleTrie) GetLayers() []*TrieLayer { 310 if x != nil { 311 return x.Layers 312 } 313 return nil 314 } 315 316 func (x *SparseMerkleTrie) GetOriginalItems() [][]byte { 317 if x != nil { 318 return x.OriginalItems 319 } 320 return nil 321 } 322 323 type TrieLayer struct { 324 state protoimpl.MessageState 325 sizeCache protoimpl.SizeCache 326 unknownFields protoimpl.UnknownFields 327 328 Layer [][]byte `protobuf:"bytes,1,rep,name=layer,proto3" json:"layer,omitempty"` 329 } 330 331 func (x *TrieLayer) Reset() { 332 *x = TrieLayer{} 333 if protoimpl.UnsafeEnabled { 334 mi := &file_proto_beacon_db_powchain_proto_msgTypes[4] 335 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 336 ms.StoreMessageInfo(mi) 337 } 338 } 339 340 func (x *TrieLayer) String() string { 341 return protoimpl.X.MessageStringOf(x) 342 } 343 344 func (*TrieLayer) ProtoMessage() {} 345 346 func (x *TrieLayer) ProtoReflect() protoreflect.Message { 347 mi := &file_proto_beacon_db_powchain_proto_msgTypes[4] 348 if protoimpl.UnsafeEnabled && x != nil { 349 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 350 if ms.LoadMessageInfo() == nil { 351 ms.StoreMessageInfo(mi) 352 } 353 return ms 354 } 355 return mi.MessageOf(x) 356 } 357 358 // Deprecated: Use TrieLayer.ProtoReflect.Descriptor instead. 359 func (*TrieLayer) Descriptor() ([]byte, []int) { 360 return file_proto_beacon_db_powchain_proto_rawDescGZIP(), []int{4} 361 } 362 363 func (x *TrieLayer) GetLayer() [][]byte { 364 if x != nil { 365 return x.Layer 366 } 367 return nil 368 } 369 370 type DepositContainer struct { 371 state protoimpl.MessageState 372 sizeCache protoimpl.SizeCache 373 unknownFields protoimpl.UnknownFields 374 375 Index int64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` 376 Eth1BlockHeight uint64 `protobuf:"varint,2,opt,name=eth1_block_height,json=eth1BlockHeight,proto3" json:"eth1_block_height,omitempty"` 377 Deposit *v1alpha1.Deposit `protobuf:"bytes,3,opt,name=deposit,proto3" json:"deposit,omitempty"` 378 DepositRoot []byte `protobuf:"bytes,4,opt,name=deposit_root,json=depositRoot,proto3" json:"deposit_root,omitempty"` 379 } 380 381 func (x *DepositContainer) Reset() { 382 *x = DepositContainer{} 383 if protoimpl.UnsafeEnabled { 384 mi := &file_proto_beacon_db_powchain_proto_msgTypes[5] 385 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 386 ms.StoreMessageInfo(mi) 387 } 388 } 389 390 func (x *DepositContainer) String() string { 391 return protoimpl.X.MessageStringOf(x) 392 } 393 394 func (*DepositContainer) ProtoMessage() {} 395 396 func (x *DepositContainer) ProtoReflect() protoreflect.Message { 397 mi := &file_proto_beacon_db_powchain_proto_msgTypes[5] 398 if protoimpl.UnsafeEnabled && x != nil { 399 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 400 if ms.LoadMessageInfo() == nil { 401 ms.StoreMessageInfo(mi) 402 } 403 return ms 404 } 405 return mi.MessageOf(x) 406 } 407 408 // Deprecated: Use DepositContainer.ProtoReflect.Descriptor instead. 409 func (*DepositContainer) Descriptor() ([]byte, []int) { 410 return file_proto_beacon_db_powchain_proto_rawDescGZIP(), []int{5} 411 } 412 413 func (x *DepositContainer) GetIndex() int64 { 414 if x != nil { 415 return x.Index 416 } 417 return 0 418 } 419 420 func (x *DepositContainer) GetEth1BlockHeight() uint64 { 421 if x != nil { 422 return x.Eth1BlockHeight 423 } 424 return 0 425 } 426 427 func (x *DepositContainer) GetDeposit() *v1alpha1.Deposit { 428 if x != nil { 429 return x.Deposit 430 } 431 return nil 432 } 433 434 func (x *DepositContainer) GetDepositRoot() []byte { 435 if x != nil { 436 return x.DepositRoot 437 } 438 return nil 439 } 440 441 var File_proto_beacon_db_powchain_proto protoreflect.FileDescriptor 442 443 var file_proto_beacon_db_powchain_proto_rawDesc = []byte{ 444 0x0a, 0x1e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x62, 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x2f, 0x64, 445 0x62, 0x2f, 0x70, 0x6f, 0x77, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 446 0x12, 0x0f, 0x70, 0x72, 0x79, 0x73, 0x6d, 0x2e, 0x62, 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x2e, 0x64, 447 0x62, 0x1a, 0x25, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x65, 0x74, 0x68, 0x2f, 0x76, 0x31, 0x61, 448 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x62, 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x5f, 0x62, 0x6c, 0x6f, 449 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 450 0x62, 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x2f, 0x70, 0x32, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x79, 451 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf7, 0x02, 0x0a, 0x0d, 0x45, 0x54, 452 0x48, 0x31, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x12, 0x4b, 0x0a, 0x11, 0x63, 453 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x65, 0x74, 0x68, 0x31, 0x5f, 0x64, 0x61, 0x74, 0x61, 454 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x72, 0x79, 0x73, 0x6d, 0x2e, 0x62, 455 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x2e, 0x64, 0x62, 0x2e, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x45, 456 0x54, 0x48, 0x31, 0x44, 0x61, 0x74, 0x61, 0x52, 0x0f, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 457 0x45, 0x74, 0x68, 0x31, 0x44, 0x61, 0x74, 0x61, 0x12, 0x48, 0x0a, 0x0f, 0x63, 0x68, 0x61, 0x69, 458 0x6e, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 459 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x72, 0x79, 0x73, 0x6d, 0x2e, 0x62, 0x65, 0x61, 0x63, 0x6f, 0x6e, 460 0x2e, 0x64, 0x62, 0x2e, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x44, 0x61, 461 0x74, 0x61, 0x52, 0x0e, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x72, 0x74, 0x44, 0x61, 462 0x74, 0x61, 0x12, 0x46, 0x0a, 0x0c, 0x62, 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 463 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 464 0x65, 0x75, 0x6d, 0x2e, 0x62, 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x2e, 0x70, 0x32, 0x70, 0x2e, 0x76, 465 0x31, 0x2e, 0x42, 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x0b, 0x62, 466 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x35, 0x0a, 0x04, 0x74, 0x72, 467 0x69, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x72, 0x79, 0x73, 0x6d, 468 0x2e, 0x62, 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x2e, 0x64, 0x62, 0x2e, 0x53, 0x70, 0x61, 0x72, 0x73, 469 0x65, 0x4d, 0x65, 0x72, 0x6b, 0x6c, 0x65, 0x54, 0x72, 0x69, 0x65, 0x52, 0x04, 0x74, 0x72, 0x69, 470 0x65, 0x12, 0x50, 0x0a, 0x12, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 471 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 472 0x70, 0x72, 0x79, 0x73, 0x6d, 0x2e, 0x62, 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x2e, 0x64, 0x62, 0x2e, 473 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 474 0x52, 0x11, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 475 0x65, 0x72, 0x73, 0x22, 0xa3, 0x01, 0x0a, 0x0e, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x45, 0x54, 476 0x48, 0x31, 0x44, 0x61, 0x74, 0x61, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 477 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x62, 0x6c, 478 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x6c, 0x6f, 479 0x63, 0x6b, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x62, 480 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x6c, 0x6f, 0x63, 481 0x6b, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x62, 0x6c, 482 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x12, 0x30, 0x0a, 0x14, 0x6c, 0x61, 0x73, 0x74, 0x5f, 483 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 484 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x6c, 0x61, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 485 0x73, 0x74, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x22, 0x8b, 0x02, 0x0a, 0x0e, 0x43, 0x68, 486 0x61, 0x69, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x22, 0x0a, 0x0c, 487 0x63, 0x68, 0x61, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 488 0x28, 0x08, 0x52, 0x0c, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 489 0x12, 0x21, 0x0a, 0x0c, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x5f, 0x74, 0x69, 0x6d, 0x65, 490 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x54, 491 0x69, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x5f, 0x62, 492 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x67, 0x65, 0x6e, 0x65, 493 0x73, 0x69, 0x73, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x3c, 0x0a, 0x09, 0x65, 0x74, 0x68, 0x31, 494 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x65, 0x74, 495 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 496 0x68, 0x61, 0x31, 0x2e, 0x45, 0x74, 0x68, 0x31, 0x44, 0x61, 0x74, 0x61, 0x52, 0x08, 0x65, 0x74, 497 0x68, 0x31, 0x44, 0x61, 0x74, 0x61, 0x12, 0x4f, 0x0a, 0x13, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x73, 498 0x74, 0x61, 0x72, 0x74, 0x5f, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x73, 0x18, 0x05, 0x20, 499 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 500 0x74, 0x68, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6f, 501 0x73, 0x69, 0x74, 0x52, 0x12, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x72, 0x74, 0x44, 502 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x73, 0x22, 0x83, 0x01, 0x0a, 0x10, 0x53, 0x70, 0x61, 0x72, 503 0x73, 0x65, 0x4d, 0x65, 0x72, 0x6b, 0x6c, 0x65, 0x54, 0x72, 0x69, 0x65, 0x12, 0x14, 0x0a, 0x05, 504 0x64, 0x65, 0x70, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x64, 0x65, 0x70, 505 0x74, 0x68, 0x12, 0x32, 0x0a, 0x06, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 506 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x72, 0x79, 0x73, 0x6d, 0x2e, 0x62, 0x65, 0x61, 0x63, 0x6f, 507 0x6e, 0x2e, 0x64, 0x62, 0x2e, 0x54, 0x72, 0x69, 0x65, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x52, 0x06, 508 0x6c, 0x61, 0x79, 0x65, 0x72, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 509 0x61, 0x6c, 0x5f, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0d, 510 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x21, 0x0a, 511 0x09, 0x54, 0x72, 0x69, 0x65, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x61, 512 0x79, 0x65, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x05, 0x6c, 0x61, 0x79, 0x65, 0x72, 513 0x22, 0xb1, 0x01, 0x0a, 0x10, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x43, 0x6f, 0x6e, 0x74, 514 0x61, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 515 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x2a, 0x0a, 0x11, 0x65, 516 0x74, 0x68, 0x31, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 517 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x65, 0x74, 0x68, 0x31, 0x42, 0x6c, 0x6f, 0x63, 518 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x38, 0x0a, 0x07, 0x64, 0x65, 0x70, 0x6f, 0x73, 519 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 520 0x65, 0x75, 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 521 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x52, 0x07, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 522 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x5f, 0x72, 0x6f, 0x6f, 523 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 524 0x52, 0x6f, 0x6f, 0x74, 0x42, 0x30, 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 525 0x6f, 0x6d, 0x2f, 0x70, 0x72, 0x79, 0x73, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x6c, 0x61, 0x62, 0x73, 526 0x2f, 0x70, 0x72, 0x79, 0x73, 0x6d, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x62, 0x65, 0x61, 527 0x63, 0x6f, 0x6e, 0x2f, 0x64, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 528 } 529 530 var ( 531 file_proto_beacon_db_powchain_proto_rawDescOnce sync.Once 532 file_proto_beacon_db_powchain_proto_rawDescData = file_proto_beacon_db_powchain_proto_rawDesc 533 ) 534 535 func file_proto_beacon_db_powchain_proto_rawDescGZIP() []byte { 536 file_proto_beacon_db_powchain_proto_rawDescOnce.Do(func() { 537 file_proto_beacon_db_powchain_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_beacon_db_powchain_proto_rawDescData) 538 }) 539 return file_proto_beacon_db_powchain_proto_rawDescData 540 } 541 542 var file_proto_beacon_db_powchain_proto_msgTypes = make([]protoimpl.MessageInfo, 6) 543 var file_proto_beacon_db_powchain_proto_goTypes = []interface{}{ 544 (*ETH1ChainData)(nil), // 0: prysm.beacon.db.ETH1ChainData 545 (*LatestETH1Data)(nil), // 1: prysm.beacon.db.LatestETH1Data 546 (*ChainStartData)(nil), // 2: prysm.beacon.db.ChainStartData 547 (*SparseMerkleTrie)(nil), // 3: prysm.beacon.db.SparseMerkleTrie 548 (*TrieLayer)(nil), // 4: prysm.beacon.db.TrieLayer 549 (*DepositContainer)(nil), // 5: prysm.beacon.db.DepositContainer 550 (*v1.BeaconState)(nil), // 6: ethereum.beacon.p2p.v1.BeaconState 551 (*v1alpha1.Eth1Data)(nil), // 7: ethereum.eth.v1alpha1.Eth1Data 552 (*v1alpha1.Deposit)(nil), // 8: ethereum.eth.v1alpha1.Deposit 553 } 554 var file_proto_beacon_db_powchain_proto_depIdxs = []int32{ 555 1, // 0: prysm.beacon.db.ETH1ChainData.current_eth1_data:type_name -> prysm.beacon.db.LatestETH1Data 556 2, // 1: prysm.beacon.db.ETH1ChainData.chainstart_data:type_name -> prysm.beacon.db.ChainStartData 557 6, // 2: prysm.beacon.db.ETH1ChainData.beacon_state:type_name -> ethereum.beacon.p2p.v1.BeaconState 558 3, // 3: prysm.beacon.db.ETH1ChainData.trie:type_name -> prysm.beacon.db.SparseMerkleTrie 559 5, // 4: prysm.beacon.db.ETH1ChainData.deposit_containers:type_name -> prysm.beacon.db.DepositContainer 560 7, // 5: prysm.beacon.db.ChainStartData.eth1_data:type_name -> ethereum.eth.v1alpha1.Eth1Data 561 8, // 6: prysm.beacon.db.ChainStartData.chainstart_deposits:type_name -> ethereum.eth.v1alpha1.Deposit 562 4, // 7: prysm.beacon.db.SparseMerkleTrie.layers:type_name -> prysm.beacon.db.TrieLayer 563 8, // 8: prysm.beacon.db.DepositContainer.deposit:type_name -> ethereum.eth.v1alpha1.Deposit 564 9, // [9:9] is the sub-list for method output_type 565 9, // [9:9] is the sub-list for method input_type 566 9, // [9:9] is the sub-list for extension type_name 567 9, // [9:9] is the sub-list for extension extendee 568 0, // [0:9] is the sub-list for field type_name 569 } 570 571 func init() { file_proto_beacon_db_powchain_proto_init() } 572 func file_proto_beacon_db_powchain_proto_init() { 573 if File_proto_beacon_db_powchain_proto != nil { 574 return 575 } 576 if !protoimpl.UnsafeEnabled { 577 file_proto_beacon_db_powchain_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 578 switch v := v.(*ETH1ChainData); i { 579 case 0: 580 return &v.state 581 case 1: 582 return &v.sizeCache 583 case 2: 584 return &v.unknownFields 585 default: 586 return nil 587 } 588 } 589 file_proto_beacon_db_powchain_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 590 switch v := v.(*LatestETH1Data); i { 591 case 0: 592 return &v.state 593 case 1: 594 return &v.sizeCache 595 case 2: 596 return &v.unknownFields 597 default: 598 return nil 599 } 600 } 601 file_proto_beacon_db_powchain_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 602 switch v := v.(*ChainStartData); i { 603 case 0: 604 return &v.state 605 case 1: 606 return &v.sizeCache 607 case 2: 608 return &v.unknownFields 609 default: 610 return nil 611 } 612 } 613 file_proto_beacon_db_powchain_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 614 switch v := v.(*SparseMerkleTrie); i { 615 case 0: 616 return &v.state 617 case 1: 618 return &v.sizeCache 619 case 2: 620 return &v.unknownFields 621 default: 622 return nil 623 } 624 } 625 file_proto_beacon_db_powchain_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 626 switch v := v.(*TrieLayer); i { 627 case 0: 628 return &v.state 629 case 1: 630 return &v.sizeCache 631 case 2: 632 return &v.unknownFields 633 default: 634 return nil 635 } 636 } 637 file_proto_beacon_db_powchain_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 638 switch v := v.(*DepositContainer); i { 639 case 0: 640 return &v.state 641 case 1: 642 return &v.sizeCache 643 case 2: 644 return &v.unknownFields 645 default: 646 return nil 647 } 648 } 649 } 650 type x struct{} 651 out := protoimpl.TypeBuilder{ 652 File: protoimpl.DescBuilder{ 653 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 654 RawDescriptor: file_proto_beacon_db_powchain_proto_rawDesc, 655 NumEnums: 0, 656 NumMessages: 6, 657 NumExtensions: 0, 658 NumServices: 0, 659 }, 660 GoTypes: file_proto_beacon_db_powchain_proto_goTypes, 661 DependencyIndexes: file_proto_beacon_db_powchain_proto_depIdxs, 662 MessageInfos: file_proto_beacon_db_powchain_proto_msgTypes, 663 }.Build() 664 File_proto_beacon_db_powchain_proto = out.File 665 file_proto_beacon_db_powchain_proto_rawDesc = nil 666 file_proto_beacon_db_powchain_proto_goTypes = nil 667 file_proto_beacon_db_powchain_proto_depIdxs = nil 668 }