@sentio/runtime 4.0.0-rc.1 → 4.0.0-rc.3

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/lib/index.d.ts CHANGED
@@ -1,9 +1,10 @@
1
- import { S as StoreContext, E as ExecutionConfig } from './processor-StqZovMW.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-StqZovMW.js';
1
+ export { A as AbstractStoreContext, D as DataBindingContext, b as IDataBindingContext, I as IStoreContext, P as Plugin, a as PluginManager, S as StoreContext, t as timeoutError } from './plugin-D-rx1WCp.js';
3
2
  import * as _sentio_protos from '@sentio/protos';
4
- import { ProcessResult, EthCallParam, ProcessorServiceImplementation, ProcessConfigRequest, ProcessConfigResponse, StartRequest, Empty, ProcessBindingsRequest, ProcessBindingResponse, DataBinding, PreparedData, PreprocessResult, ProcessStreamRequest, HandlerType, PreprocessStreamRequest, DeepPartial, PreprocessStreamResponse, ProcessStreamResponse } from '@sentio/protos';
3
+ import { ProcessResult, HandlerType, EthCallParam, ProcessorV3, StartRequest, ProcessConfigRequest, ProcessStreamRequest, DataBinding, UpdateTemplatesRequest, ProcessStreamResponseV3Schema, ExecutionConfigSchema } from '@sentio/protos';
5
4
  import { Required } from 'utility-types';
6
- import { CallContext } from 'nice-grpc';
5
+ import * as _bufbuild_protobuf from '@bufbuild/protobuf';
6
+ import { MessageInitShape } from '@bufbuild/protobuf';
7
+ import { ServiceImpl, HandlerContext } from '@connectrpc/connect';
7
8
  import { Subject } from 'rxjs';
8
9
  import { Command } from '@commander-js/extra-typings';
9
10
  import { JsonRpcProvider, Network } from 'ethers';
@@ -11,7 +12,6 @@ import PQueue from 'p-queue';
11
12
  import { EthChainId } from '@sentio/chain';
12
13
  import { AsyncLocalStorage } from 'node:async_hooks';
13
14
  import { Counter, Attributes, Gauge, Histogram } from '@opentelemetry/api';
14
- import '@bufbuild/protobuf/wire';
15
15
 
