@latticexyz/services 1.16.0 → 1.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/ecs-relay CHANGED
Binary file
package/bin/ecs-snapshot CHANGED
Binary file
package/bin/ecs-stream CHANGED
Binary file
package/bin/faucet CHANGED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@latticexyz/services",
3
3
  "license": "MIT",
4
- "version": "1.16.0",
4
+ "version": "1.17.0",
5
5
  "description": "MUD services for enhanced interactions with on-chain ECS state",
6
6
  "main": "protobuf/ts",
7
7
  "repository": {
@@ -20,5 +20,5 @@
20
20
  "ts-proto": "^1.126.1",
21
21
  "typedoc": "^0.23.10"
22
22
  },
23
- "gitHead": "b9e8909cfe6de3e2d1b3aab8bd15432cde76cafd"
23
+ "gitHead": "0b624a87163f9cba3b523b5cd677f336a5262740"
24
24
  }
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-go. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-go v1.28.1
4
- // protoc v3.20.1
4
+ // protoc v3.21.3
5
5
  // source: proto/ecs-snapshot.proto
6
6
 
7
7
  package ecs_snapshot
@@ -273,6 +273,62 @@ func (x *ECSStateRequestLatest) GetWorldAddress() string {
273
273
  return ""
274
274
  }
275
275
 
276
+ // The request message for the latest chunked ECS state.
277
+ type ECSStateRequestLatestStream struct {
278
+ state protoimpl.MessageState
279
+ sizeCache protoimpl.SizeCache
280
+ unknownFields protoimpl.UnknownFields
281
+
282
+ WorldAddress string `protobuf:"bytes,1,opt,name=worldAddress,proto3" json:"worldAddress,omitempty"`
283
+ ChunkPercentage *uint32 `protobuf:"varint,2,opt,name=chunkPercentage,proto3,oneof" json:"chunkPercentage,omitempty"`
284
+ }
285
+
286
+ func (x *ECSStateRequestLatestStream) Reset() {
287
+ *x = ECSStateRequestLatestStream{}
288
+ if protoimpl.UnsafeEnabled {
289
+ mi := &file_proto_ecs_snapshot_proto_msgTypes[4]
290
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
291
+ ms.StoreMessageInfo(mi)
292
+ }
293
+ }
294
+
295
+ func (x *ECSStateRequestLatestStream) String() string {
296
+ return protoimpl.X.MessageStringOf(x)
297
+ }
298
+
299
+ func (*ECSStateRequestLatestStream) ProtoMessage() {}
300
+
301
+ func (x *ECSStateRequestLatestStream) ProtoReflect() protoreflect.Message {
302
+ mi := &file_proto_ecs_snapshot_proto_msgTypes[4]
303
+ if protoimpl.UnsafeEnabled && x != nil {
304
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
305
+ if ms.LoadMessageInfo() == nil {
306
+ ms.StoreMessageInfo(mi)
307
+ }
308
+ return ms
309
+ }
310
+ return mi.MessageOf(x)
311
+ }
312
+
313
+ // Deprecated: Use ECSStateRequestLatestStream.ProtoReflect.Descriptor instead.
314
+ func (*ECSStateRequestLatestStream) Descriptor() ([]byte, []int) {
315
+ return file_proto_ecs_snapshot_proto_rawDescGZIP(), []int{4}
316
+ }
317
+
318
+ func (x *ECSStateRequestLatestStream) GetWorldAddress() string {
319
+ if x != nil {
320
+ return x.WorldAddress
321
+ }
322
+ return ""
323
+ }
324
+
325
+ func (x *ECSStateRequestLatestStream) GetChunkPercentage() uint32 {
326
+ if x != nil && x.ChunkPercentage != nil {
327
+ return *x.ChunkPercentage
328
+ }
329
+ return 0
330
+ }
331
+
276
332
  // The request message for the latest block based on latest ECS state.
