@latticexyz/services 1.23.0 → 1.24.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 +0 -0
- package/bin/ecs-snapshot +0 -0
- package/bin/ecs-stream +0 -0
- package/bin/faucet +0 -0
- package/package.json +2 -2
- package/protobuf/go/ecs-snapshot/ecs-snapshot.pb.go +188 -64
- package/protobuf/go/ecs-snapshot/ecs-snapshot_grpc.pb.go +139 -1
- package/protobuf/ts/ecs-snapshot/ecs-snapshot.ts +135 -0
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.
|
|
4
|
+
"version": "1.24.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": "
|
|
23
|
+
"gitHead": "7d78c074eac7ac8455febcad474dcf50ac6489f7"
|
|
24
24
|
}
|
|
@@ -616,6 +616,85 @@ func (x *ECSStateReply) GetBlockNumber() uint32 {
|
|
|
616
616
|
return 0
|
|
617
617
|
}
|
|
618
618
|
|
|
619
|
+
type ECSStateReplyV2 struct {
|
|
620
|
+
state protoimpl.MessageState
|
|
621
|
+
sizeCache protoimpl.SizeCache
|
|
622
|
+
unknownFields protoimpl.UnknownFields
|
|
623
|
+
|
|
624
|
+
State []*ECSState `protobuf:"bytes,1,rep,name=state,proto3" json:"state,omitempty"`
|
|
625
|
+
StateComponents []string `protobuf:"bytes,2,rep,name=stateComponents,proto3" json:"stateComponents,omitempty"`
|
|
626
|
+
StateEntities [][]byte `protobuf:"bytes,3,rep,name=stateEntities,proto3" json:"stateEntities,omitempty"`
|
|
627
|
+
StateHash string `protobuf:"bytes,4,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
|
|
628
|
+
BlockNumber uint32 `protobuf:"varint,5,opt,name=blockNumber,proto3" json:"blockNumber,omitempty"`
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
func (x *ECSStateReplyV2) Reset() {
|
|
632
|
+
*x = ECSStateReplyV2{}
|
|
633
|
+
if protoimpl.UnsafeEnabled {
|
|
634
|
+
mi := &file_proto_ecs_snapshot_proto_msgTypes[10]
|
|
635
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
636
|
+
ms.StoreMessageInfo(mi)
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
func (x *ECSStateReplyV2) String() string {
|
|
641
|
+
return protoimpl.X.MessageStringOf(x)
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
func (*ECSStateReplyV2) ProtoMessage() {}
|
|
645
|
+
|
|
646
|
+
func (x *ECSStateReplyV2) ProtoReflect() protoreflect.Message {
|
|
647
|
+
mi := &file_proto_ecs_snapshot_proto_msgTypes[10]
|
|
648
|
+
if protoimpl.UnsafeEnabled && x != nil {
|
|
649
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
650
|
+
if ms.LoadMessageInfo() == nil {
|
|
651
|
+
ms.StoreMessageInfo(mi)
|
|
652
|
+
}
|
|
653
|
+
return ms
|
|
654
|
+
}
|
|
655
|
+
return mi.MessageOf(x)
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
// Deprecated: Use ECSStateReplyV2.ProtoReflect.Descriptor instead.
|
|
659
|
+
func (*ECSStateReplyV2) Descriptor() ([]byte, []int) {
|
|
660
|
+
return file_proto_ecs_snapshot_proto_rawDescGZIP(), []int{10}
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
func (x *ECSStateReplyV2) GetState() []*ECSState {
|
|
664
|
+
if x != nil {
|
|
665
|
+
return x.State
|
|
666
|
+
}
|
|
667
|
+
return nil
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
func (x *ECSStateReplyV2) GetStateComponents() []string {
|
|
671
|
+
if x != nil {
|
|
672
|
+
return x.StateComponents
|
|
673
|
+
}
|
|
674
|
+
return nil
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
func (x *ECSStateReplyV2) GetStateEntities() [][]byte {
|
|
678
|
+
if x != nil {
|
|
679
|
+
return x.StateEntities
|
|
680
|
+
}
|
|
681
|
+
return nil
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
func (x *ECSStateReplyV2) GetStateHash() string {
|
|
685
|
+
if x != nil {
|
|
686
|
+
return x.StateHash
|
|
687
|
+
}
|
|
688
|
+
return ""
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
func (x *ECSStateReplyV2) GetBlockNumber() uint32 {
|
|
692
|
+
if x != nil {
|
|
693
|
+
return x.BlockNumber
|
|
694
|
+
}
|
|
695
|
+
return 0
|
|
696
|
+
}
|
|
697
|
+
|
|
619
698
|
type ECSStateBlockReply struct {
|
|
620
699
|
state protoimpl.MessageState
|
|
621
700
|
sizeCache protoimpl.SizeCache
|
|
@@ -627,7 +706,7 @@ type ECSStateBlockReply struct {
|
|
|
627
706
|
func (x *ECSStateBlockReply) Reset() {
|
|
628
707
|
*x = ECSStateBlockReply{}
|
|
629
708
|
if protoimpl.UnsafeEnabled {
|
|
630
|
-
mi := &file_proto_ecs_snapshot_proto_msgTypes[
|
|
709
|
+
mi := &file_proto_ecs_snapshot_proto_msgTypes[11]
|
|
631
710
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
632
711
|
ms.StoreMessageInfo(mi)
|
|
633
712
|
}
|
|
@@ -640,7 +719,7 @@ func (x *ECSStateBlockReply) String() string {
|
|
|
640
719
|
func (*ECSStateBlockReply) ProtoMessage() {}
|
|
641
720
|
|
|
642
721
|
func (x *ECSStateBlockReply) ProtoReflect() protoreflect.Message {
|
|
643
|
-
mi := &file_proto_ecs_snapshot_proto_msgTypes[
|
|
722
|
+
mi := &file_proto_ecs_snapshot_proto_msgTypes[11]
|
|
644
723
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
645
724
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
646
725
|
if ms.LoadMessageInfo() == nil {
|
|
@@ -653,7 +732,7 @@ func (x *ECSStateBlockReply) ProtoReflect() protoreflect.Message {
|
|
|
653
732
|
|
|
654
733
|
// Deprecated: Use ECSStateBlockReply.ProtoReflect.Descriptor instead.
|
|
655
734
|
func (*ECSStateBlockReply) Descriptor() ([]byte, []int) {
|
|
656
|
-
return file_proto_ecs_snapshot_proto_rawDescGZIP(), []int{
|
|
735
|
+
return file_proto_ecs_snapshot_proto_rawDescGZIP(), []int{11}
|
|
657
736
|
}
|
|
658
737
|
|
|
659
738
|
func (x *ECSStateBlockReply) GetBlockNumber() uint32 {
|
|
@@ -746,48 +825,75 @@ var file_proto_ecs_snapshot_proto_rawDesc = []byte{
|
|
|
746
825
|
0x61, 0x73, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x61, 0x74, 0x65,
|
|
747
826
|
0x48, 0x61, 0x73, 0x68, 0x12, 0x20, 0x0a, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d,
|
|
748
827
|
0x62, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
|
|
749
|
-
0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22,
|
|
750
|
-
0x74, 0x65,
|
|
751
|
-
|
|
752
|
-
0x0d, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x32, 0xb6,
|
|
753
|
-
0x04, 0x0a, 0x17, 0x45, 0x43, 0x53, 0x53, 0x74, 0x61, 0x74, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73,
|
|
754
|
-
0x68, 0x6f, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x52, 0x0a, 0x0e, 0x47, 0x65,
|
|
755
|
-
0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x12, 0x22, 0x2e, 0x65,
|
|
756
|
-
0x63, 0x73, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x45, 0x43, 0x53, 0x53, 0x74,
|
|
757
|
-
0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74,
|
|
758
|
-
0x1a, 0x1a, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x45,
|
|
759
|
-
0x43, 0x53, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x60,
|
|
760
|
-
0x0a, 0x14, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74,
|
|
761
|
-
0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x28, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x6e, 0x61, 0x70,
|
|
762
|
-
0x73, 0x68, 0x6f, 0x74, 0x2e, 0x45, 0x43, 0x53, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71,
|
|
763
|
-
0x75, 0x65, 0x73, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d,
|
|
764
|
-
0x1a, 0x1a, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x45,
|
|
765
|
-
0x43, 0x53, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x30, 0x01,
|
|
766
|
-
0x12, 0x6c, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x4c, 0x61, 0x74, 0x65,
|
|
767
|
-
0x73, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x50, 0x72, 0x75, 0x6e, 0x65, 0x64, 0x12, 0x2e,
|
|
768
|
-
0x2e, 0x65, 0x63, 0x73, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x45, 0x43, 0x53,
|
|
769
|
-
0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4c, 0x61, 0x74, 0x65,
|
|
770
|
-
0x73, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x50, 0x72, 0x75, 0x6e, 0x65, 0x64, 0x1a, 0x1a,
|
|
771
|
-
0x2e, 0x65, 0x63, 0x73, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x45, 0x43, 0x53,
|
|
772
|
-
0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x30, 0x01, 0x12, 0x61,
|
|
773
|
-
0x0a, 0x13, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4c,
|
|
774
|
-
0x61, 0x74, 0x65, 0x73, 0x74, 0x12, 0x27, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x6e, 0x61, 0x70, 0x73,
|
|
775
|
-
0x68, 0x6f, 0x74, 0x2e, 0x45, 0x43, 0x53, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x6c, 0x6f, 0x63,
|
|
776
|
-
0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x1a, 0x1f,
|
|
777
|
-
0x2e, 0x65, 0x63, 0x73, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x45, 0x43, 0x53,
|
|
778
|
-
0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22,
|
|
779
|
-
0x00, 0x12, 0x54, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x41, 0x74, 0x42,
|
|
780
|
-
0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x23, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68,
|
|
781
|
-
0x6f, 0x74, 0x2e, 0x45, 0x43, 0x53, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
|
|
782
|
-
0x73, 0x74, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x1a, 0x1a, 0x2e, 0x65, 0x63, 0x73, 0x73,
|
|
828
|
+
0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0xce, 0x01, 0x0a, 0x0f, 0x45, 0x43, 0x53, 0x53, 0x74,
|
|
829
|
+
0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x56, 0x32, 0x12, 0x2b, 0x0a, 0x05, 0x73, 0x74,
|
|
830
|
+
0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x65, 0x63, 0x73, 0x73,
|
|
783
831
|
0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x45, 0x43, 0x53, 0x53, 0x74, 0x61, 0x74, 0x65,
|
|
784
|
-
0x52,
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
0x68,
|
|
832
|
+
0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x73, 0x74, 0x61, 0x74, 0x65,
|
|
833
|
+
0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09,
|
|
834
|
+
0x52, 0x0f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74,
|
|
835
|
+
0x73, 0x12, 0x24, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x69,
|
|
836
|
+
0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x65, 0x45,
|
|
837
|
+
0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x74, 0x65,
|
|
838
|
+
0x48, 0x61, 0x73, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x61, 0x74,
|
|
839
|
+
0x65, 0x48, 0x61, 0x73, 0x68, 0x12, 0x20, 0x0a, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75,
|
|
840
|
+
0x6d, 0x62, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63,
|
|
841
|
+
0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x36, 0x0a, 0x12, 0x45, 0x43, 0x53, 0x53, 0x74,
|
|
842
|
+
0x61, 0x74, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x20, 0x0a,
|
|
843
|
+
0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01,
|
|
844
|
+
0x28, 0x0d, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x32,
|
|
845
|
+
0x8e, 0x06, 0x0a, 0x17, 0x45, 0x43, 0x53, 0x53, 0x74, 0x61, 0x74, 0x65, 0x53, 0x6e, 0x61, 0x70,
|
|
846
|
+
0x73, 0x68, 0x6f, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x52, 0x0a, 0x0e, 0x47,
|
|
847
|
+
0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x12, 0x22, 0x2e,
|
|
848
|
+
0x65, 0x63, 0x73, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x45, 0x43, 0x53, 0x53,
|
|
849
|
+
0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73,
|
|
850
|
+
0x74, 0x1a, 0x1a, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e,
|
|
851
|
+
0x45, 0x43, 0x53, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12,
|
|
852
|
+
0x60, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73,
|
|
853
|
+
0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x28, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x6e, 0x61,
|
|
854
|
+
0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x45, 0x43, 0x53, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65,
|
|
855
|
+
0x71, 0x75, 0x65, 0x73, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61,
|
|
856
|
+
0x6d, 0x1a, 0x1a, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e,
|
|
857
|
+
0x45, 0x43, 0x53, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x30,
|
|
858
|
+
0x01, 0x12, 0x64, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x4c, 0x61, 0x74,
|
|
859
|
+
0x65, 0x73, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x56, 0x32, 0x12, 0x28, 0x2e, 0x65, 0x63,
|
|
860
|
+
0x73, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x45, 0x43, 0x53, 0x53, 0x74, 0x61,
|
|
861
|
+
0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x53,
|
|
862
|
+
0x74, 0x72, 0x65, 0x61, 0x6d, 0x1a, 0x1c, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x6e, 0x61, 0x70, 0x73,
|
|
863
|
+
0x68, 0x6f, 0x74, 0x2e, 0x45, 0x43, 0x53, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6c,
|
|
864
|
+
0x79, 0x56, 0x32, 0x22, 0x00, 0x30, 0x01, 0x12, 0x6c, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x53, 0x74,
|
|
865
|
+
0x61, 0x74, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x50,
|
|
866
|
+
0x72, 0x75, 0x6e, 0x65, 0x64, 0x12, 0x2e, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x6e, 0x61, 0x70, 0x73,
|
|
867
|
+
0x68, 0x6f, 0x74, 0x2e, 0x45, 0x43, 0x53, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75,
|
|
868
|
+
0x65, 0x73, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x50,
|
|
869
|
+
0x72, 0x75, 0x6e, 0x65, 0x64, 0x1a, 0x1a, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x6e, 0x61, 0x70, 0x73,
|
|
870
|
+
0x68, 0x6f, 0x74, 0x2e, 0x45, 0x43, 0x53, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6c,
|
|
871
|
+
0x79, 0x22, 0x00, 0x30, 0x01, 0x12, 0x70, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74,
|
|
872
|
+
0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x50, 0x72, 0x75,
|
|
873
|
+
0x6e, 0x65, 0x64, 0x56, 0x32, 0x12, 0x2e, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x6e, 0x61, 0x70, 0x73,
|
|
874
|
+
0x68, 0x6f, 0x74, 0x2e, 0x45, 0x43, 0x53, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75,
|
|
875
|
+
0x65, 0x73, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x50,
|
|
876
|
+
0x72, 0x75, 0x6e, 0x65, 0x64, 0x1a, 0x1c, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x6e, 0x61, 0x70, 0x73,
|
|
877
|
+
0x68, 0x6f, 0x74, 0x2e, 0x45, 0x43, 0x53, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6c,
|
|
878
|
+
0x79, 0x56, 0x32, 0x22, 0x00, 0x30, 0x01, 0x12, 0x61, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x53, 0x74,
|
|
879
|
+
0x61, 0x74, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x12, 0x27,
|
|
880
|
+
0x2e, 0x65, 0x63, 0x73, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x45, 0x43, 0x53,
|
|
881
|
+
0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
|
882
|
+
0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x6e, 0x61,
|
|
883
|
+
0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x45, 0x43, 0x53, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x6c,
|
|
884
|
+
0x6f, 0x63, 0x6b, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x54, 0x0a, 0x0f, 0x47, 0x65,
|
|
885
|
+
0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x23, 0x2e,
|
|
886
|
+
0x65, 0x63, 0x73, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x45, 0x43, 0x53, 0x53,
|
|
887
|
+
0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x41, 0x74, 0x42, 0x6c, 0x6f,
|
|
888
|
+
0x63, 0x6b, 0x1a, 0x1a, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74,
|
|
889
|
+
0x2e, 0x45, 0x43, 0x53, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00,
|
|
890
|
+
0x12, 0x3e, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x73, 0x12, 0x1a, 0x2e,
|
|
891
|
+
0x65, 0x63, 0x73, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x57, 0x6f, 0x72, 0x6c,
|
|
892
|
+
0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x65, 0x63, 0x73, 0x73,
|
|
893
|
+
0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x73, 0x22, 0x00,
|
|
894
|
+
0x42, 0x1a, 0x5a, 0x18, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x67, 0x6f, 0x2f,
|
|
895
|
+
0x65, 0x63, 0x73, 0x2d, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x62, 0x06, 0x70, 0x72,
|
|
896
|
+
0x6f, 0x74, 0x6f, 0x33,
|
|
791
897
|
}
|
|
792
898
|
|
|
793
899
|
var (
|
|
@@ -802,7 +908,7 @@ func file_proto_ecs_snapshot_proto_rawDescGZIP() []byte {
|
|
|
802
908
|
return file_proto_ecs_snapshot_proto_rawDescData
|
|
803
909
|
}
|
|
804
910
|
|
|
805
|
-
var file_proto_ecs_snapshot_proto_msgTypes = make([]protoimpl.MessageInfo,
|
|
911
|
+
var file_proto_ecs_snapshot_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
|
|
806
912
|
var file_proto_ecs_snapshot_proto_goTypes = []interface{}{
|
|
807
913
|
(*ECSState)(nil), // 0: ecssnapshot.ECSState
|
|
808
914
|
(*ECSStateSnapshot)(nil), // 1: ecssnapshot.ECSStateSnapshot
|
|
@@ -814,28 +920,34 @@ var file_proto_ecs_snapshot_proto_goTypes = []interface{}{
|
|
|
814
920
|
(*ECSStateRequestAtBlock)(nil), // 7: ecssnapshot.ECSStateRequestAtBlock
|
|
815
921
|
(*WorldsRequest)(nil), // 8: ecssnapshot.WorldsRequest
|
|
816
922
|
(*ECSStateReply)(nil), // 9: ecssnapshot.ECSStateReply
|
|
817
|
-
(*
|
|
923
|
+
(*ECSStateReplyV2)(nil), // 10: ecssnapshot.ECSStateReplyV2
|
|
924
|
+
(*ECSStateBlockReply)(nil), // 11: ecssnapshot.ECSStateBlockReply
|
|
818
925
|
}
|
|
819
926
|
var file_proto_ecs_snapshot_proto_depIdxs = []int32{
|
|
820
927
|
0, // 0: ecssnapshot.ECSStateSnapshot.state:type_name -> ecssnapshot.ECSState
|
|
821
928
|
0, // 1: ecssnapshot.ECSStateReply.state:type_name -> ecssnapshot.ECSState
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
9, // 12: ecssnapshot.ECSStateSnapshotService.
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
929
|
+
0, // 2: ecssnapshot.ECSStateReplyV2.state:type_name -> ecssnapshot.ECSState
|
|
930
|
+
3, // 3: ecssnapshot.ECSStateSnapshotService.GetStateLatest:input_type -> ecssnapshot.ECSStateRequestLatest
|
|
931
|
+
5, // 4: ecssnapshot.ECSStateSnapshotService.GetStateLatestStream:input_type -> ecssnapshot.ECSStateRequestLatestStream
|
|
932
|
+
5, // 5: ecssnapshot.ECSStateSnapshotService.GetStateLatestStreamV2:input_type -> ecssnapshot.ECSStateRequestLatestStream
|
|
933
|
+
4, // 6: ecssnapshot.ECSStateSnapshotService.GetStateLatestStreamPruned:input_type -> ecssnapshot.ECSStateRequestLatestStreamPruned
|
|
934
|
+
4, // 7: ecssnapshot.ECSStateSnapshotService.GetStateLatestStreamPrunedV2:input_type -> ecssnapshot.ECSStateRequestLatestStreamPruned
|
|
935
|
+
6, // 8: ecssnapshot.ECSStateSnapshotService.GetStateBlockLatest:input_type -> ecssnapshot.ECSStateBlockRequestLatest
|
|
936
|
+
7, // 9: ecssnapshot.ECSStateSnapshotService.GetStateAtBlock:input_type -> ecssnapshot.ECSStateRequestAtBlock
|
|
937
|
+
8, // 10: ecssnapshot.ECSStateSnapshotService.GetWorlds:input_type -> ecssnapshot.WorldsRequest
|
|
938
|
+
9, // 11: ecssnapshot.ECSStateSnapshotService.GetStateLatest:output_type -> ecssnapshot.ECSStateReply
|
|
939
|
+
9, // 12: ecssnapshot.ECSStateSnapshotService.GetStateLatestStream:output_type -> ecssnapshot.ECSStateReply
|
|
940
|
+
10, // 13: ecssnapshot.ECSStateSnapshotService.GetStateLatestStreamV2:output_type -> ecssnapshot.ECSStateReplyV2
|
|
941
|
+
9, // 14: ecssnapshot.ECSStateSnapshotService.GetStateLatestStreamPruned:output_type -> ecssnapshot.ECSStateReply
|
|
942
|
+
10, // 15: ecssnapshot.ECSStateSnapshotService.GetStateLatestStreamPrunedV2:output_type -> ecssnapshot.ECSStateReplyV2
|
|
943
|
+
11, // 16: ecssnapshot.ECSStateSnapshotService.GetStateBlockLatest:output_type -> ecssnapshot.ECSStateBlockReply
|
|
944
|
+
9, // 17: ecssnapshot.ECSStateSnapshotService.GetStateAtBlock:output_type -> ecssnapshot.ECSStateReply
|
|
945
|
+
2, // 18: ecssnapshot.ECSStateSnapshotService.GetWorlds:output_type -> ecssnapshot.Worlds
|
|
946
|
+
11, // [11:19] is the sub-list for method output_type
|
|
947
|
+
3, // [3:11] is the sub-list for method input_type
|
|
948
|
+
3, // [3:3] is the sub-list for extension type_name
|
|
949
|
+
3, // [3:3] is the sub-list for extension extendee
|
|
950
|
+
0, // [0:3] is the sub-list for field type_name
|
|
839
951
|
}
|
|
840
952
|
|
|
841
953
|
func init() { file_proto_ecs_snapshot_proto_init() }
|
|
@@ -965,6 +1077,18 @@ func file_proto_ecs_snapshot_proto_init() {
|
|
|
965
1077
|
}
|
|
966
1078
|
}
|
|
967
1079
|
file_proto_ecs_snapshot_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
|
1080
|
+
switch v := v.(*ECSStateReplyV2); i {
|
|
1081
|
+
case 0:
|
|
1082
|
+
return &v.state
|
|
1083
|
+
case 1:
|
|
1084
|
+
return &v.sizeCache
|
|
1085
|
+
case 2:
|
|
1086
|
+
return &v.unknownFields
|
|
1087
|
+
default:
|
|
1088
|
+
return nil
|
|
1089
|
+
}
|
|
1090
|
+
}
|
|
1091
|
+
file_proto_ecs_snapshot_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
|
968
1092
|
switch v := v.(*ECSStateBlockReply); i {
|
|
969
1093
|
case 0:
|
|
970
1094
|
return &v.state
|
|
@@ -985,7 +1109,7 @@ func file_proto_ecs_snapshot_proto_init() {
|
|
|
985
1109
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
986
1110
|
RawDescriptor: file_proto_ecs_snapshot_proto_rawDesc,
|
|
987
1111
|
NumEnums: 0,
|
|
988
|
-
NumMessages:
|
|
1112
|
+
NumMessages: 12,
|
|
989
1113
|
NumExtensions: 0,
|
|
990
1114
|
NumServices: 1,
|
|
991
1115
|
},
|
|
@@ -26,8 +26,16 @@ type ECSStateSnapshotServiceClient interface {
|
|
|
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
28
|
GetStateLatestStream(ctx context.Context, in *ECSStateRequestLatestStream, opts ...grpc.CallOption) (ECSStateSnapshotService_GetStateLatestStreamClient, error)
|
|
29
|
+
// Requests the latest ECS state in stream format, which will chunk the state.
|
|
30
|
+
//
|
|
31
|
+
// V2 version optimized to return entities as raw bytes.
|
|
32
|
+
GetStateLatestStreamV2(ctx context.Context, in *ECSStateRequestLatestStream, opts ...grpc.CallOption) (ECSStateSnapshotService_GetStateLatestStreamV2Client, error)
|
|
29
33
|
// Requests the latest ECS state, with aditional pruning.
|
|
30
34
|
GetStateLatestStreamPruned(ctx context.Context, in *ECSStateRequestLatestStreamPruned, opts ...grpc.CallOption) (ECSStateSnapshotService_GetStateLatestStreamPrunedClient, error)
|
|
35
|
+
// Requests the latest ECS state, with aditional pruning.
|
|
36
|
+
//
|
|
37
|
+
// V2 version optimized to return entities as raw bytes.
|
|
38
|
+
GetStateLatestStreamPrunedV2(ctx context.Context, in *ECSStateRequestLatestStreamPruned, opts ...grpc.CallOption) (ECSStateSnapshotService_GetStateLatestStreamPrunedV2Client, error)
|
|
31
39
|
// Requests the latest block number based on the latest ECS state.
|
|
32
40
|
GetStateBlockLatest(ctx context.Context, in *ECSStateBlockRequestLatest, opts ...grpc.CallOption) (*ECSStateBlockReply, error)
|
|
33
41
|
// Requests the ECS state at specific block.
|
|
@@ -85,8 +93,40 @@ func (x *eCSStateSnapshotServiceGetStateLatestStreamClient) Recv() (*ECSStateRep
|
|
|
85
93
|
return m, nil
|
|
86
94
|
}
|
|
87
95
|
|
|
96
|
+
func (c *eCSStateSnapshotServiceClient) GetStateLatestStreamV2(ctx context.Context, in *ECSStateRequestLatestStream, opts ...grpc.CallOption) (ECSStateSnapshotService_GetStateLatestStreamV2Client, error) {
|
|
97
|
+
stream, err := c.cc.NewStream(ctx, &ECSStateSnapshotService_ServiceDesc.Streams[1], "/ecssnapshot.ECSStateSnapshotService/GetStateLatestStreamV2", opts...)
|
|
98
|
+
if err != nil {
|
|
99
|
+
return nil, err
|
|
100
|
+
}
|
|
101
|
+
x := &eCSStateSnapshotServiceGetStateLatestStreamV2Client{stream}
|
|
102
|
+
if err := x.ClientStream.SendMsg(in); err != nil {
|
|
103
|
+
return nil, err
|
|
104
|
+
}
|
|
105
|
+
if err := x.ClientStream.CloseSend(); err != nil {
|
|
106
|
+
return nil, err
|
|
107
|
+
}
|
|
108
|
+
return x, nil
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
type ECSStateSnapshotService_GetStateLatestStreamV2Client interface {
|
|
112
|
+
Recv() (*ECSStateReplyV2, error)
|
|
113
|
+
grpc.ClientStream
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
type eCSStateSnapshotServiceGetStateLatestStreamV2Client struct {
|
|
117
|
+
grpc.ClientStream
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
func (x *eCSStateSnapshotServiceGetStateLatestStreamV2Client) Recv() (*ECSStateReplyV2, error) {
|
|
121
|
+
m := new(ECSStateReplyV2)
|
|
122
|
+
if err := x.ClientStream.RecvMsg(m); err != nil {
|
|
123
|
+
return nil, err
|
|
124
|
+
}
|
|
125
|
+
return m, nil
|
|
126
|
+
}
|
|
127
|
+
|
|
88
128
|
func (c *eCSStateSnapshotServiceClient) GetStateLatestStreamPruned(ctx context.Context, in *ECSStateRequestLatestStreamPruned, opts ...grpc.CallOption) (ECSStateSnapshotService_GetStateLatestStreamPrunedClient, error) {
|
|
89
|
-
stream, err := c.cc.NewStream(ctx, &ECSStateSnapshotService_ServiceDesc.Streams[
|
|
129
|
+
stream, err := c.cc.NewStream(ctx, &ECSStateSnapshotService_ServiceDesc.Streams[2], "/ecssnapshot.ECSStateSnapshotService/GetStateLatestStreamPruned", opts...)
|
|
90
130
|
if err != nil {
|
|
91
131
|
return nil, err
|
|
92
132
|
}
|
|
@@ -117,6 +157,38 @@ func (x *eCSStateSnapshotServiceGetStateLatestStreamPrunedClient) Recv() (*ECSSt
|
|
|
117
157
|
return m, nil
|
|
118
158
|
}
|
|
119
159
|
|
|
160
|
+
func (c *eCSStateSnapshotServiceClient) GetStateLatestStreamPrunedV2(ctx context.Context, in *ECSStateRequestLatestStreamPruned, opts ...grpc.CallOption) (ECSStateSnapshotService_GetStateLatestStreamPrunedV2Client, error) {
|
|
161
|
+
stream, err := c.cc.NewStream(ctx, &ECSStateSnapshotService_ServiceDesc.Streams[3], "/ecssnapshot.ECSStateSnapshotService/GetStateLatestStreamPrunedV2", opts...)
|
|
162
|
+
if err != nil {
|
|
163
|
+
return nil, err
|
|
164
|
+
}
|
|
165
|
+
x := &eCSStateSnapshotServiceGetStateLatestStreamPrunedV2Client{stream}
|
|
166
|
+
if err := x.ClientStream.SendMsg(in); err != nil {
|
|
167
|
+
return nil, err
|
|
168
|
+
}
|
|
169
|
+
if err := x.ClientStream.CloseSend(); err != nil {
|
|
170
|
+
return nil, err
|
|
171
|
+
}
|
|
172
|
+
return x, nil
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
type ECSStateSnapshotService_GetStateLatestStreamPrunedV2Client interface {
|
|
176
|
+
Recv() (*ECSStateReplyV2, error)
|
|
177
|
+
grpc.ClientStream
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
type eCSStateSnapshotServiceGetStateLatestStreamPrunedV2Client struct {
|
|
181
|
+
grpc.ClientStream
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
func (x *eCSStateSnapshotServiceGetStateLatestStreamPrunedV2Client) Recv() (*ECSStateReplyV2, error) {
|
|
185
|
+
m := new(ECSStateReplyV2)
|
|
186
|
+
if err := x.ClientStream.RecvMsg(m); err != nil {
|
|
187
|
+
return nil, err
|
|
188
|
+
}
|
|
189
|
+
return m, nil
|
|
190
|
+
}
|
|
191
|
+
|
|
120
192
|
func (c *eCSStateSnapshotServiceClient) GetStateBlockLatest(ctx context.Context, in *ECSStateBlockRequestLatest, opts ...grpc.CallOption) (*ECSStateBlockReply, error) {
|
|
121
193
|
out := new(ECSStateBlockReply)
|
|
122
194
|
err := c.cc.Invoke(ctx, "/ecssnapshot.ECSStateSnapshotService/GetStateBlockLatest", in, out, opts...)
|
|
@@ -152,8 +224,16 @@ type ECSStateSnapshotServiceServer interface {
|
|
|
152
224
|
GetStateLatest(context.Context, *ECSStateRequestLatest) (*ECSStateReply, error)
|
|
153
225
|
// Requests the latest ECS state in stream format, which will chunk the state.
|
|
154
226
|
GetStateLatestStream(*ECSStateRequestLatestStream, ECSStateSnapshotService_GetStateLatestStreamServer) error
|
|
227
|
+
// Requests the latest ECS state in stream format, which will chunk the state.
|
|
228
|
+
//
|
|
229
|
+
// V2 version optimized to return entities as raw bytes.
|
|
230
|
+
GetStateLatestStreamV2(*ECSStateRequestLatestStream, ECSStateSnapshotService_GetStateLatestStreamV2Server) error
|
|
155
231
|
// Requests the latest ECS state, with aditional pruning.
|
|
156
232
|
GetStateLatestStreamPruned(*ECSStateRequestLatestStreamPruned, ECSStateSnapshotService_GetStateLatestStreamPrunedServer) error
|
|
233
|
+
// Requests the latest ECS state, with aditional pruning.
|
|
234
|
+
//
|
|
235
|
+
// V2 version optimized to return entities as raw bytes.
|
|
236
|
+
GetStateLatestStreamPrunedV2(*ECSStateRequestLatestStreamPruned, ECSStateSnapshotService_GetStateLatestStreamPrunedV2Server) error
|
|
157
237
|
// Requests the latest block number based on the latest ECS state.
|
|
158
238
|
GetStateBlockLatest(context.Context, *ECSStateBlockRequestLatest) (*ECSStateBlockReply, error)
|
|
159
239
|
// Requests the ECS state at specific block.
|
|
@@ -173,9 +253,15 @@ func (UnimplementedECSStateSnapshotServiceServer) GetStateLatest(context.Context
|
|
|
173
253
|
func (UnimplementedECSStateSnapshotServiceServer) GetStateLatestStream(*ECSStateRequestLatestStream, ECSStateSnapshotService_GetStateLatestStreamServer) error {
|
|
174
254
|
return status.Errorf(codes.Unimplemented, "method GetStateLatestStream not implemented")
|
|
175
255
|
}
|
|
256
|
+
func (UnimplementedECSStateSnapshotServiceServer) GetStateLatestStreamV2(*ECSStateRequestLatestStream, ECSStateSnapshotService_GetStateLatestStreamV2Server) error {
|
|
257
|
+
return status.Errorf(codes.Unimplemented, "method GetStateLatestStreamV2 not implemented")
|
|
258
|
+
}
|
|
176
259
|
func (UnimplementedECSStateSnapshotServiceServer) GetStateLatestStreamPruned(*ECSStateRequestLatestStreamPruned, ECSStateSnapshotService_GetStateLatestStreamPrunedServer) error {
|
|
177
260
|
return status.Errorf(codes.Unimplemented, "method GetStateLatestStreamPruned not implemented")
|
|
178
261
|
}
|
|
262
|
+
func (UnimplementedECSStateSnapshotServiceServer) GetStateLatestStreamPrunedV2(*ECSStateRequestLatestStreamPruned, ECSStateSnapshotService_GetStateLatestStreamPrunedV2Server) error {
|
|
263
|
+
return status.Errorf(codes.Unimplemented, "method GetStateLatestStreamPrunedV2 not implemented")
|
|
264
|
+
}
|
|
179
265
|
func (UnimplementedECSStateSnapshotServiceServer) GetStateBlockLatest(context.Context, *ECSStateBlockRequestLatest) (*ECSStateBlockReply, error) {
|
|
180
266
|
return nil, status.Errorf(codes.Unimplemented, "method GetStateBlockLatest not implemented")
|
|
181
267
|
}
|
|
@@ -238,6 +324,27 @@ func (x *eCSStateSnapshotServiceGetStateLatestStreamServer) Send(m *ECSStateRepl
|
|
|
238
324
|
return x.ServerStream.SendMsg(m)
|
|
239
325
|
}
|
|
240
326
|
|
|
327
|
+
func _ECSStateSnapshotService_GetStateLatestStreamV2_Handler(srv interface{}, stream grpc.ServerStream) error {
|
|
328
|
+
m := new(ECSStateRequestLatestStream)
|
|
329
|
+
if err := stream.RecvMsg(m); err != nil {
|
|
330
|
+
return err
|
|
331
|
+
}
|
|
332
|
+
return srv.(ECSStateSnapshotServiceServer).GetStateLatestStreamV2(m, &eCSStateSnapshotServiceGetStateLatestStreamV2Server{stream})
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
type ECSStateSnapshotService_GetStateLatestStreamV2Server interface {
|
|
336
|
+
Send(*ECSStateReplyV2) error
|
|
337
|
+
grpc.ServerStream
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
type eCSStateSnapshotServiceGetStateLatestStreamV2Server struct {
|
|
341
|
+
grpc.ServerStream
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
func (x *eCSStateSnapshotServiceGetStateLatestStreamV2Server) Send(m *ECSStateReplyV2) error {
|
|
345
|
+
return x.ServerStream.SendMsg(m)
|
|
346
|
+
}
|
|
347
|
+
|
|
241
348
|
func _ECSStateSnapshotService_GetStateLatestStreamPruned_Handler(srv interface{}, stream grpc.ServerStream) error {
|
|
242
349
|
m := new(ECSStateRequestLatestStreamPruned)
|
|
243
350
|
if err := stream.RecvMsg(m); err != nil {
|
|
@@ -259,6 +366,27 @@ func (x *eCSStateSnapshotServiceGetStateLatestStreamPrunedServer) Send(m *ECSSta
|
|
|
259
366
|
return x.ServerStream.SendMsg(m)
|
|
260
367
|
}
|
|
261
368
|
|
|
369
|
+
func _ECSStateSnapshotService_GetStateLatestStreamPrunedV2_Handler(srv interface{}, stream grpc.ServerStream) error {
|
|
370
|
+
m := new(ECSStateRequestLatestStreamPruned)
|
|
371
|
+
if err := stream.RecvMsg(m); err != nil {
|
|
372
|
+
return err
|
|
373
|
+
}
|
|
374
|
+
return srv.(ECSStateSnapshotServiceServer).GetStateLatestStreamPrunedV2(m, &eCSStateSnapshotServiceGetStateLatestStreamPrunedV2Server{stream})
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
type ECSStateSnapshotService_GetStateLatestStreamPrunedV2Server interface {
|
|
378
|
+
Send(*ECSStateReplyV2) error
|
|
379
|
+
grpc.ServerStream
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
type eCSStateSnapshotServiceGetStateLatestStreamPrunedV2Server struct {
|
|
383
|
+
grpc.ServerStream
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
func (x *eCSStateSnapshotServiceGetStateLatestStreamPrunedV2Server) Send(m *ECSStateReplyV2) error {
|
|
387
|
+
return x.ServerStream.SendMsg(m)
|
|
388
|
+
}
|
|
389
|
+
|
|
262
390
|
func _ECSStateSnapshotService_GetStateBlockLatest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
263
391
|
in := new(ECSStateBlockRequestLatest)
|
|
264
392
|
if err := dec(in); err != nil {
|
|
@@ -343,11 +471,21 @@ var ECSStateSnapshotService_ServiceDesc = grpc.ServiceDesc{
|
|
|
343
471
|
Handler: _ECSStateSnapshotService_GetStateLatestStream_Handler,
|
|
344
472
|
ServerStreams: true,
|
|
345
473
|
},
|
|
474
|
+
{
|
|
475
|
+
StreamName: "GetStateLatestStreamV2",
|
|
476
|
+
Handler: _ECSStateSnapshotService_GetStateLatestStreamV2_Handler,
|
|
477
|
+
ServerStreams: true,
|
|
478
|
+
},
|
|
346
479
|
{
|
|
347
480
|
StreamName: "GetStateLatestStreamPruned",
|
|
348
481
|
Handler: _ECSStateSnapshotService_GetStateLatestStreamPruned_Handler,
|
|
349
482
|
ServerStreams: true,
|
|
350
483
|
},
|
|
484
|
+
{
|
|
485
|
+
StreamName: "GetStateLatestStreamPrunedV2",
|
|
486
|
+
Handler: _ECSStateSnapshotService_GetStateLatestStreamPrunedV2_Handler,
|
|
487
|
+
ServerStreams: true,
|
|
488
|
+
},
|
|
351
489
|
},
|
|
352
490
|
Metadata: "proto/ecs-snapshot.proto",
|
|
353
491
|
}
|
|
@@ -66,6 +66,14 @@ export interface ECSStateReply {
|
|
|
66
66
|
blockNumber: number;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
+
export interface ECSStateReplyV2 {
|
|
70
|
+
state: ECSState[];
|
|
71
|
+
stateComponents: string[];
|
|
72
|
+
stateEntities: Uint8Array[];
|
|
73
|
+
stateHash: string;
|
|
74
|
+
blockNumber: number;
|
|
75
|
+
}
|
|
76
|
+
|
|
69
77
|
export interface ECSStateBlockReply {
|
|
70
78
|
blockNumber: number;
|
|
71
79
|
}
|
|
@@ -553,6 +561,71 @@ export const ECSStateReply = {
|
|
|
553
561
|
},
|
|
554
562
|
};
|
|
555
563
|
|
|
564
|
+
function createBaseECSStateReplyV2(): ECSStateReplyV2 {
|
|
565
|
+
return { state: [], stateComponents: [], stateEntities: [], stateHash: "", blockNumber: 0 };
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
export const ECSStateReplyV2 = {
|
|
569
|
+
encode(message: ECSStateReplyV2, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
570
|
+
for (const v of message.state) {
|
|
571
|
+
ECSState.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
572
|
+
}
|
|
573
|
+
for (const v of message.stateComponents) {
|
|
574
|
+
writer.uint32(18).string(v!);
|
|
575
|
+
}
|
|
576
|
+
for (const v of message.stateEntities) {
|
|
577
|
+
writer.uint32(26).bytes(v!);
|
|
578
|
+
}
|
|
579
|
+
if (message.stateHash !== "") {
|
|
580
|
+
writer.uint32(34).string(message.stateHash);
|
|
581
|
+
}
|
|
582
|
+
if (message.blockNumber !== 0) {
|
|
583
|
+
writer.uint32(40).uint32(message.blockNumber);
|
|
584
|
+
}
|
|
585
|
+
return writer;
|
|
586
|
+
},
|
|
587
|
+
|
|
588
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ECSStateReplyV2 {
|
|
589
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
590
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
591
|
+
const message = createBaseECSStateReplyV2();
|
|
592
|
+
while (reader.pos < end) {
|
|
593
|
+
const tag = reader.uint32();
|
|
594
|
+
switch (tag >>> 3) {
|
|
595
|
+
case 1:
|
|
596
|
+
message.state.push(ECSState.decode(reader, reader.uint32()));
|
|
597
|
+
break;
|
|
598
|
+
case 2:
|
|
599
|
+
message.stateComponents.push(reader.string());
|
|
600
|
+
break;
|
|
601
|
+
case 3:
|
|
602
|
+
message.stateEntities.push(reader.bytes());
|
|
603
|
+
break;
|
|
604
|
+
case 4:
|
|
605
|
+
message.stateHash = reader.string();
|
|
606
|
+
break;
|
|
607
|
+
case 5:
|
|
608
|
+
message.blockNumber = reader.uint32();
|
|
609
|
+
break;
|
|
610
|
+
default:
|
|
611
|
+
reader.skipType(tag & 7);
|
|
612
|
+
break;
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
return message;
|
|
616
|
+
},
|
|
617
|
+
|
|
618
|
+
fromPartial(object: DeepPartial<ECSStateReplyV2>): ECSStateReplyV2 {
|
|
619
|
+
const message = createBaseECSStateReplyV2();
|
|
620
|
+
message.state = object.state?.map((e) => ECSState.fromPartial(e)) || [];
|
|
621
|
+
message.stateComponents = object.stateComponents?.map((e) => e) || [];
|
|
622
|
+
message.stateEntities = object.stateEntities?.map((e) => e) || [];
|
|
623
|
+
message.stateHash = object.stateHash ?? "";
|
|
624
|
+
message.blockNumber = object.blockNumber ?? 0;
|
|
625
|
+
return message;
|
|
626
|
+
},
|
|
627
|
+
};
|
|
628
|
+
|
|
556
629
|
function createBaseECSStateBlockReply(): ECSStateBlockReply {
|
|
557
630
|
return { blockNumber: 0 };
|
|
558
631
|
}
|
|
@@ -614,6 +687,19 @@ export const ECSStateSnapshotServiceDefinition = {
|
|
|
614
687
|
responseStream: true,
|
|
615
688
|
options: {},
|
|
616
689
|
},
|
|
690
|
+
/**
|
|
691
|
+
* Requests the latest ECS state in stream format, which will chunk the state.
|
|
692
|
+
*
|
|
693
|
+
* V2 version optimized to return entities as raw bytes.
|
|
694
|
+
*/
|
|
695
|
+
getStateLatestStreamV2: {
|
|
696
|
+
name: "GetStateLatestStreamV2",
|
|
697
|
+
requestType: ECSStateRequestLatestStream,
|
|
698
|
+
requestStream: false,
|
|
699
|
+
responseType: ECSStateReplyV2,
|
|
700
|
+
responseStream: true,
|
|
701
|
+
options: {},
|
|
702
|
+
},
|
|
617
703
|
/** Requests the latest ECS state, with aditional pruning. */
|
|
618
704
|
getStateLatestStreamPruned: {
|
|
619
705
|
name: "GetStateLatestStreamPruned",
|
|
@@ -623,6 +709,19 @@ export const ECSStateSnapshotServiceDefinition = {
|
|
|
623
709
|
responseStream: true,
|
|
624
710
|
options: {},
|
|
625
711
|
},
|
|
712
|
+
/**
|
|
713
|
+
* Requests the latest ECS state, with aditional pruning.
|
|
714
|
+
*
|
|
715
|
+
* V2 version optimized to return entities as raw bytes.
|
|
716
|
+
*/
|
|
717
|
+
getStateLatestStreamPrunedV2: {
|
|
718
|
+
name: "GetStateLatestStreamPrunedV2",
|
|
719
|
+
requestType: ECSStateRequestLatestStreamPruned,
|
|
720
|
+
requestStream: false,
|
|
721
|
+
responseType: ECSStateReplyV2,
|
|
722
|
+
responseStream: true,
|
|
723
|
+
options: {},
|
|
724
|
+
},
|
|
626
725
|
/** Requests the latest block number based on the latest ECS state. */
|
|
627
726
|
getStateBlockLatest: {
|
|
628
727
|
name: "GetStateBlockLatest",
|
|
@@ -664,11 +763,29 @@ export interface ECSStateSnapshotServiceServiceImplementation<CallContextExt = {
|
|
|
664
763
|
request: ECSStateRequestLatestStream,
|
|
665
764
|
context: CallContext & CallContextExt
|
|
666
765
|
): ServerStreamingMethodResult<DeepPartial<ECSStateReply>>;
|
|
766
|
+
/**
|
|
767
|
+
* Requests the latest ECS state in stream format, which will chunk the state.
|
|
768
|
+
*
|
|
769
|
+
* V2 version optimized to return entities as raw bytes.
|
|
770
|
+
*/
|
|
771
|
+
getStateLatestStreamV2(
|
|
772
|
+
request: ECSStateRequestLatestStream,
|
|
773
|
+
context: CallContext & CallContextExt
|
|
774
|
+
): ServerStreamingMethodResult<DeepPartial<ECSStateReplyV2>>;
|
|
667
775
|
/** Requests the latest ECS state, with aditional pruning. */
|
|
668
776
|
getStateLatestStreamPruned(
|
|
669
777
|
request: ECSStateRequestLatestStreamPruned,
|
|
670
778
|
context: CallContext & CallContextExt
|
|
671
779
|
): ServerStreamingMethodResult<DeepPartial<ECSStateReply>>;
|
|
780
|
+
/**
|
|
781
|
+
* Requests the latest ECS state, with aditional pruning.
|
|
782
|
+
*
|
|
783
|
+
* V2 version optimized to return entities as raw bytes.
|
|
784
|
+
*/
|
|
785
|
+
getStateLatestStreamPrunedV2(
|
|
786
|
+
request: ECSStateRequestLatestStreamPruned,
|
|
787
|
+
context: CallContext & CallContextExt
|
|
788
|
+
): ServerStreamingMethodResult<DeepPartial<ECSStateReplyV2>>;
|
|
672
789
|
/** Requests the latest block number based on the latest ECS state. */
|
|
673
790
|
getStateBlockLatest(
|
|
674
791
|
request: ECSStateBlockRequestLatest,
|
|
@@ -694,11 +811,29 @@ export interface ECSStateSnapshotServiceClient<CallOptionsExt = {}> {
|
|
|
694
811
|
request: DeepPartial<ECSStateRequestLatestStream>,
|
|
695
812
|
options?: CallOptions & CallOptionsExt
|
|
696
813
|
): AsyncIterable<ECSStateReply>;
|
|
814
|
+
/**
|
|
815
|
+
* Requests the latest ECS state in stream format, which will chunk the state.
|
|
816
|
+
*
|
|
817
|
+
* V2 version optimized to return entities as raw bytes.
|
|
818
|
+
*/
|
|
819
|
+
getStateLatestStreamV2(
|
|
820
|
+
request: DeepPartial<ECSStateRequestLatestStream>,
|
|
821
|
+
options?: CallOptions & CallOptionsExt
|
|
822
|
+
): AsyncIterable<ECSStateReplyV2>;
|
|
697
823
|
/** Requests the latest ECS state, with aditional pruning. */
|
|
698
824
|
getStateLatestStreamPruned(
|
|
699
825
|
request: DeepPartial<ECSStateRequestLatestStreamPruned>,
|
|
700
826
|
options?: CallOptions & CallOptionsExt
|
|
701
827
|
): AsyncIterable<ECSStateReply>;
|
|
828
|
+
/**
|
|
829
|
+
* Requests the latest ECS state, with aditional pruning.
|
|
830
|
+
*
|
|
831
|
+
* V2 version optimized to return entities as raw bytes.
|
|
832
|
+
*/
|
|
833
|
+
getStateLatestStreamPrunedV2(
|
|
834
|
+
request: DeepPartial<ECSStateRequestLatestStreamPruned>,
|
|
835
|
+
options?: CallOptions & CallOptionsExt
|
|
836
|
+
): AsyncIterable<ECSStateReplyV2>;
|
|
702
837
|
/** Requests the latest block number based on the latest ECS state. */
|
|
703
838
|
getStateBlockLatest(
|
|
704
839
|
request: DeepPartial<ECSStateBlockRequestLatest>,
|