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

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 (39) hide show
  1. package/lib/chunk-67PFSF7W.js +15174 -0
  2. package/lib/chunk-67PFSF7W.js.map +1 -0
  3. package/lib/chunk-PM3ZD75E.js +4988 -0
  4. package/lib/chunk-PM3ZD75E.js.map +1 -0
  5. package/lib/index.d.ts +1423 -581
  6. package/lib/index.js +4 -10
  7. package/lib/index.js.map +1 -1
  8. package/lib/plugin-D-rx1WCp.d.ts +108 -0
  9. package/lib/processor-runner.js +25516 -525
  10. package/lib/processor-runner.js.map +1 -1
  11. package/package.json +1 -1
  12. package/src/action-server.ts +3 -2
  13. package/src/chain-config.ts +6 -1
  14. package/src/db-context.ts +58 -45
  15. package/src/endpoints.ts +22 -4
  16. package/src/full-service.ts +18 -400
  17. package/src/gen/google/type/money_pb.ts +41 -0
  18. package/src/gen/processor/protos/processor_pb.ts +3855 -0
  19. package/src/gen/service/common/protos/common_pb.ts +4456 -0
  20. package/src/global-config.ts +3 -2
  21. package/src/index.ts +1 -2
  22. package/src/plugin.ts +26 -16
  23. package/src/processor-runner.ts +25 -35
  24. package/src/service-v3.ts +57 -59
  25. package/src/utils.ts +29 -12
  26. package/lib/chunk-GUQLAUIA.js +0 -67172
  27. package/lib/chunk-GUQLAUIA.js.map +0 -1
  28. package/lib/chunk-KOMGWSWU.js +0 -25311
  29. package/lib/chunk-KOMGWSWU.js.map +0 -1
  30. package/lib/processor-StqZovMW.d.ts +0 -554
  31. package/src/gen/google/protobuf/empty.ts +0 -71
  32. package/src/gen/google/protobuf/struct.ts +0 -561
  33. package/src/gen/google/protobuf/timestamp.ts +0 -113
  34. package/src/gen/google/type/money.ts +0 -134
  35. package/src/gen/processor/protos/processor.ts +0 -15354
  36. package/src/gen/service/common/protos/common.ts +0 -16525
  37. package/src/multicall.ts +0 -1605
  38. package/src/provider.ts +0 -195
  39. package/src/service.ts +0 -549
package/lib/index.d.ts CHANGED
@@ -1,17 +1,14 @@
1
- import { S as StoreContext, E as ExecutionConfig } from './processor-StqZovMW.js';
2
- export { A as AbstractStoreContext, d as DataBindingContext, c as IDataBindingContext, I as IStoreContext, P as Plugin, b as PluginManager, t as timeoutError } from './processor-StqZovMW.js';
1
+ export { A as AbstractStoreContext, D as DataBindingContext, b as IDataBindingContext, I as IStoreContext, P as Plugin, a as PluginManager, S as StoreContext, t as timeoutError } from './plugin-D-rx1WCp.js';
3
2
  import * as _sentio_protos from '@sentio/protos';
4
- import { ProcessResult, EthCallParam, ProcessorServiceImplementation, ProcessConfigRequest, ProcessConfigResponse, StartRequest, Empty, ProcessBindingsRequest, ProcessBindingResponse, DataBinding, PreparedData, PreprocessResult, ProcessStreamRequest, HandlerType, PreprocessStreamRequest, DeepPartial, PreprocessStreamResponse, ProcessStreamResponse } from '@sentio/protos';
3
+ import { ProcessResult, HandlerType, EthCallParam, ProcessorV3, StartRequest, ProcessConfigRequest, ProcessStreamRequest, DataBinding, UpdateTemplatesRequest, ProcessStreamResponseV3Schema, ExecutionConfigSchema } from '@sentio/protos';
5
4
  import { Required } from 'utility-types';
6
- import { CallContext } from 'nice-grpc';
5
+ import * as _bufbuild_protobuf from '@bufbuild/protobuf';
6
+ import { MessageInitShape } from '@bufbuild/protobuf';
7
+ import { ServiceImpl, HandlerContext } from '@connectrpc/connect';
7
8
  import { Subject } from 'rxjs';
8
9
  import { Command } from '@commander-js/extra-typings';
