@sentio/runtime 2.62.0-rc.8 → 2.62.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.
Files changed (57) hide show
  1. package/lib/chunk-3A7UBKPA.js +26 -0
  2. package/lib/chunk-3A7UBKPA.js.map +1 -0
  3. package/lib/chunk-AUPVVLD3.js +3 -0
  4. package/lib/chunk-CJDESLYQ.js +3 -0
  5. package/lib/{chunk-L2A6JPIQ.js.map → chunk-CJDESLYQ.js.map} +1 -1
  6. package/lib/chunk-G6HW3DCN.js +3 -0
  7. package/lib/{chunk-W3VN25ER.js.map → chunk-G6HW3DCN.js.map} +1 -1
  8. package/lib/chunk-QPZM6M6S.js +117 -0
  9. package/lib/{chunk-YBKSM3GO.js.map → chunk-QPZM6M6S.js.map} +1 -1
  10. package/lib/chunk-WHWNPZZ3.js +3 -0
  11. package/lib/{chunk-6XHWJ2VS.js.map → chunk-WHWNPZZ3.js.map} +1 -1
  12. package/lib/chunk-XI22N6AJ.js +38 -0
  13. package/lib/{chunk-PCB4OKW7.js.map → chunk-XI22N6AJ.js.map} +1 -1
  14. package/lib/getMachineId-bsd-I6PJXCQT.js +3 -0
  15. package/lib/{getMachineId-bsd-WJ6BLVOD.js.map → getMachineId-bsd-I6PJXCQT.js.map} +1 -1
  16. package/lib/getMachineId-darwin-HKHV3WMW.js +4 -0
  17. package/lib/{getMachineId-darwin-TW74DVT5.js.map → getMachineId-darwin-HKHV3WMW.js.map} +1 -1
  18. package/lib/getMachineId-linux-I76A7IOE.js +3 -0
  19. package/lib/{getMachineId-linux-MDJOKOMI.js.map → getMachineId-linux-I76A7IOE.js.map} +1 -1
  20. package/lib/getMachineId-unsupported-VPOZWIZS.js +3 -0
  21. package/lib/{getMachineId-unsupported-X2EJZ25K.js.map → getMachineId-unsupported-VPOZWIZS.js.map} +1 -1
  22. package/lib/getMachineId-win-W5S4EK74.js +3 -0
  23. package/lib/{getMachineId-win-VE7DMTAF.js.map → getMachineId-win-W5S4EK74.js.map} +1 -1
  24. package/lib/index.d.ts +204 -89
  25. package/lib/index.js +1 -76
  26. package/lib/index.js.map +1 -1
  27. package/lib/{processor-HNY62jHs.d.ts → processor-CIR4erWa.d.ts} +0 -32
  28. package/lib/processor-runner.js +47 -24609
  29. package/lib/processor-runner.js.map +1 -1
  30. package/lib/service-worker.js +2 -132
  31. package/lib/service-worker.js.map +1 -1
  32. package/lib/test-processor.test.d.ts +1 -1
  33. package/lib/test-processor.test.js.map +1 -1
  34. package/package.json +3 -2
  35. package/src/gen/processor/protos/processor.ts +83 -1217
  36. package/src/gen/service/common/protos/common.ts +13 -552
  37. package/src/otlp.ts +9 -34
  38. package/src/processor-runner-program.ts +57 -0
  39. package/src/processor-runner.ts +11 -68
  40. package/src/service-manager.ts +3 -2
  41. package/src/service-v3.ts +6 -8
  42. package/src/service-worker.ts +3 -2
  43. package/src/service.ts +3 -2
  44. package/lib/chunk-6XHWJ2VS.js +0 -92
  45. package/lib/chunk-I5YHR3CE.js +0 -27642
  46. package/lib/chunk-I5YHR3CE.js.map +0 -1
  47. package/lib/chunk-KVSDPGUI.js +0 -50
  48. package/lib/chunk-L2A6JPIQ.js +0 -21
  49. package/lib/chunk-PCB4OKW7.js +0 -10975
  50. package/lib/chunk-W3VN25ER.js +0 -1703
  51. package/lib/chunk-YBKSM3GO.js +0 -59783
  52. package/lib/getMachineId-bsd-WJ6BLVOD.js +0 -41
  53. package/lib/getMachineId-darwin-TW74DVT5.js +0 -41
  54. package/lib/getMachineId-linux-MDJOKOMI.js +0 -33
  55. package/lib/getMachineId-unsupported-X2EJZ25K.js +0 -24
  56. package/lib/getMachineId-win-VE7DMTAF.js +0 -43
  57. /package/lib/{chunk-KVSDPGUI.js.map → chunk-AUPVVLD3.js.map} +0 -0