16
16
  declare class State {
17
17
  stateMap: Map<string, any>;
@@ -39,6 +39,7 @@ declare abstract class ListStateStorage<T> extends StateStorage<T[]> {
39
39
 
40
40
  declare function mergeProcessResults(results: ProcessResult[]): Required<ProcessResult, 'states'>;
41
41
  declare function mergeProcessResultsInPlace(res: ProcessResult, results: ProcessResult[]): Required<ProcessResult, 'states'>;
42
+ declare function recordRuntimeInfo(results: ProcessResult, handlerType: HandlerType): void;
42
43
  declare function errorString(e: unknown): string;
43
44
  declare const USER_PROCESSOR = "user_processor";
44
45
  declare function makeEthCallKey(param: EthCallParam): string;
@@ -88,613 +89,1453 @@ type ProcessorRuntimeOptions = ReturnType<typeof program.opts> & {
88
89
  target: string;
89
90
  };
90
91
 
91
- declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
92
- private started;
93
- unhandled: Error;
92
+ type ProcessStreamResponseV3Init = MessageInitShape<typeof ProcessStreamResponseV3Schema>;
93
+ declare class ProcessorServiceImplV3 implements ServiceImpl<typeof ProcessorV3> {
94
+ readonly enablePartition: boolean;
94
95
  private readonly loader;
95
96
  private readonly shutdownHandler?;
96
- private readonly enablePreprocess;
97
- private preparedData;
98
- readonly enablePartition: boolean;
97
+ private started;
99
98
  constructor(loader: () => Promise<any>, options?: ProcessorRuntimeOptions, shutdownHandler?: () => void);
100
- getConfig(request: ProcessConfigRequest, context: CallContext): Promise<ProcessConfigResponse>;
101
- start(request: StartRequest, context: CallContext): Promise<Empty>;
102
- stop(request: Empty, context: CallContext): Promise<Empty>;
103
- processBindings(request: ProcessBindingsRequest, options?: CallContext): Promise<ProcessBindingResponse>;
104
- preprocessBindings(bindings: DataBinding[], preprocessStore: {
105
- [k: string]: any;
106
- }, dbContext?: StoreContext, options?: CallContext): Promise<PreparedData>;
107
- preprocessBinding(request: DataBinding, preprocessStore: {
108
- [k: string]: any;
109
- }, dbContext?: StoreContext, options?: CallContext): Promise<PreprocessResult>;
110
- processBinding(request: DataBinding, preparedData: PreparedData | undefined, options?: CallContext): Promise<ProcessResult>;
111
- processBindingsStream(requests: AsyncIterable<ProcessStreamRequest>, context: CallContext): AsyncGenerator<{
99
+ start(request: StartRequest, context: HandlerContext): Promise<_bufbuild_protobuf.Message<"google.protobuf.Empty">>;
100
+ getConfig(request: ProcessConfigRequest, context: HandlerContext): Promise<_sentio_protos.ProcessConfigResponse>;
101
+ processBindingsStream(requests: AsyncIterable<ProcessStreamRequest>, context: HandlerContext): AsyncGenerator<_sentio_protos.ProcessStreamResponseV3 | {
102
+ readonly $typeName?: undefined;
112
103
  processId?: number | undefined;
113
- dbRequest?: {
114
- opId?: bigint | undefined;
115
- get?: {
116
- entity?: string | undefined;
117
- id?: string | undefined;
118
- } | undefined;
119
- upsert?: {
120
- entity?: string[] | undefined;
121
- id?: string[] | undefined;
122
- data?: {
123
- [x: string]: any;
124
- }[] | undefined;
125
- entityData?: {
126
- fields?: {
127
- [x: string]: {
128
- nullValue?: _sentio_protos.RichValue_NullValue | undefined;
129
- intValue?: number | undefined | undefined;
130
- int64Value?: bigint | undefined | undefined;
131
- floatValue?: number | undefined | undefined;
132
- bytesValue?: Uint8Array<ArrayBufferLike> | undefined;
133
- boolValue?: boolean | undefined | undefined;
134
- stringValue?: string | undefined | undefined;
135
- timestampValue?: Date | undefined;
136
- bigintValue?: {
137
- negative?: boolean | undefined;
138
- data?: Uint8Array<ArrayBufferLike> | undefined;
139
- } | undefined;
140
- bigdecimalValue?: {
141
- value?: {
142
- negative?: boolean | undefined;
143
- data?: Uint8Array<ArrayBufferLike> | undefined;
144
- } | undefined;
145
- exp?: number | undefined;
146
- } | undefined;
147
- listValue?: {
148
- values?: /*elided*/ any[] | undefined;
149
- } | undefined;
150
- structValue?: /*elided*/ any | undefined;
151
- tokenValue?: {
152
- token?: {
153
- symbol?: string | undefined | undefined;
154
- address?: {
155
- address?: string | undefined;
156
- chain?: string | undefined;
157
- } | undefined;
158
- } | undefined;
159
- amount?: {
104
+ value?: {
105
+ case: undefined;
106
+ value?: undefined;
107
+ } | {
108
+ case: "dbRequest";
109
+ value: _sentio_protos.DBRequest | {
110
+ readonly $typeName?: undefined;
111
+ opId?: bigint | undefined;
112
+ op?: {
113
+ case: undefined;
114
+ value?: undefined;
115
+ } | {
116
+ case: "get";
117
+ value: _sentio_protos.DBRequest_DBGet | {
118
+ readonly $typeName?: undefined;
119
+ entity?: string | undefined;
120
+ id?: string | undefined;
121
+ };
122
+ } | {
123
+ case: "upsert";
124
+ value: _sentio_protos.DBRequest_DBUpsert | {
125
+ readonly $typeName?: undefined;
126
+ entity?: string[] | undefined;
127
+ id?: string[] | undefined;
128
+ data?: _bufbuild_protobuf.JsonObject[] | undefined;
129
+ entityData?: (_sentio_protos.RichStruct | {
130
+ readonly $typeName?: undefined;
131
+ fields?: {
132
+ [key: string]: _sentio_protos.RichValue | {
133
+ readonly $typeName?: undefined;
160
134
  value?: {
161
- negative?: boolean | undefined;
162
- data?: Uint8Array<ArrayBufferLike> | undefined;
135
+ value: _sentio_protos.RichValue_NullValue;
136
+ case: "nullValue";
137
+ } | {
138
+ value: number;
139
+ case: "intValue";
140
+ } | {
141
+ value: bigint;
142
+ case: "int64Value";
143
+ } | {
144
+ value: number;
145
+ case: "floatValue";
146
+ } | {
147
+ value: Uint8Array;
148
+ case: "bytesValue";
149
+ } | {
150
+ value: boolean;
151
+ case: "boolValue";
152
+ } | {
153
+ value: string;
154
+ case: "stringValue";
155
+ } | {
156
+ case: undefined;
157
+ value?: undefined;
158
+ } | {
159
+ case: "timestampValue";
160
+ value: _sentio_protos.Timestamp | {
161
+ readonly $typeName?: undefined;
162
+ seconds?: bigint | undefined;
163
+ nanos?: number | undefined;
164
+ };
165
+ } | {
166
+ case: "bigintValue";
167
+ value: _sentio_protos.BigInteger | {
168
+ readonly $typeName?: undefined;
169
+ negative?: boolean | undefined;
170
+ data?: Uint8Array<ArrayBufferLike> | undefined;
171
+ };
172
+ } | {
173
+ case: "bigdecimalValue";
174
+ value: _sentio_protos.BigDecimalRichValue | {
175
+ readonly $typeName?: undefined;
176
+ value?: (_sentio_protos.BigInteger | {
177
+ readonly $typeName?: undefined;
178
+ negative?: boolean | undefined;
179
+ data?: Uint8Array<ArrayBufferLike> | undefined;
180
+ }) | undefined;
181
+ exp?: number | undefined;
182
+ };
183
+ } | {
184
+ case: "listValue";
185
+ value: _sentio_protos.RichValueList | {
186
+ readonly $typeName?: undefined;
187
+ values?: (_sentio_protos.RichValue | /*elided*/ any)[] | undefined;
188
+ };
189
+ } | {
190
+ case: "structValue";
191
+ value: _sentio_protos.RichStruct | /*elided*/ any;
192
+ } | {
193
+ case: "tokenValue";
194
+ value: _sentio_protos.TokenAmount | {
195
+ readonly $typeName?: undefined;
196
+ token?: (_sentio_protos.CoinID | {
197
+ readonly $typeName?: undefined;
198
+ id?: {
199
+ value: string;
200
+ case: "symbol";
201
+ } | {
202
+ case: undefined;
203
+ value?: undefined;
204
+ } | {
205
+ case: "address";
206
+ value: _sentio_protos.CoinID_AddressIdentifier | {
207
+ readonly $typeName?: undefined;
208
+ address?: string | undefined;
209
+ chain?: string | undefined;
210
+ };
211
+ } | undefined;
212
+ }) | undefined;
213
+ amount?: (_sentio_protos.BigDecimalRichValue | {
214
+ readonly $typeName?: undefined;
215
+ value?: (_sentio_protos.BigInteger | {
216
+ readonly $typeName?: undefined;
217
+ negative?: boolean | undefined;
218
+ data?: Uint8Array<ArrayBufferLike> | undefined;
219
+ }) | undefined;
220
+ exp?: number | undefined;
221
+ }) | undefined;
222
+ specifiedAt?: (_sentio_protos.Timestamp | {
223
+ readonly $typeName?: undefined;
224
+ seconds?: bigint | undefined;
225
+ nanos?: number | undefined;
226
+ }) | undefined;
227
+ };
163
228
  } | undefined;
164
- exp?: number | undefined;
165
- } | undefined;
166
- specifiedAt?: Date | undefined;
167
- } | undefined;
168
- } | undefined;
169
- } | undefined;
170
- }[] | undefined;
171
- } | undefined;
172
- update?: {
173
- entity?: string[] | undefined;
174
- id?: string[] | undefined;
175
- entityData?: {
176
- fields?: {
177
- [x: string]: {
178
- value?: {
179
- nullValue?: _sentio_protos.RichValue_NullValue | undefined;
180
- intValue?: number | undefined | undefined;
181
- int64Value?: bigint | undefined | undefined;
182
- floatValue?: number | undefined | undefined;
183
- bytesValue?: Uint8Array<ArrayBufferLike> | undefined;
184
- boolValue?: boolean | undefined | undefined;
185
- stringValue?: string | undefined | undefined;
186
- timestampValue?: Date | undefined;
187
- bigintValue?: {
188
- negative?: boolean | undefined;
189
- data?: Uint8Array<ArrayBufferLike> | undefined;
190
- } | undefined;
191
- bigdecimalValue?: {
229
+ };
230
+ [key: number]: _sentio_protos.RichValue | {
231
+ readonly $typeName?: undefined;
192
232
  value?: {
193
- negative?: boolean | undefined;
194
- data?: Uint8Array<ArrayBufferLike> | undefined;
195
- } | undefined;
196
- exp?: number | undefined;
197
- } | undefined;
198
- listValue?: {
199
- values?: /*elided*/ any[] | undefined;
200
- } | undefined;
201
- structValue?: {
202
- fields?: {
203
- [x: string]: /*elided*/ any | undefined;
233
+ value: _sentio_protos.RichValue_NullValue;
234
+ case: "nullValue";
235
+ } | {
236
+ value: number;
237
+ case: "intValue";
238
+ } | {
239
+ value: bigint;
240
+ case: "int64Value";
241
+ } | {
242
+ value: number;
243
+ case: "floatValue";
244
+ } | {
245
+ value: Uint8Array;
246
+ case: "bytesValue";
247
+ } | {
248
+ value: boolean;
249
+ case: "boolValue";
250
+ } | {
251
+ value: string;
252
+ case: "stringValue";
253
+ } | {
254
+ case: undefined;
255
+ value?: undefined;
256
+ } | {
257
+ case: "timestampValue";
258
+ value: _sentio_protos.Timestamp | {
259
+ readonly $typeName?: undefined;
260
+ seconds?: bigint | undefined;
261
+ nanos?: number | undefined;
262
+ };
263
+ } | {
264
+ case: "bigintValue";
265
+ value: _sentio_protos.BigInteger | {
266
+ readonly $typeName?: undefined;
267
+ negative?: boolean | undefined;
268
+ data?: Uint8Array<ArrayBufferLike> | undefined;
269
+ };
270
+ } | {
271
+ case: "bigdecimalValue";
272
+ value: _sentio_protos.BigDecimalRichValue | {
273
+ readonly $typeName?: undefined;
274
+ value?: (_sentio_protos.BigInteger | {
275
+ readonly $typeName?: undefined;
276
+ negative?: boolean | undefined;
277
+ data?: Uint8Array<ArrayBufferLike> | undefined;
278
+ }) | undefined;
279
+ exp?: number | undefined;
280
+ };
281
+ } | {
282
+ case: "listValue";
283
+ value: _sentio_protos.RichValueList | {
284
+ readonly $typeName?: undefined;
285
+ values?: (_sentio_protos.RichValue | /*elided*/ any)[] | undefined;
286
+ };
287
+ } | {
288
+ case: "structValue";
289
+ value: _sentio_protos.RichStruct | /*elided*/ any;
290
+ } | {
291
+ case: "tokenValue";
292
+ value: _sentio_protos.TokenAmount | {
293
+ readonly $typeName?: undefined;
294
+ token?: (_sentio_protos.CoinID | {
295
+ readonly $typeName?: undefined;
296
+ id?: {
297
+ value: string;
298
+ case: "symbol";
299
+ } | {
300
+ case: undefined;
301
+ value?: undefined;
302
+ } | {
303
+ case: "address";
304
+ value: _sentio_protos.CoinID_AddressIdentifier | {
305
+ readonly $typeName?: undefined;
306
+ address?: string | undefined;
307
+ chain?: string | undefined;
308
+ };
309
+ } | undefined;
310
+ }) | undefined;
311
+ amount?: (_sentio_protos.BigDecimalRichValue | {
312
+ readonly $typeName?: undefined;
313
+ value?: (_sentio_protos.BigInteger | {
314
+ readonly $typeName?: undefined;
315
+ negative?: boolean | undefined;
316
+ data?: Uint8Array<ArrayBufferLike> | undefined;
317
+ }) | undefined;
318
+ exp?: number | undefined;
319
+ }) | undefined;
320
+ specifiedAt?: (_sentio_protos.Timestamp | {
321
+ readonly $typeName?: undefined;
322
+ seconds?: bigint | undefined;
323
+ nanos?: number | undefined;
324
+ }) | undefined;
325
+ };
204
326
  } | undefined;
205
- } | undefined;
206
- tokenValue?: {
207
- token?: {
208
- symbol?: string | undefined | undefined;
209
- address?: {
210
- address?: string | undefined;
211
- chain?: string | undefined;
327
+ };
328
+ } | undefined;
329
+ })[] | undefined;
330
+ };
331
+ } | {
332
+ case: "update";
333
+ value: _sentio_protos.DBRequest_DBUpdate | {
334
+ readonly $typeName?: undefined;
335
+ entity?: string[] | undefined;
336
+ id?: string[] | undefined;
337
+ entityData?: (_sentio_protos.EntityUpdateData | {
338
+ readonly $typeName?: undefined;
339
+ fields?: {
340
+ [key: string]: _sentio_protos.EntityUpdateData_FieldValue | {
341
+ readonly $typeName?: undefined;
342
+ value?: (_sentio_protos.RichValue | {
343
+ readonly $typeName?: undefined;
344
+ value?: {
345
+ value: _sentio_protos.RichValue_NullValue;
346
+ case: "nullValue";
347
+ } | {
348
+ value: number;
349
+ case: "intValue";
350
+ } | {
351
+ value: bigint;
352
+ case: "int64Value";
353
+ } | {
354
+ value: number;
355
+ case: "floatValue";
356
+ } | {
357
+ value: Uint8Array;
358
+ case: "bytesValue";
359
+ } | {
360
+ value: boolean;
361
+ case: "boolValue";
362
+ } | {
363
+ value: string;
364
+ case: "stringValue";
365
+ } | {
366
+ case: undefined;
367
+ value?: undefined;
368
+ } | {
369
+ case: "timestampValue";
370
+ value: _sentio_protos.Timestamp | {
371
+ readonly $typeName?: undefined;
372
+ seconds?: bigint | undefined;
373
+ nanos?: number | undefined;
374
+ };
375
+ } | {
376
+ case: "bigintValue";
377
+ value: _sentio_protos.BigInteger | {
378
+ readonly $typeName?: undefined;
379
+ negative?: boolean | undefined;
380
+ data?: Uint8Array<ArrayBufferLike> | undefined;
381
+ };
382
+ } | {
383
+ case: "bigdecimalValue";
384
+ value: _sentio_protos.BigDecimalRichValue | {
385
+ readonly $typeName?: undefined;
386
+ value?: (_sentio_protos.BigInteger | {
387
+ readonly $typeName?: undefined;
388
+ negative?: boolean | undefined;
389
+ data?: Uint8Array<ArrayBufferLike> | undefined;
390
+ }) | undefined;
391
+ exp?: number | undefined;
392
+ };
393
+ } | {
394
+ case: "listValue";
395
+ value: _sentio_protos.RichValueList | {
396
+ readonly $typeName?: undefined;
397
+ values?: (_sentio_protos.RichValue | /*elided*/ any)[] | undefined;
398
+ };
399
+ } | {
400
+ case: "structValue";
401
+ value: _sentio_protos.RichStruct | {
402
+ readonly $typeName?: undefined;
403
+ fields?: {
404
+ [key: string]: _sentio_protos.RichValue | /*elided*/ any;
405
+ [key: number]: _sentio_protos.RichValue | /*elided*/ any;
406
+ } | undefined;
407
+ };
408
+ } | {
409
+ case: "tokenValue";
410
+ value: _sentio_protos.TokenAmount | {
411
+ readonly $typeName?: undefined;
412
+ token?: (_sentio_protos.CoinID | {
413
+ readonly $typeName?: undefined;
414
+ id?: {
415
+ value: string;
416
+ case: "symbol";
417
+ } | {
418
+ case: undefined;
419
+ value?: undefined;
420
+ } | {
421
+ case: "address";
422
+ value: _sentio_protos.CoinID_AddressIdentifier | {
423
+ readonly $typeName?: undefined;
424
+ address?: string | undefined;
425
+ chain?: string | undefined;
426
+ };
427
+ } | undefined;
428
+ }) | undefined;
429
+ amount?: (_sentio_protos.BigDecimalRichValue | {
430
+ readonly $typeName?: undefined;
431
+ value?: (_sentio_protos.BigInteger | {
432
+ readonly $typeName?: undefined;
433
+ negative?: boolean | undefined;
434
+ data?: Uint8Array<ArrayBufferLike> | undefined;
435
+ }) | undefined;
436
+ exp?: number | undefined;
437
+ }) | undefined;
438
+ specifiedAt?: (_sentio_protos.Timestamp | {
439
+ readonly $typeName?: undefined;
440
+ seconds?: bigint | undefined;
441
+ nanos?: number | undefined;
442
+ }) | undefined;
443
+ };
212
444
  } | undefined;
213
- } | undefined;
214
- amount?: {
445
+ }) | undefined;
446
+ op?: _sentio_protos.EntityUpdateData_Operator | undefined;
447
+ };
448
+ [key: number]: _sentio_protos.EntityUpdateData_FieldValue | {
449
+ readonly $typeName?: undefined;
450
+ value?: (_sentio_protos.RichValue | {
451
+ readonly $typeName?: undefined;
215
452
  value?: {
453
+ value: _sentio_protos.RichValue_NullValue;
454
+ case: "nullValue";
455
+ } | {
456
+ value: number;
457
+ case: "intValue";
458
+ } | {
459
+ value: bigint;
460
+ case: "int64Value";
461
+ } | {
462
+ value: number;
463
+ case: "floatValue";
464
+ } | {
465
+ value: Uint8Array;
466
+ case: "bytesValue";
467
+ } | {
468
+ value: boolean;
469
+ case: "boolValue";
470
+ } | {
471
+ value: string;
472
+ case: "stringValue";
473
+ } | {
474
+ case: undefined;
475
+ value?: undefined;
476
+ } | {
477
+ case: "timestampValue";
478
+ value: _sentio_protos.Timestamp | {
479
+ readonly $typeName?: undefined;
480
+ seconds?: bigint | undefined;
481
+ nanos?: number | undefined;
482
+ };
483
+ } | {
484
+ case: "bigintValue";
485
+ value: _sentio_protos.BigInteger | {
486
+ readonly $typeName?: undefined;
487
+ negative?: boolean | undefined;
488
+ data?: Uint8Array<ArrayBufferLike> | undefined;
489
+ };
490
+ } | {
491
+ case: "bigdecimalValue";
492
+ value: _sentio_protos.BigDecimalRichValue | {
493
+ readonly $typeName?: undefined;
494
+ value?: (_sentio_protos.BigInteger | {
495
+ readonly $typeName?: undefined;
496
+ negative?: boolean | undefined;
497
+ data?: Uint8Array<ArrayBufferLike> | undefined;
498
+ }) | undefined;
499
+ exp?: number | undefined;
500
+ };
501
+ } | {
502
+ case: "listValue";
503
+ value: _sentio_protos.RichValueList | {
504
+ readonly $typeName?: undefined;
505
+ values?: (_sentio_protos.RichValue | /*elided*/ any)[] | undefined;
506
+ };
507
+ } | {
508
+ case: "structValue";
509
+ value: _sentio_protos.RichStruct | {
510
+ readonly $typeName?: undefined;
511
+ fields?: {
512
+ [key: string]: _sentio_protos.RichValue | /*elided*/ any;
513
+ [key: number]: _sentio_protos.RichValue | /*elided*/ any;
514
+ } | undefined;
515
+ };
516
+ } | {
517
+ case: "tokenValue";
518
+ value: _sentio_protos.TokenAmount | {
519
+ readonly $typeName?: undefined;
520
+ token?: (_sentio_protos.CoinID | {
521
+ readonly $typeName?: undefined;
522
+ id?: {
523
+ value: string;
524
+ case: "symbol";
525
+ } | {
526
+ case: undefined;
527
+ value?: undefined;
528
+ } | {
529
+ case: "address";
530
+ value: _sentio_protos.CoinID_AddressIdentifier | {
531
+ readonly $typeName?: undefined;
532
+ address?: string | undefined;
533
+ chain?: string | undefined;
534
+ };
535
+ } | undefined;
536
+ }) | undefined;
537
+ amount?: (_sentio_protos.BigDecimalRichValue | {
538
+ readonly $typeName?: undefined;
539
+ value?: (_sentio_protos.BigInteger | {
540
+ readonly $typeName?: undefined;
541
+ negative?: boolean | undefined;
542
+ data?: Uint8Array<ArrayBufferLike> | undefined;
543
+ }) | undefined;
544
+ exp?: number | undefined;
545
+ }) | undefined;
546
+ specifiedAt?: (_sentio_protos.Timestamp | {
547
+ readonly $typeName?: undefined;
548
+ seconds?: bigint | undefined;
549
+ nanos?: number | undefined;
550
+ }) | undefined;
551
+ };
552
+ } | undefined;
553
+ }) | undefined;
554
+ op?: _sentio_protos.EntityUpdateData_Operator | undefined;
555
+ };
556
+ } | undefined;
557
+ })[] | undefined;
558
+ };
559
+ } | {
560
+ case: "delete";
561
+ value: _sentio_protos.DBRequest_DBDelete | {
562
+ readonly $typeName?: undefined;
563
+ entity?: string[] | undefined;
564
+ id?: string[] | undefined;
565
+ };
566
+ } | {
567
+ case: "list";
568
+ value: _sentio_protos.DBRequest_DBList | {
569
+ readonly $typeName?: undefined;
570
+ entity?: string | undefined;
571
+ filters?: (_sentio_protos.DBRequest_DBFilter | {
572
+ readonly $typeName?: undefined;
573
+ field?: string | undefined;
574
+ op?: _sentio_protos.DBRequest_DBOperator | undefined;
575
+ value?: (_sentio_protos.RichValueList | {
576
+ readonly $typeName?: undefined;
577
+ values?: (_sentio_protos.RichValue | {
578
+ readonly $typeName?: undefined;
579
+ value?: {
580
+ value: _sentio_protos.RichValue_NullValue;
581
+ case: "nullValue";
582
+ } | {
583
+ value: number;
584
+ case: "intValue";
585
+ } | {
586
+ value: bigint;
587
+ case: "int64Value";
588
+ } | {
589
+ value: number;
590
+ case: "floatValue";
591
+ } | {
592
+ value: Uint8Array;
593
+ case: "bytesValue";
594
+ } | {
595
+ value: boolean;
596
+ case: "boolValue";
597
+ } | {
598
+ value: string;
599
+ case: "stringValue";
600
+ } | {
601
+ case: undefined;
602
+ value?: undefined;
603
+ } | {
604
+ case: "timestampValue";
605
+ value: _sentio_protos.Timestamp | {
606
+ readonly $typeName?: undefined;
607
+ seconds?: bigint | undefined;
608
+ nanos?: number | undefined;
609
+ };
610
+ } | {
611
+ case: "bigintValue";
612
+ value: _sentio_protos.BigInteger | {
613
+ readonly $typeName?: undefined;
216
614
  negative?: boolean | undefined;
217
615
  data?: Uint8Array<ArrayBufferLike> | undefined;
218
- } | undefined;
219
- exp?: number | undefined;
616
+ };
617
+ } | {
618
+ case: "bigdecimalValue";
619
+ value: _sentio_protos.BigDecimalRichValue | {
620
+ readonly $typeName?: undefined;
621
+ value?: (_sentio_protos.BigInteger | {
622
+ readonly $typeName?: undefined;
623
+ negative?: boolean | undefined;
624
+ data?: Uint8Array<ArrayBufferLike> | undefined;
625
+ }) | undefined;
626
+ exp?: number | undefined;
627
+ };
628
+ } | {
629
+ case: "listValue";
630
+ value: _sentio_protos.RichValueList | /*elided*/ any;
631
+ } | {
632
+ case: "structValue";
633
+ value: _sentio_protos.RichStruct | {
634
+ readonly $typeName?: undefined;
635
+ fields?: {
636
+ [key: string]: _sentio_protos.RichValue | /*elided*/ any;
637
+ [key: number]: _sentio_protos.RichValue | /*elided*/ any;
638
+ } | undefined;
639
+ };
640
+ } | {
641
+ case: "tokenValue";
642
+ value: _sentio_protos.TokenAmount | {
643
+ readonly $typeName?: undefined;
644
+ token?: (_sentio_protos.CoinID | {
645
+ readonly $typeName?: undefined;
646
+ id?: {
647
+ value: string;
648
+ case: "symbol";
649
+ } | {
650
+ case: undefined;
651
+ value?: undefined;
652
+ } | {
653
+ case: "address";
654
+ value: _sentio_protos.CoinID_AddressIdentifier | {
655
+ readonly $typeName?: undefined;
656
+ address?: string | undefined;
657
+ chain?: string | undefined;
658
+ };
659
+ } | undefined;
660
+ }) | undefined;
661
+ amount?: (_sentio_protos.BigDecimalRichValue | {
662
+ readonly $typeName?: undefined;
663
+ value?: (_sentio_protos.BigInteger | {
664
+ readonly $typeName?: undefined;
665
+ negative?: boolean | undefined;
666
+ data?: Uint8Array<ArrayBufferLike> | undefined;
667
+ }) | undefined;
668
+ exp?: number | undefined;
669
+ }) | undefined;
670
+ specifiedAt?: (_sentio_protos.Timestamp | {
671
+ readonly $typeName?: undefined;
672
+ seconds?: bigint | undefined;
673
+ nanos?: number | undefined;
674
+ }) | undefined;
675
+ };
220
676
  } | undefined;
221
- specifiedAt?: Date | undefined;
222
- } | undefined;
223
- } | undefined;
224
- op?: _sentio_protos.EntityUpdateData_Operator | undefined;
677
+ })[] | undefined;
678
+ }) | undefined;
679
+ })[] | undefined;
680
+ cursor?: string | undefined;
681
+ pageSize?: number | undefined | undefined;
682
+ };
683
+ } | undefined;
684
+ };
685
+ } | {
686
+ case: "result";
687
+ value: _sentio_protos.ProcessResult | {
688
+ readonly $typeName?: undefined;
689
+ gauges?: (_sentio_protos.GaugeResult | {
690
+ readonly $typeName?: undefined;
691
+ metadata?: (_sentio_protos.RecordMetaData | {
692
+ readonly $typeName?: undefined;
693
+ address?: string | undefined;
694
+ contractName?: string | undefined;
695
+ blockNumber?: bigint | undefined;
696
+ transactionHash?: string | undefined;
697
+ chainId?: string | undefined;
698
+ transactionIndex?: number | undefined;
699
+ logIndex?: number | undefined;
700
+ name?: string | undefined;
701
+ labels?: {
702
+ [key: string]: string;
225
703
  } | undefined;
226
- } | undefined;
227
- }[] | undefined;
228
- } | undefined;
229
- delete?: {
230
- entity?: string[] | undefined;
231
- id?: string[] | undefined;
232
- } | undefined;
233
- list?: {
234
- entity?: string | undefined;
235
- filters?: {
236
- field?: string | undefined;
237
- op?: _sentio_protos.DBRequest_DBOperator | undefined;
238
- value?: {
239
- values?: {
240
- nullValue?: _sentio_protos.RichValue_NullValue | undefined;
241
- intValue?: number | undefined | undefined;
242
- int64Value?: bigint | undefined | undefined;
243
- floatValue?: number | undefined | undefined;
244
- bytesValue?: Uint8Array<ArrayBufferLike> | undefined;
245
- boolValue?: boolean | undefined | undefined;
246
- stringValue?: string | undefined | undefined;
247
- timestampValue?: Date | undefined;
248
- bigintValue?: {
704
+ }) | undefined;
705
+ metricValue?: (_sentio_protos.MetricValue | {
706
+ readonly $typeName?: undefined;
707
+ value?: {
708
+ value: string;
709
+ case: "bigDecimal";
710
+ } | {
711
+ value: number;
712
+ case: "doubleValue";
713
+ } | {
714
+ case: undefined;
715
+ value?: undefined;
716
+ } | {
717
+ case: "bigInteger";
718
+ value: _sentio_protos.BigInteger | {
719
+ readonly $typeName?: undefined;
249
720
  negative?: boolean | undefined;
250
721
  data?: Uint8Array<ArrayBufferLike> | undefined;
251
- } | undefined;
252
- bigdecimalValue?: {
722
+ };
723
+ } | undefined;
724
+ }) | undefined;
725
+ runtimeInfo?: (_sentio_protos.RuntimeInfo | {
726
+ readonly $typeName?: undefined;
727
+ from?: HandlerType | undefined;
728
+ }) | undefined;
729
+ })[] | undefined;
730
+ counters?: (_sentio_protos.CounterResult | {
731
+ readonly $typeName?: undefined;
732
+ metadata?: (_sentio_protos.RecordMetaData | {
733
+ readonly $typeName?: undefined;
734
+ address?: string | undefined;
735
+ contractName?: string | undefined;
736
+ blockNumber?: bigint | undefined;
737
+ transactionHash?: string | undefined;
738
+ chainId?: string | undefined;
739
+ transactionIndex?: number | undefined;
740
+ logIndex?: number | undefined;
741
+ name?: string | undefined;
742
+ labels?: {
743
+ [key: string]: string;
744
+ } | undefined;
745
+ }) | undefined;
746
+ metricValue?: (_sentio_protos.MetricValue | {
747
+ readonly $typeName?: undefined;
748
+ value?: {
749
+ value: string;
750
+ case: "bigDecimal";
751
+ } | {
752
+ value: number;
753
+ case: "doubleValue";
754
+ } | {
755
+ case: undefined;
756
+ value?: undefined;
757
+ } | {
758
+ case: "bigInteger";
759
+ value: _sentio_protos.BigInteger | {
760
+ readonly $typeName?: undefined;
761
+ negative?: boolean | undefined;
762
+ data?: Uint8Array<ArrayBufferLike> | undefined;
763
+ };
764
+ } | undefined;
765
+ }) | undefined;
766
+ add?: boolean | undefined;
767
+ runtimeInfo?: (_sentio_protos.RuntimeInfo | {
768
+ readonly $typeName?: undefined;
769
+ from?: HandlerType | undefined;
770
+ }) | undefined;
771
+ })[] | undefined;
772
+ events?: (_sentio_protos.EventTrackingResult | {
773
+ readonly $typeName?: undefined;
774
+ metadata?: (_sentio_protos.RecordMetaData | {
775
+ readonly $typeName?: undefined;
776
+ address?: string | undefined;
777
+ contractName?: string | undefined;
778
+ blockNumber?: bigint | undefined;
779
+ transactionHash?: string | undefined;
780
+ chainId?: string | undefined;
781
+ transactionIndex?: number | undefined;
782
+ logIndex?: number | undefined;
783
+ name?: string | undefined;
784
+ labels?: {
785
+ [key: string]: string;
786
+ } | undefined;
787
+ }) | undefined;
788
+ distinctEntityId?: string | undefined;
789
+ attributes?: _bufbuild_protobuf.JsonObject | undefined;
790
+ severity?: _sentio_protos.LogLevel | undefined;
791
+ message?: string | undefined;
792
+ runtimeInfo?: (_sentio_protos.RuntimeInfo | {
793
+ readonly $typeName?: undefined;
794
+ from?: HandlerType | undefined;
795
+ }) | undefined;
796
+ attributes2?: (_sentio_protos.RichStruct | {
797
+ readonly $typeName?: undefined;
798
+ fields?: {
799
+ [key: string]: _sentio_protos.RichValue | {
800
+ readonly $typeName?: undefined;
253
801
  value?: {
254
- negative?: boolean | undefined;
255
- data?: Uint8Array<ArrayBufferLike> | undefined;
256
- } | undefined;
257
- exp?: number | undefined;
258
- } | undefined;
259
- listValue?: /*elided*/ any | undefined;
260
- structValue?: {
261
- fields?: {
262
- [x: string]: /*elided*/ any | undefined;
263
- } | undefined;
264
- } | undefined;
265
- tokenValue?: {
266
- token?: {
267
- symbol?: string | undefined | undefined;
268
- address?: {
269
- address?: string | undefined;
270
- chain?: string | undefined;
271
- } | undefined;
272
- } | undefined;
273
- amount?: {
274
- value?: {
802
+ value: _sentio_protos.RichValue_NullValue;
803
+ case: "nullValue";
804
+ } | {
805
+ value: number;
806
+ case: "intValue";
807
+ } | {
808
+ value: bigint;
809
+ case: "int64Value";
810
+ } | {
811
+ value: number;
812
+ case: "floatValue";
813
+ } | {
814
+ value: Uint8Array;
815
+ case: "bytesValue";
816
+ } | {
817
+ value: boolean;
818
+ case: "boolValue";
819
+ } | {
820
+ value: string;
821
+ case: "stringValue";
822
+ } | {
823
+ case: undefined;
824
+ value?: undefined;
825
+ } | {
826
+ case: "timestampValue";
827
+ value: _sentio_protos.Timestamp | {
828
+ readonly $typeName?: undefined;
829
+ seconds?: bigint | undefined;
830
+ nanos?: number | undefined;
831
+ };
832
+ } | {
833
+ case: "bigintValue";
834
+ value: _sentio_protos.BigInteger | {
835
+ readonly $typeName?: undefined;
275
836
  negative?: boolean | undefined;
276
837
  data?: Uint8Array<ArrayBufferLike> | undefined;
277
- } | undefined;
278
- exp?: number | undefined;
838
+ };
839
+ } | {
840
+ case: "bigdecimalValue";
841
+ value: _sentio_protos.BigDecimalRichValue | {
842
+ readonly $typeName?: undefined;
843
+ value?: (_sentio_protos.BigInteger | {
844
+ readonly $typeName?: undefined;
845
+ negative?: boolean | undefined;
846
+ data?: Uint8Array<ArrayBufferLike> | undefined;
847
+ }) | undefined;
848
+ exp?: number | undefined;
849
+ };
850
+ } | {
851
+ case: "listValue";
852
+ value: _sentio_protos.RichValueList | {
853
+ readonly $typeName?: undefined;
854
+ values?: (_sentio_protos.RichValue | /*elided*/ any)[] | undefined;
855
+ };
856
+ } | {
857
+ case: "structValue";
858
+ value: _sentio_protos.RichStruct | /*elided*/ any;
859
+ } | {
860
+ case: "tokenValue";
861
+ value: _sentio_protos.TokenAmount | {
862
+ readonly $typeName?: undefined;
863
+ token?: (_sentio_protos.CoinID | {
864
+ readonly $typeName?: undefined;
865
+ id?: {
866
+ value: string;
867
+ case: "symbol";
868
+ } | {
869
+ case: undefined;
870
+ value?: undefined;
871
+ } | {
872
+ case: "address";
873
+ value: _sentio_protos.CoinID_AddressIdentifier | {
874
+ readonly $typeName?: undefined;
875
+ address?: string | undefined;
876
+ chain?: string | undefined;
877
+ };
878
+ } | undefined;
879
+ }) | undefined;
880
+ amount?: (_sentio_protos.BigDecimalRichValue | {
881
+ readonly $typeName?: undefined;
882
+ value?: (_sentio_protos.BigInteger | {
883
+ readonly $typeName?: undefined;
884
+ negative?: boolean | undefined;
885
+ data?: Uint8Array<ArrayBufferLike> | undefined;
886
+ }) | undefined;
887
+ exp?: number | undefined;
888
+ }) | undefined;
889
+ specifiedAt?: (_sentio_protos.Timestamp | {
890
+ readonly $typeName?: undefined;
891
+ seconds?: bigint | undefined;
892
+ nanos?: number | undefined;
893
+ }) | undefined;
894
+ };
279
895
  } | undefined;
280
- specifiedAt?: Date | undefined;
281
- } | undefined;
282
- }[] | undefined;
283
- } | undefined;
284
- }[] | undefined;
285
- cursor?: string | undefined;
286
- pageSize?: number | undefined | undefined;
287
- } | undefined;
288
- } | undefined;
289
- result?: {
290
- gauges?: {
291
- metadata?: {
292
- address?: string | undefined;
293
- contractName?: string | undefined;
294
- blockNumber?: bigint | undefined;
295
- transactionHash?: string | undefined;
296
- chainId?: string | undefined;
297
- transactionIndex?: number | undefined;
298
- logIndex?: number | undefined;
299
- name?: string | undefined;
300
- labels?: {
301
- [x: string]: string | undefined;
302
- } | undefined;
303
- } | undefined;
304
- metricValue?: {
305
- bigDecimal?: string | undefined | undefined;
306
- doubleValue?: number | undefined | undefined;
307
- bigInteger?: {
308
- negative?: boolean | undefined;
309
- data?: Uint8Array<ArrayBufferLike> | undefined;
310
- } | undefined;
311
- } | undefined;
312
- runtimeInfo?: {
313
- from?: HandlerType | undefined;
314
- } | undefined;
315
- }[] | undefined;
316
- counters?: {
317
- metadata?: {
318
- address?: string | undefined;
319
- contractName?: string | undefined;
320
- blockNumber?: bigint | undefined;
321
- transactionHash?: string | undefined;
322
- chainId?: string | undefined;
323
- transactionIndex?: number | undefined;
324
- logIndex?: number | undefined;
325
- name?: string | undefined;
326
- labels?: {
327
- [x: string]: string | undefined;
328
- } | undefined;
329
- } | undefined;
330
- metricValue?: {
331
- bigDecimal?: string | undefined | undefined;
332
- doubleValue?: number | undefined | undefined;
333
- bigInteger?: {
334
- negative?: boolean | undefined;
335
- data?: Uint8Array<ArrayBufferLike> | undefined;
336
- } | undefined;
337
- } | undefined;
338
- add?: boolean | undefined;
339
- runtimeInfo?: {
340
- from?: HandlerType | undefined;
341
- } | undefined;
342
- }[] | undefined;
343
- events?: {
344
- metadata?: {
345
- address?: string | undefined;
346
- contractName?: string | undefined;
347
- blockNumber?: bigint | undefined;
348
- transactionHash?: string | undefined;
349
- chainId?: string | undefined;
350
- transactionIndex?: number | undefined;
351
- logIndex?: number | undefined;
352
- name?: string | undefined;
353
- labels?: {
354
- [x: string]: string | undefined;
355
- } | undefined;
356
- } | undefined;
357
- distinctEntityId?: string | undefined;
358
- attributes?: {
359
- [x: string]: any;
360
- } | undefined;
361
- severity?: _sentio_protos.LogLevel | undefined;
362
- message?: string | undefined;
363
- runtimeInfo?: {
364
- from?: HandlerType | undefined;
365
- } | undefined;
366
- attributes2?: {
367
- fields?: {
368
- [x: string]: {
369
- nullValue?: _sentio_protos.RichValue_NullValue | undefined;
370
- intValue?: number | undefined | undefined;
371
- int64Value?: bigint | undefined | undefined;
372
- floatValue?: number | undefined | undefined;
373
- bytesValue?: Uint8Array<ArrayBufferLike> | undefined;
374
- boolValue?: boolean | undefined | undefined;
375
- stringValue?: string | undefined | undefined;
376
- timestampValue?: Date | undefined;
377
- bigintValue?: {
378
- negative?: boolean | undefined;
379
- data?: Uint8Array<ArrayBufferLike> | undefined;
380
- } | undefined;
381
- bigdecimalValue?: {
896
+ };
897
+ [key: number]: _sentio_protos.RichValue | {
898
+ readonly $typeName?: undefined;
382
899
  value?: {
383
- negative?: boolean | undefined;
384
- data?: Uint8Array<ArrayBufferLike> | undefined;
385
- } | undefined;
386
- exp?: number | undefined;
387
- } | undefined;
388
- listValue?: {
389
- values?: /*elided*/ any[] | undefined;
390
- } | undefined;
391
- structValue?: /*elided*/ any | undefined;
392
- tokenValue?: {
393
- token?: {
394
- symbol?: string | undefined | undefined;
395
- address?: {
396
- address?: string | undefined;
397
- chain?: string | undefined;
398
- } | undefined;
399
- } | undefined;
400
- amount?: {
401
- value?: {
900
+ value: _sentio_protos.RichValue_NullValue;
901
+ case: "nullValue";
902
+ } | {
903
+ value: number;
904
+ case: "intValue";
905
+ } | {
906
+ value: bigint;
907
+ case: "int64Value";
908
+ } | {
909
+ value: number;
910
+ case: "floatValue";
911
+ } | {
912
+ value: Uint8Array;
913
+ case: "bytesValue";
914
+ } | {
915
+ value: boolean;
916
+ case: "boolValue";
917
+ } | {
918
+ value: string;
919
+ case: "stringValue";
920
+ } | {
921
+ case: undefined;
922
+ value?: undefined;
923
+ } | {
924
+ case: "timestampValue";
925
+ value: _sentio_protos.Timestamp | {
926
+ readonly $typeName?: undefined;
927
+ seconds?: bigint | undefined;
928
+ nanos?: number | undefined;
929
+ };
930
+ } | {
931
+ case: "bigintValue";
932
+ value: _sentio_protos.BigInteger | {
933
+ readonly $typeName?: undefined;
402
934
  negative?: boolean | undefined;
403
935
  data?: Uint8Array<ArrayBufferLike> | undefined;
404
- } | undefined;
405
- exp?: number | undefined;
936
+ };
937
+ } | {
938
+ case: "bigdecimalValue";
939
+ value: _sentio_protos.BigDecimalRichValue | {
940
+ readonly $typeName?: undefined;
941
+ value?: (_sentio_protos.BigInteger | {
942
+ readonly $typeName?: undefined;
943
+ negative?: boolean | undefined;
944
+ data?: Uint8Array<ArrayBufferLike> | undefined;
945
+ }) | undefined;
946
+ exp?: number | undefined;
947
+ };
948
+ } | {
949
+ case: "listValue";
950
+ value: _sentio_protos.RichValueList | {
951
+ readonly $typeName?: undefined;
952
+ values?: (_sentio_protos.RichValue | /*elided*/ any)[] | undefined;
953
+ };
954
+ } | {
955
+ case: "structValue";
956
+ value: _sentio_protos.RichStruct | /*elided*/ any;
957
+ } | {
958
+ case: "tokenValue";
959
+ value: _sentio_protos.TokenAmount | {
960
+ readonly $typeName?: undefined;
961
+ token?: (_sentio_protos.CoinID | {
962
+ readonly $typeName?: undefined;
963
+ id?: {
964
+ value: string;
965
+ case: "symbol";
966
+ } | {
967
+ case: undefined;
968
+ value?: undefined;
969
+ } | {
970
+ case: "address";
971
+ value: _sentio_protos.CoinID_AddressIdentifier | {
972
+ readonly $typeName?: undefined;
973
+ address?: string | undefined;
974
+ chain?: string | undefined;
975
+ };
976
+ } | undefined;
977
+ }) | undefined;
978
+ amount?: (_sentio_protos.BigDecimalRichValue | {
979
+ readonly $typeName?: undefined;
980
+ value?: (_sentio_protos.BigInteger | {
981
+ readonly $typeName?: undefined;
982
+ negative?: boolean | undefined;
983
+ data?: Uint8Array<ArrayBufferLike> | undefined;
984
+ }) | undefined;
985
+ exp?: number | undefined;
986
+ }) | undefined;
987
+ specifiedAt?: (_sentio_protos.Timestamp | {
988
+ readonly $typeName?: undefined;
989
+ seconds?: bigint | undefined;
990
+ nanos?: number | undefined;
991
+ }) | undefined;
992
+ };
406
993
  } | undefined;
407
- specifiedAt?: Date | undefined;
408
- } | undefined;
994
+ };
409
995
  } | undefined;
410
- } | undefined;
411
- } | undefined;
412
- noMetric?: boolean | undefined;
413
- }[] | undefined;
414
- exports?: {
415
- metadata?: {
416
- address?: string | undefined;
417
- contractName?: string | undefined;
418
- blockNumber?: bigint | undefined;
419
- transactionHash?: string | undefined;
420
- chainId?: string | undefined;
421
- transactionIndex?: number | undefined;
422
- logIndex?: number | undefined;
423
- name?: string | undefined;
424
- labels?: {
425
- [x: string]: string | undefined;
426
- } | undefined;
427
- } | undefined;
428
- payload?: string | undefined;
429
- runtimeInfo?: {
430
- from?: HandlerType | undefined;
431
- } | undefined;
432
- }[] | undefined;
433
- states?: {
434
- configUpdated?: boolean | undefined;
435
- error?: string | undefined | undefined;
436
- } | undefined;
437
- timeseriesResult?: {
438
- metadata?: {
439
- address?: string | undefined;
440
- contractName?: string | undefined;
441
- blockNumber?: bigint | undefined;
442
- transactionHash?: string | undefined;
443
- chainId?: string | undefined;
444
- transactionIndex?: number | undefined;
445
- logIndex?: number | undefined;
446
- name?: string | undefined;
447
- labels?: {
448
- [x: string]: string | undefined;
449
- } | undefined;
450
- } | undefined;
451
- type?: _sentio_protos.TimeseriesResult_TimeseriesType | undefined;
452
- data?: {
453
- fields?: {
454
- [x: string]: {
455
- nullValue?: _sentio_protos.RichValue_NullValue | undefined;
456
- intValue?: number | undefined | undefined;
457
- int64Value?: bigint | undefined | undefined;
458
- floatValue?: number | undefined | undefined;
459
- bytesValue?: Uint8Array<ArrayBufferLike> | undefined;
460
- boolValue?: boolean | undefined | undefined;
461
- stringValue?: string | undefined | undefined;
462
- timestampValue?: Date | undefined;
463
- bigintValue?: {
464
- negative?: boolean | undefined;
465
- data?: Uint8Array<ArrayBufferLike> | undefined;
466
- } | undefined;
467
- bigdecimalValue?: {
996
+ }) | undefined;
997
+ noMetric?: boolean | undefined;
998
+ })[] | undefined;
999
+ exports?: (_sentio_protos.ExportResult | {
1000
+ readonly $typeName?: undefined;
1001
+ metadata?: (_sentio_protos.RecordMetaData | {
1002
+ readonly $typeName?: undefined;
1003
+ address?: string | undefined;
1004
+ contractName?: string | undefined;
1005
+ blockNumber?: bigint | undefined;
1006
+ transactionHash?: string | undefined;
1007
+ chainId?: string | undefined;
1008
+ transactionIndex?: number | undefined;
1009
+ logIndex?: number | undefined;
1010
+ name?: string | undefined;
1011
+ labels?: {
1012
+ [key: string]: string;
1013
+ } | undefined;
1014
+ }) | undefined;
1015
+ payload?: string | undefined;
1016
+ runtimeInfo?: (_sentio_protos.RuntimeInfo | {
1017
+ readonly $typeName?: undefined;
1018
+ from?: HandlerType | undefined;
1019
+ }) | undefined;
1020
+ })[] | undefined;
1021
+ states?: (_sentio_protos.StateResult | {
1022
+ readonly $typeName?: undefined;
1023
+ configUpdated?: boolean | undefined;
1024
+ error?: string | undefined | undefined;
1025
+ }) | undefined;
1026
+ timeseriesResult?: (_sentio_protos.TimeseriesResult | {
1027
+ readonly $typeName?: undefined;
1028
+ metadata?: (_sentio_protos.RecordMetaData | {
1029
+ readonly $typeName?: undefined;
1030
+ address?: string | undefined;
1031
+ contractName?: string | undefined;
1032
+ blockNumber?: bigint | undefined;
1033
+ transactionHash?: string | undefined;
1034
+ chainId?: string | undefined;
1035
+ transactionIndex?: number | undefined;
1036
+ logIndex?: number | undefined;
1037
+ name?: string | undefined;
1038
+ labels?: {
1039
+ [key: string]: string;
1040
+ } | undefined;
1041
+ }) | undefined;
1042
+ type?: _sentio_protos.TimeseriesResult_TimeseriesType | undefined;
1043
+ data?: (_sentio_protos.RichStruct | {
1044
+ readonly $typeName?: undefined;
1045
+ fields?: {
1046
+ [key: string]: _sentio_protos.RichValue | {
1047
+ readonly $typeName?: undefined;
468
1048
  value?: {
469
- negative?: boolean | undefined;
470
- data?: Uint8Array<ArrayBufferLike> | undefined;
471
- } | undefined;
472
- exp?: number | undefined;
473
- } | undefined;
474
- listValue?: {
475
- values?: /*elided*/ any[] | undefined;
476
- } | undefined;
477
- structValue?: /*elided*/ any | undefined;
478
- tokenValue?: {
479
- token?: {
480
- symbol?: string | undefined | undefined;
481
- address?: {
482
- address?: string | undefined;
483
- chain?: string | undefined;
484
- } | undefined;
485
- } | undefined;
486
- amount?: {
487
- value?: {
1049
+ value: _sentio_protos.RichValue_NullValue;
1050
+ case: "nullValue";
1051
+ } | {
1052
+ value: number;
1053
+ case: "intValue";
1054
+ } | {
1055
+ value: bigint;
1056
+ case: "int64Value";
1057
+ } | {
1058
+ value: number;
1059
+ case: "floatValue";
1060
+ } | {
1061
+ value: Uint8Array;
1062
+ case: "bytesValue";
1063
+ } | {
1064
+ value: boolean;
1065
+ case: "boolValue";
1066
+ } | {
1067
+ value: string;
1068
+ case: "stringValue";
1069
+ } | {
1070
+ case: undefined;
1071
+ value?: undefined;
1072
+ } | {
1073
+ case: "timestampValue";
1074
+ value: _sentio_protos.Timestamp | {
1075
+ readonly $typeName?: undefined;
1076
+ seconds?: bigint | undefined;
1077
+ nanos?: number | undefined;
1078
+ };
1079
+ } | {
1080
+ case: "bigintValue";
1081
+ value: _sentio_protos.BigInteger | {
1082
+ readonly $typeName?: undefined;
488
1083
  negative?: boolean | undefined;
489
1084
  data?: Uint8Array<ArrayBufferLike> | undefined;
490
- } | undefined;
491
- exp?: number | undefined;
1085
+ };
1086
+ } | {
1087
+ case: "bigdecimalValue";
1088
+ value: _sentio_protos.BigDecimalRichValue | {
1089
+ readonly $typeName?: undefined;
1090
+ value?: (_sentio_protos.BigInteger | {
1091
+ readonly $typeName?: undefined;
1092
+ negative?: boolean | undefined;
1093
+ data?: Uint8Array<ArrayBufferLike> | undefined;
1094
+ }) | undefined;
1095
+ exp?: number | undefined;
1096
+ };
1097
+ } | {
1098
+ case: "listValue";
1099
+ value: _sentio_protos.RichValueList | {
1100
+ readonly $typeName?: undefined;
1101
+ values?: (_sentio_protos.RichValue | /*elided*/ any)[] | undefined;
1102
+ };
1103
+ } | {
1104
+ case: "structValue";
1105
+ value: _sentio_protos.RichStruct | /*elided*/ any;
1106
+ } | {
1107
+ case: "tokenValue";
1108
+ value: _sentio_protos.TokenAmount | {
1109
+ readonly $typeName?: undefined;
1110
+ token?: (_sentio_protos.CoinID | {
1111
+ readonly $typeName?: undefined;
1112
+ id?: {
1113
+ value: string;
1114
+ case: "symbol";
1115
+ } | {
1116
+ case: undefined;
1117
+ value?: undefined;
1118
+ } | {
1119
+ case: "address";
1120
+ value: _sentio_protos.CoinID_AddressIdentifier | {
1121
+ readonly $typeName?: undefined;
1122
+ address?: string | undefined;
1123
+ chain?: string | undefined;
1124
+ };
1125
+ } | undefined;
1126
+ }) | undefined;
1127
+ amount?: (_sentio_protos.BigDecimalRichValue | {
1128
+ readonly $typeName?: undefined;
1129
+ value?: (_sentio_protos.BigInteger | {
1130
+ readonly $typeName?: undefined;
1131
+ negative?: boolean | undefined;
1132
+ data?: Uint8Array<ArrayBufferLike> | undefined;
1133
+ }) | undefined;
1134
+ exp?: number | undefined;
1135
+ }) | undefined;
1136
+ specifiedAt?: (_sentio_protos.Timestamp | {
1137
+ readonly $typeName?: undefined;
1138
+ seconds?: bigint | undefined;
1139
+ nanos?: number | undefined;
1140
+ }) | undefined;
1141
+ };
492
1142
  } | undefined;
493
- specifiedAt?: Date | undefined;
494
- } | undefined;
495
- } | undefined;
496
- } | undefined;
497
- } | undefined;
498
- runtimeInfo?: {
499
- from?: HandlerType | undefined;
500
- } | undefined;
501
- }[] | undefined;
502
- } | undefined;
503
- partitions?: {
504
- partitions?: {
505
- [x: number]: {
506
- userValue?: string | undefined | undefined;
507
- sysValue?: _sentio_protos.ProcessStreamResponse_Partitions_Partition_SysValue | undefined;
508
- } | undefined;
509
- } | undefined;
510
- } | undefined;
511
- }, void, any>;
512
- handlePreprocessRequests(requests: AsyncIterable<PreprocessStreamRequest>, subject: Subject<DeepPartial<PreprocessStreamResponse>>): Promise<void>;
513
- preprocessBindingsStream(requests: AsyncIterable<PreprocessStreamRequest>, context: CallContext): AsyncGenerator<{
514
- processId?: number | undefined;
515
- dbRequest?: {
516
- opId?: bigint | undefined;
517
- get?: {
518
- entity?: string | undefined;
519
- id?: string | undefined;
520
- } | undefined;
521
- upsert?: {
522
- entity?: string[] | undefined;
523
- id?: string[] | undefined;
524
- data?: {
525
- [x: string]: any;
526
- }[] | undefined;
527
- entityData?: {
528
- fields?: {
529
- [x: string]: {
530
- nullValue?: _sentio_protos.RichValue_NullValue | undefined;
531
- intValue?: number | undefined | undefined;
532
- int64Value?: bigint | undefined | undefined;
533
- floatValue?: number | undefined | undefined;
534
- bytesValue?: Uint8Array<ArrayBufferLike> | undefined;
535
- boolValue?: boolean | undefined | undefined;
536
- stringValue?: string | undefined | undefined;
537
- timestampValue?: Date | undefined;
538
- bigintValue?: {
539
- negative?: boolean | undefined;
540
- data?: Uint8Array<ArrayBufferLike> | undefined;
541
- } | undefined;
542
- bigdecimalValue?: {
1143
+ };
1144
+ [key: number]: _sentio_protos.RichValue | {
1145
+ readonly $typeName?: undefined;
543
1146
  value?: {
544
- negative?: boolean | undefined;
545
- data?: Uint8Array<ArrayBufferLike> | undefined;
546
- } | undefined;
547
- exp?: number | undefined;
548
- } | undefined;
549
- listValue?: {
550
- values?: /*elided*/ any[] | undefined;
551
- } | undefined;
552
- structValue?: /*elided*/ any | undefined;
553
- tokenValue?: {
554
- token?: {
555
- symbol?: string | undefined | undefined;
556
- address?: {
557
- address?: string | undefined;
558
- chain?: string | undefined;
559
- } | undefined;
560
- } | undefined;
561
- amount?: {
562
- value?: {
1147
+ value: _sentio_protos.RichValue_NullValue;
1148
+ case: "nullValue";
1149
+ } | {
1150
+ value: number;
1151
+ case: "intValue";
1152
+ } | {
1153
+ value: bigint;
1154
+ case: "int64Value";
1155
+ } | {
1156
+ value: number;
1157
+ case: "floatValue";
1158
+ } | {
1159
+ value: Uint8Array;
1160
+ case: "bytesValue";
1161
+ } | {
1162
+ value: boolean;
1163
+ case: "boolValue";
1164
+ } | {
1165
+ value: string;
1166
+ case: "stringValue";
1167
+ } | {
1168
+ case: undefined;
1169
+ value?: undefined;
1170
+ } | {
1171
+ case: "timestampValue";
1172
+ value: _sentio_protos.Timestamp | {
1173
+ readonly $typeName?: undefined;
1174
+ seconds?: bigint | undefined;
1175
+ nanos?: number | undefined;
1176
+ };
1177
+ } | {
1178
+ case: "bigintValue";
1179
+ value: _sentio_protos.BigInteger | {
1180
+ readonly $typeName?: undefined;
563
1181
  negative?: boolean | undefined;
564
1182
  data?: Uint8Array<ArrayBufferLike> | undefined;
565
- } | undefined;
566
- exp?: number | undefined;
1183
+ };
1184
+ } | {
1185
+ case: "bigdecimalValue";
1186
+ value: _sentio_protos.BigDecimalRichValue | {
1187
+ readonly $typeName?: undefined;
1188
+ value?: (_sentio_protos.BigInteger | {
1189
+ readonly $typeName?: undefined;
1190
+ negative?: boolean | undefined;
1191
+ data?: Uint8Array<ArrayBufferLike> | undefined;
1192
+ }) | undefined;
1193
+ exp?: number | undefined;
1194
+ };
1195
+ } | {
1196
+ case: "listValue";
1197
+ value: _sentio_protos.RichValueList | {
1198
+ readonly $typeName?: undefined;
1199
+ values?: (_sentio_protos.RichValue | /*elided*/ any)[] | undefined;
1200
+ };
1201
+ } | {
1202
+ case: "structValue";
1203
+ value: _sentio_protos.RichStruct | /*elided*/ any;
1204
+ } | {
1205
+ case: "tokenValue";
1206
+ value: _sentio_protos.TokenAmount | {
1207
+ readonly $typeName?: undefined;
1208
+ token?: (_sentio_protos.CoinID | {
1209
+ readonly $typeName?: undefined;
1210
+ id?: {
1211
+ value: string;
1212
+ case: "symbol";
1213
+ } | {
1214
+ case: undefined;
1215
+ value?: undefined;
1216
+ } | {
1217
+ case: "address";
1218
+ value: _sentio_protos.CoinID_AddressIdentifier | {
1219
+ readonly $typeName?: undefined;
1220
+ address?: string | undefined;
1221
+ chain?: string | undefined;
1222
+ };
1223
+ } | undefined;
1224
+ }) | undefined;
1225
+ amount?: (_sentio_protos.BigDecimalRichValue | {
1226
+ readonly $typeName?: undefined;
1227
+ value?: (_sentio_protos.BigInteger | {
1228
+ readonly $typeName?: undefined;
1229
+ negative?: boolean | undefined;
1230
+ data?: Uint8Array<ArrayBufferLike> | undefined;
1231
+ }) | undefined;
1232
+ exp?: number | undefined;
1233
+ }) | undefined;
1234
+ specifiedAt?: (_sentio_protos.Timestamp | {
1235
+ readonly $typeName?: undefined;
1236
+ seconds?: bigint | undefined;
1237
+ nanos?: number | undefined;
1238
+ }) | undefined;
1239
+ };
567
1240
  } | undefined;
568
- specifiedAt?: Date | undefined;
569
- } | undefined;
1241
+ };
570
1242
  } | undefined;
571
- } | undefined;
572
- }[] | undefined;
573
- } | undefined;
574
- update?: {
575
- entity?: string[] | undefined;
576
- id?: string[] | undefined;
577
- entityData?: {
578
- fields?: {
579
- [x: string]: {
580
- value?: {
581
- nullValue?: _sentio_protos.RichValue_NullValue | undefined;
582
- intValue?: number | undefined | undefined;
583
- int64Value?: bigint | undefined | undefined;
584
- floatValue?: number | undefined | undefined;
585
- bytesValue?: Uint8Array<ArrayBufferLike> | undefined;
586
- boolValue?: boolean | undefined | undefined;
587
- stringValue?: string | undefined | undefined;
588
- timestampValue?: Date | undefined;
589
- bigintValue?: {
590
- negative?: boolean | undefined;
591
- data?: Uint8Array<ArrayBufferLike> | undefined;
592
- } | undefined;
593
- bigdecimalValue?: {
594
- value?: {
1243
+ }) | undefined;
1244
+ runtimeInfo?: (_sentio_protos.RuntimeInfo | {
1245
+ readonly $typeName?: undefined;
1246
+ from?: HandlerType | undefined;
1247
+ }) | undefined;
1248
+ })[] | undefined;
1249
+ };
1250
+ } | {
1251
+ case: "partitions";
1252
+ value: _sentio_protos.ProcessStreamResponse_Partitions | {
1253
+ readonly $typeName?: undefined;
1254
+ partitions?: {
1255
+ [key: string]: _sentio_protos.ProcessStreamResponse_Partitions_Partition | {
1256
+ readonly $typeName?: undefined;
1257
+ value?: {
1258
+ value: string;
1259
+ case: "userValue";
1260
+ } | {
1261
+ value: _sentio_protos.ProcessStreamResponse_Partitions_Partition_SysValue;
1262
+ case: "sysValue";
1263
+ } | {
1264
+ case: undefined;
1265
+ value?: undefined;
1266
+ } | undefined;
1267
+ };
1268
+ [key: number]: _sentio_protos.ProcessStreamResponse_Partitions_Partition | {
1269
+ readonly $typeName?: undefined;
1270
+ value?: {
1271
+ value: string;
1272
+ case: "userValue";
1273
+ } | {
1274
+ value: _sentio_protos.ProcessStreamResponse_Partitions_Partition_SysValue;
1275
+ case: "sysValue";
1276
+ } | {
1277
+ case: undefined;
1278
+ value?: undefined;
1279
+ } | undefined;
1280
+ };
1281
+ } | undefined;
1282
+ };
1283
+ } | {
1284
+ case: "tsRequest";
1285
+ value: _sentio_protos.TSRequest | {
1286
+ readonly $typeName?: undefined;
1287
+ data?: (_sentio_protos.TimeseriesResult | {
1288
+ readonly $typeName?: undefined;
1289
+ metadata?: (_sentio_protos.RecordMetaData | {
1290
+ readonly $typeName?: undefined;
1291
+ address?: string | undefined;
1292
+ contractName?: string | undefined;
1293
+ blockNumber?: bigint | undefined;
1294
+ transactionHash?: string | undefined;
1295
+ chainId?: string | undefined;
1296
+ transactionIndex?: number | undefined;
1297
+ logIndex?: number | undefined;
1298
+ name?: string | undefined;
1299
+ labels?: {
1300
+ [key: string]: string;
1301
+ } | undefined;
1302
+ }) | undefined;
1303
+ type?: _sentio_protos.TimeseriesResult_TimeseriesType | undefined;
1304
+ data?: (_sentio_protos.RichStruct | {
1305
+ readonly $typeName?: undefined;
1306
+ fields?: {
1307
+ [key: string]: _sentio_protos.RichValue | {
1308
+ readonly $typeName?: undefined;
1309
+ value?: {
1310
+ value: _sentio_protos.RichValue_NullValue;
1311
+ case: "nullValue";
1312
+ } | {
1313
+ value: number;
1314
+ case: "intValue";
1315
+ } | {
1316
+ value: bigint;
1317
+ case: "int64Value";
1318
+ } | {
1319
+ value: number;
1320
+ case: "floatValue";
1321
+ } | {
1322
+ value: Uint8Array;
1323
+ case: "bytesValue";
1324
+ } | {
1325
+ value: boolean;
1326
+ case: "boolValue";
1327
+ } | {
1328
+ value: string;
1329
+ case: "stringValue";
1330
+ } | {
1331
+ case: undefined;
1332
+ value?: undefined;
1333
+ } | {
1334
+ case: "timestampValue";
1335
+ value: _sentio_protos.Timestamp | {
1336
+ readonly $typeName?: undefined;
1337
+ seconds?: bigint | undefined;
1338
+ nanos?: number | undefined;
1339
+ };
1340
+ } | {
1341
+ case: "bigintValue";
1342
+ value: _sentio_protos.BigInteger | {
1343
+ readonly $typeName?: undefined;
595
1344
  negative?: boolean | undefined;
596
1345
  data?: Uint8Array<ArrayBufferLike> | undefined;
597
- } | undefined;
598
- exp?: number | undefined;
599
- } | undefined;
600
- listValue?: {
601
- values?: /*elided*/ any[] | undefined;
602
- } | undefined;
603
- structValue?: {
604
- fields?: {
605
- [x: string]: /*elided*/ any | undefined;
606
- } | undefined;
607
- } | undefined;
608
- tokenValue?: {
609
- token?: {
610
- symbol?: string | undefined | undefined;
611
- address?: {
612
- address?: string | undefined;
613
- chain?: string | undefined;
614
- } | undefined;
615
- } | undefined;
616
- amount?: {
617
- value?: {
1346
+ };
1347
+ } | {
1348
+ case: "bigdecimalValue";
1349
+ value: _sentio_protos.BigDecimalRichValue | {
1350
+ readonly $typeName?: undefined;
1351
+ value?: (_sentio_protos.BigInteger | {
1352
+ readonly $typeName?: undefined;
618
1353
  negative?: boolean | undefined;
619
1354
  data?: Uint8Array<ArrayBufferLike> | undefined;
620
- } | undefined;
1355
+ }) | undefined;
621
1356
  exp?: number | undefined;
622
- } | undefined;
623
- specifiedAt?: Date | undefined;
1357
+ };
1358
+ } | {
1359
+ case: "listValue";
1360
+ value: _sentio_protos.RichValueList | {
1361
+ readonly $typeName?: undefined;
1362
+ values?: (_sentio_protos.RichValue | /*elided*/ any)[] | undefined;
1363
+ };
1364
+ } | {
1365
+ case: "structValue";
1366
+ value: _sentio_protos.RichStruct | /*elided*/ any;
1367
+ } | {
1368
+ case: "tokenValue";
1369
+ value: _sentio_protos.TokenAmount | {
1370
+ readonly $typeName?: undefined;
1371
+ token?: (_sentio_protos.CoinID | {
1372
+ readonly $typeName?: undefined;
1373
+ id?: {
1374
+ value: string;
1375
+ case: "symbol";
1376
+ } | {
1377
+ case: undefined;
1378
+ value?: undefined;
1379
+ } | {
1380
+ case: "address";
1381
+ value: _sentio_protos.CoinID_AddressIdentifier | {
1382
+ readonly $typeName?: undefined;
1383
+ address?: string | undefined;
1384
+ chain?: string | undefined;
1385
+ };
1386
+ } | undefined;
1387
+ }) | undefined;
1388
+ amount?: (_sentio_protos.BigDecimalRichValue | {
1389
+ readonly $typeName?: undefined;
1390
+ value?: (_sentio_protos.BigInteger | {
1391
+ readonly $typeName?: undefined;
1392
+ negative?: boolean | undefined;
1393
+ data?: Uint8Array<ArrayBufferLike> | undefined;
1394
+ }) | undefined;
1395
+ exp?: number | undefined;
1396
+ }) | undefined;
1397
+ specifiedAt?: (_sentio_protos.Timestamp | {
1398
+ readonly $typeName?: undefined;
1399
+ seconds?: bigint | undefined;
1400
+ nanos?: number | undefined;
1401
+ }) | undefined;
1402
+ };
624
1403
  } | undefined;
625
- } | undefined;
626
- op?: _sentio_protos.EntityUpdateData_Operator | undefined;
627
- } | undefined;
628
- } | undefined;
629
- }[] | undefined;
630
- } | undefined;
631
- delete?: {
632
- entity?: string[] | undefined;
633
- id?: string[] | undefined;
634
- } | undefined;
635
- list?: {
636
- entity?: string | undefined;
637
- filters?: {
638
- field?: string | undefined;
639
- op?: _sentio_protos.DBRequest_DBOperator | undefined;
640
- value?: {
641
- values?: {
642
- nullValue?: _sentio_protos.RichValue_NullValue | undefined;
643
- intValue?: number | undefined | undefined;
644
- int64Value?: bigint | undefined | undefined;
645
- floatValue?: number | undefined | undefined;
646
- bytesValue?: Uint8Array<ArrayBufferLike> | undefined;
647
- boolValue?: boolean | undefined | undefined;
648
- stringValue?: string | undefined | undefined;
649
- timestampValue?: Date | undefined;
650
- bigintValue?: {
651
- negative?: boolean | undefined;
652
- data?: Uint8Array<ArrayBufferLike> | undefined;
653
- } | undefined;
654
- bigdecimalValue?: {
1404
+ };
1405
+ [key: number]: _sentio_protos.RichValue | {
1406
+ readonly $typeName?: undefined;
655
1407
  value?: {
656
- negative?: boolean | undefined;
657
- data?: Uint8Array<ArrayBufferLike> | undefined;
658
- } | undefined;
659
- exp?: number | undefined;
660
- } | undefined;
661
- listValue?: /*elided*/ any | undefined;
662
- structValue?: {
663
- fields?: {
664
- [x: string]: /*elided*/ any | undefined;
665
- } | undefined;
666
- } | undefined;
667
- tokenValue?: {
668
- token?: {
669
- symbol?: string | undefined | undefined;
670
- address?: {
671
- address?: string | undefined;
672
- chain?: string | undefined;
673
- } | undefined;
674
- } | undefined;
675
- amount?: {
676
- value?: {
1408
+ value: _sentio_protos.RichValue_NullValue;
1409
+ case: "nullValue";
1410
+ } | {
1411
+ value: number;
1412
+ case: "intValue";
1413
+ } | {
1414
+ value: bigint;
1415
+ case: "int64Value";
1416
+ } | {
1417
+ value: number;
1418
+ case: "floatValue";
1419
+ } | {
1420
+ value: Uint8Array;
1421
+ case: "bytesValue";
1422
+ } | {
1423
+ value: boolean;
1424
+ case: "boolValue";
1425
+ } | {
1426
+ value: string;
1427
+ case: "stringValue";
1428
+ } | {
1429
+ case: undefined;
1430
+ value?: undefined;
1431
+ } | {
1432
+ case: "timestampValue";
1433
+ value: _sentio_protos.Timestamp | {
1434
+ readonly $typeName?: undefined;
1435
+ seconds?: bigint | undefined;
1436
+ nanos?: number | undefined;
1437
+ };
1438
+ } | {
1439
+ case: "bigintValue";
1440
+ value: _sentio_protos.BigInteger | {
1441
+ readonly $typeName?: undefined;
677
1442
  negative?: boolean | undefined;
678
1443
  data?: Uint8Array<ArrayBufferLike> | undefined;
679
- } | undefined;
680
- exp?: number | undefined;
1444
+ };
1445
+ } | {
1446
+ case: "bigdecimalValue";
1447
+ value: _sentio_protos.BigDecimalRichValue | {
1448
+ readonly $typeName?: undefined;
1449
+ value?: (_sentio_protos.BigInteger | {
1450
+ readonly $typeName?: undefined;
1451
+ negative?: boolean | undefined;
1452
+ data?: Uint8Array<ArrayBufferLike> | undefined;
1453
+ }) | undefined;
1454
+ exp?: number | undefined;
1455
+ };
1456
+ } | {
1457
+ case: "listValue";
1458
+ value: _sentio_protos.RichValueList | {
1459
+ readonly $typeName?: undefined;
1460
+ values?: (_sentio_protos.RichValue | /*elided*/ any)[] | undefined;
1461
+ };
1462
+ } | {
1463
+ case: "structValue";
1464
+ value: _sentio_protos.RichStruct | /*elided*/ any;
1465
+ } | {
1466
+ case: "tokenValue";
1467
+ value: _sentio_protos.TokenAmount | {
1468
+ readonly $typeName?: undefined;
1469
+ token?: (_sentio_protos.CoinID | {
1470
+ readonly $typeName?: undefined;
1471
+ id?: {
1472
+ value: string;
1473
+ case: "symbol";
1474
+ } | {
1475
+ case: undefined;
1476
+ value?: undefined;
1477
+ } | {
1478
+ case: "address";
1479
+ value: _sentio_protos.CoinID_AddressIdentifier | {
1480
+ readonly $typeName?: undefined;
1481
+ address?: string | undefined;
1482
+ chain?: string | undefined;
1483
+ };
1484
+ } | undefined;
1485
+ }) | undefined;
1486
+ amount?: (_sentio_protos.BigDecimalRichValue | {
1487
+ readonly $typeName?: undefined;
1488
+ value?: (_sentio_protos.BigInteger | {
1489
+ readonly $typeName?: undefined;
1490
+ negative?: boolean | undefined;
1491
+ data?: Uint8Array<ArrayBufferLike> | undefined;
1492
+ }) | undefined;
1493
+ exp?: number | undefined;
1494
+ }) | undefined;
1495
+ specifiedAt?: (_sentio_protos.Timestamp | {
1496
+ readonly $typeName?: undefined;
1497
+ seconds?: bigint | undefined;
1498
+ nanos?: number | undefined;
1499
+ }) | undefined;
1500
+ };
681
1501
  } | undefined;
682
- specifiedAt?: Date | undefined;
683
- } | undefined;
684
- }[] | undefined;
685
- } | undefined;
686
- }[] | undefined;
687
- cursor?: string | undefined;
688
- pageSize?: number | undefined | undefined;
689
- } | undefined;
1502
+ };
1503
+ } | undefined;
1504
+ }) | undefined;
1505
+ runtimeInfo?: (_sentio_protos.RuntimeInfo | {
1506
+ readonly $typeName?: undefined;
1507
+ from?: HandlerType | undefined;
1508
+ }) | undefined;
1509
+ })[] | undefined;
1510
+ };
1511
+ } | {
1512
+ case: "tplRequest";
1513
+ value: _sentio_protos.TPLRequest | {
1514
+ readonly $typeName?: undefined;
1515
+ templates?: (_sentio_protos.TemplateInstance | {
1516
+ readonly $typeName?: undefined;
1517
+ contract?: (_sentio_protos.ContractInfo | {
1518
+ readonly $typeName?: undefined;
1519
+ name?: string | undefined;
1520
+ chainId?: string | undefined;
1521
+ address?: string | undefined;
1522
+ abi?: string | undefined;
1523
+ }) | undefined;
1524
+ startBlock?: bigint | undefined;
1525
+ endBlock?: bigint | undefined;
1526
+ templateId?: number | undefined;
1527
+ baseLabels?: _bufbuild_protobuf.JsonObject | undefined;
1528
+ })[] | undefined;
1529
+ remove?: boolean | undefined;
1530
+ };
690
1531
  } | undefined;
691
1532
  }, void, any>;
692
- private dbContexts;
693
- protected handleRequests(requests: AsyncIterable<ProcessStreamRequest>, subject: Subject<DeepPartial<ProcessStreamResponse>>): Promise<void>;
694
- handleRequest(request: ProcessStreamRequest, lastBinding: DataBinding | undefined, subject: Subject<DeepPartial<ProcessStreamResponse>>): Promise<void>;
1533
+ protected handleRequests(requests: AsyncIterable<ProcessStreamRequest>, subject: Subject<ProcessStreamResponseV3Init>): Promise<void>;
1534
+ private contexts;
1535
+ handleRequest(request: ProcessStreamRequest, lastBinding: DataBinding | undefined, subject: Subject<ProcessStreamResponseV3Init>): Promise<void>;
695
1536
  private startProcess;
1537
+ updateTemplates(request: UpdateTemplatesRequest, context: HandlerContext): Promise<_bufbuild_protobuf.Message<"google.protobuf.Empty">>;
696
1538
  }
697
- declare function recordRuntimeInfo(results: ProcessResult, handlerType: HandlerType): void;
698
1539
 
699
1540
  /**
700
1541
  * Configuration for the in-memory cache feature.
@@ -727,7 +1568,7 @@ interface GlobalConfig {
727
1568
  * Execution configuration controlling how handlers are processed.
728
1569
  * Includes settings for sequential vs parallel execution, block time handling, etc.
729
1570
  */
730
- execution: Partial<ExecutionConfig>;
1571
+ execution: MessageInitShape<typeof ExecutionConfigSchema>;
731
1572
  /**
732
1573
  * Optional cache configuration for enabling in-memory key-value storage.
733
1574
  * When enabled, processors can use `ctx.cache` to store and retrieve values.
@@ -905,4 +1746,4 @@ declare const processMetrics: {
905
1746
  };
906
1747
  declare const metricsStorage: AsyncLocalStorage<string>;
907
1748
 
908
- export { type ChainConfig, DummyProvider, Endpoints, GLOBAL_CONFIG, type GlobalConfig, ListStateStorage, MapStateStorage, ProcessorServiceImpl, QueuedStaticJsonRpcProvider, type Semver, State, StateStorage, StoreContext, USER_PROCESSOR, compareSemver, configureEndpoints, dbMetrics, errorString, getProvider, locatePackageJson, makeEthCallKey, mergeProcessResults, mergeProcessResultsInPlace, metricsStorage, parseSemver, processMetrics, providerMetrics, recordRuntimeInfo };
1749
+ export { type ChainConfig, DummyProvider, Endpoints, GLOBAL_CONFIG, type GlobalConfig, ListStateStorage, MapStateStorage, ProcessorServiceImplV3, QueuedStaticJsonRpcProvider, type Semver, State, StateStorage, USER_PROCESSOR, compareSemver, configureEndpoints, dbMetrics, errorString, getProvider, locatePackageJson, makeEthCallKey, mergeProcessResults, mergeProcessResultsInPlace, metricsStorage, parseSemver, processMetrics, providerMetrics, recordRuntimeInfo };