9
- import { JsonRpcProvider, Network } from 'ethers';
10
- import PQueue from 'p-queue';
11
- import { EthChainId } from '@sentio/chain';
12
10
  import { AsyncLocalStorage } from 'node:async_hooks';
13
11
  import { Counter, Attributes, Gauge, Histogram } from '@opentelemetry/api';
14
- import '@bufbuild/protobuf/wire';
15
12
 
16
13
  declare class State {
17
14
  stateMap: Map<string, any>;
@@ -39,6 +36,7 @@ declare abstract class ListStateStorage<T> extends StateStorage<T[]> {
39
36
 
40
37
  declare function mergeProcessResults(results: ProcessResult[]): Required<ProcessResult, 'states'>;
41
38
  declare function mergeProcessResultsInPlace(res: ProcessResult, results: ProcessResult[]): Required<ProcessResult, 'states'>;
39
+ declare function recordRuntimeInfo(results: ProcessResult, handlerType: HandlerType): void;
42
40
  declare function errorString(e: unknown): string;
43
41
  declare const USER_PROCESSOR = "user_processor";
44
42
  declare function makeEthCallKey(param: EthCallParam): string;
@@ -54,19 +52,34 @@ declare function parseSemver(version: string): Semver;
54
52
  declare function compareSemver(a: Semver, b: Semver): number;
55
53
  declare function locatePackageJson(pkgId: string): any;
56
54
 
55
+ /**
56
+ * Resolved RPC endpoint for a chain: the base URL plus optional gRPC metadata
57
+ * (key-value pairs) attached to every request, e.g. the `authority` routing key
58
+ * for the Sui gRPC client talking to the Sentio rpc-node.
59
+ */
60
+ interface ChainRpc {
61
+ url: string;
62
+ meta?: Record<string, string>;
63
+ }
57
64
  declare class Endpoints {
58
65
  static INSTANCE: Endpoints;
59
66
  concurrency: number;
60
67
  priceFeedAPI: string;
61
- chainServer: Map<string, string>;
68
+ chainRpc: Map<string, ChainRpc>;
62
69
  batchCount: number;
70
+ /** Convenience accessor for callers that only need the endpoint URL. */
71
+ getChainRpcUrl(chainId: string): string | undefined;
63
72
  }
64
73
  declare function configureEndpoints(options: any): void;
65
74
 
75
+ interface RpcConfig {
76
+ Url: string;
77
+ Meta?: Record<string, string>;
78
+ }
66
79
  interface ChainConfig {
67
80
  ChainID: string;
68
81
  Https?: string[];
69
- ChainServer?: string;
82
+ Rpc?: RpcConfig;
70
83
  }
71
84
 
72
85
  declare const program: Command<[string], {
@@ -88,613 +101,1452 @@ type ProcessorRuntimeOptions = ReturnType<typeof program.opts> & {
88
101
  target: string;
89
102
  };
90
103
 
91
- declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
92
- private started;
93
- unhandled: Error;
104
+ type ProcessStreamResponseV3Init = MessageInitShape<typeof ProcessStreamResponseV3Schema>;
105
+ declare class ProcessorServiceImplV3 implements ServiceImpl<typeof ProcessorV3> {
106
+ readonly enablePartition: boolean;
94
107
  private readonly loader;
95
108
  private readonly shutdownHandler?;
96
- private readonly enablePreprocess;
97
- private preparedData;
98
- readonly enablePartition: boolean;
109
+ private started;
99
110
  constructor(loader: () => Promise<any>, options?: ProcessorRuntimeOptions, shutdownHandler?: () => void);
100
- getConfig(request: ProcessConfigRequest, context: CallContext): Promise<ProcessConfigResponse>;
101
- start(request: StartRequest, context: CallContext): Promise<Empty>;
102
- stop(request: Empty, context: CallContext): Promise<Empty>;
103
- processBindings(request: ProcessBindingsRequest, options?: CallContext): Promise<ProcessBindingResponse>;
104
- preprocessBindings(bindings: DataBinding[], preprocessStore: {
105
- [k: string]: any;
106
- }, dbContext?: StoreContext, options?: CallContext): Promise<PreparedData>;
107
- preprocessBinding(request: DataBinding, preprocessStore: {
108
- [k: string]: any;
109
- }, dbContext?: StoreContext, options?: CallContext): Promise<PreprocessResult>;
110
- processBinding(request: DataBinding, preparedData: PreparedData | undefined, options?: CallContext): Promise<ProcessResult>;
111
- processBindingsStream(requests: AsyncIterable<ProcessStreamRequest>, context: CallContext): AsyncGenerator<{
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;
112
115
  processId?: number | undefined;
113
- dbRequest?: {
114
- opId?: bigint | undefined;
115
- get?: {
116
- entity?: string | undefined;
117
- id?: string | undefined;
118
- } | undefined;
119
- upsert?: {
120
- entity?: string[] | undefined;
121
- id?: string[] | undefined;
122
- data?: {
123
- [x: string]: any;
124
- }[] | undefined;
125
- entityData?: {
126
- fields?: {
127
- [x: string]: {
128
- nullValue?: _sentio_protos.RichValue_NullValue | undefined;
129
- intValue?: number | undefined | undefined;
130
- int64Value?: bigint | undefined | undefined;
131
- floatValue?: number | undefined | undefined;
132
- bytesValue?: Uint8Array<ArrayBufferLike> | undefined;
133
- boolValue?: boolean | undefined | undefined;
134
- stringValue?: string | undefined | undefined;
135
- timestampValue?: Date | undefined;
136
- bigintValue?: {
137
- negative?: boolean | undefined;
138
- data?: Uint8Array<ArrayBufferLike> | undefined;
139
- } | undefined;
140
- bigdecimalValue?: {
141
- value?: {
142
- negative?: boolean | undefined;
143
- data?: Uint8Array<ArrayBufferLike> | undefined;
144
- } | undefined;
145
- exp?: number | undefined;
146
- } | undefined;
147
- listValue?: {
148
- values?: /*elided*/ any[] | undefined;
149
- } | undefined;
150
- structValue?: /*elided*/ any | undefined;
151
- tokenValue?: {
152
- token?: {
153
- symbol?: string | undefined | undefined;
154
- address?: {
155
- address?: string | undefined;
156
- chain?: string | undefined;
157
- } | undefined;
158
- } | undefined;
159
- amount?: {
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;
160
146
  value?: {
161
- negative?: boolean | undefined;
162
- data?: Uint8Array<ArrayBufferLike> | undefined;
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
+ };
163
240
  } | undefined;
164
- exp?: number | undefined;
165
- } | undefined;
166
- specifiedAt?: Date | undefined;
167
- } | undefined;
168
- } | undefined;
169
- } | undefined;
170
- }[] | undefined;
171
- } | undefined;
172
- update?: {
173
- entity?: string[] | undefined;
174
- id?: string[] | undefined;
175
- entityData?: {
176
- fields?: {
177
- [x: string]: {
178
- value?: {
179
- nullValue?: _sentio_protos.RichValue_NullValue | undefined;
180
- intValue?: number | undefined | undefined;
181
- int64Value?: bigint | undefined | undefined;
182
- floatValue?: number | undefined | undefined;
183
- bytesValue?: Uint8Array<ArrayBufferLike> | undefined;
184
- boolValue?: boolean | undefined | undefined;
185
- stringValue?: string | undefined | undefined;
186
- timestampValue?: Date | undefined;
187
- bigintValue?: {
188
- negative?: boolean | undefined;
189
- data?: Uint8Array<ArrayBufferLike> | undefined;
190
- } | undefined;
191
- bigdecimalValue?: {
241
+ };
242
+ [key: number]: _sentio_protos.RichValue | {
243
+ readonly $typeName?: undefined;
192
244
  value?: {
193
- negative?: boolean | undefined;
194
- data?: Uint8Array<ArrayBufferLike> | undefined;
195
- } | undefined;
196
- exp?: number | undefined;
197
- } | undefined;
198
- listValue?: {
199
- values?: /*elided*/ any[] | undefined;
200
- } | undefined;
201
- structValue?: {
202
- fields?: {
203
- [x: string]: /*elided*/ any | undefined;
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
+ };
204
338
  } | undefined;
205
- } | undefined;
206
- tokenValue?: {
207
- token?: {
208
- symbol?: string | undefined | undefined;
209
- address?: {
210
- address?: string | undefined;
211
- chain?: string | 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
+ };
212
456
  } | undefined;
213
- } | undefined;
214
- amount?: {
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;
215
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;
216
626
  negative?: boolean | undefined;
217
627
  data?: Uint8Array<ArrayBufferLike> | undefined;
218
- } | undefined;
219
- exp?: number | 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
+ };
220
688
  } | undefined;
221
- specifiedAt?: Date | undefined;
222
- } | undefined;
223
- } | undefined;
224
- op?: _sentio_protos.EntityUpdateData_Operator | 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;
225
715
  } | undefined;
226
- } | undefined;
227
- }[] | undefined;
228
- } | undefined;
229
- delete?: {
230
- entity?: string[] | undefined;
231
- id?: string[] | undefined;
232
- } | undefined;
233
- list?: {
234
- entity?: string | undefined;
235
- filters?: {
236
- field?: string | undefined;
237
- op?: _sentio_protos.DBRequest_DBOperator | undefined;
238
- value?: {
239
- values?: {
240
- nullValue?: _sentio_protos.RichValue_NullValue | undefined;
241
- intValue?: number | undefined | undefined;
242
- int64Value?: bigint | undefined | undefined;
243
- floatValue?: number | undefined | undefined;
244
- bytesValue?: Uint8Array<ArrayBufferLike> | undefined;
245
- boolValue?: boolean | undefined | undefined;
246
- stringValue?: string | undefined | undefined;
247
- timestampValue?: Date | undefined;
248
- bigintValue?: {
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;
249
732
  negative?: boolean | undefined;
250
733
  data?: Uint8Array<ArrayBufferLike> | undefined;
251
- } | undefined;
252
- bigdecimalValue?: {
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;
253
813
  value?: {
254
- negative?: boolean | undefined;
255
- data?: Uint8Array<ArrayBufferLike> | undefined;
256
- } | undefined;
257
- exp?: number | undefined;
258
- } | undefined;
259
- listValue?: /*elided*/ any | undefined;
260
- structValue?: {
261
- fields?: {
262
- [x: string]: /*elided*/ any | undefined;
263
- } | undefined;
264
- } | undefined;
265
- tokenValue?: {
266
- token?: {
267
- symbol?: string | undefined | undefined;
268
- address?: {
269
- address?: string | undefined;
270
- chain?: string | undefined;
271
- } | undefined;
272
- } | undefined;
273
- amount?: {
274
- value?: {
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;
275
848
  negative?: boolean | undefined;
276
849
  data?: Uint8Array<ArrayBufferLike> | undefined;
277
- } | undefined;
278
- exp?: number | 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
+ };
279
907
  } | undefined;
280
- specifiedAt?: Date | undefined;
281
- } | undefined;
282
- }[] | undefined;
283
- } | undefined;
284
- }[] | undefined;
285
- cursor?: string | undefined;
286
- pageSize?: number | undefined | undefined;
287
- } | undefined;
288
- } | undefined;
289
- result?: {
290
- gauges?: {
291
- metadata?: {
292
- address?: string | undefined;
293
- contractName?: string | undefined;
294
- blockNumber?: bigint | undefined;
295
- transactionHash?: string | undefined;
296
- chainId?: string | undefined;
297
- transactionIndex?: number | undefined;
298
- logIndex?: number | undefined;
299
- name?: string | undefined;
300
- labels?: {
301
- [x: string]: string | undefined;
302
- } | undefined;
303
- } | undefined;
304
- metricValue?: {
305
- bigDecimal?: string | undefined | undefined;
306
- doubleValue?: number | undefined | undefined;
307
- bigInteger?: {
308
- negative?: boolean | undefined;
309
- data?: Uint8Array<ArrayBufferLike> | undefined;
310
- } | undefined;
311
- } | undefined;
312
- runtimeInfo?: {
313
- from?: HandlerType | undefined;
314
- } | undefined;
315
- }[] | undefined;
316
- counters?: {
317
- metadata?: {
318
- address?: string | undefined;
319
- contractName?: string | undefined;
320
- blockNumber?: bigint | undefined;
321
- transactionHash?: string | undefined;
322
- chainId?: string | undefined;
323
- transactionIndex?: number | undefined;
324
- logIndex?: number | undefined;
325
- name?: string | undefined;
326
- labels?: {
327
- [x: string]: string | undefined;
328
- } | undefined;
329
- } | undefined;
330
- metricValue?: {
331
- bigDecimal?: string | undefined | undefined;
332
- doubleValue?: number | undefined | undefined;
333
- bigInteger?: {
334
- negative?: boolean | undefined;
335
- data?: Uint8Array<ArrayBufferLike> | undefined;
336
- } | undefined;
337
- } | undefined;
338
- add?: boolean | undefined;
339
- runtimeInfo?: {
340
- from?: HandlerType | undefined;
341
- } | undefined;
342
- }[] | undefined;
343
- events?: {
344
- metadata?: {
345
- address?: string | undefined;
346
- contractName?: string | undefined;
347
- blockNumber?: bigint | undefined;
348
- transactionHash?: string | undefined;
349
- chainId?: string | undefined;
350
- transactionIndex?: number | undefined;
351
- logIndex?: number | undefined;
352
- name?: string | undefined;
353
- labels?: {
354
- [x: string]: string | undefined;
355
- } | undefined;
356
- } | undefined;
357
- distinctEntityId?: string | undefined;
358
- attributes?: {
359
- [x: string]: any;
360
- } | undefined;
361
- severity?: _sentio_protos.LogLevel | undefined;
362
- message?: string | undefined;
363
- runtimeInfo?: {
364
- from?: HandlerType | undefined;
365
- } | undefined;
366
- attributes2?: {
367
- fields?: {
368
- [x: string]: {
369
- nullValue?: _sentio_protos.RichValue_NullValue | undefined;
370
- intValue?: number | undefined | undefined;
371
- int64Value?: bigint | undefined | undefined;
372
- floatValue?: number | undefined | undefined;
373
- bytesValue?: Uint8Array<ArrayBufferLike> | undefined;
374
- boolValue?: boolean | undefined | undefined;
375
- stringValue?: string | undefined | undefined;
376
- timestampValue?: Date | undefined;
377
- bigintValue?: {
378
- negative?: boolean | undefined;
379
- data?: Uint8Array<ArrayBufferLike> | undefined;
380
- } | undefined;
381
- bigdecimalValue?: {
908
+ };
909
+ [key: number]: _sentio_protos.RichValue | {
910
+ readonly $typeName?: undefined;
382
911
  value?: {
383
- negative?: boolean | undefined;
384
- data?: Uint8Array<ArrayBufferLike> | undefined;
385
- } | undefined;
386
- exp?: number | undefined;
387
- } | undefined;
388
- listValue?: {
389
- values?: /*elided*/ any[] | undefined;
390
- } | undefined;
391
- structValue?: /*elided*/ any | undefined;
392
- tokenValue?: {
393
- token?: {
394
- symbol?: string | undefined | undefined;
395
- address?: {
396
- address?: string | undefined;
397
- chain?: string | undefined;
398
- } | undefined;
399
- } | undefined;
400
- amount?: {
401
- value?: {
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;
402
946
  negative?: boolean | undefined;
403
947
  data?: Uint8Array<ArrayBufferLike> | undefined;
404
- } | undefined;
405
- exp?: number | 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
+ };
406
1005
  } | undefined;
407
- specifiedAt?: Date | undefined;
408
- } | undefined;
1006
+ };
409
1007
  } | undefined;
410
- } | undefined;
411
- } | undefined;
412
- noMetric?: boolean | undefined;
413
- }[] | undefined;
414
- exports?: {
415
- metadata?: {
416
- address?: string | undefined;
417
- contractName?: string | undefined;
418
- blockNumber?: bigint | undefined;
419
- transactionHash?: string | undefined;
420
- chainId?: string | undefined;
421
- transactionIndex?: number | undefined;
422
- logIndex?: number | undefined;
423
- name?: string | undefined;
424
- labels?: {
425
- [x: string]: string | undefined;
426
- } | undefined;
427
- } | undefined;
428
- payload?: string | undefined;
429
- runtimeInfo?: {
430
- from?: HandlerType | undefined;
431
- } | undefined;
432
- }[] | undefined;
433
- states?: {
434
- configUpdated?: boolean | undefined;
435
- error?: string | undefined | undefined;
436
- } | undefined;
437
- timeseriesResult?: {
438
- metadata?: {
439
- address?: string | undefined;
440
- contractName?: string | undefined;
441
- blockNumber?: bigint | undefined;
442
- transactionHash?: string | undefined;
443
- chainId?: string | undefined;
444
- transactionIndex?: number | undefined;
445
- logIndex?: number | undefined;
446
- name?: string | undefined;
447
- labels?: {
448
- [x: string]: string | undefined;
449
- } | undefined;
450
- } | undefined;
451
- type?: _sentio_protos.TimeseriesResult_TimeseriesType | undefined;
452
- data?: {
453
- fields?: {
454
- [x: string]: {
455
- nullValue?: _sentio_protos.RichValue_NullValue | undefined;
456
- intValue?: number | undefined | undefined;
457
- int64Value?: bigint | undefined | undefined;
458
- floatValue?: number | undefined | undefined;
459
- bytesValue?: Uint8Array<ArrayBufferLike> | undefined;
460
- boolValue?: boolean | undefined | undefined;
461
- stringValue?: string | undefined | undefined;
462
- timestampValue?: Date | undefined;
463
- bigintValue?: {
464
- negative?: boolean | undefined;
465
- data?: Uint8Array<ArrayBufferLike> | undefined;
466
- } | undefined;
467
- bigdecimalValue?: {
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;
468
1059
  value?: {
469
- negative?: boolean | undefined;
470
- data?: Uint8Array<ArrayBufferLike> | undefined;
471
- } | undefined;
472
- exp?: number | undefined;
473
- } | undefined;
474
- listValue?: {
475
- values?: /*elided*/ any[] | undefined;
476
- } | undefined;
477
- structValue?: /*elided*/ any | undefined;
478
- tokenValue?: {
479
- token?: {
480
- symbol?: string | undefined | undefined;
481
- address?: {
482
- address?: string | undefined;
483
- chain?: string | undefined;
484
- } | undefined;
485
- } | undefined;
486
- amount?: {
487
- value?: {
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;
488
1094
  negative?: boolean | undefined;
489
1095
  data?: Uint8Array<ArrayBufferLike> | undefined;
490
- } | undefined;
491
- exp?: number | 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
+ };
492
1153
  } | undefined;
493
- specifiedAt?: Date | undefined;
494
- } | undefined;
495
- } | undefined;
496
- } | undefined;
497
- } | undefined;
498
- runtimeInfo?: {
499
- from?: HandlerType | undefined;
500
- } | undefined;
501
- }[] | undefined;
502
- } | undefined;
503
- partitions?: {
504
- partitions?: {
505
- [x: number]: {
506
- userValue?: string | undefined | undefined;
507
- sysValue?: _sentio_protos.ProcessStreamResponse_Partitions_Partition_SysValue | undefined;
508
- } | undefined;
509
- } | undefined;
510
- } | undefined;
511
- }, void, any>;
512
- handlePreprocessRequests(requests: AsyncIterable<PreprocessStreamRequest>, subject: Subject<DeepPartial<PreprocessStreamResponse>>): Promise<void>;
513
- preprocessBindingsStream(requests: AsyncIterable<PreprocessStreamRequest>, context: CallContext): AsyncGenerator<{
514
- processId?: number | undefined;
515
- dbRequest?: {
516
- opId?: bigint | undefined;
517
- get?: {
518
- entity?: string | undefined;
519
- id?: string | undefined;
520
- } | undefined;
521
- upsert?: {
522
- entity?: string[] | undefined;
523
- id?: string[] | undefined;
524
- data?: {
525
- [x: string]: any;
526
- }[] | undefined;
527
- entityData?: {
528
- fields?: {
529
- [x: string]: {
530
- nullValue?: _sentio_protos.RichValue_NullValue | undefined;
531
- intValue?: number | undefined | undefined;
532
- int64Value?: bigint | undefined | undefined;
533
- floatValue?: number | undefined | undefined;
534
- bytesValue?: Uint8Array<ArrayBufferLike> | undefined;
535
- boolValue?: boolean | undefined | undefined;
536
- stringValue?: string | undefined | undefined;
537
- timestampValue?: Date | undefined;
538
- bigintValue?: {
539
- negative?: boolean | undefined;
540
- data?: Uint8Array<ArrayBufferLike> | undefined;
541
- } | undefined;
542
- bigdecimalValue?: {
1154
+ };
1155
+ [key: number]: _sentio_protos.RichValue | {
1156
+ readonly $typeName?: undefined;
543
1157
  value?: {
544
- negative?: boolean | undefined;
545
- data?: Uint8Array<ArrayBufferLike> | undefined;
546
- } | undefined;
547
- exp?: number | undefined;
548
- } | undefined;
549
- listValue?: {
550
- values?: /*elided*/ any[] | undefined;
551
- } | undefined;
552
- structValue?: /*elided*/ any | undefined;
553
- tokenValue?: {
554
- token?: {
555
- symbol?: string | undefined | undefined;
556
- address?: {
557
- address?: string | undefined;
558
- chain?: string | undefined;
559
- } | undefined;
560
- } | undefined;
561
- amount?: {
562
- value?: {
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;
563
1192
  negative?: boolean | undefined;
564
1193
  data?: Uint8Array<ArrayBufferLike> | undefined;
565
- } | undefined;
566
- exp?: number | 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
+ };
567
1251
  } | undefined;
568
- specifiedAt?: Date | undefined;
569
- } | undefined;
1252
+ };
570
1253
  } | undefined;
571
- } | undefined;
572
- }[] | undefined;
573
- } | undefined;
574
- update?: {
575
- entity?: string[] | undefined;
576
- id?: string[] | undefined;
577
- entityData?: {
578
- fields?: {
579
- [x: string]: {
580
- value?: {
581
- nullValue?: _sentio_protos.RichValue_NullValue | undefined;
582
- intValue?: number | undefined | undefined;
583
- int64Value?: bigint | undefined | undefined;
584
- floatValue?: number | undefined | undefined;
585
- bytesValue?: Uint8Array<ArrayBufferLike> | undefined;
586
- boolValue?: boolean | undefined | undefined;
587
- stringValue?: string | undefined | undefined;
588
- timestampValue?: Date | undefined;
589
- bigintValue?: {
590
- negative?: boolean | undefined;
591
- data?: Uint8Array<ArrayBufferLike> | undefined;
592
- } | undefined;
593
- bigdecimalValue?: {
594
- value?: {
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;
595
1355
  negative?: boolean | undefined;
596
1356
  data?: Uint8Array<ArrayBufferLike> | undefined;
597
- } | undefined;
598
- exp?: number | undefined;
599
- } | undefined;
600
- listValue?: {
601
- values?: /*elided*/ any[] | undefined;
602
- } | undefined;
603
- structValue?: {
604
- fields?: {
605
- [x: string]: /*elided*/ any | undefined;
606
- } | undefined;
607
- } | undefined;
608
- tokenValue?: {
609
- token?: {
610
- symbol?: string | undefined | undefined;
611
- address?: {
612
- address?: string | undefined;
613
- chain?: string | undefined;
614
- } | undefined;
615
- } | undefined;
616
- amount?: {
617
- value?: {
1357
+ };
1358
+ } | {
1359
+ case: "bigdecimalValue";
1360
+ value: _sentio_protos.BigDecimalRichValue | {
1361
+ readonly $typeName?: undefined;
1362
+ value?: (_sentio_protos.BigInteger | {
1363
+ readonly $typeName?: undefined;
618
1364
  negative?: boolean | undefined;
619
1365
  data?: Uint8Array<ArrayBufferLike> | undefined;
620
- } | undefined;
1366
+ }) | undefined;
621
1367
  exp?: number | undefined;
622
- } | undefined;
623
- specifiedAt?: Date | 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
+ };
624
1414
  } | undefined;
625
- } | undefined;
626
- op?: _sentio_protos.EntityUpdateData_Operator | undefined;
627
- } | undefined;
628
- } | undefined;
629
- }[] | undefined;
630
- } | undefined;
631
- delete?: {
632
- entity?: string[] | undefined;
633
- id?: string[] | undefined;
634
- } | undefined;
635
- list?: {
636
- entity?: string | undefined;
637
- filters?: {
638
- field?: string | undefined;
639
- op?: _sentio_protos.DBRequest_DBOperator | undefined;
640
- value?: {
641
- values?: {
642
- nullValue?: _sentio_protos.RichValue_NullValue | undefined;
643
- intValue?: number | undefined | undefined;
644
- int64Value?: bigint | undefined | undefined;
645
- floatValue?: number | undefined | undefined;
646
- bytesValue?: Uint8Array<ArrayBufferLike> | undefined;
647
- boolValue?: boolean | undefined | undefined;
648
- stringValue?: string | undefined | undefined;
649
- timestampValue?: Date | undefined;
650
- bigintValue?: {
651
- negative?: boolean | undefined;
652
- data?: Uint8Array<ArrayBufferLike> | undefined;
653
- } | undefined;
654
- bigdecimalValue?: {
1415
+ };
1416
+ [key: number]: _sentio_protos.RichValue | {
1417
+ readonly $typeName?: undefined;
655
1418
  value?: {
656
- negative?: boolean | undefined;
657
- data?: Uint8Array<ArrayBufferLike> | undefined;
658
- } | undefined;
659
- exp?: number | undefined;
660
- } | undefined;
661
- listValue?: /*elided*/ any | undefined;
662
- structValue?: {
663
- fields?: {
664
- [x: string]: /*elided*/ any | undefined;
665
- } | undefined;
666
- } | undefined;
667
- tokenValue?: {
668
- token?: {
669
- symbol?: string | undefined | undefined;
670
- address?: {
671
- address?: string | undefined;
672
- chain?: string | undefined;
673
- } | undefined;
674
- } | undefined;
675
- amount?: {
676
- value?: {
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;
677
1453
  negative?: boolean | undefined;
678
1454
  data?: Uint8Array<ArrayBufferLike> | undefined;
679
- } | undefined;
680
- exp?: number | 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
+ };
681
1512
  } | undefined;
682
- specifiedAt?: Date | undefined;
683
- } | undefined;
684
- }[] | undefined;
685
- } | undefined;
686
- }[] | undefined;
687
- cursor?: string | undefined;
688
- pageSize?: number | undefined | undefined;
689
- } | 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
+ };
690
1542
  } | undefined;