package/lib/index.d.ts CHANGED
@@ -1,10 +1,11 @@
1
- import { S as StoreContext, E as ExecutionConfig } from './processor-HNY62jHs.js';
2
- export { A as AbstractStoreContext, d as DataBindingContext, c as IDataBindingContext, I as IStoreContext, P as Plugin, b as PluginManager, t as timeoutError } from './processor-HNY62jHs.js';
1
+ import { S as StoreContext, E as ExecutionConfig } from './processor-CIR4erWa.js';
2
+ export { A as AbstractStoreContext, d as DataBindingContext, c as IDataBindingContext, I as IStoreContext, P as Plugin, b as PluginManager, t as timeoutError } from './processor-CIR4erWa.js';
3
3
  import * as _sentio_protos from '@sentio/protos';
4
4
  import { TemplateInstance, ProcessResult, EthCallParam, ProcessorServiceImplementation, ProcessConfigRequest, ProcessConfigResponse, StartRequest, Empty, ProcessBindingsRequest, ProcessBindingResponse, DataBinding, PreparedData, PreprocessResult, ProcessStreamRequest, HandlerType, PreprocessStreamRequest, DeepPartial, PreprocessStreamResponse, ProcessStreamResponse } from '@sentio/protos';
5
5
  import { Required } from 'utility-types';
6
6
  import { CallContext } from 'nice-grpc';
7
7
  import { Subject } from 'rxjs';
8
+ import { Command } from '@commander-js/extra-typings';
8
9
  import { JsonRpcProvider, Network } from 'ethers';
9
10
  import PQueue from 'p-queue';
10
11
  import { EthChainId } from '@sentio/chain';
@@ -73,6 +74,26 @@ interface ChainConfig {
73
74
  ChainServer?: string;
74
75
  }
75
76
 
77
+ declare const program: Command<[string], {
78
+ port: string;
79
+ concurrency: number;
80
+ batchCount: number;
81
+ chainsConfig: string;
82
+ chainqueryServer?: string | undefined;
83
+ pricefeedServer?: string | undefined;
84
+ logFormat: string;
85
+ debug?: true | undefined;
86
+ otlpDebug?: true | undefined;
87
+ startActionServer?: true | undefined;
88
+ worker: number;
89
+ processTimeout: number;
90
+ workerTimeout: number;
91
+ enablePartition: boolean;
92
+ }, {}>;
93
+ type ProcessorRuntimeOptions = ReturnType<typeof program.opts> & {
94
+ target: string;
95
+ };
96
+
76
97
  declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
77
98
  private started;
78
99
  unhandled: Error;
@@ -81,7 +102,7 @@ declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
81
102
  private readonly enablePreprocess;
82
103
  private preparedData;
83
104
  readonly enablePartition: boolean;
84
- constructor(loader: () => Promise<any>, options?: any, shutdownHandler?: () => void);
105
+ constructor(loader: () => Promise<any>, options?: ProcessorRuntimeOptions, shutdownHandler?: () => void);
85
106
  getConfig(request: ProcessConfigRequest, context: CallContext): Promise<ProcessConfigResponse>;
86
107
  start(request: StartRequest, context: CallContext): Promise<Empty>;
87
108
  stop(request: Empty, context: CallContext): Promise<Empty>;
