@latticexyz/services 0.9.0 → 0.10.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-snapshot CHANGED
Binary file
package/bin/ecs-stream CHANGED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@latticexyz/services",
3
3
  "license": "MIT",
4
- "version": "0.9.0",
4
+ "version": "0.10.0",
5
5
  "description": "MUD services for enhanced interactions with on-chain ECS state",
6
6
  "repository": {
7
7
  "type": "git",
@@ -25,5 +25,5 @@
25
25
  "@protobuf-ts/plugin": "^2.7.0",
26
26
  "@protobuf-ts/runtime-rpc": "^2.7.0"
27
27
  },
28
- "gitHead": "40718ea9955e61196942d040189adec464500446"
28
+ "gitHead": "724f4545c36989b25e47046bfaa0903e9b8d4bab"
29
29
  }
@@ -29,6 +29,7 @@ type ECSEvent struct {
29
29
  ComponentId string `protobuf:"bytes,2,opt,name=componentId,proto3" json:"componentId,omitempty"`
30
30
  EntityId string `protobuf:"bytes,3,opt,name=entityId,proto3" json:"entityId,omitempty"`
31
31
  Value []byte `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
32
+ Tx string `protobuf:"bytes,5,opt,name=tx,proto3" json:"tx,omitempty"`
32
33
  }
33
34
 
34
35
  func (x *ECSEvent) Reset() {
@@ -91,6 +92,15 @@ func (x *ECSEvent) GetValue() []byte {
91
92
  return nil
92
93
  }
93
94
 
95
+ func (x *ECSEvent) GetTx() string {
96
+ if x != nil {
97
+ return x.Tx
98
+ }
99
+ return ""
100
+ }
101
+
102
+ // Request to subscribe to an ECSStream. The required parameter is 'worldAddress', while others
103
+ // are opt-in based on which data the client is interested in receiving.
94
104
  type ECSStreamBlockBundleRequest struct {
95
105
  state protoimpl.MessageState
96
106
  sizeCache protoimpl.SizeCache
@@ -178,6 +188,8 @@ func (x *ECSStreamBlockBundleRequest) GetEcsEvents() bool {
178
188
  return false
179
189
  }
180
190
 
191
+ // ECSStream response. The fields are populated based on the request which must have been sent when
192
+ // starting the subscription.
181
193
  type ECSStreamBlockBundleReply struct {
182
194
  state protoimpl.MessageState
183
195
  sizeCache protoimpl.SizeCache
@@ -262,56 +274,57 @@ var File_proto_ecs_stream_proto protoreflect.FileDescriptor
262
274
  var file_proto_ecs_stream_proto_rawDesc = []byte{
263
275
  0x0a, 0x16, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x65, 0x63, 0x73, 0x2d, 0x73, 0x74, 0x72, 0x65,
264
276
  0x61, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x65, 0x63, 0x73, 0x73, 0x74, 0x72,
265
- 0x65, 0x61, 0x6d, 0x22, 0x7c, 0x0a, 0x08, 0x45, 0x43, 0x53, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12,
266
- 0x1c, 0x0a, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01,
267
- 0x28, 0x09, 0x52, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a,
268
- 0x0b, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01,
269
- 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12,
270
- 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
271
- 0x09, 0x52, 0x08, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x76,
272
- 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,
273
- 0x65, 0x22, 0xfd, 0x01, 0x0a, 0x1b, 0x45, 0x43, 0x53, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x42,
274
- 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
275
- 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73,
276
- 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x41, 0x64,
277
- 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75,
278
- 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63,
279
- 0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
280
- 0x48, 0x61, 0x73, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x62, 0x6c, 0x6f, 0x63,
281
- 0x6b, 0x48, 0x61, 0x73, 0x68, 0x12, 0x26, 0x0a, 0x0e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69,
282
- 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x62,
283
- 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x34, 0x0a,
284
- 0x15, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x43, 0x6f, 0x6e,
285
- 0x66, 0x69, 0x72, 0x6d, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x74, 0x72,
286
- 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72,
287
- 0x6d, 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x63, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73,
288
- 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x65, 0x63, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74,
289
- 0x73, 0x22, 0xec, 0x01, 0x0a, 0x19, 0x45, 0x43, 0x53, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x42,
290
- 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12,
291
- 0x20, 0x0a, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01,
292
- 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65,
293
- 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x18, 0x02,
294
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x12,
295
- 0x26, 0x0a, 0x0e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
296
- 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69,
297
- 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x34, 0x0a, 0x15, 0x74, 0x72, 0x61, 0x6e, 0x73,
298
- 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x65, 0x64,
299
- 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x15, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74,
300
- 0x69, 0x6f, 0x6e, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x65, 0x64, 0x12, 0x31, 0x0a,
301
- 0x09, 0x65, 0x63, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b,
302
- 0x32, 0x13, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x45, 0x43, 0x53,
303
- 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x09, 0x65, 0x63, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73,
304
- 0x32, 0x7f, 0x0a, 0x10, 0x45, 0x43, 0x53, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x53, 0x65, 0x72,
305
- 0x76, 0x69, 0x63, 0x65, 0x12, 0x6b, 0x0a, 0x17, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62,
306
- 0x65, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x12,
307
- 0x26, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x45, 0x43, 0x53, 0x53,
308
- 0x74, 0x72, 0x65, 0x61, 0x6d, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65,
309
- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x74, 0x72,
310
- 0x65, 0x61, 0x6d, 0x2e, 0x45, 0x43, 0x53, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x42, 0x6c, 0x6f,
311
- 0x63, 0x6b, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x30,
312
- 0x01, 0x42, 0x18, 0x5a, 0x16, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x67, 0x6f,
313
- 0x2f, 0x65, 0x63, 0x73, 0x2d, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x62, 0x06, 0x70, 0x72, 0x6f,
314
- 0x74, 0x6f, 0x33,
277
+ 0x65, 0x61, 0x6d, 0x22, 0x8c, 0x01, 0x0a, 0x08, 0x45, 0x43, 0x53, 0x45, 0x76, 0x65, 0x6e, 0x74,
278
+ 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20,
279
+ 0x01, 0x28, 0x09, 0x52, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x20,
280
+ 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20,
281
+ 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x64,
282
+ 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01,
283
+ 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05,
284
+ 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c,
285
+ 0x75, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,
286
+ 0x74, 0x78, 0x22, 0xfd, 0x01, 0x0a, 0x1b, 0x45, 0x43, 0x53, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d,
287
+ 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
288
+ 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65,
289
+ 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x41,
290
+ 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4e,
291
+ 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x62, 0x6c, 0x6f,
292
+ 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x62, 0x6c, 0x6f, 0x63,
293
+ 0x6b, 0x48, 0x61, 0x73, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x62, 0x6c, 0x6f,
294
+ 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x12, 0x26, 0x0a, 0x0e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x54,
295
+ 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e,
296
+ 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x34,
297
+ 0x0a, 0x15, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x43, 0x6f,
298
+ 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x74,
299
+ 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69,
300
+ 0x72, 0x6d, 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x63, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74,
301
+ 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x65, 0x63, 0x73, 0x45, 0x76, 0x65, 0x6e,
302
+ 0x74, 0x73, 0x22, 0xec, 0x01, 0x0a, 0x19, 0x45, 0x43, 0x53, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d,
303
+ 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79,
304
+ 0x12, 0x20, 0x0a, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18,
305
+ 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x62,
306
+ 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x18,
307
+ 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68,
308
+ 0x12, 0x26, 0x0a, 0x0e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
309
+ 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x54,
310
+ 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x34, 0x0a, 0x15, 0x74, 0x72, 0x61, 0x6e,
311
+ 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x65,
312
+ 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x15, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63,
313
+ 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x65, 0x64, 0x12, 0x31,
314
+ 0x0a, 0x09, 0x65, 0x63, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28,
315
+ 0x0b, 0x32, 0x13, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x45, 0x43,
316
+ 0x53, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x09, 0x65, 0x63, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74,
317
+ 0x73, 0x32, 0x7f, 0x0a, 0x10, 0x45, 0x43, 0x53, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x53, 0x65,
318
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6b, 0x0a, 0x17, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69,
319
+ 0x62, 0x65, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74,
320
+ 0x12, 0x26, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x45, 0x43, 0x53,
321
+ 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x75, 0x6e, 0x64, 0x6c,
322
+ 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x74,
323
+ 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x45, 0x43, 0x53, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x42, 0x6c,
324
+ 0x6f, 0x63, 0x6b, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00,
325
+ 0x30, 0x01, 0x42, 0x18, 0x5a, 0x16, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x67,
326
+ 0x6f, 0x2f, 0x65, 0x63, 0x73, 0x2d, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x62, 0x06, 0x70, 0x72,
327
+ 0x6f, 0x74, 0x6f, 0x33,
315
328
  }
316
329
 
317
330
  var (
@@ -22,7 +22,7 @@ const _ = grpc.SupportPackageIsVersion7
22
22
  //
23
23
  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
24
24
  type ECSStreamServiceClient interface {
25
- // Requests the latest ECS state.
25
+ // Opens a cursor to receive the latest ECS events and additional data specified via request.
26
26
  SubscribeToStreamLatest(ctx context.Context, in *ECSStreamBlockBundleRequest, opts ...grpc.CallOption) (ECSStreamService_SubscribeToStreamLatestClient, error)
27
27
  }
28
28
 
@@ -70,7 +70,7 @@ func (x *eCSStreamServiceSubscribeToStreamLatestClient) Recv() (*ECSStreamBlockB
70
70
  // All implementations must embed UnimplementedECSStreamServiceServer
71
71
  // for forward compatibility
72
72
  type ECSStreamServiceServer interface {
73
- // Requests the latest ECS state.
73
+ // Opens a cursor to receive the latest ECS events and additional data specified via request.
74
74
  SubscribeToStreamLatest(*ECSStreamBlockBundleRequest, ECSStreamService_SubscribeToStreamLatestServer) error
75
75
  mustEmbedUnimplementedECSStreamServiceServer()
76
76
  }
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable */
2
- // @generated by protobuf-ts 2.7.0 with parameter eslint_disable
2
+ // @generated by protobuf-ts 2.8.0 with parameter eslint_disable
3
3
  // @generated from protobuf file "ecs-snapshot.proto" (package "ecssnapshot", syntax proto3)
4
4
  // tslint:disable
5
5
  import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable */
2
- // @generated by protobuf-ts 2.7.0 with parameter eslint_disable
2
+ // @generated by protobuf-ts 2.8.0 with parameter eslint_disable
3
3
  // @generated from protobuf file "ecs-snapshot.proto" (package "ecssnapshot", syntax proto3)
4
4
  // tslint:disable
5
5
  import { ServiceType } from "@protobuf-ts/runtime-rpc";
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable */
2
- // @generated by protobuf-ts 2.7.0 with parameter eslint_disable
2
+ // @generated by protobuf-ts 2.8.0 with parameter eslint_disable
3
3
  // @generated from protobuf file "ecs-stream.proto" (package "ecsstream", syntax proto3)
4
4
  // tslint:disable
5
5
  import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
@@ -17,7 +17,7 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
17
17
  */
18
18
  export interface IECSStreamServiceClient {
19
19
  /**
20
- * Requests the latest ECS state.
20
+ * Opens a cursor to receive the latest ECS events and additional data specified via request.
21
21
  *
22
22
  * @generated from protobuf rpc: SubscribeToStreamLatest(ecsstream.ECSStreamBlockBundleRequest) returns (stream ecsstream.ECSStreamBlockBundleReply);
23
23
  */
@@ -37,7 +37,7 @@ export class ECSStreamServiceClient implements IECSStreamServiceClient, ServiceI
37
37
  options = ECSStreamService.options;
38
38
  constructor(private readonly _transport: RpcTransport) {}
39
39
  /**
40
- * Requests the latest ECS state.
40
+ * Opens a cursor to receive the latest ECS events and additional data specified via request.
41
41
  *
42
42
  * @generated from protobuf rpc: SubscribeToStreamLatest(ecsstream.ECSStreamBlockBundleRequest) returns (stream ecsstream.ECSStreamBlockBundleReply);
43
43
  */
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable */
2
- // @generated by protobuf-ts 2.7.0 with parameter eslint_disable
2
+ // @generated by protobuf-ts 2.8.0 with parameter eslint_disable
3
3
  // @generated from protobuf file "ecs-stream.proto" (package "ecsstream", syntax proto3)
4
4
  // tslint:disable
5
5
  import { ServiceType } from "@protobuf-ts/runtime-rpc";
@@ -33,8 +33,15 @@ export interface ECSEvent {
33
33
  * @generated from protobuf field: bytes value = 4;
34
34
  */
35
35
  value: Uint8Array;
36
+ /**
37
+ * @generated from protobuf field: string tx = 5;
38
+ */
39
+ tx: string;
36
40
  }
37
41
  /**
42
+ * Request to subscribe to an ECSStream. The required parameter is 'worldAddress', while others
43
+ * are opt-in based on which data the client is interested in receiving.
44
+ *
38
45
  * @generated from protobuf message ecsstream.ECSStreamBlockBundleRequest
39
46
  */
40
47
  export interface ECSStreamBlockBundleRequest {
@@ -64,6 +71,9 @@ export interface ECSStreamBlockBundleRequest {
64
71
  ecsEvents: boolean;
65
72
  }
66
73
  /**
74
+ * ECSStream response. The fields are populated based on the request which must have been sent when
75
+ * starting the subscription.
76
+ *
67
77
  * @generated from protobuf message ecsstream.ECSStreamBlockBundleReply
68
78
  */
69
79
  export interface ECSStreamBlockBundleReply {
@@ -96,10 +106,11 @@ class ECSEvent$Type extends MessageType<ECSEvent> {
96
106
  { no: 2, name: "componentId", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
97
107
  { no: 3, name: "entityId", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
98
108
  { no: 4, name: "value", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
109
+ { no: 5, name: "tx", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
99
110
  ]);
100
111
  }
101
112
  create(value?: PartialMessage<ECSEvent>): ECSEvent {
102
- const message = { eventType: "", componentId: "", entityId: "", value: new Uint8Array(0) };
113
+ const message = { eventType: "", componentId: "", entityId: "", value: new Uint8Array(0), tx: "" };
103
114
  globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
104
115
  if (value !== undefined) reflectionMergePartial<ECSEvent>(this, message, value);
105
116
  return message;
@@ -122,6 +133,9 @@ class ECSEvent$Type extends MessageType<ECSEvent> {
122
133
  case /* bytes value */ 4:
123
134
  message.value = reader.bytes();
124
135
  break;
136
+ case /* string tx */ 5:
137
+ message.tx = reader.string();
138
+ break;
125
139
  default:
126
140
  let u = options.readUnknownField;
127
141
  if (u === "throw")
@@ -141,6 +155,8 @@ class ECSEvent$Type extends MessageType<ECSEvent> {
141
155
  if (message.entityId !== "") writer.tag(3, WireType.LengthDelimited).string(message.entityId);
142
156
  /* bytes value = 4; */
143
157
  if (message.value.length) writer.tag(4, WireType.LengthDelimited).bytes(message.value);
158
+ /* string tx = 5; */
159
+ if (message.tx !== "") writer.tag(5, WireType.LengthDelimited).string(message.tx);
144
160
  let u = options.writeUnknownFields;
145
161
  if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
146
162
  return writer;