691
1543
  }, void, any>;
692
- private dbContexts;
693
- protected handleRequests(requests: AsyncIterable<ProcessStreamRequest>, subject: Subject<DeepPartial<ProcessStreamResponse>>): Promise<void>;
694
- handleRequest(request: ProcessStreamRequest, lastBinding: DataBinding | undefined, subject: Subject<DeepPartial<ProcessStreamResponse>>): Promise<void>;
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>;
695
1547
  private startProcess;
1548
+ updateTemplates(request: UpdateTemplatesRequest, context: HandlerContext): Promise<_bufbuild_protobuf.Message<"google.protobuf.Empty">>;
696
1549
  }
697
- declare function recordRuntimeInfo(results: ProcessResult, handlerType: HandlerType): void;
698
1550
 
699
1551
  /**
700
1552
  * Configuration for the in-memory cache feature.
@@ -727,7 +1579,7 @@ interface GlobalConfig {
727
1579
  * Execution configuration controlling how handlers are processed.
728
1580
  * Includes settings for sequential vs parallel execution, block time handling, etc.
729
1581
  */
730
- execution: Partial<ExecutionConfig>;
1582
+ execution: MessageInitShape<typeof ExecutionConfigSchema>;
731
1583
  /**
732
1584
  * Optional cache configuration for enabling in-memory key-value storage.
733
1585
  * When enabled, processors can use `ctx.cache` to store and retrieve values.
@@ -745,16 +1597,6 @@ interface GlobalConfig {
745
1597
  }
746
1598
  declare const GLOBAL_CONFIG: GlobalConfig;
747
1599
 
748
- declare const DummyProvider: JsonRpcProvider;
749
- declare function getProvider(chainId?: EthChainId): JsonRpcProvider;
750
- declare class QueuedStaticJsonRpcProvider extends JsonRpcProvider {
751
- #private;
752
- executor: PQueue;
753
- constructor(url: string, network: Network, concurrency: number, batchCount?: number);
754
- send(method: string, params: Array<any>): Promise<any>;
755
- toString(): string;
756
- }
757
-
758
1600
  declare class C {
759
1601
  private name;
760
1602
  private _counter;
@@ -905,4 +1747,4 @@ declare const processMetrics: {
905
1747
  };
906
1748
  declare const metricsStorage: AsyncLocalStorage<string>;
907
1749
 
908
- export { type ChainConfig, DummyProvider, Endpoints, GLOBAL_CONFIG, type GlobalConfig, ListStateStorage, MapStateStorage, ProcessorServiceImpl, QueuedStaticJsonRpcProvider, type Semver, State, StateStorage, StoreContext, USER_PROCESSOR, compareSemver, configureEndpoints, dbMetrics, errorString, getProvider, locatePackageJson, makeEthCallKey, mergeProcessResults, mergeProcessResultsInPlace, metricsStorage, parseSemver, processMetrics, providerMetrics, recordRuntimeInfo };
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 };