@@ -111,31 +132,31 @@ declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
111
132
  fields?: {
112
133
  [x: string]: {
113
134
  nullValue?: _sentio_protos.RichValue_NullValue | undefined;
114
- intValue?: number | undefined;
115
- int64Value?: bigint | undefined;
116
- floatValue?: number | undefined;
117
- bytesValue?: Uint8Array | undefined;
118
- boolValue?: boolean | undefined;
119
- stringValue?: string | undefined;
135
+ intValue?: number | undefined | undefined;
136
+ int64Value?: bigint | undefined | undefined;
137
+ floatValue?: number | undefined | undefined;
138
+ bytesValue?: Uint8Array<ArrayBufferLike> | undefined;
139
+ boolValue?: boolean | undefined | undefined;
140
+ stringValue?: string | undefined | undefined;
120
141
  timestampValue?: Date | undefined;
121
142
  bigintValue?: {
122
143
  negative?: boolean | undefined;
123
- data?: Uint8Array | undefined;
144
+ data?: Uint8Array<ArrayBufferLike> | undefined;
124
145
  } | undefined;
125
146
  bigdecimalValue?: {
126
147
  value?: {
127
148
  negative?: boolean | undefined;
128
- data?: Uint8Array | undefined;
149
+ data?: Uint8Array<ArrayBufferLike> | undefined;
129
150
  } | undefined;
130
151
  exp?: number | undefined;
131
152
  } | undefined;
132
153
  listValue?: {
133
- values?: any[] | undefined;
154
+ values?: /*elided*/ any[] | undefined;
134
155
  } | undefined;
135
- structValue?: any | undefined;
156
+ structValue?: /*elided*/ any | undefined;
136
157
  tokenValue?: {
137
158
  token?: {
138
- symbol?: string | undefined;
159
+ symbol?: string | undefined | undefined;
139
160
  address?: {
140
161
  address?: string | undefined;
141
162
  chain?: string | undefined;
@@ -144,7 +165,7 @@ declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
144
165
  amount?: {
145
166
  value?: {
146
167
  negative?: boolean | undefined;
147
- data?: Uint8Array | undefined;
168
+ data?: Uint8Array<ArrayBufferLike> | undefined;
148
169
  } | undefined;
149
170
  exp?: number | undefined;
150
171
  } | undefined;
@@ -162,31 +183,35 @@ declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
162
183
  [x: string]: {
163
184
  value?: {
164
185
  nullValue?: _sentio_protos.RichValue_NullValue | undefined;
165
- intValue?: number | undefined;
166
- int64Value?: bigint | undefined;
167
- floatValue?: number | undefined;
168
- bytesValue?: Uint8Array | undefined;
169
- boolValue?: boolean | undefined;
170
- stringValue?: string | undefined;
186
+ intValue?: number | undefined | undefined;
187
+ int64Value?: bigint | undefined | undefined;
188
+ floatValue?: number | undefined | undefined;
189
+ bytesValue?: Uint8Array<ArrayBufferLike> | undefined;
190
+ boolValue?: boolean | undefined | undefined;
191
+ stringValue?: string | undefined | undefined;
171
192
  timestampValue?: Date | undefined;
172
193
  bigintValue?: {
173
194
  negative?: boolean | undefined;
174
- data?: Uint8Array | undefined;
195
+ data?: Uint8Array<ArrayBufferLike> | undefined;
175
196
  } | undefined;
176
197
  bigdecimalValue?: {
177
198
  value?: {
178
199
  negative?: boolean | undefined;
179
- data?: Uint8Array | undefined;
200
+ data?: Uint8Array<ArrayBufferLike> | undefined;
180
201
  } | undefined;
181
202
  exp?: number | undefined;
182
203
  } | undefined;
183
204
  listValue?: {
184
- values?: any[] | undefined;
205
+ values?: /*elided*/ any[] | undefined;
206
+ } | undefined;
207
+ structValue?: {
208
+ fields?: {
209
+ [x: string]: /*elided*/ any | undefined;
210
+ } | undefined;
185
211
  } | undefined;
186
- structValue?: any | undefined;
187
212
  tokenValue?: {
188
213
  token?: {
189
- symbol?: string | undefined;
214
+ symbol?: string | undefined | undefined;
190
215
  address?: {
191
216
  address?: string | undefined;
192
217
  chain?: string | undefined;
@@ -195,7 +220,7 @@ declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
195
220
  amount?: {
196
221
  value?: {
197
222
  negative?: boolean | undefined;
198
- data?: Uint8Array | undefined;
223
+ data?: Uint8Array<ArrayBufferLike> | undefined;
199
224
  } | undefined;
200
225
  exp?: number | undefined;
201
226
  } | undefined;
@@ -217,11 +242,54 @@ declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
217
242
  field?: string | undefined;
218
243
  op?: _sentio_protos.DBRequest_DBOperator | undefined;
219
244
  value?: {
220
- values?: any[] | undefined;
245
+ values?: {
246
+ nullValue?: _sentio_protos.RichValue_NullValue | undefined;
247
+ intValue?: number | undefined | undefined;
248
+ int64Value?: bigint | undefined | undefined;
249
+ floatValue?: number | undefined | undefined;
250
+ bytesValue?: Uint8Array<ArrayBufferLike> | undefined;
251
+ boolValue?: boolean | undefined | undefined;
252
+ stringValue?: string | undefined | undefined;
253
+ timestampValue?: Date | undefined;
254
+ bigintValue?: {
255
+ negative?: boolean | undefined;
256
+ data?: Uint8Array<ArrayBufferLike> | undefined;
257
+ } | undefined;
258
+ bigdecimalValue?: {
259
+ value?: {
260
+ negative?: boolean | undefined;
261
+ data?: Uint8Array<ArrayBufferLike> | undefined;
262
+ } | undefined;
263
+ exp?: number | undefined;
264
+ } | undefined;
265
+ listValue?: /*elided*/ any | undefined;
266
+ structValue?: {
267
+ fields?: {
268
+ [x: string]: /*elided*/ any | undefined;
269
+ } | undefined;
270
+ } | undefined;
271
+ tokenValue?: {
272
+ token?: {
273
+ symbol?: string | undefined | undefined;
274
+ address?: {
275
+ address?: string | undefined;
276
+ chain?: string | undefined;
277
+ } | undefined;
278
+ } | undefined;
279
+ amount?: {
280
+ value?: {
281
+ negative?: boolean | undefined;
282
+ data?: Uint8Array<ArrayBufferLike> | undefined;
283
+ } | undefined;
284
+ exp?: number | undefined;
285
+ } | undefined;
286
+ specifiedAt?: Date | undefined;
287
+ } | undefined;
288
+ }[] | undefined;
221
289
  } | undefined;
222
290
  }[] | undefined;
223
291
  cursor?: string | undefined;
224
- pageSize?: number | undefined;
292
+ pageSize?: number | undefined | undefined;
225
293
  } | undefined;
226
294
  } | undefined;
227
295
  result?: {
@@ -240,11 +308,11 @@ declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
240
308
  } | undefined;
241
309
  } | undefined;
242
310
  metricValue?: {
243
- bigDecimal?: string | undefined;
244
- doubleValue?: number | undefined;
311
+ bigDecimal?: string | undefined | undefined;
312
+ doubleValue?: number | undefined | undefined;
245
313
  bigInteger?: {
246
314
  negative?: boolean | undefined;
247
- data?: Uint8Array | undefined;
315
+ data?: Uint8Array<ArrayBufferLike> | undefined;
248
316
  } | undefined;
249
317
  } | undefined;
250
318
  runtimeInfo?: {
@@ -266,11 +334,11 @@ declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
266
334
  } | undefined;
267
335
  } | undefined;
268
336
  metricValue?: {
269
- bigDecimal?: string | undefined;
270
- doubleValue?: number | undefined;
337
+ bigDecimal?: string | undefined | undefined;
338
+ doubleValue?: number | undefined | undefined;
271
339
  bigInteger?: {
272
340
  negative?: boolean | undefined;
273
- data?: Uint8Array | undefined;
341
+ data?: Uint8Array<ArrayBufferLike> | undefined;
274
342
  } | undefined;
275
343
  } | undefined;
276
344
  add?: boolean | undefined;
@@ -305,31 +373,31 @@ declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
305
373
  fields?: {
306
374
  [x: string]: {
307
375
  nullValue?: _sentio_protos.RichValue_NullValue | undefined;
308
- intValue?: number | undefined;
309
- int64Value?: bigint | undefined;
310
- floatValue?: number | undefined;
311
- bytesValue?: Uint8Array | undefined;
312
- boolValue?: boolean | undefined;
313
- stringValue?: string | undefined;
376
+ intValue?: number | undefined | undefined;
377
+ int64Value?: bigint | undefined | undefined;
378
+ floatValue?: number | undefined | undefined;
379
+ bytesValue?: Uint8Array<ArrayBufferLike> | undefined;
380
+ boolValue?: boolean | undefined | undefined;
381
+ stringValue?: string | undefined | undefined;
314
382
  timestampValue?: Date | undefined;
315
383
  bigintValue?: {
316
384
  negative?: boolean | undefined;
317
- data?: Uint8Array | undefined;
385
+ data?: Uint8Array<ArrayBufferLike> | undefined;
318
386
  } | undefined;
319
387
  bigdecimalValue?: {
320
388
  value?: {
321
389
  negative?: boolean | undefined;
322
- data?: Uint8Array | undefined;
390
+ data?: Uint8Array<ArrayBufferLike> | undefined;
323
391
  } | undefined;
324
392
  exp?: number | undefined;
325
393
  } | undefined;
326
394
  listValue?: {
327
- values?: any[] | undefined;
395
+ values?: /*elided*/ any[] | undefined;
328
396
  } | undefined;
329
- structValue?: any | undefined;
397
+ structValue?: /*elided*/ any | undefined;
330
398
  tokenValue?: {
331
399
  token?: {
332
- symbol?: string | undefined;
400
+ symbol?: string | undefined | undefined;
333
401
  address?: {
334
402
  address?: string | undefined;
335
403
  chain?: string | undefined;
@@ -338,7 +406,7 @@ declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
338
406
  amount?: {
339
407
  value?: {
340
408
  negative?: boolean | undefined;
341
- data?: Uint8Array | undefined;
409
+ data?: Uint8Array<ArrayBufferLike> | undefined;
342
410
  } | undefined;
343
411
  exp?: number | undefined;
344
412
  } | undefined;
@@ -370,7 +438,7 @@ declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
370
438
  }[] | undefined;
371
439
  states?: {
372
440
  configUpdated?: boolean | undefined;
373
- error?: string | undefined;
441
+ error?: string | undefined | undefined;
374
442
  } | undefined;
375
443
  timeseriesResult?: {
376
444
  metadata?: {
@@ -391,31 +459,31 @@ declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
391
459
  fields?: {
392
460
  [x: string]: {
393
461
  nullValue?: _sentio_protos.RichValue_NullValue | undefined;
394
- intValue?: number | undefined;
395
- int64Value?: bigint | undefined;
396
- floatValue?: number | undefined;
397
- bytesValue?: Uint8Array | undefined;
398
- boolValue?: boolean | undefined;
399
- stringValue?: string | undefined;
462
+ intValue?: number | undefined | undefined;
463
+ int64Value?: bigint | undefined | undefined;
464
+ floatValue?: number | undefined | undefined;
465
+ bytesValue?: Uint8Array<ArrayBufferLike> | undefined;
466
+ boolValue?: boolean | undefined | undefined;
467
+ stringValue?: string | undefined | undefined;
400
468
  timestampValue?: Date | undefined;
401
469
  bigintValue?: {
402
470
  negative?: boolean | undefined;
403
- data?: Uint8Array | undefined;
471
+ data?: Uint8Array<ArrayBufferLike> | undefined;
404
472
  } | undefined;
405
473
  bigdecimalValue?: {
406
474
  value?: {
407
475
  negative?: boolean | undefined;
408
- data?: Uint8Array | undefined;
476
+ data?: Uint8Array<ArrayBufferLike> | undefined;
409
477
  } | undefined;
410
478
  exp?: number | undefined;
411
479
  } | undefined;
412
480
  listValue?: {
413
- values?: any[] | undefined;
481
+ values?: /*elided*/ any[] | undefined;
414
482
  } | undefined;
415
- structValue?: any | undefined;
483
+ structValue?: /*elided*/ any | undefined;
416
484
  tokenValue?: {
417
485
  token?: {
418
- symbol?: string | undefined;
486
+ symbol?: string | undefined | undefined;
419
487
  address?: {
420
488
  address?: string | undefined;
421
489
  chain?: string | undefined;
@@ -424,7 +492,7 @@ declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
424
492
  amount?: {
425
493
  value?: {
426
494
  negative?: boolean | undefined;
427
- data?: Uint8Array | undefined;
495
+ data?: Uint8Array<ArrayBufferLike> | undefined;
428
496
  } | undefined;
429
497
  exp?: number | undefined;
430
498
  } | undefined;
@@ -441,12 +509,12 @@ declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
441
509
  partitions?: {
442
510
  partitions?: {
443
511
  [x: number]: {
444
- userValue?: string | undefined;
512
+ userValue?: string | undefined | undefined;
445
513
  sysValue?: _sentio_protos.ProcessStreamResponse_Partitions_Partition_SysValue | undefined;
446
514
  } | undefined;
447
515
  } | undefined;
448
516
  } | undefined;
449
- }, void, undefined>;
517
+ }, void, any>;
450
518
  handlePreprocessRequests(requests: AsyncIterable<PreprocessStreamRequest>, subject: Subject<DeepPartial<PreprocessStreamResponse>>): Promise<void>;
451
519
  preprocessBindingsStream(requests: AsyncIterable<PreprocessStreamRequest>, context: CallContext): AsyncGenerator<{
452
520
  processId?: number | undefined;
@@ -466,31 +534,31 @@ declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
466
534
  fields?: {
467
535
  [x: string]: {
468
536
  nullValue?: _sentio_protos.RichValue_NullValue | undefined;
469
- intValue?: number | undefined;
470
- int64Value?: bigint | undefined;
471
- floatValue?: number | undefined;
472
- bytesValue?: Uint8Array | undefined;
473
- boolValue?: boolean | undefined;
474
- stringValue?: string | undefined;
537
+ intValue?: number | undefined | undefined;
538
+ int64Value?: bigint | undefined | undefined;
539
+ floatValue?: number | undefined | undefined;
540
+ bytesValue?: Uint8Array<ArrayBufferLike> | undefined;
541
+ boolValue?: boolean | undefined | undefined;
542
+ stringValue?: string | undefined | undefined;
475
543
  timestampValue?: Date | undefined;
476
544
  bigintValue?: {
477
545
  negative?: boolean | undefined;
478
- data?: Uint8Array | undefined;
546
+ data?: Uint8Array<ArrayBufferLike> | undefined;
479
547
  } | undefined;
480
548
  bigdecimalValue?: {
481
549
  value?: {
482
550
  negative?: boolean | undefined;
483
- data?: Uint8Array | undefined;
551
+ data?: Uint8Array<ArrayBufferLike> | undefined;
484
552
  } | undefined;
485
553
  exp?: number | undefined;
486
554
  } | undefined;
487
555
  listValue?: {
488
- values?: any[] | undefined;
556
+ values?: /*elided*/ any[] | undefined;
489
557
  } | undefined;
490
- structValue?: any | undefined;
558
+ structValue?: /*elided*/ any | undefined;
491
559
  tokenValue?: {
492
560
  token?: {
493
- symbol?: string | undefined;
561
+ symbol?: string | undefined | undefined;
494
562
  address?: {
495
563
  address?: string | undefined;
496
564
  chain?: string | undefined;
@@ -499,7 +567,7 @@ declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
499
567
  amount?: {
500
568
  value?: {
501
569
  negative?: boolean | undefined;
502
- data?: Uint8Array | undefined;
570
+ data?: Uint8Array<ArrayBufferLike> | undefined;
503
571
  } | undefined;
504
572
  exp?: number | undefined;
505
573
  } | undefined;
@@ -517,31 +585,35 @@ declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
517
585
  [x: string]: {
518
586
  value?: {
519
587
  nullValue?: _sentio_protos.RichValue_NullValue | undefined;
520
- intValue?: number | undefined;
521
- int64Value?: bigint | undefined;
522
- floatValue?: number | undefined;
523
- bytesValue?: Uint8Array | undefined;
524
- boolValue?: boolean | undefined;
525
- stringValue?: string | undefined;
588
+ intValue?: number | undefined | undefined;
589
+ int64Value?: bigint | undefined | undefined;
590
+ floatValue?: number | undefined | undefined;
591
+ bytesValue?: Uint8Array<ArrayBufferLike> | undefined;
592
+ boolValue?: boolean | undefined | undefined;
593
+ stringValue?: string | undefined | undefined;
526
594
  timestampValue?: Date | undefined;
527
595
  bigintValue?: {
528
596
  negative?: boolean | undefined;
529
- data?: Uint8Array | undefined;
597
+ data?: Uint8Array<ArrayBufferLike> | undefined;
530
598
  } | undefined;
531
599
  bigdecimalValue?: {
532
600
  value?: {
533
601
  negative?: boolean | undefined;
534
- data?: Uint8Array | undefined;
602
+ data?: Uint8Array<ArrayBufferLike> | undefined;
535
603
  } | undefined;
536
604
  exp?: number | undefined;
537
605
  } | undefined;
538
606
  listValue?: {
539
- values?: any[] | undefined;
607
+ values?: /*elided*/ any[] | undefined;
608
+ } | undefined;
609
+ structValue?: {
610
+ fields?: {
611
+ [x: string]: /*elided*/ any | undefined;
612
+ } | undefined;
540
613
  } | undefined;
541
- structValue?: any | undefined;
542
614
  tokenValue?: {
543
615
  token?: {
544
- symbol?: string | undefined;
616
+ symbol?: string | undefined | undefined;
545
617
  address?: {
546
618
  address?: string | undefined;
547
619
  chain?: string | undefined;
@@ -550,7 +622,7 @@ declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
550
622
  amount?: {
551
623
  value?: {
552
624
  negative?: boolean | undefined;
553
- data?: Uint8Array | undefined;
625
+ data?: Uint8Array<ArrayBufferLike> | undefined;
554
626
  } | undefined;
555
627
  exp?: number | undefined;
556
628
  } | undefined;
@@ -572,14 +644,57 @@ declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
572
644
  field?: string | undefined;
573
645
  op?: _sentio_protos.DBRequest_DBOperator | undefined;
574
646
  value?: {
575
- values?: any[] | undefined;
647
+ values?: {
648
+ nullValue?: _sentio_protos.RichValue_NullValue | undefined;
649
+ intValue?: number | undefined | undefined;
650
+ int64Value?: bigint | undefined | undefined;
651
+ floatValue?: number | undefined | undefined;
652
+ bytesValue?: Uint8Array<ArrayBufferLike> | undefined;
653
+ boolValue?: boolean | undefined | undefined;
654
+ stringValue?: string | undefined | undefined;
655
+ timestampValue?: Date | undefined;
656
+ bigintValue?: {
657
+ negative?: boolean | undefined;
658
+ data?: Uint8Array<ArrayBufferLike> | undefined;
659
+ } | undefined;
660
+ bigdecimalValue?: {
661
+ value?: {
662
+ negative?: boolean | undefined;
663
+ data?: Uint8Array<ArrayBufferLike> | undefined;
664
+ } | undefined;
665
+ exp?: number | undefined;
666
+ } | undefined;
667
+ listValue?: /*elided*/ any | undefined;
668
+ structValue?: {
669
+ fields?: {
670
+ [x: string]: /*elided*/ any | undefined;
671
+ } | undefined;
672
+ } | undefined;
673
+ tokenValue?: {
674
+ token?: {
675
+ symbol?: string | undefined | undefined;
676
+ address?: {
677
+ address?: string | undefined;
678
+ chain?: string | undefined;
679
+ } | undefined;
680
+ } | undefined;
681
+ amount?: {
682
+ value?: {
683
+ negative?: boolean | undefined;
684
+ data?: Uint8Array<ArrayBufferLike> | undefined;
685
+ } | undefined;
686
+ exp?: number | undefined;
687
+ } | undefined;
688
+ specifiedAt?: Date | undefined;
689
+ } | undefined;
690
+ }[] | undefined;
576
691
  } | undefined;
577
692
  }[] | undefined;
578
693
  cursor?: string | undefined;
579
- pageSize?: number | undefined;
694
+ pageSize?: number | undefined | undefined;
580
695
  } | undefined;
581
696
  } | undefined;
582
- }, void, undefined>;
697
+ }, void, any>;
583
698
  private dbContexts;
584
699
  protected handleRequests(requests: AsyncIterable<ProcessStreamRequest>, subject: Subject<DeepPartial<ProcessStreamResponse>>): Promise<void>;
585
700
  handleRequest(request: ProcessStreamRequest, lastBinding: DataBinding | undefined, subject: Subject<DeepPartial<ProcessStreamResponse>>): Promise<void>;
package/lib/index.js CHANGED
@@ -1,78 +1,3 @@
1
1
  import { createRequire as createRequireShim } from 'module'; const require = createRequireShim(import.meta.url);
2
- import {
3
- ListStateStorage,
4
- MapStateStorage,
5
- State,
6
- StateStorage,
7
- TemplateInstanceState
8
- } from "./chunk-6XHWJ2VS.js";
9
- import {
10
- AbstractStoreContext,
11
- DataBindingContext,
12
- DummyProvider,
13
- Endpoints,
14
- GLOBAL_CONFIG,
15
- ProcessorServiceImpl,
16
- QueuedStaticJsonRpcProvider,
17
- StoreContext,
18
- USER_PROCESSOR,
19
- compareSemver,
20
- configureEndpoints,
21
- dbMetrics,
22
- errorString,
23
- getProvider,
24
- makeEthCallKey,
25
- mergeProcessResults,
26
- mergeProcessResultsInPlace,
27
- metricsStorage,
28
- parseSemver,
29
- processMetrics,
30
- providerMetrics,
31
- recordRuntimeInfo,
32
- timeoutError
33
- } from "./chunk-YBKSM3GO.js";
34
- import {
35
- Plugin,
36
- PluginManager
37
- } from "./chunk-I5YHR3CE.js";
38
- import "./chunk-W3VN25ER.js";
39
- import "./chunk-KVSDPGUI.js";
40
-
41
- // src/chain-config.ts
42
- import("node:process").then((p) => p.stdout.write(""));
43
-
44
- // src/index.ts
45
- import("node:process").then((p) => p.stdout.write(""));
46
- export {
47
- AbstractStoreContext,
48
- DataBindingContext,
49
- DummyProvider,
50
- Endpoints,
51
- GLOBAL_CONFIG,
52
- ListStateStorage,
53
- MapStateStorage,
54
- Plugin,
55
- PluginManager,
56
- ProcessorServiceImpl,
57
- QueuedStaticJsonRpcProvider,
58
- State,
59
- StateStorage,
60
- StoreContext,
61
- TemplateInstanceState,
62
- USER_PROCESSOR,
63
- compareSemver,
64
- configureEndpoints,
65
- dbMetrics,
66
- errorString,
67
- getProvider,
68
- makeEthCallKey,
69
- mergeProcessResults,
70
- mergeProcessResultsInPlace,
71
- metricsStorage,
72
- parseSemver,
73
- processMetrics,
74
- providerMetrics,
75
- recordRuntimeInfo,
76
- timeoutError
77
- };
2
+ import{a as p,b as f,c as i,d as m,e as n}from"./chunk-WHWNPZZ3.js";import{A as c,B as v,E as y,F as A,G as B,H as D,I as F,a as x,b as s,c as C,d as a,e as g,f as h,g as G,i as d,j as l,s as o,u,v as w,w as I,x as L,y as O,z as b}from"./chunk-QPZM6M6S.js";import{p as t,q as e}from"./chunk-3A7UBKPA.js";import"./chunk-G6HW3DCN.js";import"./chunk-AUPVVLD3.js";import("node:process").then(r=>r.stdout.write(""));import("node:process").then(r=>r.stdout.write(""));export{b as AbstractStoreContext,v as DataBindingContext,y as DummyProvider,d as Endpoints,o as GLOBAL_CONFIG,m as ListStateStorage,i as MapStateStorage,t as Plugin,e as PluginManager,D as ProcessorServiceImpl,B as QueuedStaticJsonRpcProvider,p as State,f as StateStorage,c as StoreContext,n as TemplateInstanceState,a as USER_PROCESSOR,G as compareSemver,l as configureEndpoints,u as dbMetrics,C as errorString,A as getProvider,g as makeEthCallKey,x as mergeProcessResults,s as mergeProcessResultsInPlace,L as metricsStorage,h as parseSemver,I as processMetrics,w as providerMetrics,F as recordRuntimeInfo,O as timeoutError};
78
3
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/chain-config.ts","../src/index.ts"],"sourcesContent":["export interface ChainConfig {\n ChainID: string\n Https?: string[]\n ChainServer?: string\n}\n;import(\"node:process\").then((p) => p.stdout.write(\"\"));","export * from './plugin.js'\nexport * from './state.js'\nexport * from './utils.js'\nexport * from './endpoints.js'\nexport * from './chain-config.js'\nexport * from './service.js'\nexport { GLOBAL_CONFIG, type GlobalConfig } from './global-config.js'\nexport * from './db-context.js'\nexport * from './provider.js'\nexport * from './metrics.js'\n;import(\"node:process\").then((p) => p.stdout.write(\"\"));"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKC,OAAO,cAAc,EAAE,KAAK,CAAC,MAAM,EAAE,OAAO,MAAM,EAAE,CAAC;;;ACKrD,OAAO,cAAc,EAAE,KAAK,CAAC,MAAM,EAAE,OAAO,MAAM,EAAE,CAAC;","names":[]}
1
+ {"version":3,"sources":["../src/chain-config.ts","../src/index.ts"],"sourcesContent":["export interface ChainConfig {\n ChainID: string\n Https?: string[]\n ChainServer?: string\n}\n;import(\"node:process\").then((p) => p.stdout.write(\"\"));","export * from './plugin.js'\nexport * from './state.js'\nexport * from './utils.js'\nexport * from './endpoints.js'\nexport * from './chain-config.js'\nexport * from './service.js'\nexport { GLOBAL_CONFIG, type GlobalConfig } from './global-config.js'\nexport * from './db-context.js'\nexport * from './provider.js'\nexport * from './metrics.js'\n;import(\"node:process\").then((p) => p.stdout.write(\"\"));"],"mappings":";wWAKC,OAAO,cAAc,EAAE,KAAMA,GAAMA,EAAE,OAAO,MAAM,EAAE,CAAC,ECKrD,OAAO,cAAc,EAAE,KAAMC,GAAMA,EAAE,OAAO,MAAM,EAAE,CAAC","names":["p","p"]}