@sentio/runtime 4.0.0 → 4.0.1-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/esm-CSGQo6hb.js +1773 -0
  2. package/dist/esm-CSGQo6hb.js.map +1 -0
  3. package/dist/execAsync-DiFDE921.js +14 -0
  4. package/dist/execAsync-DiFDE921.js.map +1 -0
  5. package/dist/getMachineId-bsd-57c_YWfQ.js +30 -0
  6. package/dist/getMachineId-bsd-57c_YWfQ.js.map +1 -0
  7. package/dist/getMachineId-darwin-dyf00K_U.js +27 -0
  8. package/dist/getMachineId-darwin-dyf00K_U.js.map +1 -0
  9. package/dist/getMachineId-linux-p9niCx07.js +23 -0
  10. package/dist/getMachineId-linux-p9niCx07.js.map +1 -0
  11. package/dist/getMachineId-unsupported-hKbFGxhH.js +18 -0
  12. package/dist/getMachineId-unsupported-hKbFGxhH.js.map +1 -0
  13. package/dist/getMachineId-win-Bn6Q0xbV.js +29 -0
  14. package/dist/getMachineId-win-Bn6Q0xbV.js.map +1 -0
  15. package/dist/index.d.ts +2780 -0
  16. package/dist/index.d.ts.map +1 -0
  17. package/dist/index.js +68 -0
  18. package/dist/index.js.map +1 -0
  19. package/dist/plugin-BrBSx4KR.d.ts +111 -0
  20. package/dist/plugin-BrBSx4KR.d.ts.map +1 -0
  21. package/dist/plugin-Tb-OZb_A.js +6937 -0
  22. package/dist/plugin-Tb-OZb_A.js.map +1 -0
  23. package/dist/processor-runner.d.ts +1 -0
  24. package/dist/processor-runner.js +57749 -0
  25. package/dist/processor-runner.js.map +1 -0
  26. package/dist/service-v3-CtXk2PFI.js +12238 -0
  27. package/dist/service-v3-CtXk2PFI.js.map +1 -0
  28. package/package.json +9 -8
  29. package/src/tsdown.config.ts +29 -0
  30. package/lib/chunk-AUPVVLD3.js +0 -3
  31. package/lib/chunk-AUPVVLD3.js.map +0 -1
  32. package/lib/chunk-GIDETKWP.js +0 -3
  33. package/lib/chunk-GIDETKWP.js.map +0 -1
  34. package/lib/chunk-OWUO6IOO.js +0 -4
  35. package/lib/chunk-OWUO6IOO.js.map +0 -1
  36. package/lib/chunk-TW627LH5.js +0 -3
  37. package/lib/chunk-TW627LH5.js.map +0 -1
  38. package/lib/chunk-ZBEAD3P3.js +0 -15
  39. package/lib/chunk-ZBEAD3P3.js.map +0 -1
  40. package/lib/getMachineId-bsd-D4LAJDEF.js +0 -3
  41. package/lib/getMachineId-bsd-D4LAJDEF.js.map +0 -1
  42. package/lib/getMachineId-darwin-LI2YUJNR.js +0 -4
  43. package/lib/getMachineId-darwin-LI2YUJNR.js.map +0 -1
  44. package/lib/getMachineId-linux-U5ITOJBK.js +0 -3
  45. package/lib/getMachineId-linux-U5ITOJBK.js.map +0 -1
  46. package/lib/getMachineId-unsupported-5HCFSWXA.js +0 -3
  47. package/lib/getMachineId-unsupported-5HCFSWXA.js.map +0 -1
  48. package/lib/getMachineId-win-MPVRXIQL.js +0 -3
  49. package/lib/getMachineId-win-MPVRXIQL.js.map +0 -1
  50. package/lib/index.d.ts +0 -1750
  51. package/lib/index.js +0 -3
  52. package/lib/index.js.map +0 -1
  53. package/lib/plugin-D-rx1WCp.d.ts +0 -108
  54. package/lib/processor-runner.d.ts +0 -1
  55. package/lib/processor-runner.js +0 -184
  56. package/lib/processor-runner.js.map +0 -1
  57. package/src/tsup.config.ts +0 -17
