@sentio/runtime 3.9.0-rc.9 → 4.0.0-rc.10

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