277
333
  type ECSStateBlockRequestLatest struct {
278
334
  state protoimpl.MessageState
@@ -285,7 +341,7 @@ type ECSStateBlockRequestLatest struct {
285
341
  func (x *ECSStateBlockRequestLatest) Reset() {
286
342
  *x = ECSStateBlockRequestLatest{}
287
343
  if protoimpl.UnsafeEnabled {
288
- mi := &file_proto_ecs_snapshot_proto_msgTypes[4]
344
+ mi := &file_proto_ecs_snapshot_proto_msgTypes[5]
289
345
  ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
290
346
  ms.StoreMessageInfo(mi)
291
347
  }
@@ -298,7 +354,7 @@ func (x *ECSStateBlockRequestLatest) String() string {
298
354
  func (*ECSStateBlockRequestLatest) ProtoMessage() {}
299
355
 
300
356
  func (x *ECSStateBlockRequestLatest) ProtoReflect() protoreflect.Message {
301
- mi := &file_proto_ecs_snapshot_proto_msgTypes[4]
357
+ mi := &file_proto_ecs_snapshot_proto_msgTypes[5]
302
358
  if protoimpl.UnsafeEnabled && x != nil {
303
359
  ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
304
360
  if ms.LoadMessageInfo() == nil {
@@ -311,7 +367,7 @@ func (x *ECSStateBlockRequestLatest) ProtoReflect() protoreflect.Message {
311
367
 
312
368
  // Deprecated: Use ECSStateBlockRequestLatest.ProtoReflect.Descriptor instead.
313
369
  func (*ECSStateBlockRequestLatest) Descriptor() ([]byte, []int) {
314
- return file_proto_ecs_snapshot_proto_rawDescGZIP(), []int{4}
370
+ return file_proto_ecs_snapshot_proto_rawDescGZIP(), []int{5}
315
371
  }
316
372
 
317
373
  func (x *ECSStateBlockRequestLatest) GetWorldAddress() string {
@@ -333,7 +389,7 @@ type ECSStateRequestAtBlock struct {
333
389
  func (x *ECSStateRequestAtBlock) Reset() {
334
390
  *x = ECSStateRequestAtBlock{}
335
391
  if protoimpl.UnsafeEnabled {
336
- mi := &file_proto_ecs_snapshot_proto_msgTypes[5]
392
+ mi := &file_proto_ecs_snapshot_proto_msgTypes[6]
337
393
  ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
338
394
  ms.StoreMessageInfo(mi)
339
395
  }
@@ -346,7 +402,7 @@ func (x *ECSStateRequestAtBlock) String() string {
346
402
  func (*ECSStateRequestAtBlock) ProtoMessage() {}
347
403
 
348
404
  func (x *ECSStateRequestAtBlock) ProtoReflect() protoreflect.Message {
349
- mi := &file_proto_ecs_snapshot_proto_msgTypes[5]
405
+ mi := &file_proto_ecs_snapshot_proto_msgTypes[6]
350
406
  if protoimpl.UnsafeEnabled && x != nil {
351
407
  ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
352
408
  if ms.LoadMessageInfo() == nil {
@@ -359,7 +415,7 @@ func (x *ECSStateRequestAtBlock) ProtoReflect() protoreflect.Message {
359
415
 
360
416
  // Deprecated: Use ECSStateRequestAtBlock.ProtoReflect.Descriptor instead.
361
417
  func (*ECSStateRequestAtBlock) Descriptor() ([]byte, []int) {
362
- return file_proto_ecs_snapshot_proto_rawDescGZIP(), []int{5}
418
+ return file_proto_ecs_snapshot_proto_rawDescGZIP(), []int{6}
363
419
  }
364
420
 
365
421
  func (x *ECSStateRequestAtBlock) GetBlockNumber() uint64 {
@@ -379,7 +435,7 @@ type WorldsRequest struct {
379
435
  func (x *WorldsRequest) Reset() {
380
436
  *x = WorldsRequest{}
381
437
  if protoimpl.UnsafeEnabled {
382
- mi := &file_proto_ecs_snapshot_proto_msgTypes[6]
438
+ mi := &file_proto_ecs_snapshot_proto_msgTypes[7]
383
439
  ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
384
440
  ms.StoreMessageInfo(mi)
385
441
  }
@@ -392,7 +448,7 @@ func (x *WorldsRequest) String() string {
392
448
  func (*WorldsRequest) ProtoMessage() {}
393
449
 
394
450
  func (x *WorldsRequest) ProtoReflect() protoreflect.Message {
395
- mi := &file_proto_ecs_snapshot_proto_msgTypes[6]
451
+ mi := &file_proto_ecs_snapshot_proto_msgTypes[7]
396
452
  if protoimpl.UnsafeEnabled && x != nil {
397
453
  ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
398
454
  if ms.LoadMessageInfo() == nil {
@@ -405,7 +461,7 @@ func (x *WorldsRequest) ProtoReflect() protoreflect.Message {
405
461
 
406
462
  // Deprecated: Use WorldsRequest.ProtoReflect.Descriptor instead.
407
463
  func (*WorldsRequest) Descriptor() ([]byte, []int) {
408
- return file_proto_ecs_snapshot_proto_rawDescGZIP(), []int{6}
464
+ return file_proto_ecs_snapshot_proto_rawDescGZIP(), []int{7}
409
465
  }
410
466
 
411
467
  // The response message containing the current state, hash of that state, and the block number of that state.
@@ -424,7 +480,7 @@ type ECSStateReply struct {
424
480
  func (x *ECSStateReply) Reset() {
425
481
  *x = ECSStateReply{}
426
482
  if protoimpl.UnsafeEnabled {
427
- mi := &file_proto_ecs_snapshot_proto_msgTypes[7]
483
+ mi := &file_proto_ecs_snapshot_proto_msgTypes[8]
428
484
  ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
429
485
  ms.StoreMessageInfo(mi)
430
486
  }
@@ -437,7 +493,7 @@ func (x *ECSStateReply) String() string {
437
493
  func (*ECSStateReply) ProtoMessage() {}
438
494
 
439
495
  func (x *ECSStateReply) ProtoReflect() protoreflect.Message {
440
- mi := &file_proto_ecs_snapshot_proto_msgTypes[7]
496
+ mi := &file_proto_ecs_snapshot_proto_msgTypes[8]
441
497
  if protoimpl.UnsafeEnabled && x != nil {
442
498
  ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
443
499
  if ms.LoadMessageInfo() == nil {
@@ -450,7 +506,7 @@ func (x *ECSStateReply) ProtoReflect() protoreflect.Message {
450
506
 
451
507
  // Deprecated: Use ECSStateReply.ProtoReflect.Descriptor instead.
452
508
  func (*ECSStateReply) Descriptor() ([]byte, []int) {
453
- return file_proto_ecs_snapshot_proto_rawDescGZIP(), []int{7}
509
+ return file_proto_ecs_snapshot_proto_rawDescGZIP(), []int{8}
454
510
  }
455
511
 
456
512
  func (x *ECSStateReply) GetState() []*ECSState {
@@ -499,7 +555,7 @@ type ECSStateBlockReply struct {
499
555
  func (x *ECSStateBlockReply) Reset() {
500
556
  *x = ECSStateBlockReply{}
501
557
  if protoimpl.UnsafeEnabled {
502
- mi := &file_proto_ecs_snapshot_proto_msgTypes[8]
558
+ mi := &file_proto_ecs_snapshot_proto_msgTypes[9]
503
559
  ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
504
560
  ms.StoreMessageInfo(mi)
505
561
  }
@@ -512,7 +568,7 @@ func (x *ECSStateBlockReply) String() string {
512
568
  func (*ECSStateBlockReply) ProtoMessage() {}
513
569
 
514
570
  func (x *ECSStateBlockReply) ProtoReflect() protoreflect.Message {
515
- mi := &file_proto_ecs_snapshot_proto_msgTypes[8]
571
+ mi := &file_proto_ecs_snapshot_proto_msgTypes[9]
516
572
  if protoimpl.UnsafeEnabled && x != nil {
517
573
  ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
518
574
  if ms.LoadMessageInfo() == nil {
@@ -525,7 +581,7 @@ func (x *ECSStateBlockReply) ProtoReflect() protoreflect.Message {
525
581
 
526
582
  // Deprecated: Use ECSStateBlockReply.ProtoReflect.Descriptor instead.
527
583
  func (*ECSStateBlockReply) Descriptor() ([]byte, []int) {
528
- return file_proto_ecs_snapshot_proto_rawDescGZIP(), []int{8}
584
+ return file_proto_ecs_snapshot_proto_rawDescGZIP(), []int{9}
529
585
  }
530
586
 
531
587
  func (x *ECSStateBlockReply) GetBlockNumber() uint32 {
@@ -572,63 +628,72 @@ var file_proto_ecs_snapshot_proto_rawDesc = []byte{
572
628
  0x15, 0x45, 0x43, 0x53, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
573
629
  0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x41,
574
630
  0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x77, 0x6f,
575
- 0x72, 0x6c, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x40, 0x0a, 0x1a, 0x45, 0x43,
576
- 0x53, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65,
577
- 0x73, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x77, 0x6f, 0x72, 0x6c,
578
- 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c,
579
- 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x3a, 0x0a, 0x16,
580
- 0x45, 0x43, 0x53, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x41,
581
- 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x20, 0x0a, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4e,
582
- 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x62, 0x6c, 0x6f,
583
- 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x0f, 0x0a, 0x0d, 0x57, 0x6f, 0x72, 0x6c,
584
- 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xcc, 0x01, 0x0a, 0x0d, 0x45, 0x43,
585
- 0x53, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x2b, 0x0a, 0x05, 0x73,
586
- 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x65, 0x63, 0x73,
587
- 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x45, 0x43, 0x53, 0x53, 0x74, 0x61, 0x74,
588
- 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x73, 0x74, 0x61, 0x74,
589
- 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28,
590
- 0x09, 0x52, 0x0f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e,
591
- 0x74, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74,
592
- 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x65,
593
- 0x45, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x74,
594
- 0x65, 0x48, 0x61, 0x73, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x61,
595
- 0x74, 0x65, 0x48, 0x61, 0x73, 0x68, 0x12, 0x20, 0x0a, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4e,
596
- 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x62, 0x6c, 0x6f,
597
- 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x36, 0x0a, 0x12, 0x45, 0x43, 0x53, 0x53,
598
- 0x74, 0x61, 0x74, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x20,
599
- 0x0a, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01, 0x20,
600
- 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72,
601
- 0x32, 0xc2, 0x03, 0x0a, 0x17, 0x45, 0x43, 0x53, 0x53, 0x74, 0x61, 0x74, 0x65, 0x53, 0x6e, 0x61,
602
- 0x70, 0x73, 0x68, 0x6f, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x52, 0x0a, 0x0e,
603
- 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x12, 0x22,
604
- 0x2e, 0x65, 0x63, 0x73, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x45, 0x43, 0x53,
605
- 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4c, 0x61, 0x74, 0x65,
606
- 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74,
607
- 0x2e, 0x45, 0x43, 0x53, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00,
608
- 0x12, 0x5a, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x4c, 0x61, 0x74, 0x65,
609
- 0x73, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x22, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x6e,
610
- 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x45, 0x43, 0x53, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52,
611
- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x65,
612
- 0x63, 0x73, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x45, 0x43, 0x53, 0x53, 0x74,
613
- 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x30, 0x01, 0x12, 0x61, 0x0a, 0x13,
614
- 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4c, 0x61, 0x74,
615
- 0x65, 0x73, 0x74, 0x12, 0x27, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f,
616
- 0x74, 0x2e, 0x45, 0x43, 0x53, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52,
617
- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x65,
618
- 0x63, 0x73, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x45, 0x43, 0x53, 0x53, 0x74,
619
- 0x61, 0x74, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12,
620
- 0x54, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x41, 0x74, 0x42, 0x6c, 0x6f,
621
- 0x63, 0x6b, 0x12, 0x23, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74,
622
- 0x2e, 0x45, 0x43, 0x53, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
623
- 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x1a, 0x1a, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x6e, 0x61,
624
- 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x45, 0x43, 0x53, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65,
625
- 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x3e, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6c,
626
- 0x64, 0x73, 0x12, 0x1a, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74,
627
- 0x2e, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13,
628
- 0x2e, 0x65, 0x63, 0x73, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x57, 0x6f, 0x72,
629
- 0x6c, 0x64, 0x73, 0x22, 0x00, 0x42, 0x1a, 0x5a, 0x18, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
630
- 0x66, 0x2f, 0x67, 0x6f, 0x2f, 0x65, 0x63, 0x73, 0x2d, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f,
631
- 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
631
+ 0x72, 0x6c, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x84, 0x01, 0x0a, 0x1b, 0x45,
632
+ 0x43, 0x53, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4c, 0x61,
633
+ 0x74, 0x65, 0x73, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x22, 0x0a, 0x0c, 0x77, 0x6f,
634
+ 0x72, 0x6c, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
635
+ 0x52, 0x0c, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2d,
636
+ 0x0a, 0x0f, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67,
637
+ 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x48, 0x00, 0x52, 0x0f, 0x63, 0x68, 0x75, 0x6e, 0x6b,
638
+ 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x88, 0x01, 0x01, 0x42, 0x12, 0x0a,
639
+ 0x10, 0x5f, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67,
640
+ 0x65, 0x22, 0x40, 0x0a, 0x1a, 0x45, 0x43, 0x53, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x6c, 0x6f,
641
+ 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x12,
642
+ 0x22, 0x0a, 0x0c, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18,
643
+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x41, 0x64, 0x64, 0x72,
644
+ 0x65, 0x73, 0x73, 0x22, 0x3a, 0x0a, 0x16, 0x45, 0x43, 0x53, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52,
645
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x20, 0x0a,
646
+ 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01,
647
+ 0x28, 0x04, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22,
648
+ 0x0f, 0x0a, 0x0d, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
649
+ 0x22, 0xcc, 0x01, 0x0a, 0x0d, 0x45, 0x43, 0x53, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70,
650
+ 0x6c, 0x79, 0x12, 0x2b, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28,
651
+ 0x0b, 0x32, 0x15, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e,
652
+ 0x45, 0x43, 0x53, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12,
653
+ 0x28, 0x0a, 0x0f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e,
654
+ 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x43,
655
+ 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x73, 0x74, 0x61,
656
+ 0x74, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09,
657
+ 0x52, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12,
658
+ 0x1c, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x48, 0x61, 0x73, 0x68, 0x18, 0x04, 0x20, 0x01,
659
+ 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x48, 0x61, 0x73, 0x68, 0x12, 0x20, 0x0a,
660
+ 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01,
661
+ 0x28, 0x0d, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22,
662
+ 0x36, 0x0a, 0x12, 0x45, 0x43, 0x53, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b,
663
+ 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75,
664
+ 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63,
665
+ 0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x32, 0xc8, 0x03, 0x0a, 0x17, 0x45, 0x43, 0x53, 0x53,
666
+ 0x74, 0x61, 0x74, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x53, 0x65, 0x72, 0x76,
667
+ 0x69, 0x63, 0x65, 0x12, 0x52, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x4c,
668
+ 0x61, 0x74, 0x65, 0x73, 0x74, 0x12, 0x22, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x6e, 0x61, 0x70, 0x73,
669
+ 0x68, 0x6f, 0x74, 0x2e, 0x45, 0x43, 0x53, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75,
670
+ 0x65, 0x73, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x65, 0x63, 0x73, 0x73,
671
+ 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x45, 0x43, 0x53, 0x53, 0x74, 0x61, 0x74, 0x65,
672
+ 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x60, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x53, 0x74,
673
+ 0x61, 0x74, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12,
674
+ 0x28, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x45, 0x43,
675
+ 0x53, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4c, 0x61, 0x74,
676
+ 0x65, 0x73, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x1a, 0x1a, 0x2e, 0x65, 0x63, 0x73, 0x73,
677
+ 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x45, 0x43, 0x53, 0x53, 0x74, 0x61, 0x74, 0x65,
678
+ 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x30, 0x01, 0x12, 0x61, 0x0a, 0x13, 0x47, 0x65, 0x74,
679
+ 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74,
680
+ 0x12, 0x27, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x45,
681
+ 0x43, 0x53, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75,
682
+ 0x65, 0x73, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x65, 0x63, 0x73, 0x73,
683
+ 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x45, 0x43, 0x53, 0x53, 0x74, 0x61, 0x74, 0x65,
684
+ 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x54, 0x0a, 0x0f,
685
+ 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12,
686
+ 0x23, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x45, 0x43,
687
+ 0x53, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x41, 0x74, 0x42,
688
+ 0x6c, 0x6f, 0x63, 0x6b, 0x1a, 0x1a, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68,
689
+ 0x6f, 0x74, 0x2e, 0x45, 0x43, 0x53, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79,
690
+ 0x22, 0x00, 0x12, 0x3e, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x73, 0x12,
691
+ 0x1a, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x57, 0x6f,
692
+ 0x72, 0x6c, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x65, 0x63,
693
+ 0x73, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x73,
694
+ 0x22, 0x00, 0x42, 0x1a, 0x5a, 0x18, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x67,
695
+ 0x6f, 0x2f, 0x65, 0x63, 0x73, 0x2d, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x62, 0x06,
696
+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
632
697
  }
633
698
 
634
699
  var (
@@ -643,30 +708,31 @@ func file_proto_ecs_snapshot_proto_rawDescGZIP() []byte {
643
708
  return file_proto_ecs_snapshot_proto_rawDescData
644
709
  }
645
710
 
646
- var file_proto_ecs_snapshot_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
711
+ var file_proto_ecs_snapshot_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
647
712
  var file_proto_ecs_snapshot_proto_goTypes = []interface{}{
648
- (*ECSState)(nil), // 0: ecssnapshot.ECSState
649
- (*ECSStateSnapshot)(nil), // 1: ecssnapshot.ECSStateSnapshot
650
- (*Worlds)(nil), // 2: ecssnapshot.Worlds
651
- (*ECSStateRequestLatest)(nil), // 3: ecssnapshot.ECSStateRequestLatest
652
- (*ECSStateBlockRequestLatest)(nil), // 4: ecssnapshot.ECSStateBlockRequestLatest
653
- (*ECSStateRequestAtBlock)(nil), // 5: ecssnapshot.ECSStateRequestAtBlock
654
- (*WorldsRequest)(nil), // 6: ecssnapshot.WorldsRequest
655
- (*ECSStateReply)(nil), // 7: ecssnapshot.ECSStateReply
656
- (*ECSStateBlockReply)(nil), // 8: ecssnapshot.ECSStateBlockReply
713
+ (*ECSState)(nil), // 0: ecssnapshot.ECSState
714
+ (*ECSStateSnapshot)(nil), // 1: ecssnapshot.ECSStateSnapshot
715
+ (*Worlds)(nil), // 2: ecssnapshot.Worlds
716
+ (*ECSStateRequestLatest)(nil), // 3: ecssnapshot.ECSStateRequestLatest
717
+ (*ECSStateRequestLatestStream)(nil), // 4: ecssnapshot.ECSStateRequestLatestStream
718
+ (*ECSStateBlockRequestLatest)(nil), // 5: ecssnapshot.ECSStateBlockRequestLatest
719
+ (*ECSStateRequestAtBlock)(nil), // 6: ecssnapshot.ECSStateRequestAtBlock
720
+ (*WorldsRequest)(nil), // 7: ecssnapshot.WorldsRequest
721
+ (*ECSStateReply)(nil), // 8: ecssnapshot.ECSStateReply
722
+ (*ECSStateBlockReply)(nil), // 9: ecssnapshot.ECSStateBlockReply
657
723
  }
658
724
  var file_proto_ecs_snapshot_proto_depIdxs = []int32{
659
725
  0, // 0: ecssnapshot.ECSStateSnapshot.state:type_name -> ecssnapshot.ECSState
660
726
  0, // 1: ecssnapshot.ECSStateReply.state:type_name -> ecssnapshot.ECSState
661
727
  3, // 2: ecssnapshot.ECSStateSnapshotService.GetStateLatest:input_type -> ecssnapshot.ECSStateRequestLatest
662
- 3, // 3: ecssnapshot.ECSStateSnapshotService.GetStateLatestStream:input_type -> ecssnapshot.ECSStateRequestLatest
663
- 4, // 4: ecssnapshot.ECSStateSnapshotService.GetStateBlockLatest:input_type -> ecssnapshot.ECSStateBlockRequestLatest
664
- 5, // 5: ecssnapshot.ECSStateSnapshotService.GetStateAtBlock:input_type -> ecssnapshot.ECSStateRequestAtBlock
665
- 6, // 6: ecssnapshot.ECSStateSnapshotService.GetWorlds:input_type -> ecssnapshot.WorldsRequest
666
- 7, // 7: ecssnapshot.ECSStateSnapshotService.GetStateLatest:output_type -> ecssnapshot.ECSStateReply
667
- 7, // 8: ecssnapshot.ECSStateSnapshotService.GetStateLatestStream:output_type -> ecssnapshot.ECSStateReply
668
- 8, // 9: ecssnapshot.ECSStateSnapshotService.GetStateBlockLatest:output_type -> ecssnapshot.ECSStateBlockReply
669
- 7, // 10: ecssnapshot.ECSStateSnapshotService.GetStateAtBlock:output_type -> ecssnapshot.ECSStateReply
728
+ 4, // 3: ecssnapshot.ECSStateSnapshotService.GetStateLatestStream:input_type -> ecssnapshot.ECSStateRequestLatestStream
729
+ 5, // 4: ecssnapshot.ECSStateSnapshotService.GetStateBlockLatest:input_type -> ecssnapshot.ECSStateBlockRequestLatest
730
+ 6, // 5: ecssnapshot.ECSStateSnapshotService.GetStateAtBlock:input_type -> ecssnapshot.ECSStateRequestAtBlock
731
+ 7, // 6: ecssnapshot.ECSStateSnapshotService.GetWorlds:input_type -> ecssnapshot.WorldsRequest
732
+ 8, // 7: ecssnapshot.ECSStateSnapshotService.GetStateLatest:output_type -> ecssnapshot.ECSStateReply
733
+ 8, // 8: ecssnapshot.ECSStateSnapshotService.GetStateLatestStream:output_type -> ecssnapshot.ECSStateReply
734
+ 9, // 9: ecssnapshot.ECSStateSnapshotService.GetStateBlockLatest:output_type -> ecssnapshot.ECSStateBlockReply
735
+ 8, // 10: ecssnapshot.ECSStateSnapshotService.GetStateAtBlock:output_type -> ecssnapshot.ECSStateReply
670
736
  2, // 11: ecssnapshot.ECSStateSnapshotService.GetWorlds:output_type -> ecssnapshot.Worlds
671
737
  7, // [7:12] is the sub-list for method output_type
672
738
  2, // [2:7] is the sub-list for method input_type
@@ -730,7 +796,7 @@ func file_proto_ecs_snapshot_proto_init() {
730
796
  }
731
797
  }
732
798
  file_proto_ecs_snapshot_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
733
- switch v := v.(*ECSStateBlockRequestLatest); i {
799
+ switch v := v.(*ECSStateRequestLatestStream); i {
734
800
  case 0:
735
801
  return &v.state
736
802
  case 1:
@@ -742,7 +808,7 @@ func file_proto_ecs_snapshot_proto_init() {
742
808
  }
743
809
  }
744
810
  file_proto_ecs_snapshot_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
745
- switch v := v.(*ECSStateRequestAtBlock); i {
811
+ switch v := v.(*ECSStateBlockRequestLatest); i {
746
812
  case 0:
747
813
  return &v.state
748
814
  case 1:
@@ -754,7 +820,7 @@ func file_proto_ecs_snapshot_proto_init() {
754
820
  }
755
821
  }
756
822
  file_proto_ecs_snapshot_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
757
- switch v := v.(*WorldsRequest); i {
823
+ switch v := v.(*ECSStateRequestAtBlock); i {
758
824
  case 0:
759
825
  return &v.state
760
826
  case 1:
@@ -766,7 +832,7 @@ func file_proto_ecs_snapshot_proto_init() {
766
832
  }
767
833
  }
768
834
  file_proto_ecs_snapshot_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
769
- switch v := v.(*ECSStateReply); i {
835
+ switch v := v.(*WorldsRequest); i {
770
836
  case 0:
771
837
  return &v.state
772
838
  case 1:
@@ -778,6 +844,18 @@ func file_proto_ecs_snapshot_proto_init() {
778
844
  }
779
845
  }
780
846
  file_proto_ecs_snapshot_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
847
+ switch v := v.(*ECSStateReply); i {
848
+ case 0:
849
+ return &v.state
850
+ case 1:
851
+ return &v.sizeCache
852
+ case 2:
853
+ return &v.unknownFields
854
+ default:
855
+ return nil
856
+ }
857
+ }
858
+ file_proto_ecs_snapshot_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
781
859
  switch v := v.(*ECSStateBlockReply); i {
782
860
  case 0:
783
861
  return &v.state
@@ -790,13 +868,14 @@ func file_proto_ecs_snapshot_proto_init() {
790
868
  }
791
869
  }
792
870
  }
871
+ file_proto_ecs_snapshot_proto_msgTypes[4].OneofWrappers = []interface{}{}
793
872
  type x struct{}
794
873
  out := protoimpl.TypeBuilder{
795
874
  File: protoimpl.DescBuilder{
796
875
  GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
797
876
  RawDescriptor: file_proto_ecs_snapshot_proto_rawDesc,
798
877
  NumEnums: 0,
799
- NumMessages: 9,
878
+ NumMessages: 10,
800
879
  NumExtensions: 0,
801
880
  NumServices: 1,
802
881
  },
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
2
2
  // versions:
3
3
  // - protoc-gen-go-grpc v1.2.0
4
- // - protoc v3.20.1
4
+ // - protoc v3.21.3
5
5
  // source: proto/ecs-snapshot.proto
6
6
 
7
7
  package ecs_snapshot
@@ -25,7 +25,7 @@ type ECSStateSnapshotServiceClient interface {
25
25
  // Requests the latest ECS state.
26
26
  GetStateLatest(ctx context.Context, in *ECSStateRequestLatest, opts ...grpc.CallOption) (*ECSStateReply, error)
27
27
  // Requests the latest ECS state in stream format, which will chunk the state.
28
- GetStateLatestStream(ctx context.Context, in *ECSStateRequestLatest, opts ...grpc.CallOption) (ECSStateSnapshotService_GetStateLatestStreamClient, error)
28
+ GetStateLatestStream(ctx context.Context, in *ECSStateRequestLatestStream, opts ...grpc.CallOption) (ECSStateSnapshotService_GetStateLatestStreamClient, error)
29
29
  // Requests the latest block number based on the latest ECS state.
30
30
  GetStateBlockLatest(ctx context.Context, in *ECSStateBlockRequestLatest, opts ...grpc.CallOption) (*ECSStateBlockReply, error)
31
31
  // Requests the ECS state at specific block.
@@ -51,7 +51,7 @@ func (c *eCSStateSnapshotServiceClient) GetStateLatest(ctx context.Context, in *
51
51
  return out, nil
52
52
  }
53
53
 
54
- func (c *eCSStateSnapshotServiceClient) GetStateLatestStream(ctx context.Context, in *ECSStateRequestLatest, opts ...grpc.CallOption) (ECSStateSnapshotService_GetStateLatestStreamClient, error) {
54
+ func (c *eCSStateSnapshotServiceClient) GetStateLatestStream(ctx context.Context, in *ECSStateRequestLatestStream, opts ...grpc.CallOption) (ECSStateSnapshotService_GetStateLatestStreamClient, error) {
55
55
  stream, err := c.cc.NewStream(ctx, &ECSStateSnapshotService_ServiceDesc.Streams[0], "/ecssnapshot.ECSStateSnapshotService/GetStateLatestStream", opts...)
56
56
  if err != nil {
57
57
  return nil, err
@@ -117,7 +117,7 @@ type ECSStateSnapshotServiceServer interface {
117
117
  // Requests the latest ECS state.
118
118
  GetStateLatest(context.Context, *ECSStateRequestLatest) (*ECSStateReply, error)
119
119
  // Requests the latest ECS state in stream format, which will chunk the state.
120
- GetStateLatestStream(*ECSStateRequestLatest, ECSStateSnapshotService_GetStateLatestStreamServer) error
120
+ GetStateLatestStream(*ECSStateRequestLatestStream, ECSStateSnapshotService_GetStateLatestStreamServer) error
121
121
  // Requests the latest block number based on the latest ECS state.
122
122
  GetStateBlockLatest(context.Context, *ECSStateBlockRequestLatest) (*ECSStateBlockReply, error)
123
123
  // Requests the ECS state at specific block.
@@ -134,7 +134,7 @@ type UnimplementedECSStateSnapshotServiceServer struct {
134
134
  func (UnimplementedECSStateSnapshotServiceServer) GetStateLatest(context.Context, *ECSStateRequestLatest) (*ECSStateReply, error) {
135
135
  return nil, status.Errorf(codes.Unimplemented, "method GetStateLatest not implemented")
136
136
  }
137
- func (UnimplementedECSStateSnapshotServiceServer) GetStateLatestStream(*ECSStateRequestLatest, ECSStateSnapshotService_GetStateLatestStreamServer) error {
137
+ func (UnimplementedECSStateSnapshotServiceServer) GetStateLatestStream(*ECSStateRequestLatestStream, ECSStateSnapshotService_GetStateLatestStreamServer) error {
138
138
  return status.Errorf(codes.Unimplemented, "method GetStateLatestStream not implemented")
139
139
  }
140
140
  func (UnimplementedECSStateSnapshotServiceServer) GetStateBlockLatest(context.Context, *ECSStateBlockRequestLatest) (*ECSStateBlockReply, error) {
@@ -179,7 +179,7 @@ func _ECSStateSnapshotService_GetStateLatest_Handler(srv interface{}, ctx contex
179
179
  }
180
180
 
181
181
  func _ECSStateSnapshotService_GetStateLatestStream_Handler(srv interface{}, stream grpc.ServerStream) error {
182
- m := new(ECSStateRequestLatest)
182
+ m := new(ECSStateRequestLatestStream)
183
183
  if err := stream.RecvMsg(m); err != nil {
184
184
  return err
185
185
  }
@@ -30,6 +30,12 @@ export interface ECSStateRequestLatest {
30
30
  worldAddress: string;
31
31
  }
32
32
 
33
+ /** The request message for the latest chunked ECS state. */
34
+ export interface ECSStateRequestLatestStream {
35
+ worldAddress: string;
36
+ chunkPercentage?: number | undefined;
37
+ }
38
+
33
39
  /** The request message for the latest block based on latest ECS state. */
34
40
  export interface ECSStateBlockRequestLatest {
35
41
  worldAddress: string;
@@ -268,6 +274,50 @@ export const ECSStateRequestLatest = {
268
274
  },
269
275
  };
270
276
 
277
+ function createBaseECSStateRequestLatestStream(): ECSStateRequestLatestStream {
278
+ return { worldAddress: "", chunkPercentage: undefined };
279
+ }
280
+
281
+ export const ECSStateRequestLatestStream = {
282
+ encode(message: ECSStateRequestLatestStream, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
283
+ if (message.worldAddress !== "") {
284
+ writer.uint32(10).string(message.worldAddress);
285
+ }
286
+ if (message.chunkPercentage !== undefined) {
287
+ writer.uint32(16).uint32(message.chunkPercentage);
288
+ }
289
+ return writer;
290
+ },
291
+
292
+ decode(input: _m0.Reader | Uint8Array, length?: number): ECSStateRequestLatestStream {
293
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
294
+ let end = length === undefined ? reader.len : reader.pos + length;
295
+ const message = createBaseECSStateRequestLatestStream();
296
+ while (reader.pos < end) {
297
+ const tag = reader.uint32();
298
+ switch (tag >>> 3) {
299
+ case 1:
300
+ message.worldAddress = reader.string();
301
+ break;
302
+ case 2:
303
+ message.chunkPercentage = reader.uint32();
304
+ break;
305
+ default:
306
+ reader.skipType(tag & 7);
307
+ break;
308
+ }
309
+ }
310
+ return message;
311
+ },
312
+
313
+ fromPartial(object: DeepPartial<ECSStateRequestLatestStream>): ECSStateRequestLatestStream {
314
+ const message = createBaseECSStateRequestLatestStream();
315
+ message.worldAddress = object.worldAddress ?? "";
316
+ message.chunkPercentage = object.chunkPercentage ?? undefined;
317
+ return message;
318
+ },
319
+ };
320
+
271
321
  function createBaseECSStateBlockRequestLatest(): ECSStateBlockRequestLatest {
272
322
  return { worldAddress: "" };
273
323
  }
@@ -492,7 +542,7 @@ export const ECSStateSnapshotServiceDefinition = {
492
542
  /** Requests the latest ECS state in stream format, which will chunk the state. */
493
543
  getStateLatestStream: {
494
544
  name: "GetStateLatestStream",
495
- requestType: ECSStateRequestLatest,
545
+ requestType: ECSStateRequestLatestStream,
496
546
  requestStream: false,
497
547
  responseType: ECSStateReply,
498
548
  responseStream: true,
@@ -536,7 +586,7 @@ export interface ECSStateSnapshotServiceServiceImplementation<CallContextExt = {
536
586
  ): Promise<DeepPartial<ECSStateReply>>;
537
587
  /** Requests the latest ECS state in stream format, which will chunk the state. */
538
588
  getStateLatestStream(
539
- request: ECSStateRequestLatest,
589
+ request: ECSStateRequestLatestStream,
540
590
  context: CallContext & CallContextExt
541
591
  ): ServerStreamingMethodResult<DeepPartial<ECSStateReply>>;
542
592
  /** Requests the latest block number based on the latest ECS state. */
@@ -561,7 +611,7 @@ export interface ECSStateSnapshotServiceClient<CallOptionsExt = {}> {
561
611
  ): Promise<ECSStateReply>;
562
612
  /** Requests the latest ECS state in stream format, which will chunk the state. */
563
613
  getStateLatestStream(
564
- request: DeepPartial<ECSStateRequestLatest>,
614
+ request: DeepPartial<ECSStateRequestLatestStream>,
565
615
  options?: CallOptions & CallOptionsExt
566
616
  ): AsyncIterable<ECSStateReply>;
567
617
  /** Requests the latest block number based on the latest ECS state. */