package/lib/index.d.ts DELETED
@@ -1,1750 +0,0 @@
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';
2
- import * as _sentio_protos from '@sentio/protos';
3
- import { ProcessResult, HandlerType, EthCallParam, ProcessorV3, StartRequest, ProcessConfigRequest, ProcessStreamRequest, DataBinding, UpdateTemplatesRequest, ProcessStreamResponseV3Schema, ExecutionConfigSchema } from '@sentio/protos';
4
- import { Required } from 'utility-types';
5
- import * as _bufbuild_protobuf from '@bufbuild/protobuf';
6
- import { MessageInitShape } from '@bufbuild/protobuf';
7
- import { ServiceImpl, HandlerContext } from '@connectrpc/connect';
8
- import { Subject } from 'rxjs';
9
- import { Command } from '@commander-js/extra-typings';
10
- import { AsyncLocalStorage } from 'node:async_hooks';
11
- import { Counter, Attributes, Gauge, Histogram } from '@opentelemetry/api';
12
-
13
- declare class State {
14
- stateMap: Map<string, any>;
15
- static INSTANCE: State;
16
- static reset(): void;
17
- }
18
- declare abstract class StateStorage<T> {
19
- protected constructor();
20
- abstract initValue(): T;
21
- key(): string;
22
- getOrRegister(): T;
23
- unregister(): T;
24
- }
25
- declare abstract class MapStateStorage<T> extends StateStorage<Map<string, T>> {
26
- initValue(): Map<string, T>;
27
- getValue(key: string): T | undefined;
28
- getValues(): T[];
29
- getOrSetValue(key: string, value: T): T;
30
- }
31
- declare abstract class ListStateStorage<T> extends StateStorage<T[]> {
32
- initValue(): never[];
33
- getValues(): T[];
34
- addValue(value: T): T;
35
- }
36
-
37
- declare function mergeProcessResults(results: ProcessResult[]): Required<ProcessResult, 'states'>;
38
- declare function mergeProcessResultsInPlace(res: ProcessResult, results: ProcessResult[]): Required<ProcessResult, 'states'>;
39
- declare function recordRuntimeInfo(results: ProcessResult, handlerType: HandlerType): void;
40
- declare function errorString(e: unknown): string;
41
- declare const USER_PROCESSOR = "user_processor";
42
- declare function makeEthCallKey(param: EthCallParam): string;
43
- type Semver = {
44
- semVer?: string;
45
- major: number;
46
- minor: number;
47
- patch: number;
48
- prerelease?: string;
49
- buildmetadata?: string;
50
- };
51
- declare function parseSemver(version: string): Semver;
52
- declare function compareSemver(a: Semver, b: Semver): number;
53
- declare function locatePackageJson(pkgId: string): any;
54
-
55
- /**
56
- * Resolved RPC endpoint for a chain: the base URL plus optional HTTP headers
57
- * attached to every request, e.g. the `X-Forwarded-Host` routing key for the Sui
58
- * gRPC client talking to the Sentio rpc-node.
59
- */
60
- interface ChainRpc {
61
- url: string;
62
- headers?: Record<string, string>;
63
- }
64
- declare class Endpoints {
65
- static INSTANCE: Endpoints;
66
- concurrency: number;
67
- priceFeedAPI: string;
68
- chainRpc: Map<string, ChainRpc>;
69
- batchCount: number;
70
- /** Convenience accessor for callers that only need the endpoint URL. */
71
- getChainRpcUrl(chainId: string): string | undefined;
72
- }
73
- declare function configureEndpoints(options: any): void;
74
-
75
- interface RpcConfig {
76
- Url: string;
77
- Headers?: Record<string, string>;
78
- }
79
- interface ChainConfig {
80
- ChainID: string;
81
- Https?: string[];
82
- Rpc?: RpcConfig;
83
- }
84
-
85
- declare const program: Command<[string], {
86
- port: string;
87
- concurrency: number;
88
- batchCount: number;
89
- chainsConfig: string;
90
- pricefeedServer?: string | undefined;
91
- logFormat: string;
92
- debug?: true | undefined;
93
- otlpDebug?: true | undefined;
94
- startActionServer?: true | undefined;
95
- worker: number;
96
- processTimeout: number;
97
- workerTimeout: number;
98
- enablePartition: boolean;
99
- }, {}>;
100
- type ProcessorRuntimeOptions = ReturnType<typeof program.opts> & {
101
- target: string;
102
- };
103
-
104
- type ProcessStreamResponseV3Init = MessageInitShape<typeof ProcessStreamResponseV3Schema>;
105
- declare class ProcessorServiceImplV3 implements ServiceImpl<typeof ProcessorV3> {
106
- readonly enablePartition: boolean;
107
- private readonly loader;
108
- private readonly shutdownHandler?;
109
- private started;
110
- constructor(loader: () => Promise<any>, options?: ProcessorRuntimeOptions, shutdownHandler?: () => void);
111
- start(request: StartRequest, context: HandlerContext): Promise<_bufbuild_protobuf.Message<"google.protobuf.Empty">>;
112
- getConfig(request: ProcessConfigRequest, context: HandlerContext): Promise<_sentio_protos.ProcessConfigResponse>;
113
- processBindingsStream(requests: AsyncIterable<ProcessStreamRequest>, context: HandlerContext): AsyncGenerator<_sentio_protos.ProcessStreamResponseV3 | {
114
- readonly $typeName?: undefined;
115
- processId?: number | undefined;
116
- value?: {
117
- case: undefined;
118
- value?: undefined;
119
- } | {
120
- case: "dbRequest";
121
- value: _sentio_protos.DBRequest | {
122
- readonly $typeName?: undefined;
123
- opId?: bigint | undefined;
124
- op?: {
125
- case: undefined;
126
- value?: undefined;
127
- } | {
128
- case: "get";
129
- value: _sentio_protos.DBRequest_DBGet | {
130
- readonly $typeName?: undefined;
131
- entity?: string | undefined;
132
- id?: string | undefined;
133
- };
134
- } | {
135
- case: "upsert";
136
- value: _sentio_protos.DBRequest_DBUpsert | {
137
- readonly $typeName?: undefined;
138
- entity?: string[] | undefined;
139
- id?: string[] | undefined;
140
- data?: _bufbuild_protobuf.JsonObject[] | undefined;
141
- entityData?: (_sentio_protos.RichStruct | {
142
- readonly $typeName?: undefined;
143
- fields?: {
144
- [key: string]: _sentio_protos.RichValue | {
145
- readonly $typeName?: undefined;
146
- value?: {
147
- value: _sentio_protos.RichValue_NullValue;
148
- case: "nullValue";
149
- } | {
150
- value: number;
151
- case: "intValue";
152
- } | {
153
- value: bigint;
154
- case: "int64Value";
155
- } | {
156
- value: number;
157
- case: "floatValue";
158
- } | {
159
- value: Uint8Array;
160
- case: "bytesValue";
161
- } | {
162
- value: boolean;
163
- case: "boolValue";
164
- } | {
165
- value: string;
166
- case: "stringValue";
167
- } | {
168
- case: undefined;
169
- value?: undefined;
170
- } | {
171
- case: "timestampValue";
172
- value: _sentio_protos.Timestamp | {
173
- readonly $typeName?: undefined;
174
- seconds?: bigint | undefined;
175
- nanos?: number | undefined;
176
- };
177
- } | {
178
- case: "bigintValue";
179
- value: _sentio_protos.BigInteger | {
180
- readonly $typeName?: undefined;
181
- negative?: boolean | undefined;
182
- data?: Uint8Array<ArrayBufferLike> | undefined;
183
- };
184
- } | {
185
- case: "bigdecimalValue";
186
- value: _sentio_protos.BigDecimalRichValue | {
187
- readonly $typeName?: undefined;
188
- value?: (_sentio_protos.BigInteger | {
189
- readonly $typeName?: undefined;
190
- negative?: boolean | undefined;
191
- data?: Uint8Array<ArrayBufferLike> | undefined;
192
- }) | undefined;
193
- exp?: number | undefined;
194
- };
195
- } | {
196
- case: "listValue";
197
- value: _sentio_protos.RichValueList | {
198
- readonly $typeName?: undefined;
199
- values?: (_sentio_protos.RichValue | /*elided*/ any)[] | undefined;
200
- };
201
- } | {
202
- case: "structValue";
203
- value: _sentio_protos.RichStruct | /*elided*/ any;
204
- } | {
205
- case: "tokenValue";
206
- value: _sentio_protos.TokenAmount | {
207
- readonly $typeName?: undefined;
208
- token?: (_sentio_protos.CoinID | {
209
- readonly $typeName?: undefined;
210
- id?: {
211
- value: string;
212
- case: "symbol";
213
- } | {
214
- case: undefined;
215
- value?: undefined;
216
- } | {
217
- case: "address";
218
- value: _sentio_protos.CoinID_AddressIdentifier | {
219
- readonly $typeName?: undefined;
220
- address?: string | undefined;
221
- chain?: string | undefined;
222
- };
223
- } | undefined;
224
- }) | undefined;
225
- amount?: (_sentio_protos.BigDecimalRichValue | {
226
- readonly $typeName?: undefined;
227
- value?: (_sentio_protos.BigInteger | {
228
- readonly $typeName?: undefined;
229
- negative?: boolean | undefined;
230
- data?: Uint8Array<ArrayBufferLike> | undefined;
231
- }) | undefined;
232
- exp?: number | undefined;
233
- }) | undefined;
234
- specifiedAt?: (_sentio_protos.Timestamp | {
235
- readonly $typeName?: undefined;
236
- seconds?: bigint | undefined;
237
- nanos?: number | undefined;
238
- }) | undefined;
239
- };
240
- } | undefined;
241
- };
242
- [key: number]: _sentio_protos.RichValue | {
243
- readonly $typeName?: undefined;
244
- value?: {
245
- value: _sentio_protos.RichValue_NullValue;
246
- case: "nullValue";
247
- } | {
248
- value: number;
249
- case: "intValue";
250
- } | {
251
- value: bigint;
252
- case: "int64Value";
253
- } | {
254
- value: number;
255
- case: "floatValue";
256
- } | {
257
- value: Uint8Array;
258
- case: "bytesValue";
259
- } | {
260
- value: boolean;
261
- case: "boolValue";
262
- } | {
263
- value: string;
264
- case: "stringValue";
265
- } | {
266
- case: undefined;
267
- value?: undefined;
268
- } | {
269
- case: "timestampValue";
270
- value: _sentio_protos.Timestamp | {
271
- readonly $typeName?: undefined;
272
- seconds?: bigint | undefined;
273
- nanos?: number | undefined;
274
- };
275
- } | {
276
- case: "bigintValue";
277
- value: _sentio_protos.BigInteger | {
278
- readonly $typeName?: undefined;
279
- negative?: boolean | undefined;
280
- data?: Uint8Array<ArrayBufferLike> | undefined;
281
- };
282
- } | {
283
- case: "bigdecimalValue";
284
- value: _sentio_protos.BigDecimalRichValue | {
285
- readonly $typeName?: undefined;
286
- value?: (_sentio_protos.BigInteger | {
287
- readonly $typeName?: undefined;
288
- negative?: boolean | undefined;
289
- data?: Uint8Array<ArrayBufferLike> | undefined;
290
- }) | undefined;
291
- exp?: number | undefined;
292
- };
293
- } | {
294
- case: "listValue";
295
- value: _sentio_protos.RichValueList | {
296
- readonly $typeName?: undefined;
297
- values?: (_sentio_protos.RichValue | /*elided*/ any)[] | undefined;
298
- };
299
- } | {
300
- case: "structValue";
301
- value: _sentio_protos.RichStruct | /*elided*/ any;
302
- } | {
303
- case: "tokenValue";
304
- value: _sentio_protos.TokenAmount | {
305
- readonly $typeName?: undefined;
306
- token?: (_sentio_protos.CoinID | {
307
- readonly $typeName?: undefined;
308
- id?: {
309
- value: string;
310
- case: "symbol";
311
- } | {
312
- case: undefined;
313
- value?: undefined;
314
- } | {
315
- case: "address";
316
- value: _sentio_protos.CoinID_AddressIdentifier | {
317
- readonly $typeName?: undefined;
318
- address?: string | undefined;
319
- chain?: string | undefined;
320
- };
321
- } | undefined;
322
- }) | undefined;
323
- amount?: (_sentio_protos.BigDecimalRichValue | {
324
- readonly $typeName?: undefined;
325
- value?: (_sentio_protos.BigInteger | {
326
- readonly $typeName?: undefined;
327
- negative?: boolean | undefined;
328
- data?: Uint8Array<ArrayBufferLike> | undefined;
329
- }) | undefined;
330
- exp?: number | undefined;
331
- }) | undefined;
332
- specifiedAt?: (_sentio_protos.Timestamp | {
333
- readonly $typeName?: undefined;
334
- seconds?: bigint | undefined;
335
- nanos?: number | undefined;
336
- }) | undefined;
337
- };
338
- } | undefined;
339
- };
340
- } | undefined;
341
- })[] | undefined;
342
- };
343
- } | {
344
- case: "update";
345
- value: _sentio_protos.DBRequest_DBUpdate | {
346
- readonly $typeName?: undefined;
347
- entity?: string[] | undefined;
348
- id?: string[] | undefined;
349
- entityData?: (_sentio_protos.EntityUpdateData | {
350
- readonly $typeName?: undefined;
351
- fields?: {
352
- [key: string]: _sentio_protos.EntityUpdateData_FieldValue | {
353
- readonly $typeName?: undefined;
354
- value?: (_sentio_protos.RichValue | {
355
- readonly $typeName?: undefined;
356
- value?: {
357
- value: _sentio_protos.RichValue_NullValue;
358
- case: "nullValue";
359
- } | {
360
- value: number;
361
- case: "intValue";
362
- } | {
363
- value: bigint;
364
- case: "int64Value";
365
- } | {
366
- value: number;
367
- case: "floatValue";
368
- } | {
369
- value: Uint8Array;
370
- case: "bytesValue";
371
- } | {
372
- value: boolean;
373
- case: "boolValue";
374
- } | {
375
- value: string;
376
- case: "stringValue";
377
- } | {
378
- case: undefined;
379
- value?: undefined;
380
- } | {
381
- case: "timestampValue";
382
- value: _sentio_protos.Timestamp | {
383
- readonly $typeName?: undefined;
384
- seconds?: bigint | undefined;
385
- nanos?: number | undefined;
386
- };
387
- } | {
388
- case: "bigintValue";
389
- value: _sentio_protos.BigInteger | {
390
- readonly $typeName?: undefined;
391
- negative?: boolean | undefined;
392
- data?: Uint8Array<ArrayBufferLike> | undefined;
393
- };
394
- } | {
395
- case: "bigdecimalValue";
396
- value: _sentio_protos.BigDecimalRichValue | {
397
- readonly $typeName?: undefined;
398
- value?: (_sentio_protos.BigInteger | {
399
- readonly $typeName?: undefined;
400
- negative?: boolean | undefined;
401
- data?: Uint8Array<ArrayBufferLike> | undefined;
402
- }) | undefined;
403
- exp?: number | undefined;
404
- };
405
- } | {
406
- case: "listValue";
407
- value: _sentio_protos.RichValueList | {
408
- readonly $typeName?: undefined;
409
- values?: (_sentio_protos.RichValue | /*elided*/ any)[] | undefined;
410
- };
411
- } | {
412
- case: "structValue";
413
- value: _sentio_protos.RichStruct | {
414
- readonly $typeName?: undefined;
415
- fields?: {
416
- [key: string]: _sentio_protos.RichValue | /*elided*/ any;
417
- [key: number]: _sentio_protos.RichValue | /*elided*/ any;
418
- } | undefined;
419
- };
420
- } | {
421
- case: "tokenValue";
422
- value: _sentio_protos.TokenAmount | {
423
- readonly $typeName?: undefined;
424
- token?: (_sentio_protos.CoinID | {
425
- readonly $typeName?: undefined;
426
- id?: {
427
- value: string;
428
- case: "symbol";
429
- } | {
430
- case: undefined;
431
- value?: undefined;
432
- } | {
433
- case: "address";
434
- value: _sentio_protos.CoinID_AddressIdentifier | {
435
- readonly $typeName?: undefined;
436
- address?: string | undefined;
437
- chain?: string | undefined;
438
- };
439
- } | undefined;
440
- }) | undefined;
441
- amount?: (_sentio_protos.BigDecimalRichValue | {
442
- readonly $typeName?: undefined;
443
- value?: (_sentio_protos.BigInteger | {
444
- readonly $typeName?: undefined;
445
- negative?: boolean | undefined;
446
- data?: Uint8Array<ArrayBufferLike> | undefined;
447
- }) | undefined;
448
- exp?: number | undefined;
449
- }) | undefined;
450
- specifiedAt?: (_sentio_protos.Timestamp | {
451
- readonly $typeName?: undefined;
452
- seconds?: bigint | undefined;
453
- nanos?: number | undefined;
454
- }) | undefined;
455
- };
456
- } | undefined;
457
- }) | undefined;
458
- op?: _sentio_protos.EntityUpdateData_Operator | undefined;
459
- };
460
- [key: number]: _sentio_protos.EntityUpdateData_FieldValue | {
461
- readonly $typeName?: undefined;
462
- value?: (_sentio_protos.RichValue | {
463
- readonly $typeName?: undefined;
464
- value?: {
465
- value: _sentio_protos.RichValue_NullValue;
466
- case: "nullValue";
467
- } | {
468
- value: number;
469
- case: "intValue";
470
- } | {
471
- value: bigint;
472
- case: "int64Value";
473
- } | {
474
- value: number;
475
- case: "floatValue";
476
- } | {
477
- value: Uint8Array;
478
- case: "bytesValue";
479
- } | {
480
- value: boolean;
481
- case: "boolValue";
482
- } | {
483
- value: string;
484
- case: "stringValue";
485
- } | {
486
- case: undefined;
487
- value?: undefined;
488
- } | {
489
- case: "timestampValue";
490
- value: _sentio_protos.Timestamp | {
491
- readonly $typeName?: undefined;
492
- seconds?: bigint | undefined;
493
- nanos?: number | undefined;
494
- };
495
- } | {
496
- case: "bigintValue";
497
- value: _sentio_protos.BigInteger | {
498
- readonly $typeName?: undefined;
499
- negative?: boolean | undefined;
500
- data?: Uint8Array<ArrayBufferLike> | undefined;
501
- };
502
- } | {
503
- case: "bigdecimalValue";
504
- value: _sentio_protos.BigDecimalRichValue | {
505
- readonly $typeName?: undefined;
506
- value?: (_sentio_protos.BigInteger | {
507
- readonly $typeName?: undefined;
508
- negative?: boolean | undefined;
509
- data?: Uint8Array<ArrayBufferLike> | undefined;
510
- }) | undefined;
511
- exp?: number | undefined;
512
- };
513
- } | {
514
- case: "listValue";
515
- value: _sentio_protos.RichValueList | {
516
- readonly $typeName?: undefined;
517
- values?: (_sentio_protos.RichValue | /*elided*/ any)[] | undefined;
518
- };
519
- } | {
520
- case: "structValue";
521
- value: _sentio_protos.RichStruct | {
522
- readonly $typeName?: undefined;
523
- fields?: {
524
- [key: string]: _sentio_protos.RichValue | /*elided*/ any;
525
- [key: number]: _sentio_protos.RichValue | /*elided*/ any;
526
- } | undefined;
527
- };
528
- } | {
529
- case: "tokenValue";
530
- value: _sentio_protos.TokenAmount | {
531
- readonly $typeName?: undefined;
532
- token?: (_sentio_protos.CoinID | {
533
- readonly $typeName?: undefined;
534
- id?: {
535
- value: string;
536
- case: "symbol";
537
- } | {
538
- case: undefined;
539
- value?: undefined;
540
- } | {
541
- case: "address";
542
- value: _sentio_protos.CoinID_AddressIdentifier | {
543
- readonly $typeName?: undefined;
544
- address?: string | undefined;
545
- chain?: string | undefined;
546
- };
547
- } | undefined;
548
- }) | undefined;
549
- amount?: (_sentio_protos.BigDecimalRichValue | {
550
- readonly $typeName?: undefined;
551
- value?: (_sentio_protos.BigInteger | {
552
- readonly $typeName?: undefined;
553
- negative?: boolean | undefined;
554
- data?: Uint8Array<ArrayBufferLike> | undefined;
555
- }) | undefined;
556
- exp?: number | undefined;
557
- }) | undefined;
558
- specifiedAt?: (_sentio_protos.Timestamp | {
559
- readonly $typeName?: undefined;
560
- seconds?: bigint | undefined;
561
- nanos?: number | undefined;
562
- }) | undefined;
563
- };
564
- } | undefined;
565
- }) | undefined;
566
- op?: _sentio_protos.EntityUpdateData_Operator | undefined;
567
- };
568
- } | undefined;
569
- })[] | undefined;
570
- };
571
- } | {
572
- case: "delete";
573
- value: _sentio_protos.DBRequest_DBDelete | {
574
- readonly $typeName?: undefined;
575
- entity?: string[] | undefined;
576
- id?: string[] | undefined;
577
- };
578
- } | {
579
- case: "list";
580
- value: _sentio_protos.DBRequest_DBList | {
581
- readonly $typeName?: undefined;
582
- entity?: string | undefined;
583
- filters?: (_sentio_protos.DBRequest_DBFilter | {
584
- readonly $typeName?: undefined;
585
- field?: string | undefined;
586
- op?: _sentio_protos.DBRequest_DBOperator | undefined;
587
- value?: (_sentio_protos.RichValueList | {
588
- readonly $typeName?: undefined;
589
- values?: (_sentio_protos.RichValue | {
590
- readonly $typeName?: undefined;
591
- value?: {
592
- value: _sentio_protos.RichValue_NullValue;
593
- case: "nullValue";
594
- } | {
595
- value: number;
596
- case: "intValue";
597
- } | {
598
- value: bigint;
599
- case: "int64Value";
600
- } | {
601
- value: number;
602
- case: "floatValue";
603
- } | {
604
- value: Uint8Array;
605
- case: "bytesValue";
606
- } | {
607
- value: boolean;
608
- case: "boolValue";
609
- } | {
610
- value: string;
611
- case: "stringValue";
612
- } | {
613
- case: undefined;
614
- value?: undefined;
615
- } | {
616
- case: "timestampValue";
617
- value: _sentio_protos.Timestamp | {
618
- readonly $typeName?: undefined;
619
- seconds?: bigint | undefined;
620
- nanos?: number | undefined;
621
- };
622
- } | {
623
- case: "bigintValue";
624
- value: _sentio_protos.BigInteger | {
625
- readonly $typeName?: undefined;
626
- negative?: boolean | undefined;
627
- data?: Uint8Array<ArrayBufferLike> | undefined;
628
- };
629
- } | {
630
- case: "bigdecimalValue";
631
- value: _sentio_protos.BigDecimalRichValue | {
632
- readonly $typeName?: undefined;
633
- value?: (_sentio_protos.BigInteger | {
634
- readonly $typeName?: undefined;
635
- negative?: boolean | undefined;
636
- data?: Uint8Array<ArrayBufferLike> | undefined;
637
- }) | undefined;
638
- exp?: number | undefined;
639
- };
640
- } | {
641
- case: "listValue";
642
- value: _sentio_protos.RichValueList | /*elided*/ any;
643
- } | {
644
- case: "structValue";
645
- value: _sentio_protos.RichStruct | {
646
- readonly $typeName?: undefined;
647
- fields?: {
648
- [key: string]: _sentio_protos.RichValue | /*elided*/ any;
649
- [key: number]: _sentio_protos.RichValue | /*elided*/ any;
650
- } | undefined;
651
- };
652
- } | {
653
- case: "tokenValue";
654
- value: _sentio_protos.TokenAmount | {
655
- readonly $typeName?: undefined;
656
- token?: (_sentio_protos.CoinID | {
657
- readonly $typeName?: undefined;
658
- id?: {
659
- value: string;
660
- case: "symbol";
661
- } | {
662
- case: undefined;
663
- value?: undefined;
664
- } | {
665
- case: "address";
666
- value: _sentio_protos.CoinID_AddressIdentifier | {
667
- readonly $typeName?: undefined;
668
- address?: string | undefined;
669
- chain?: string | undefined;
670
- };
671
- } | undefined;
672
- }) | undefined;
673
- amount?: (_sentio_protos.BigDecimalRichValue | {
674
- readonly $typeName?: undefined;
675
- value?: (_sentio_protos.BigInteger | {
676
- readonly $typeName?: undefined;
677
- negative?: boolean | undefined;
678
- data?: Uint8Array<ArrayBufferLike> | undefined;
679
- }) | undefined;
680
- exp?: number | undefined;
681
- }) | undefined;
682
- specifiedAt?: (_sentio_protos.Timestamp | {
683
- readonly $typeName?: undefined;
684
- seconds?: bigint | undefined;
685
- nanos?: number | undefined;
686
- }) | undefined;
687
- };
688
- } | undefined;
689
- })[] | undefined;
690
- }) | undefined;
691
- })[] | undefined;
692
- cursor?: string | undefined;
693
- pageSize?: number | undefined | undefined;
694
- };
695
- } | undefined;
696
- };
697
- } | {
698
- case: "result";
699
- value: _sentio_protos.ProcessResult | {
700
- readonly $typeName?: undefined;
701
- gauges?: (_sentio_protos.GaugeResult | {
702
- readonly $typeName?: undefined;
703
- metadata?: (_sentio_protos.RecordMetaData | {
704
- readonly $typeName?: undefined;
705
- address?: string | undefined;
706
- contractName?: string | undefined;
707
- blockNumber?: bigint | undefined;
708
- transactionHash?: string | undefined;
709
- chainId?: string | undefined;
710
- transactionIndex?: number | undefined;
711
- logIndex?: number | undefined;
712
- name?: string | undefined;
713
- labels?: {
714
- [key: string]: string;
715
- } | undefined;
716
- }) | undefined;
717
- metricValue?: (_sentio_protos.MetricValue | {
718
- readonly $typeName?: undefined;
719
- value?: {
720
- value: string;
721
- case: "bigDecimal";
722
- } | {
723
- value: number;
724
- case: "doubleValue";
725
- } | {
726
- case: undefined;
727
- value?: undefined;
728
- } | {
729
- case: "bigInteger";
730
- value: _sentio_protos.BigInteger | {
731
- readonly $typeName?: undefined;
732
- negative?: boolean | undefined;
733
- data?: Uint8Array<ArrayBufferLike> | undefined;
734
- };
735
- } | undefined;
736
- }) | undefined;
737
- runtimeInfo?: (_sentio_protos.RuntimeInfo | {
738
- readonly $typeName?: undefined;
739
- from?: HandlerType | undefined;
740
- }) | undefined;
741
- })[] | undefined;
742
- counters?: (_sentio_protos.CounterResult | {
743
- readonly $typeName?: undefined;
744
- metadata?: (_sentio_protos.RecordMetaData | {
745
- readonly $typeName?: undefined;
746
- address?: string | undefined;
747
- contractName?: string | undefined;
748
- blockNumber?: bigint | undefined;
749
- transactionHash?: string | undefined;
750
- chainId?: string | undefined;
751
- transactionIndex?: number | undefined;
752
- logIndex?: number | undefined;
753
- name?: string | undefined;
754
- labels?: {
755
- [key: string]: string;
756
- } | undefined;
757
- }) | undefined;
758
- metricValue?: (_sentio_protos.MetricValue | {
759
- readonly $typeName?: undefined;
760
- value?: {
761
- value: string;
762
- case: "bigDecimal";
763
- } | {
764
- value: number;
765
- case: "doubleValue";
766
- } | {
767
- case: undefined;
768
- value?: undefined;
769
- } | {
770
- case: "bigInteger";
771
- value: _sentio_protos.BigInteger | {
772
- readonly $typeName?: undefined;
773
- negative?: boolean | undefined;
774
- data?: Uint8Array<ArrayBufferLike> | undefined;
775
- };
776
- } | undefined;
777
- }) | undefined;
778
- add?: boolean | undefined;
779
- runtimeInfo?: (_sentio_protos.RuntimeInfo | {
780
- readonly $typeName?: undefined;
781
- from?: HandlerType | undefined;
782
- }) | undefined;
783
- })[] | undefined;
784
- events?: (_sentio_protos.EventTrackingResult | {
785
- readonly $typeName?: undefined;
786
- metadata?: (_sentio_protos.RecordMetaData | {
787
- readonly $typeName?: undefined;
788
- address?: string | undefined;
789
- contractName?: string | undefined;
790
- blockNumber?: bigint | undefined;
791
- transactionHash?: string | undefined;
792
- chainId?: string | undefined;
793
- transactionIndex?: number | undefined;
794
- logIndex?: number | undefined;
795
- name?: string | undefined;
796
- labels?: {
797
- [key: string]: string;
798
- } | undefined;
799
- }) | undefined;
800
- distinctEntityId?: string | undefined;
801
- attributes?: _bufbuild_protobuf.JsonObject | undefined;
802
- severity?: _sentio_protos.LogLevel | undefined;
803
- message?: string | undefined;
804
- runtimeInfo?: (_sentio_protos.RuntimeInfo | {
805
- readonly $typeName?: undefined;
806
- from?: HandlerType | undefined;
807
- }) | undefined;
808
- attributes2?: (_sentio_protos.RichStruct | {
809
- readonly $typeName?: undefined;
810
- fields?: {
811
- [key: string]: _sentio_protos.RichValue | {
812
- readonly $typeName?: undefined;
813
- value?: {
814
- value: _sentio_protos.RichValue_NullValue;
815
- case: "nullValue";
816
- } | {
817
- value: number;
818
- case: "intValue";
819
- } | {
820
- value: bigint;
821
- case: "int64Value";
822
- } | {
823
- value: number;
824
- case: "floatValue";
825
- } | {
826
- value: Uint8Array;
827
- case: "bytesValue";
828
- } | {
829
- value: boolean;
830
- case: "boolValue";
831
- } | {
832
- value: string;
833
- case: "stringValue";
834
- } | {
835
- case: undefined;
836
- value?: undefined;
837
- } | {
838
- case: "timestampValue";
839
- value: _sentio_protos.Timestamp | {
840
- readonly $typeName?: undefined;
841
- seconds?: bigint | undefined;
842
- nanos?: number | undefined;
843
- };
844
- } | {
845
- case: "bigintValue";
846
- value: _sentio_protos.BigInteger | {
847
- readonly $typeName?: undefined;
848
- negative?: boolean | undefined;
849
- data?: Uint8Array<ArrayBufferLike> | undefined;
850
- };
851
- } | {
852
- case: "bigdecimalValue";
853
- value: _sentio_protos.BigDecimalRichValue | {
854
- readonly $typeName?: undefined;
855
- value?: (_sentio_protos.BigInteger | {
856
- readonly $typeName?: undefined;
857
- negative?: boolean | undefined;
858
- data?: Uint8Array<ArrayBufferLike> | undefined;
859
- }) | undefined;
860
- exp?: number | undefined;
861
- };
862
- } | {
863
- case: "listValue";
864
- value: _sentio_protos.RichValueList | {
865
- readonly $typeName?: undefined;
866
- values?: (_sentio_protos.RichValue | /*elided*/ any)[] | undefined;
867
- };
868
- } | {
869
- case: "structValue";
870
- value: _sentio_protos.RichStruct | /*elided*/ any;
871
- } | {
872
- case: "tokenValue";
873
- value: _sentio_protos.TokenAmount | {
874
- readonly $typeName?: undefined;
875
- token?: (_sentio_protos.CoinID | {
876
- readonly $typeName?: undefined;
877
- id?: {
878
- value: string;
879
- case: "symbol";
880
- } | {
881
- case: undefined;
882
- value?: undefined;
883
- } | {
884
- case: "address";
885
- value: _sentio_protos.CoinID_AddressIdentifier | {
886
- readonly $typeName?: undefined;
887
- address?: string | undefined;
888
- chain?: string | undefined;
889
- };
890
- } | undefined;
891
- }) | undefined;
892
- amount?: (_sentio_protos.BigDecimalRichValue | {
893
- readonly $typeName?: undefined;
894
- value?: (_sentio_protos.BigInteger | {
895
- readonly $typeName?: undefined;
896
- negative?: boolean | undefined;
897
- data?: Uint8Array<ArrayBufferLike> | undefined;
898
- }) | undefined;
899
- exp?: number | undefined;
900
- }) | undefined;
901
- specifiedAt?: (_sentio_protos.Timestamp | {
902
- readonly $typeName?: undefined;
903
- seconds?: bigint | undefined;
904
- nanos?: number | undefined;
905
- }) | undefined;
906
- };
907
- } | undefined;
908
- };
909
- [key: number]: _sentio_protos.RichValue | {
910
- readonly $typeName?: undefined;
911
- value?: {
912
- value: _sentio_protos.RichValue_NullValue;
913
- case: "nullValue";
914
- } | {
915
- value: number;
916
- case: "intValue";
917
- } | {
918
- value: bigint;
919
- case: "int64Value";
920
- } | {
921
- value: number;
922
- case: "floatValue";
923
- } | {
924
- value: Uint8Array;
925
- case: "bytesValue";
926
- } | {
927
- value: boolean;
928
- case: "boolValue";
929
- } | {
930
- value: string;
931
- case: "stringValue";
932
- } | {
933
- case: undefined;
934
- value?: undefined;
935
- } | {
936
- case: "timestampValue";
937
- value: _sentio_protos.Timestamp | {
938
- readonly $typeName?: undefined;
939
- seconds?: bigint | undefined;
940
- nanos?: number | undefined;
941
- };
942
- } | {
943
- case: "bigintValue";
944
- value: _sentio_protos.BigInteger | {
945
- readonly $typeName?: undefined;
946
- negative?: boolean | undefined;
947
- data?: Uint8Array<ArrayBufferLike> | undefined;
948
- };
949
- } | {
950
- case: "bigdecimalValue";
951
- value: _sentio_protos.BigDecimalRichValue | {
952
- readonly $typeName?: undefined;
953
- value?: (_sentio_protos.BigInteger | {
954
- readonly $typeName?: undefined;
955
- negative?: boolean | undefined;
956
- data?: Uint8Array<ArrayBufferLike> | undefined;
957
- }) | undefined;
958
- exp?: number | undefined;
959
- };
960
- } | {
961
- case: "listValue";
962
- value: _sentio_protos.RichValueList | {
963
- readonly $typeName?: undefined;
964
- values?: (_sentio_protos.RichValue | /*elided*/ any)[] | undefined;
965
- };
966
- } | {
967
- case: "structValue";
968
- value: _sentio_protos.RichStruct | /*elided*/ any;
969
- } | {
970
- case: "tokenValue";
971
- value: _sentio_protos.TokenAmount | {
972
- readonly $typeName?: undefined;
973
- token?: (_sentio_protos.CoinID | {
974
- readonly $typeName?: undefined;
975
- id?: {
976
- value: string;
977
- case: "symbol";
978
- } | {
979
- case: undefined;
980
- value?: undefined;
981
- } | {
982
- case: "address";
983
- value: _sentio_protos.CoinID_AddressIdentifier | {
984
- readonly $typeName?: undefined;
985
- address?: string | undefined;
986
- chain?: string | undefined;
987
- };
988
- } | undefined;
989
- }) | undefined;
990
- amount?: (_sentio_protos.BigDecimalRichValue | {
991
- readonly $typeName?: undefined;
992
- value?: (_sentio_protos.BigInteger | {
993
- readonly $typeName?: undefined;
994
- negative?: boolean | undefined;
995
- data?: Uint8Array<ArrayBufferLike> | undefined;
996
- }) | undefined;
997
- exp?: number | undefined;
998
- }) | undefined;
999
- specifiedAt?: (_sentio_protos.Timestamp | {
1000
- readonly $typeName?: undefined;
1001
- seconds?: bigint | undefined;
1002
- nanos?: number | undefined;
1003
- }) | undefined;
1004
- };
1005
- } | undefined;
1006
- };
1007
- } | undefined;
1008
- }) | undefined;
1009
- })[] | undefined;
1010
- exports?: (_sentio_protos.ExportResult | {
1011
- readonly $typeName?: undefined;
1012
- metadata?: (_sentio_protos.RecordMetaData | {
1013
- readonly $typeName?: undefined;
1014
- address?: string | undefined;
1015
- contractName?: string | undefined;
1016
- blockNumber?: bigint | undefined;
1017
- transactionHash?: string | undefined;
1018
- chainId?: string | undefined;
1019
- transactionIndex?: number | undefined;
1020
- logIndex?: number | undefined;
1021
- name?: string | undefined;
1022
- labels?: {
1023
- [key: string]: string;
1024
- } | undefined;
1025
- }) | undefined;
1026
- payload?: string | undefined;
1027
- runtimeInfo?: (_sentio_protos.RuntimeInfo | {
1028
- readonly $typeName?: undefined;
1029
- from?: HandlerType | undefined;
1030
- }) | undefined;
1031
- })[] | undefined;
1032
- states?: (_sentio_protos.StateResult | {
1033
- readonly $typeName?: undefined;
1034
- configUpdated?: boolean | undefined;
1035
- error?: string | undefined | undefined;
1036
- }) | undefined;
1037
- timeseriesResult?: (_sentio_protos.TimeseriesResult | {
1038
- readonly $typeName?: undefined;
1039
- metadata?: (_sentio_protos.RecordMetaData | {
1040
- readonly $typeName?: undefined;
1041
- address?: string | undefined;
1042
- contractName?: string | undefined;
1043
- blockNumber?: bigint | undefined;
1044
- transactionHash?: string | undefined;
1045
- chainId?: string | undefined;
1046
- transactionIndex?: number | undefined;
1047
- logIndex?: number | undefined;
1048
- name?: string | undefined;
1049
- labels?: {
1050
- [key: string]: string;
1051
- } | undefined;
1052
- }) | undefined;
1053
- type?: _sentio_protos.TimeseriesResult_TimeseriesType | undefined;
1054
- data?: (_sentio_protos.RichStruct | {
1055
- readonly $typeName?: undefined;
1056
- fields?: {
1057
- [key: string]: _sentio_protos.RichValue | {
1058
- readonly $typeName?: undefined;
1059
- value?: {
1060
- value: _sentio_protos.RichValue_NullValue;
1061
- case: "nullValue";
1062
- } | {
1063
- value: number;
1064
- case: "intValue";
1065
- } | {
1066
- value: bigint;
1067
- case: "int64Value";
1068
- } | {
1069
- value: number;
1070
- case: "floatValue";
1071
- } | {
1072
- value: Uint8Array;
1073
- case: "bytesValue";
1074
- } | {
1075
- value: boolean;
1076
- case: "boolValue";
1077
- } | {
1078
- value: string;
1079
- case: "stringValue";
1080
- } | {
1081
- case: undefined;
1082
- value?: undefined;
1083
- } | {
1084
- case: "timestampValue";
1085
- value: _sentio_protos.Timestamp | {
1086
- readonly $typeName?: undefined;
1087
- seconds?: bigint | undefined;
1088
- nanos?: number | undefined;
1089
- };
1090
- } | {
1091
- case: "bigintValue";
1092
- value: _sentio_protos.BigInteger | {
1093
- readonly $typeName?: undefined;
1094
- negative?: boolean | undefined;
1095
- data?: Uint8Array<ArrayBufferLike> | undefined;
1096
- };
1097
- } | {
1098
- case: "bigdecimalValue";
1099
- value: _sentio_protos.BigDecimalRichValue | {
1100
- readonly $typeName?: undefined;
1101
- value?: (_sentio_protos.BigInteger | {
1102
- readonly $typeName?: undefined;
1103
- negative?: boolean | undefined;
1104
- data?: Uint8Array<ArrayBufferLike> | undefined;
1105
- }) | undefined;
1106
- exp?: number | undefined;
1107
- };
1108
- } | {
1109
- case: "listValue";
1110
- value: _sentio_protos.RichValueList | {
1111
- readonly $typeName?: undefined;
1112
- values?: (_sentio_protos.RichValue | /*elided*/ any)[] | undefined;
1113
- };
1114
- } | {
1115
- case: "structValue";
1116
- value: _sentio_protos.RichStruct | /*elided*/ any;
1117
- } | {
1118
- case: "tokenValue";
1119
- value: _sentio_protos.TokenAmount | {
1120
- readonly $typeName?: undefined;
1121
- token?: (_sentio_protos.CoinID | {
1122
- readonly $typeName?: undefined;
1123
- id?: {
1124
- value: string;
1125
- case: "symbol";
1126
- } | {
1127
- case: undefined;
1128
- value?: undefined;
1129
- } | {
1130
- case: "address";
1131
- value: _sentio_protos.CoinID_AddressIdentifier | {
1132
- readonly $typeName?: undefined;
1133
- address?: string | undefined;
1134
- chain?: string | undefined;
1135
- };
1136
- } | undefined;
1137
- }) | undefined;
1138
- amount?: (_sentio_protos.BigDecimalRichValue | {
1139
- readonly $typeName?: undefined;
1140
- value?: (_sentio_protos.BigInteger | {
1141
- readonly $typeName?: undefined;
1142
- negative?: boolean | undefined;
1143
- data?: Uint8Array<ArrayBufferLike> | undefined;
1144
- }) | undefined;
1145
- exp?: number | undefined;
1146
- }) | undefined;
1147
- specifiedAt?: (_sentio_protos.Timestamp | {
1148
- readonly $typeName?: undefined;
1149
- seconds?: bigint | undefined;
1150
- nanos?: number | undefined;
1151
- }) | undefined;
1152
- };
1153
- } | undefined;
1154
- };
1155
- [key: number]: _sentio_protos.RichValue | {
1156
- readonly $typeName?: undefined;
1157
- value?: {
1158
- value: _sentio_protos.RichValue_NullValue;
1159
- case: "nullValue";
1160
- } | {
1161
- value: number;
1162
- case: "intValue";
1163
- } | {
1164
- value: bigint;
1165
- case: "int64Value";
1166
- } | {
1167
- value: number;
1168
- case: "floatValue";
1169
- } | {
1170
- value: Uint8Array;
1171
- case: "bytesValue";
1172
- } | {
1173
- value: boolean;
1174
- case: "boolValue";
1175
- } | {
1176
- value: string;
1177
- case: "stringValue";
1178
- } | {
1179
- case: undefined;
1180
- value?: undefined;
1181
- } | {
1182
- case: "timestampValue";
1183
- value: _sentio_protos.Timestamp | {
1184
- readonly $typeName?: undefined;
1185
- seconds?: bigint | undefined;
1186
- nanos?: number | undefined;
1187
- };
1188
- } | {
1189
- case: "bigintValue";
1190
- value: _sentio_protos.BigInteger | {
1191
- readonly $typeName?: undefined;
1192
- negative?: boolean | undefined;
1193
- data?: Uint8Array<ArrayBufferLike> | undefined;
1194
- };
1195
- } | {
1196
- case: "bigdecimalValue";
1197
- value: _sentio_protos.BigDecimalRichValue | {
1198
- readonly $typeName?: undefined;
1199
- value?: (_sentio_protos.BigInteger | {
1200
- readonly $typeName?: undefined;
1201
- negative?: boolean | undefined;
1202
- data?: Uint8Array<ArrayBufferLike> | undefined;
1203
- }) | undefined;
1204
- exp?: number | undefined;
1205
- };
1206
- } | {
1207
- case: "listValue";
1208
- value: _sentio_protos.RichValueList | {
1209
- readonly $typeName?: undefined;
1210
- values?: (_sentio_protos.RichValue | /*elided*/ any)[] | undefined;
1211
- };
1212
- } | {
1213
- case: "structValue";
1214
- value: _sentio_protos.RichStruct | /*elided*/ any;
1215
- } | {
1216
- case: "tokenValue";
1217
- value: _sentio_protos.TokenAmount | {
1218
- readonly $typeName?: undefined;
1219
- token?: (_sentio_protos.CoinID | {
1220
- readonly $typeName?: undefined;
1221
- id?: {
1222
- value: string;
1223
- case: "symbol";
1224
- } | {
1225
- case: undefined;
1226
- value?: undefined;
1227
- } | {
1228
- case: "address";
1229
- value: _sentio_protos.CoinID_AddressIdentifier | {
1230
- readonly $typeName?: undefined;
1231
- address?: string | undefined;
1232
- chain?: string | undefined;
1233
- };
1234
- } | undefined;
1235
- }) | undefined;
1236
- amount?: (_sentio_protos.BigDecimalRichValue | {
1237
- readonly $typeName?: undefined;
1238
- value?: (_sentio_protos.BigInteger | {
1239
- readonly $typeName?: undefined;
1240
- negative?: boolean | undefined;
1241
- data?: Uint8Array<ArrayBufferLike> | undefined;
1242
- }) | undefined;
1243
- exp?: number | undefined;
1244
- }) | undefined;
1245
- specifiedAt?: (_sentio_protos.Timestamp | {
1246
- readonly $typeName?: undefined;
1247
- seconds?: bigint | undefined;
1248
- nanos?: number | undefined;
1249
- }) | undefined;
1250
- };
1251
- } | undefined;
1252
- };
1253
- } | undefined;
1254
- }) | undefined;
1255
- runtimeInfo?: (_sentio_protos.RuntimeInfo | {
1256
- readonly $typeName?: undefined;
1257
- from?: HandlerType | undefined;
1258
- }) | undefined;
1259
- })[] | undefined;
1260
- };
1261
- } | {
1262
- case: "partitions";
1263
- value: _sentio_protos.ProcessStreamResponse_Partitions | {
1264
- readonly $typeName?: undefined;
1265
- partitions?: {
1266
- [key: string]: _sentio_protos.ProcessStreamResponse_Partitions_Partition | {
1267
- readonly $typeName?: undefined;
1268
- value?: {
1269
- value: string;
1270
- case: "userValue";
1271
- } | {
1272
- value: _sentio_protos.ProcessStreamResponse_Partitions_Partition_SysValue;
1273
- case: "sysValue";
1274
- } | {
1275
- case: undefined;
1276
- value?: undefined;
1277
- } | undefined;
1278
- };
1279
- [key: number]: _sentio_protos.ProcessStreamResponse_Partitions_Partition | {
1280
- readonly $typeName?: undefined;
1281
- value?: {
1282
- value: string;
1283
- case: "userValue";
1284
- } | {
1285
- value: _sentio_protos.ProcessStreamResponse_Partitions_Partition_SysValue;
1286
- case: "sysValue";
1287
- } | {
1288
- case: undefined;
1289
- value?: undefined;
1290
- } | undefined;
1291
- };
1292
- } | undefined;
1293
- };
1294
- } | {
1295
- case: "tsRequest";
1296
- value: _sentio_protos.TSRequest | {
1297
- readonly $typeName?: undefined;
1298
- data?: (_sentio_protos.TimeseriesResult | {
1299
- readonly $typeName?: undefined;
1300
- metadata?: (_sentio_protos.RecordMetaData | {
1301
- readonly $typeName?: undefined;
1302
- address?: string | undefined;
1303
- contractName?: string | undefined;
1304
- blockNumber?: bigint | undefined;
1305
- transactionHash?: string | undefined;
1306
- chainId?: string | undefined;
1307
- transactionIndex?: number | undefined;
1308
- logIndex?: number | undefined;
1309
- name?: string | undefined;
1310
- labels?: {
1311
- [key: string]: string;
1312
- } | undefined;
1313
- }) | undefined;
1314
- type?: _sentio_protos.TimeseriesResult_TimeseriesType | undefined;
1315
- data?: (_sentio_protos.RichStruct | {
1316
- readonly $typeName?: undefined;
1317
- fields?: {
1318
- [key: string]: _sentio_protos.RichValue | {
1319
- readonly $typeName?: undefined;
1320
- value?: {
1321
- value: _sentio_protos.RichValue_NullValue;
1322
- case: "nullValue";
1323
- } | {
1324
- value: number;
1325
- case: "intValue";
1326
- } | {
1327
- value: bigint;
1328
- case: "int64Value";
1329
- } | {
1330
- value: number;
1331
- case: "floatValue";
1332
- } | {
1333
- value: Uint8Array;
1334
- case: "bytesValue";
1335
- } | {
1336
- value: boolean;
1337
- case: "boolValue";
1338
- } | {
1339
- value: string;
1340
- case: "stringValue";
1341
- } | {
1342
- case: undefined;
1343
- value?: undefined;
1344
- } | {
1345
- case: "timestampValue";
1346
- value: _sentio_protos.Timestamp | {
1347
- readonly $typeName?: undefined;
1348
- seconds?: bigint | undefined;
1349
- nanos?: number | undefined;
1350
- };
1351
- } | {
1352
- case: "bigintValue";
1353
- value: _sentio_protos.BigInteger | {
1354
- readonly $typeName?: undefined;
1355
- negative?: boolean | undefined;
1356
- data?: Uint8Array<ArrayBufferLike> | undefined;
1357
- };
1358
- } | {
1359
- case: "bigdecimalValue";
1360
- value: _sentio_protos.BigDecimalRichValue | {
1361
- readonly $typeName?: undefined;
1362
- value?: (_sentio_protos.BigInteger | {
1363
- readonly $typeName?: undefined;
1364
- negative?: boolean | undefined;
1365
- data?: Uint8Array<ArrayBufferLike> | undefined;
1366
- }) | undefined;
1367
- exp?: number | undefined;
1368
- };
1369
- } | {
1370
- case: "listValue";
1371
- value: _sentio_protos.RichValueList | {
1372
- readonly $typeName?: undefined;
1373
- values?: (_sentio_protos.RichValue | /*elided*/ any)[] | undefined;
1374
- };
1375
- } | {
1376
- case: "structValue";
1377
- value: _sentio_protos.RichStruct | /*elided*/ any;
1378
- } | {
1379
- case: "tokenValue";
1380
- value: _sentio_protos.TokenAmount | {
1381
- readonly $typeName?: undefined;
1382
- token?: (_sentio_protos.CoinID | {
1383
- readonly $typeName?: undefined;
1384
- id?: {
1385
- value: string;
1386
- case: "symbol";
1387
- } | {
1388
- case: undefined;
1389
- value?: undefined;
1390
- } | {
1391
- case: "address";
1392
- value: _sentio_protos.CoinID_AddressIdentifier | {
1393
- readonly $typeName?: undefined;
1394
- address?: string | undefined;
1395
- chain?: string | undefined;
1396
- };
1397
- } | undefined;
1398
- }) | undefined;
1399
- amount?: (_sentio_protos.BigDecimalRichValue | {
1400
- readonly $typeName?: undefined;
1401
- value?: (_sentio_protos.BigInteger | {
1402
- readonly $typeName?: undefined;
1403
- negative?: boolean | undefined;
1404
- data?: Uint8Array<ArrayBufferLike> | undefined;
1405
- }) | undefined;
1406
- exp?: number | undefined;
1407
- }) | undefined;
1408
- specifiedAt?: (_sentio_protos.Timestamp | {
1409
- readonly $typeName?: undefined;
1410
- seconds?: bigint | undefined;
1411
- nanos?: number | undefined;
1412
- }) | undefined;
1413
- };
1414
- } | undefined;
1415
- };
1416
- [key: number]: _sentio_protos.RichValue | {
1417
- readonly $typeName?: undefined;
1418
- value?: {
1419
- value: _sentio_protos.RichValue_NullValue;
1420
- case: "nullValue";
1421
- } | {
1422
- value: number;
1423
- case: "intValue";
1424
- } | {
1425
- value: bigint;
1426
- case: "int64Value";
1427
- } | {
1428
- value: number;
1429
- case: "floatValue";
1430
- } | {
1431
- value: Uint8Array;
1432
- case: "bytesValue";
1433
- } | {
1434
- value: boolean;
1435
- case: "boolValue";
1436
- } | {
1437
- value: string;
1438
- case: "stringValue";
1439
- } | {
1440
- case: undefined;
1441
- value?: undefined;
1442
- } | {
1443
- case: "timestampValue";
1444
- value: _sentio_protos.Timestamp | {
1445
- readonly $typeName?: undefined;
1446
- seconds?: bigint | undefined;
1447
- nanos?: number | undefined;
1448
- };
1449
- } | {
1450
- case: "bigintValue";
1451
- value: _sentio_protos.BigInteger | {
1452
- readonly $typeName?: undefined;
1453
- negative?: boolean | undefined;
1454
- data?: Uint8Array<ArrayBufferLike> | undefined;
1455
- };
1456
- } | {
1457
- case: "bigdecimalValue";
1458
- value: _sentio_protos.BigDecimalRichValue | {
1459
- readonly $typeName?: undefined;
1460
- value?: (_sentio_protos.BigInteger | {
1461
- readonly $typeName?: undefined;
1462
- negative?: boolean | undefined;
1463
- data?: Uint8Array<ArrayBufferLike> | undefined;
1464
- }) | undefined;
1465
- exp?: number | undefined;
1466
- };
1467
- } | {
1468
- case: "listValue";
1469
- value: _sentio_protos.RichValueList | {
1470
- readonly $typeName?: undefined;
1471
- values?: (_sentio_protos.RichValue | /*elided*/ any)[] | undefined;
1472
- };
1473
- } | {
1474
- case: "structValue";
1475
- value: _sentio_protos.RichStruct | /*elided*/ any;
1476
- } | {
1477
- case: "tokenValue";
1478
- value: _sentio_protos.TokenAmount | {
1479
- readonly $typeName?: undefined;
1480
- token?: (_sentio_protos.CoinID | {
1481
- readonly $typeName?: undefined;
1482
- id?: {
1483
- value: string;
1484
- case: "symbol";
1485
- } | {
1486
- case: undefined;
1487
- value?: undefined;
1488
- } | {
1489
- case: "address";
1490
- value: _sentio_protos.CoinID_AddressIdentifier | {
1491
- readonly $typeName?: undefined;
1492
- address?: string | undefined;
1493
- chain?: string | undefined;
1494
- };
1495
- } | undefined;
1496
- }) | undefined;
1497
- amount?: (_sentio_protos.BigDecimalRichValue | {
1498
- readonly $typeName?: undefined;
1499
- value?: (_sentio_protos.BigInteger | {
1500
- readonly $typeName?: undefined;
1501
- negative?: boolean | undefined;
1502
- data?: Uint8Array<ArrayBufferLike> | undefined;
1503
- }) | undefined;
1504
- exp?: number | undefined;
1505
- }) | undefined;
1506
- specifiedAt?: (_sentio_protos.Timestamp | {
1507
- readonly $typeName?: undefined;
1508
- seconds?: bigint | undefined;
1509
- nanos?: number | undefined;
1510
- }) | undefined;
1511
- };
1512
- } | undefined;
1513
- };
1514
- } | undefined;
1515
- }) | undefined;
1516
- runtimeInfo?: (_sentio_protos.RuntimeInfo | {
1517
- readonly $typeName?: undefined;
1518
- from?: HandlerType | undefined;
1519
- }) | undefined;
1520
- })[] | undefined;
1521
- };
1522
- } | {
1523
- case: "tplRequest";
1524
- value: _sentio_protos.TPLRequest | {
1525
- readonly $typeName?: undefined;
1526
- templates?: (_sentio_protos.TemplateInstance | {
1527
- readonly $typeName?: undefined;
1528
- contract?: (_sentio_protos.ContractInfo | {
1529
- readonly $typeName?: undefined;
1530
- name?: string | undefined;
1531
- chainId?: string | undefined;
1532
- address?: string | undefined;
1533
- abi?: string | undefined;
1534
- }) | undefined;
1535
- startBlock?: bigint | undefined;
1536
- endBlock?: bigint | undefined;
1537
- templateId?: number | undefined;
1538
- baseLabels?: _bufbuild_protobuf.JsonObject | undefined;
1539
- })[] | undefined;
1540
- remove?: boolean | undefined;
1541
- };
1542
- } | undefined;
1543
- }, void, any>;
1544
- protected handleRequests(requests: AsyncIterable<ProcessStreamRequest>, subject: Subject<ProcessStreamResponseV3Init>): Promise<void>;
1545
- private contexts;
1546
- handleRequest(request: ProcessStreamRequest, lastBinding: DataBinding | undefined, subject: Subject<ProcessStreamResponseV3Init>): Promise<void>;
1547
- private startProcess;
1548
- updateTemplates(request: UpdateTemplatesRequest, context: HandlerContext): Promise<_bufbuild_protobuf.Message<"google.protobuf.Empty">>;
1549
- }
1550
-
1551
- /**
1552
- * Configuration for the in-memory cache feature.
1553
- *
1554
- * The cache provides a key-value store that persists across handler invocations,
1555
- * allowing processors to store and retrieve computed values efficiently.
1556
- */
1557
- interface CacheConfig {
1558
- /**
1559
- * Whether the cache feature is enabled.
1560
- * When enabled, a MemoryCacheItem entity will be automatically added to the schema.
1561
- * @default true
1562
- */
1563
- enabled: boolean;
1564
- /**
1565
- * Maximum size of the cache in megabytes.
1566
- * Controls the memory limit for cached items.
1567
- * @default 100
1568
- */
1569
- size?: number;
1570
- }
1571
- /**
1572
- * Global configuration for the Sentio SDK runtime.
1573
- *
1574
- * This configuration controls execution behavior and optional features like caching.
1575
- * Settings here apply globally to all processors in the project.
1576
- */
1577
- interface GlobalConfig {
1578
- /**
1579
- * Execution configuration controlling how handlers are processed.
1580
- * Includes settings for sequential vs parallel execution, block time handling, etc.
1581
- */
1582
- execution: MessageInitShape<typeof ExecutionConfigSchema>;
1583
- /**
1584
- * Optional cache configuration for enabling in-memory key-value storage.
1585
- * When enabled, processors can use `ctx.cache` to store and retrieve values.
1586
- *
1587
- * @example
1588
- * ```typescript
1589
- * // In your processor handler:
1590
- * const cachedValue = await ctx.cache.get<number>('myKey')
1591
- * if (!cachedValue) {
1592
- * await ctx.cache.set('myKey', computedValue)
1593
- * }
1594
- * ```
1595
- */
1596
- cache?: CacheConfig;
1597
- }
1598
- declare const GLOBAL_CONFIG: GlobalConfig;
1599
-
1600
- declare class C {
1601
- private name;
1602
- private _counter;
1603
- private value;
1604
- constructor(name: string);
1605
- get counter(): Counter<Attributes>;
1606
- add(value: number, attributes?: Attributes): void;
1607
- get(): number;
1608
- }
1609
- declare class G {
1610
- private name;
1611
- private _gauge;
1612
- private value;
1613
- constructor(name: string);
1614
- get gauge(): Gauge<Attributes>;
1615
- record(value: number, attributes?: Attributes): void;
1616
- get(): number;
1617
- }
1618
- declare class H {
1619
- private name;
1620
- private _histogram;
1621
- private value;
1622
- constructor(name: string);
1623
- get histogram(): Histogram<Attributes>;
1624
- record(value: number, attributes?: Attributes): void;
1625
- get(): number;
1626
- }
1627
- declare const dbMetrics: {
1628
- send_counts: {
1629
- get: C;
1630
- upsert: C;
1631
- list: C;
1632
- delete: C;
1633
- update: C;
1634
- };
1635
- recv_counts: {
1636
- get: C;
1637
- upsert: C;
1638
- list: C;
1639
- delete: C;
1640
- update: C;
1641
- };
1642
- request_times: {
1643
- get: C;
1644
- upsert: C;
1645
- list: C;
1646
- delete: C;
1647
- update: C;
1648
- };
1649
- request_errors: {
1650
- get: C;
1651
- upsert: C;
1652
- list: C;
1653
- delete: C;
1654
- update: C;
1655
- };
1656
- batched_total_count: C;
1657
- batched_request_count: C;
1658
- unsolved_requests: G;
1659
- stats(): {
1660
- send_counts: {
1661
- get: number;
1662
- upsert: number;
1663
- list: number;
1664
- delete: number;
1665
- };
1666
- recv_counts: {
1667
- get: number;
1668
- upsert: number;
1669
- list: number;
1670
- delete: number;
1671
- };
1672
- request_times: {
1673
- get: number;
1674
- upsert: number;
1675
- list: number;
1676
- delete: number;
1677
- };
1678
- request_errors: {
1679
- get: number;
1680
- upsert: number;
1681
- list: number;
1682
- delete: number;
1683
- };
1684
- batched_total_count: number;
1685
- batched_request_count: number;
1686
- unsolved_requests: number;
1687
- average_request_time: {
1688
- get: number;
1689
- upsert: number;
1690
- list: number;
1691
- };
1692
- };
1693
- };
1694
- declare const providerMetrics: {
1695
- hit_count: C;
1696
- miss_count: C;
1697
- queue_size: G;
1698
- total_duration: C;
1699
- total_queued: C;
1700
- stats(): {
1701
- hit_count: number;
1702
- miss_count: number;
1703
- queue_size: number;
1704
- total_duration: number;
1705
- total_queued: number;
1706
- average_queue_time: number;
1707
- average_duration: number;
1708
- };
1709
- };
1710
- declare const processMetrics: {
1711
- process_binding_count: C;
1712
- process_binding_time: C;
1713
- process_binding_error: C;
1714
- process_ethcall_count: C;
1715
- process_eventemit_count: C;
1716
- process_metricrecord_count: C;
1717
- process_pricecall_count: C;
1718
- process_template_count: C;
1719
- process_handler_duration: G;
1720
- processor_handler_duration: H;
1721
- processor_rpc_duration: H;
1722
- processor_rpc_queue_duration: H;
1723
- processor_template_instance_count: C;
1724
- processor_worker_run_time: C;
1725
- processor_worker_wait_time: C;
1726
- processor_worker_queue_size: G;
1727
- processor_worker_completed: C;
1728
- stats(): {
1729
- process_binding_count: number;
1730
- process_binding_time: number;
1731
- process_binding_error: number;
1732
- process_ethcall_count: number;
1733
- process_eventemit_count: number;
1734
- process_metricrecord_count: number;
1735
- process_pricecall_count: number;
1736
- process_template_count: number;
1737
- process_handler_duration: number;
1738
- processor_handler_duration: number;
1739
- processor_rpc_duration: number;
1740
- processor_rpc_queue_duration: number;
1741
- processor_template_instance_count: number;
1742
- processor_worker_run_time: number;
1743
- processor_worker_wait_time: number;
1744
- processor_worker_queue_size: number;
1745
- processor_worker_completed: number;
1746
- };
1747
- };
1748
- declare const metricsStorage: AsyncLocalStorage<string>;
1749
-
1750
- export { type ChainConfig, type ChainRpc, Endpoints, GLOBAL_CONFIG, type GlobalConfig, ListStateStorage, MapStateStorage, ProcessorServiceImplV3, type RpcConfig, type Semver, State, StateStorage, USER_PROCESSOR, compareSemver, configureEndpoints, dbMetrics, errorString, locatePackageJson, makeEthCallKey, mergeProcessResults, mergeProcessResultsInPlace, metricsStorage, parseSemver, processMetrics, providerMetrics, recordRuntimeInfo };