@latticexyz/services 1.26.0 → 1.28.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.26.0",
4
+ "version": "1.28.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": "e1036af748f9640f2d21e823458b3aa769dbb443"
23
+ "gitHead": "c33c52dd829b429567a6f0c26b80e6a20b2e8c02"
24
24
  }
@@ -20,22 +20,86 @@ const (
20
20
  _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
21
21
  )
22
22
 
23
+ type TxMetadata struct {
24
+ state protoimpl.MessageState
25
+ sizeCache protoimpl.SizeCache
26
+ unknownFields protoimpl.UnknownFields
27
+
28
+ To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
29
+ Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
30
+ Value uint64 `protobuf:"varint,4,opt,name=value,proto3" json:"value,omitempty"`
31
+ }
32
+
33
+ func (x *TxMetadata) Reset() {
34
+ *x = TxMetadata{}
35
+ if protoimpl.UnsafeEnabled {
36
+ mi := &file_proto_ecs_stream_proto_msgTypes[0]
37
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
38
+ ms.StoreMessageInfo(mi)
39
+ }
40
+ }
41
+
42
+ func (x *TxMetadata) String() string {
43
+ return protoimpl.X.MessageStringOf(x)
44
+ }
45
+
46
+ func (*TxMetadata) ProtoMessage() {}
47
+
48
+ func (x *TxMetadata) ProtoReflect() protoreflect.Message {
49
+ mi := &file_proto_ecs_stream_proto_msgTypes[0]
50
+ if protoimpl.UnsafeEnabled && x != nil {
51
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
52
+ if ms.LoadMessageInfo() == nil {
53
+ ms.StoreMessageInfo(mi)
54
+ }
55
+ return ms
56
+ }
57
+ return mi.MessageOf(x)
58
+ }
59
+
60
+ // Deprecated: Use TxMetadata.ProtoReflect.Descriptor instead.
61
+ func (*TxMetadata) Descriptor() ([]byte, []int) {
62
+ return file_proto_ecs_stream_proto_rawDescGZIP(), []int{0}
63
+ }
64
+
65
+ func (x *TxMetadata) GetTo() string {
66
+ if x != nil {
67
+ return x.To
68
+ }
69
+ return ""
70
+ }
71
+
72
+ func (x *TxMetadata) GetData() []byte {
73
+ if x != nil {
74
+ return x.Data
75
+ }
76
+ return nil
77
+ }
78
+
79
+ func (x *TxMetadata) GetValue() uint64 {
80
+ if x != nil {
81
+ return x.Value
82
+ }
83
+ return 0
84
+ }
85
+
23
86
  type ECSEvent struct {
24
87
  state protoimpl.MessageState
25
88
  sizeCache protoimpl.SizeCache
26
89
  unknownFields protoimpl.UnknownFields
27
90
 
28
- EventType string `protobuf:"bytes,1,opt,name=eventType,proto3" json:"eventType,omitempty"`
29
- ComponentId string `protobuf:"bytes,2,opt,name=componentId,proto3" json:"componentId,omitempty"`
30
- EntityId string `protobuf:"bytes,3,opt,name=entityId,proto3" json:"entityId,omitempty"`
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"`
91
+ EventType string `protobuf:"bytes,1,opt,name=eventType,proto3" json:"eventType,omitempty"`
92
+ ComponentId string `protobuf:"bytes,2,opt,name=componentId,proto3" json:"componentId,omitempty"`
93
+ EntityId string `protobuf:"bytes,3,opt,name=entityId,proto3" json:"entityId,omitempty"`
94
+ Value []byte `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
95
+ TxHash string `protobuf:"bytes,5,opt,name=txHash,proto3" json:"txHash,omitempty"`
96
+ TxMetadata *TxMetadata `protobuf:"bytes,6,opt,name=txMetadata,proto3" json:"txMetadata,omitempty"`
33
97
  }
34
98
 
35
99
  func (x *ECSEvent) Reset() {
36
100
  *x = ECSEvent{}
37
101
  if protoimpl.UnsafeEnabled {
38
- mi := &file_proto_ecs_stream_proto_msgTypes[0]
102
+ mi := &file_proto_ecs_stream_proto_msgTypes[1]
39
103
  ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
40
104
  ms.StoreMessageInfo(mi)
41
105
  }
@@ -48,7 +112,7 @@ func (x *ECSEvent) String() string {
48
112
  func (*ECSEvent) ProtoMessage() {}
49
113
 
50
114
  func (x *ECSEvent) ProtoReflect() protoreflect.Message {
51
- mi := &file_proto_ecs_stream_proto_msgTypes[0]
115
+ mi := &file_proto_ecs_stream_proto_msgTypes[1]
52
116
  if protoimpl.UnsafeEnabled && x != nil {
53
117
  ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
54
118
  if ms.LoadMessageInfo() == nil {
@@ -61,7 +125,7 @@ func (x *ECSEvent) ProtoReflect() protoreflect.Message {
61
125
 
62
126
  // Deprecated: Use ECSEvent.ProtoReflect.Descriptor instead.
63
127
  func (*ECSEvent) Descriptor() ([]byte, []int) {
64
- return file_proto_ecs_stream_proto_rawDescGZIP(), []int{0}
128
+ return file_proto_ecs_stream_proto_rawDescGZIP(), []int{1}
65
129
  }
66
130
 
67
131
  func (x *ECSEvent) GetEventType() string {
@@ -92,13 +156,20 @@ func (x *ECSEvent) GetValue() []byte {
92
156
  return nil
93
157
  }
94
158
 
95
- func (x *ECSEvent) GetTx() string {
159
+ func (x *ECSEvent) GetTxHash() string {
96
160
  if x != nil {
97
- return x.Tx
161
+ return x.TxHash
98
162
  }
99
163
  return ""
100
164
  }
101
165
 
166
+ func (x *ECSEvent) GetTxMetadata() *TxMetadata {
167
+ if x != nil {
168
+ return x.TxMetadata
169
+ }
170
+ return nil
171
+ }
172
+
102
173
  // Request to subscribe to an ECSStream. The required parameter is 'worldAddress', while others
103
174
  // are opt-in based on which data the client is interested in receiving.
104
175
  type ECSStreamBlockBundleRequest struct {
@@ -106,18 +177,19 @@ type ECSStreamBlockBundleRequest struct {
106
177
  sizeCache protoimpl.SizeCache
107
178
  unknownFields protoimpl.UnknownFields
108
179
 
109
- WorldAddress string `protobuf:"bytes,1,opt,name=worldAddress,proto3" json:"worldAddress,omitempty"`
110
- BlockNumber bool `protobuf:"varint,2,opt,name=blockNumber,proto3" json:"blockNumber,omitempty"`
111
- BlockHash bool `protobuf:"varint,3,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
112
- BlockTimestamp bool `protobuf:"varint,4,opt,name=blockTimestamp,proto3" json:"blockTimestamp,omitempty"`
113
- TransactionsConfirmed bool `protobuf:"varint,5,opt,name=transactionsConfirmed,proto3" json:"transactionsConfirmed,omitempty"`
114
- EcsEvents bool `protobuf:"varint,6,opt,name=ecsEvents,proto3" json:"ecsEvents,omitempty"`
180
+ WorldAddress string `protobuf:"bytes,1,opt,name=worldAddress,proto3" json:"worldAddress,omitempty"`
181
+ BlockNumber bool `protobuf:"varint,2,opt,name=blockNumber,proto3" json:"blockNumber,omitempty"`
182
+ BlockHash bool `protobuf:"varint,3,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
183
+ BlockTimestamp bool `protobuf:"varint,4,opt,name=blockTimestamp,proto3" json:"blockTimestamp,omitempty"`
184
+ TransactionsConfirmed bool `protobuf:"varint,5,opt,name=transactionsConfirmed,proto3" json:"transactionsConfirmed,omitempty"`
185
+ EcsEvents bool `protobuf:"varint,6,opt,name=ecsEvents,proto3" json:"ecsEvents,omitempty"`
186
+ EcsEventsIncludeTxMetadata bool `protobuf:"varint,7,opt,name=ecsEventsIncludeTxMetadata,proto3" json:"ecsEventsIncludeTxMetadata,omitempty"`
115
187
  }
116
188
 
117
189
  func (x *ECSStreamBlockBundleRequest) Reset() {
118
190
  *x = ECSStreamBlockBundleRequest{}
119
191
  if protoimpl.UnsafeEnabled {
120
- mi := &file_proto_ecs_stream_proto_msgTypes[1]
192
+ mi := &file_proto_ecs_stream_proto_msgTypes[2]
121
193
  ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
122
194
  ms.StoreMessageInfo(mi)
123
195
  }
@@ -130,7 +202,7 @@ func (x *ECSStreamBlockBundleRequest) String() string {
130
202
  func (*ECSStreamBlockBundleRequest) ProtoMessage() {}
131
203
 
132
204
  func (x *ECSStreamBlockBundleRequest) ProtoReflect() protoreflect.Message {
133
- mi := &file_proto_ecs_stream_proto_msgTypes[1]
205
+ mi := &file_proto_ecs_stream_proto_msgTypes[2]
134
206
  if protoimpl.UnsafeEnabled && x != nil {
135
207
  ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
136
208
  if ms.LoadMessageInfo() == nil {
@@ -143,7 +215,7 @@ func (x *ECSStreamBlockBundleRequest) ProtoReflect() protoreflect.Message {
143
215
 
144
216
  // Deprecated: Use ECSStreamBlockBundleRequest.ProtoReflect.Descriptor instead.
145
217
  func (*ECSStreamBlockBundleRequest) Descriptor() ([]byte, []int) {
146
- return file_proto_ecs_stream_proto_rawDescGZIP(), []int{1}
218
+ return file_proto_ecs_stream_proto_rawDescGZIP(), []int{2}
147
219
  }
148
220
 
149
221
  func (x *ECSStreamBlockBundleRequest) GetWorldAddress() string {
@@ -188,6 +260,13 @@ func (x *ECSStreamBlockBundleRequest) GetEcsEvents() bool {
188
260
  return false
189
261
  }
190
262
 
263
+ func (x *ECSStreamBlockBundleRequest) GetEcsEventsIncludeTxMetadata() bool {
264
+ if x != nil {
265
+ return x.EcsEventsIncludeTxMetadata
266
+ }
267
+ return false
268
+ }
269
+
191
270
  // ECSStream response. The fields are populated based on the request which must have been sent when
192
271
  // starting the subscription.
193
272
  type ECSStreamBlockBundleReply struct {
@@ -205,7 +284,7 @@ type ECSStreamBlockBundleReply struct {
205
284
  func (x *ECSStreamBlockBundleReply) Reset() {
206
285
  *x = ECSStreamBlockBundleReply{}
207
286
  if protoimpl.UnsafeEnabled {
208
- mi := &file_proto_ecs_stream_proto_msgTypes[2]
287
+ mi := &file_proto_ecs_stream_proto_msgTypes[3]
209
288
  ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
210
289
  ms.StoreMessageInfo(mi)
211
290
  }
@@ -218,7 +297,7 @@ func (x *ECSStreamBlockBundleReply) String() string {
218
297
  func (*ECSStreamBlockBundleReply) ProtoMessage() {}
219
298
 
220
299
  func (x *ECSStreamBlockBundleReply) ProtoReflect() protoreflect.Message {
221
- mi := &file_proto_ecs_stream_proto_msgTypes[2]
300
+ mi := &file_proto_ecs_stream_proto_msgTypes[3]
222
301
  if protoimpl.UnsafeEnabled && x != nil {
223
302
  ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
224
303
  if ms.LoadMessageInfo() == nil {
@@ -231,7 +310,7 @@ func (x *ECSStreamBlockBundleReply) ProtoReflect() protoreflect.Message {
231
310
 
232
311
  // Deprecated: Use ECSStreamBlockBundleReply.ProtoReflect.Descriptor instead.
233
312
  func (*ECSStreamBlockBundleReply) Descriptor() ([]byte, []int) {
234
- return file_proto_ecs_stream_proto_rawDescGZIP(), []int{2}
313
+ return file_proto_ecs_stream_proto_rawDescGZIP(), []int{3}
235
314
  }
236
315
 
237
316
  func (x *ECSStreamBlockBundleReply) GetBlockNumber() uint32 {
@@ -274,57 +353,69 @@ var File_proto_ecs_stream_proto protoreflect.FileDescriptor
274
353
  var file_proto_ecs_stream_proto_rawDesc = []byte{
275
354
  0x0a, 0x16, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x65, 0x63, 0x73, 0x2d, 0x73, 0x74, 0x72, 0x65,
276
355
  0x61, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x65, 0x63, 0x73, 0x73, 0x74, 0x72,
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,
356
+ 0x65, 0x61, 0x6d, 0x22, 0x46, 0x0a, 0x0a, 0x54, 0x78, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
357
+ 0x61, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74,
358
+ 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52,
359
+ 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04,
360
+ 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xcb, 0x01, 0x0a, 0x08,
361
+ 0x45, 0x43, 0x53, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x76, 0x65, 0x6e,
362
+ 0x74, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x65, 0x76, 0x65,
363
+ 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e,
364
+ 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6d,
365
+ 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x74, 0x69,
366
+ 0x74, 0x79, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x74, 0x69,
367
+ 0x74, 0x79, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20,
368
+ 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x78,
369
+ 0x48, 0x61, 0x73, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x78, 0x48, 0x61,
370
+ 0x73, 0x68, 0x12, 0x35, 0x0a, 0x0a, 0x74, 0x78, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
371
+ 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x74, 0x72, 0x65,
372
+ 0x61, 0x6d, 0x2e, 0x54, 0x78, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x0a, 0x74,
373
+ 0x78, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0xbd, 0x02, 0x0a, 0x1b, 0x45, 0x43,
374
+ 0x53, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x75, 0x6e, 0x64,
375
+ 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x77, 0x6f, 0x72,
376
+ 0x6c, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
377
+ 0x0c, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x20, 0x0a,
378
+ 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01,
379
+ 0x28, 0x08, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12,
380
+ 0x1c, 0x0a, 0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x18, 0x03, 0x20, 0x01,
381
+ 0x28, 0x08, 0x52, 0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x12, 0x26, 0x0a,
382
+ 0x0e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18,
383
+ 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65,
384
+ 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x34, 0x0a, 0x15, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63,
385
+ 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x65, 0x64, 0x18, 0x05,
386
+ 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f,
387
+ 0x6e, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x65,
388
+ 0x63, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09,
389
+ 0x65, 0x63, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x3e, 0x0a, 0x1a, 0x65, 0x63, 0x73,
390
+ 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x49, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x54, 0x78, 0x4d,
391
+ 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1a, 0x65,
392
+ 0x63, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x49, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x54,
393
+ 0x78, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0xec, 0x01, 0x0a, 0x19, 0x45, 0x43,
394
+ 0x53, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x75, 0x6e, 0x64,
395
+ 0x6c, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
396
+ 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x62, 0x6c,
397
+ 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x62, 0x6c, 0x6f,
398
+ 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x62, 0x6c,
399
+ 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x12, 0x26, 0x0a, 0x0e, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
400
+ 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52,
401
+ 0x0e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12,
402
+ 0x34, 0x0a, 0x15, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x43,
403
+ 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x65, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x15,
404
+ 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x43, 0x6f, 0x6e, 0x66,
405
+ 0x69, 0x72, 0x6d, 0x65, 0x64, 0x12, 0x31, 0x0a, 0x09, 0x65, 0x63, 0x73, 0x45, 0x76, 0x65, 0x6e,
406
+ 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x74,
407
+ 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x45, 0x43, 0x53, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x09, 0x65,
408
+ 0x63, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x32, 0x7f, 0x0a, 0x10, 0x45, 0x43, 0x53, 0x53,
409
+ 0x74, 0x72, 0x65, 0x61, 0x6d, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6b, 0x0a, 0x17,
410
+ 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x65, 0x61,
411
+ 0x6d, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x12, 0x26, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x74, 0x72,
412
+ 0x65, 0x61, 0x6d, 0x2e, 0x45, 0x43, 0x53, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x42, 0x6c, 0x6f,
413
+ 0x63, 0x6b, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
414
+ 0x24, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x45, 0x43, 0x53, 0x53,
415
+ 0x74, 0x72, 0x65, 0x61, 0x6d, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65,
416
+ 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x30, 0x01, 0x42, 0x18, 0x5a, 0x16, 0x70, 0x72, 0x6f,
417
+ 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x67, 0x6f, 0x2f, 0x65, 0x63, 0x73, 0x2d, 0x73, 0x74, 0x72,
418
+ 0x65, 0x61, 0x6d, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
328
419
  }
329
420
 
330
421
  var (
@@ -339,21 +430,23 @@ func file_proto_ecs_stream_proto_rawDescGZIP() []byte {
339
430
  return file_proto_ecs_stream_proto_rawDescData
340
431
  }
341
432
 
342
- var file_proto_ecs_stream_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
433
+ var file_proto_ecs_stream_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
343
434
  var file_proto_ecs_stream_proto_goTypes = []interface{}{
344
- (*ECSEvent)(nil), // 0: ecsstream.ECSEvent
345
- (*ECSStreamBlockBundleRequest)(nil), // 1: ecsstream.ECSStreamBlockBundleRequest
346
- (*ECSStreamBlockBundleReply)(nil), // 2: ecsstream.ECSStreamBlockBundleReply
435
+ (*TxMetadata)(nil), // 0: ecsstream.TxMetadata
436
+ (*ECSEvent)(nil), // 1: ecsstream.ECSEvent
437
+ (*ECSStreamBlockBundleRequest)(nil), // 2: ecsstream.ECSStreamBlockBundleRequest
438
+ (*ECSStreamBlockBundleReply)(nil), // 3: ecsstream.ECSStreamBlockBundleReply
347
439
  }
348
440
  var file_proto_ecs_stream_proto_depIdxs = []int32{
349
- 0, // 0: ecsstream.ECSStreamBlockBundleReply.ecsEvents:type_name -> ecsstream.ECSEvent
350
- 1, // 1: ecsstream.ECSStreamService.SubscribeToStreamLatest:input_type -> ecsstream.ECSStreamBlockBundleRequest
351
- 2, // 2: ecsstream.ECSStreamService.SubscribeToStreamLatest:output_type -> ecsstream.ECSStreamBlockBundleReply
352
- 2, // [2:3] is the sub-list for method output_type
353
- 1, // [1:2] is the sub-list for method input_type
354
- 1, // [1:1] is the sub-list for extension type_name
355
- 1, // [1:1] is the sub-list for extension extendee
356
- 0, // [0:1] is the sub-list for field type_name
441
+ 0, // 0: ecsstream.ECSEvent.txMetadata:type_name -> ecsstream.TxMetadata
442
+ 1, // 1: ecsstream.ECSStreamBlockBundleReply.ecsEvents:type_name -> ecsstream.ECSEvent
443
+ 2, // 2: ecsstream.ECSStreamService.SubscribeToStreamLatest:input_type -> ecsstream.ECSStreamBlockBundleRequest
444
+ 3, // 3: ecsstream.ECSStreamService.SubscribeToStreamLatest:output_type -> ecsstream.ECSStreamBlockBundleReply
445
+ 3, // [3:4] is the sub-list for method output_type
446
+ 2, // [2:3] is the sub-list for method input_type
447
+ 2, // [2:2] is the sub-list for extension type_name
448
+ 2, // [2:2] is the sub-list for extension extendee
449
+ 0, // [0:2] is the sub-list for field type_name
357
450
  }
358
451
 
359
452
  func init() { file_proto_ecs_stream_proto_init() }
@@ -363,7 +456,7 @@ func file_proto_ecs_stream_proto_init() {
363
456
  }
364
457
  if !protoimpl.UnsafeEnabled {
365
458
  file_proto_ecs_stream_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
366
- switch v := v.(*ECSEvent); i {
459
+ switch v := v.(*TxMetadata); i {
367
460
  case 0:
368
461
  return &v.state
369
462
  case 1:
@@ -375,7 +468,7 @@ func file_proto_ecs_stream_proto_init() {
375
468
  }
376
469
  }
377
470
  file_proto_ecs_stream_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
378
- switch v := v.(*ECSStreamBlockBundleRequest); i {
471
+ switch v := v.(*ECSEvent); i {
379
472
  case 0:
380
473
  return &v.state
381
474
  case 1:
@@ -387,6 +480,18 @@ func file_proto_ecs_stream_proto_init() {
387
480
  }
388
481
  }
389
482
  file_proto_ecs_stream_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
483
+ switch v := v.(*ECSStreamBlockBundleRequest); i {
484
+ case 0:
485
+ return &v.state
486
+ case 1:
487
+ return &v.sizeCache
488
+ case 2:
489
+ return &v.unknownFields
490
+ default:
491
+ return nil
492
+ }
493
+ }
494
+ file_proto_ecs_stream_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
390
495
  switch v := v.(*ECSStreamBlockBundleReply); i {
391
496
  case 0:
392
497
  return &v.state
@@ -405,7 +510,7 @@ func file_proto_ecs_stream_proto_init() {
405
510
  GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
406
511
  RawDescriptor: file_proto_ecs_stream_proto_rawDesc,
407
512
  NumEnums: 0,
408
- NumMessages: 3,
513
+ NumMessages: 4,
409
514
  NumExtensions: 0,
410
515
  NumServices: 1,
411
516
  },
@@ -1,15 +1,23 @@
1
1
  /* eslint-disable */
2
+ import Long from "long";
2
3
  import { CallContext, CallOptions } from "nice-grpc-common";
3
4
  import _m0 from "protobufjs/minimal";
4
5
 
5
6
  export const protobufPackage = "ecsstream";
6
7
 
8
+ export interface TxMetadata {
9
+ to: string;
10
+ data: Uint8Array;
11
+ value: number;
12
+ }
13
+
7
14
  export interface ECSEvent {
8
15
  eventType: string;
9
16
  componentId: string;
10
17
  entityId: string;
11
18
  value: Uint8Array;
12
- tx: string;
19
+ txHash: string;
20
+ txMetadata: TxMetadata | undefined;
13
21
  }
14
22
 
15
23
  /**
@@ -23,6 +31,7 @@ export interface ECSStreamBlockBundleRequest {
23
31
  blockTimestamp: boolean;
24
32
  transactionsConfirmed: boolean;
25
33
  ecsEvents: boolean;
34
+ ecsEventsIncludeTxMetadata: boolean;
26
35
  }
27
36
 
28
37
  /**
@@ -37,8 +46,59 @@ export interface ECSStreamBlockBundleReply {
37
46
  ecsEvents: ECSEvent[];
38
47
  }
39
48
 
49
+ function createBaseTxMetadata(): TxMetadata {
50
+ return { to: "", data: new Uint8Array(), value: 0 };
51
+ }
52
+
53
+ export const TxMetadata = {
54
+ encode(message: TxMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
55
+ if (message.to !== "") {
56
+ writer.uint32(18).string(message.to);
57
+ }
58
+ if (message.data.length !== 0) {
59
+ writer.uint32(26).bytes(message.data);
60
+ }
61
+ if (message.value !== 0) {
62
+ writer.uint32(32).uint64(message.value);
63
+ }
64
+ return writer;
65
+ },
66
+
67
+ decode(input: _m0.Reader | Uint8Array, length?: number): TxMetadata {
68
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
69
+ let end = length === undefined ? reader.len : reader.pos + length;
70
+ const message = createBaseTxMetadata();
71
+ while (reader.pos < end) {
72
+ const tag = reader.uint32();
73
+ switch (tag >>> 3) {
74
+ case 2:
75
+ message.to = reader.string();
76
+ break;
77
+ case 3:
78
+ message.data = reader.bytes();
79
+ break;
80
+ case 4:
81
+ message.value = longToNumber(reader.uint64() as Long);
82
+ break;
83
+ default:
84
+ reader.skipType(tag & 7);
85
+ break;
86
+ }
87
+ }
88
+ return message;
89
+ },
90
+
91
+ fromPartial(object: DeepPartial<TxMetadata>): TxMetadata {
92
+ const message = createBaseTxMetadata();
93
+ message.to = object.to ?? "";
94
+ message.data = object.data ?? new Uint8Array();
95
+ message.value = object.value ?? 0;
96
+ return message;
97
+ },
98
+ };
99
+
40
100
  function createBaseECSEvent(): ECSEvent {
41
- return { eventType: "", componentId: "", entityId: "", value: new Uint8Array(), tx: "" };
101
+ return { eventType: "", componentId: "", entityId: "", value: new Uint8Array(), txHash: "", txMetadata: undefined };
42
102
  }
43
103
 
44
104
  export const ECSEvent = {
@@ -55,8 +115,11 @@ export const ECSEvent = {
55
115
  if (message.value.length !== 0) {
56
116
  writer.uint32(34).bytes(message.value);
57
117
  }
58
- if (message.tx !== "") {
59
- writer.uint32(42).string(message.tx);
118
+ if (message.txHash !== "") {
119
+ writer.uint32(42).string(message.txHash);
120
+ }
121
+ if (message.txMetadata !== undefined) {
122
+ TxMetadata.encode(message.txMetadata, writer.uint32(50).fork()).ldelim();
60
123
  }
61
124
  return writer;
62
125
  },
@@ -81,7 +144,10 @@ export const ECSEvent = {
81
144
  message.value = reader.bytes();
82
145
  break;
83
146
  case 5:
84
- message.tx = reader.string();
147
+ message.txHash = reader.string();
148
+ break;
149
+ case 6:
150
+ message.txMetadata = TxMetadata.decode(reader, reader.uint32());
85
151
  break;
86
152
  default:
87
153
  reader.skipType(tag & 7);
@@ -97,7 +163,11 @@ export const ECSEvent = {
97
163
  message.componentId = object.componentId ?? "";
98
164
  message.entityId = object.entityId ?? "";
99
165
  message.value = object.value ?? new Uint8Array();
100
- message.tx = object.tx ?? "";
166
+ message.txHash = object.txHash ?? "";
167
+ message.txMetadata =
168
+ object.txMetadata !== undefined && object.txMetadata !== null
169
+ ? TxMetadata.fromPartial(object.txMetadata)
170
+ : undefined;
101
171
  return message;
102
172
  },
103
173
  };
@@ -110,6 +180,7 @@ function createBaseECSStreamBlockBundleRequest(): ECSStreamBlockBundleRequest {
110
180
  blockTimestamp: false,
111
181
  transactionsConfirmed: false,
112
182
  ecsEvents: false,
183
+ ecsEventsIncludeTxMetadata: false,
113
184
  };
114
185
  }
115
186
 
@@ -133,6 +204,9 @@ export const ECSStreamBlockBundleRequest = {
133
204
  if (message.ecsEvents === true) {
134
205
  writer.uint32(48).bool(message.ecsEvents);
135
206
  }
207
+ if (message.ecsEventsIncludeTxMetadata === true) {
208
+ writer.uint32(56).bool(message.ecsEventsIncludeTxMetadata);
209
+ }
136
210
  return writer;
137
211
  },
138
212
 
@@ -161,6 +235,9 @@ export const ECSStreamBlockBundleRequest = {
161
235
  case 6:
162
236
  message.ecsEvents = reader.bool();
163
237
  break;
238
+ case 7:
239
+ message.ecsEventsIncludeTxMetadata = reader.bool();
240
+ break;
164
241
  default:
165
242
  reader.skipType(tag & 7);
166
243
  break;
@@ -177,6 +254,7 @@ export const ECSStreamBlockBundleRequest = {
177
254
  message.blockTimestamp = object.blockTimestamp ?? false;
178
255
  message.transactionsConfirmed = object.transactionsConfirmed ?? false;
179
256
  message.ecsEvents = object.ecsEvents ?? false;
257
+ message.ecsEventsIncludeTxMetadata = object.ecsEventsIncludeTxMetadata ?? false;
180
258
  return message;
181
259
  },
182
260
  };
@@ -280,6 +358,25 @@ export interface ECSStreamServiceClient<CallOptionsExt = {}> {
280
358
  ): AsyncIterable<ECSStreamBlockBundleReply>;
281
359
  }
282
360
 
361
+ declare var self: any | undefined;
362
+ declare var window: any | undefined;
363
+ declare var global: any | undefined;
364
+ var globalThis: any = (() => {
365
+ if (typeof globalThis !== "undefined") {
366
+ return globalThis;
367
+ }
368
+ if (typeof self !== "undefined") {
369
+ return self;
370
+ }
371
+ if (typeof window !== "undefined") {
372
+ return window;
373
+ }
374
+ if (typeof global !== "undefined") {
375
+ return global;
376
+ }
377
+ throw "Unable to locate global object";
378
+ })();
379
+
283
380
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
284
381
 
285
382
  export type DeepPartial<T> = T extends Builtin
@@ -292,4 +389,16 @@ export type DeepPartial<T> = T extends Builtin
292
389
  ? { [K in keyof T]?: DeepPartial<T[K]> }
293
390
  : Partial<T>;
294
391
 
392
+ function longToNumber(long: Long): number {
393
+ if (long.gt(Number.MAX_SAFE_INTEGER)) {
394
+ throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
395
+ }
396
+ return long.toNumber();
397
+ }
398
+
399
+ if (_m0.util.Long !== Long) {
400
+ _m0.util.Long = Long as any;
401
+ _m0.configure();
402
+ }
403
+
295
404
  export type ServerStreamingMethodResult<Response> = { [Symbol.asyncIterator](): AsyncIterator<Response, void> };