@sentio/sdk 4.0.0-rc.2 → 4.0.0-rc.4

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