@sentio/runtime 2.39.7-rc.9 → 2.40.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 (98) hide show
  1. package/lib/chunk-FFU5RYDX.js +78856 -0
  2. package/lib/index.d.ts +371 -9
  3. package/lib/index.js +94 -9
  4. package/lib/processor-runner.d.ts +0 -2
  5. package/lib/processor-runner.js +51460 -129
  6. package/package.json +5 -25
  7. package/src/db-context.ts +157 -7
  8. package/src/full-service.ts +5 -0
  9. package/src/gen/processor/protos/processor.ts +2294 -1344
  10. package/src/plugin.ts +30 -4
  11. package/src/processor-runner.ts +26 -2
  12. package/src/provider.ts +168 -0
  13. package/src/service.ts +205 -28
  14. package/src/tsup.config.ts +14 -0
  15. package/src/utils.ts +11 -3
  16. package/lib/chain-config.d.ts +0 -6
  17. package/lib/chain-config.d.ts.map +0 -1
  18. package/lib/chain-config.js +0 -2
  19. package/lib/chain-config.js.map +0 -1
  20. package/lib/db-context.d.ts +0 -17
  21. package/lib/db-context.d.ts.map +0 -1
  22. package/lib/db-context.js +0 -63
  23. package/lib/db-context.js.map +0 -1
  24. package/lib/decode-benchmark.d.ts +0 -3
  25. package/lib/decode-benchmark.d.ts.map +0 -1
  26. package/lib/decode-benchmark.js +0 -20
  27. package/lib/decode-benchmark.js.map +0 -1
  28. package/lib/endpoints.d.ts +0 -9
  29. package/lib/endpoints.d.ts.map +0 -1
  30. package/lib/endpoints.js +0 -9
  31. package/lib/endpoints.js.map +0 -1
  32. package/lib/full-service.d.ts +0 -655
  33. package/lib/full-service.d.ts.map +0 -1
  34. package/lib/full-service.js +0 -137
  35. package/lib/full-service.js.map +0 -1
  36. package/lib/gen/google/protobuf/empty.d.ts +0 -17
  37. package/lib/gen/google/protobuf/empty.d.ts.map +0 -1
  38. package/lib/gen/google/protobuf/empty.js +0 -40
  39. package/lib/gen/google/protobuf/empty.js.map +0 -1
  40. package/lib/gen/google/protobuf/struct.d.ts +0 -77
  41. package/lib/gen/google/protobuf/struct.d.ts.map +0 -1
  42. package/lib/gen/google/protobuf/struct.js +0 -429
  43. package/lib/gen/google/protobuf/struct.js.map +0 -1
  44. package/lib/gen/google/protobuf/timestamp.d.ts +0 -19
  45. package/lib/gen/google/protobuf/timestamp.d.ts.map +0 -1
  46. package/lib/gen/google/protobuf/timestamp.js +0 -83
  47. package/lib/gen/google/protobuf/timestamp.js.map +0 -1
  48. package/lib/gen/processor/protos/processor.d.ts +0 -1470
  49. package/lib/gen/processor/protos/processor.d.ts.map +0 -1
  50. package/lib/gen/processor/protos/processor.js +0 -8512
  51. package/lib/gen/processor/protos/processor.js.map +0 -1
  52. package/lib/gen/service/common/protos/common.d.ts +0 -1698
  53. package/lib/gen/service/common/protos/common.d.ts.map +0 -1
  54. package/lib/gen/service/common/protos/common.js +0 -11383
  55. package/lib/gen/service/common/protos/common.js.map +0 -1
  56. package/lib/global-config.d.ts +0 -8
  57. package/lib/global-config.d.ts.map +0 -1
  58. package/lib/global-config.js +0 -23
  59. package/lib/global-config.js.map +0 -1
  60. package/lib/global-config.test.d.ts +0 -2
  61. package/lib/global-config.test.d.ts.map +0 -1
  62. package/lib/global-config.test.js.map +0 -1
  63. package/lib/index.d.ts.map +0 -1
  64. package/lib/index.js.map +0 -1
  65. package/lib/logger.d.ts +0 -2
  66. package/lib/logger.d.ts.map +0 -1
  67. package/lib/logger.js +0 -39
  68. package/lib/logger.js.map +0 -1
  69. package/lib/logger.test.d.ts +0 -2
  70. package/lib/logger.test.d.ts.map +0 -1
  71. package/lib/logger.test.js.map +0 -1
  72. package/lib/plugin.d.ts +0 -29
  73. package/lib/plugin.d.ts.map +0 -1
  74. package/lib/plugin.js +0 -58
  75. package/lib/plugin.js.map +0 -1
  76. package/lib/processor-runner.d.ts.map +0 -1
  77. package/lib/processor-runner.js.map +0 -1
  78. package/lib/seq-mode.test.d.ts +0 -3
  79. package/lib/seq-mode.test.d.ts.map +0 -1
  80. package/lib/seq-mode.test.js.map +0 -1
  81. package/lib/service.d.ts +0 -179
  82. package/lib/service.d.ts.map +0 -1
  83. package/lib/service.js +0 -194
  84. package/lib/service.js.map +0 -1
  85. package/lib/service.test.d.ts +0 -3
  86. package/lib/service.test.d.ts.map +0 -1
  87. package/lib/service.test.js.map +0 -1
  88. package/lib/state-storage.test.d.ts +0 -2
  89. package/lib/state-storage.test.d.ts.map +0 -1
  90. package/lib/state-storage.test.js.map +0 -1
  91. package/lib/state.d.ts +0 -23
  92. package/lib/state.d.ts.map +0 -1
  93. package/lib/state.js +0 -61
  94. package/lib/state.js.map +0 -1
  95. package/lib/utils.d.ts +0 -6
  96. package/lib/utils.d.ts.map +0 -1
  97. package/lib/utils.js +0 -23
  98. package/lib/utils.js.map +0 -1
package/lib/index.d.ts CHANGED
@@ -1,9 +1,371 @@
1
- export * from './plugin.js';
2
- export * from './state.js';
3
- export * from './utils.js';
4
- export * from './endpoints.js';
5
- export * from './chain-config.js';
6
- export * from './service.js';
7
- export { GLOBAL_CONFIG, type GlobalConfig } from './global-config.js';
8
- export * from './db-context.js';
9
- //# sourceMappingURL=index.d.ts.map
1
+ import * as _sentio_protos from '@sentio/protos';
2
+ import { DeepPartial as DeepPartial$1, ProcessStreamResponse, DBResponse, DBRequest_DBUpsert, DBRequest, HandlerType, ProcessConfigResponse, StartRequest, DataBinding, PreparedData, ProcessResult, PreprocessResult, EthCallParam, ProcessorServiceImplementation, ProcessConfigRequest, Empty, ProcessBindingsRequest, ProcessBindingResponse, ProcessStreamRequest, PreprocessStreamRequest, PreprocessStreamResponse } from '@sentio/protos';
3
+ import { Subject } from 'rxjs';
4
+ import { AsyncLocalStorage } from 'node:async_hooks';
5
+ import { Required } from 'utility-types';
6
+ import { CallContext } from 'nice-grpc';
7
+ import _m0 from 'protobufjs/minimal.js';
8
+
9
+ type Request = Omit<DBRequest, 'opId'>;
10
+ type RequestType = keyof Request;
11
+ declare const timeoutError: unique symbol;
12
+ declare class StoreContext {
13
+ readonly subject: Subject<DeepPartial$1<ProcessStreamResponse>>;
14
+ readonly processId: number;
15
+ private static opCounter;
16
+ private defers;
17
+ private statsInterval;
18
+ constructor(subject: Subject<DeepPartial$1<ProcessStreamResponse>>, processId: number);
19
+ newPromise<T>(opId: bigint, requestType?: RequestType): Promise<T>;
20
+ sendRequest(request: DeepPartial$1<Request>, timeoutSecs?: number): Promise<DBResponse>;
21
+ result(dbResult: DBResponse): void;
22
+ error(processId: number, e: any): void;
23
+ close(): void;
24
+ upsertBatch: {
25
+ opId: bigint;
26
+ request: DBRequest_DBUpsert;
27
+ promise: Promise<DBResponse>;
28
+ timer: NodeJS.Timeout;
29
+ } | undefined;
30
+ private sendUpsertInBatch;
31
+ private sendBatch;
32
+ }
33
+
34
+ declare abstract class Plugin {
35
+ name: string;
36
+ supportedHandlers: HandlerType[];
37
+ configure(config: ProcessConfigResponse): Promise<void>;
38
+ start(start: StartRequest): Promise<void>;
39
+ /**
40
+ * @deprecated The method should not be used, use ctx.states instead
41
+ */
42
+ stateDiff(config: ProcessConfigResponse): boolean;
43
+ processBinding(request: DataBinding, preparedData: PreparedData | undefined): Promise<ProcessResult>;
44
+ preprocessBinding(request: DataBinding): Promise<PreprocessResult>;
45
+ }
46
+ declare class PluginManager {
47
+ static INSTANCE: PluginManager;
48
+ dbContextLocalStorage: AsyncLocalStorage<StoreContext | undefined>;
49
+ plugins: Plugin[];
50
+ typesToPlugin: Map<HandlerType, Plugin>;
51
+ register(plugin: Plugin): void;
52
+ configure(config: ProcessConfigResponse): Promise<void[]>;
53
+ start(start: StartRequest): Promise<void[]>;
54
+ /**
55
+ * @deprecated The method should not be used, use ctx.states instead
56
+ */
57
+ stateDiff(config: ProcessConfigResponse): boolean;
58
+ processBinding(request: DataBinding, preparedData: PreparedData | undefined, dbContext?: StoreContext): Promise<ProcessResult>;
59
+ preprocessBinding(request: DataBinding, dbContext?: StoreContext): Promise<PreprocessResult>;
60
+ }
61
+
62
+ declare class State {
63
+ stateMap: Map<string, any>;
64
+ static INSTANCE: State;
65
+ static reset(): void;
66
+ }
67
+ declare abstract class StateStorage<T> {
68
+ protected constructor();
69
+ abstract initValue(): T;
70
+ key(): string;
71
+ getOrRegister(): T;
72
+ }
73
+ declare abstract class MapStateStorage<T> extends StateStorage<Map<string, T>> {
74
+ initValue(): Map<string, T>;
75
+ getValue(key: string): T | undefined;
76
+ getValues(): T[];
77
+ getOrSetValue(key: string, value: T): T;
78
+ }
79
+ declare abstract class ListStateStorage<T> extends StateStorage<T[]> {
80
+ initValue(): never[];
81
+ getValues(): T[];
82
+ addValue(value: T): T;
83
+ }
84
+
85
+ declare function mergeProcessResults(results: ProcessResult[]): Required<ProcessResult, 'states'>;
86
+ declare function errorString(e: Error): string;
87
+ declare const USER_PROCESSOR = "user_processor";
88
+ declare function makeEthCallKey(param: EthCallParam): string;
89
+
90
+ declare class Endpoints {
91
+ static INSTANCE: Endpoints;
92
+ concurrency: number;
93
+ chainQueryAPI: string;
94
+ priceFeedAPI: string;
95
+ chainServer: Map<string, string>;
96
+ batchCount: number;
97
+ }
98
+
99
+ interface ChainConfig {
100
+ ChainID: string;
101
+ Https?: string[];
102
+ ChainServer?: string;
103
+ }
104
+
105
+ declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
106
+ private started;
107
+ unhandled: Error;
108
+ private readonly loader;
109
+ private readonly shutdownHandler?;
110
+ private readonly preprocessedEthCalls;
111
+ constructor(loader: () => Promise<any>, shutdownHandler?: () => void);
112
+ getConfig(request: ProcessConfigRequest, context: CallContext): Promise<ProcessConfigResponse>;
113
+ start(request: StartRequest, context: CallContext): Promise<Empty>;
114
+ stop(request: Empty, context: CallContext): Promise<Empty>;
115
+ processBindings(request: ProcessBindingsRequest, options?: CallContext): Promise<ProcessBindingResponse>;
116
+ preprocessBindings(bindings: DataBinding[], dbContext?: StoreContext, options?: CallContext): Promise<{
117
+ [ethCallKey: string]: string;
118
+ }>;
119
+ preprocessBinding(request: DataBinding, dbContext?: StoreContext, options?: CallContext): Promise<PreprocessResult>;
120
+ processBinding(request: DataBinding, preparedData: PreparedData | undefined, options?: CallContext): Promise<ProcessResult>;
121
+ processBindingsStream(requests: AsyncIterable<ProcessStreamRequest>, context: CallContext): AsyncGenerator<{
122
+ processId?: number | undefined;
123
+ dbRequest?: {
124
+ opId?: bigint | undefined;
125
+ get?: {
126
+ entity?: string | undefined;
127
+ id?: string | undefined;
128
+ } | undefined;
129
+ upsert?: {
130
+ entity?: string[] | undefined;
131
+ id?: string[] | undefined;
132
+ data?: {
133
+ [x: string]: any;
134
+ }[] | undefined;
135
+ entityData?: {
136
+ fields?: {
137
+ [x: string]: {
138
+ nullValue?: _sentio_protos.RichValue_NullValue | undefined;
139
+ intValue?: number | undefined;
140
+ floatValue?: number | undefined;
141
+ bytesValue?: Uint8Array | undefined;
142
+ boolValue?: boolean | undefined;
143
+ stringValue?: string | undefined;
144
+ timestampValue?: Date | undefined;
145
+ bigintValue?: {
146
+ negative?: boolean | undefined;
147
+ data?: Uint8Array | undefined;
148
+ } | undefined;
149
+ bigdecimalValue?: {
150
+ value?: {
151
+ negative?: boolean | undefined;
152
+ data?: Uint8Array | undefined;
153
+ } | undefined;
154
+ exp?: number | undefined;
155
+ } | undefined;
156
+ listValue?: {
157
+ values?: any[] | undefined;
158
+ } | undefined;
159
+ } | undefined;
160
+ } | undefined;
161
+ }[] | undefined;
162
+ } | undefined;
163
+ delete?: {
164
+ entity?: string[] | undefined;
165
+ id?: string[] | undefined;
166
+ } | undefined;
167
+ list?: {
168
+ entity?: string | undefined;
169
+ filters?: {
170
+ field?: string | undefined;
171
+ op?: _sentio_protos.DBRequest_DBOperator | undefined;
172
+ value?: {
173
+ values?: any[] | undefined;
174
+ } | undefined;
175
+ }[] | undefined;
176
+ cursor?: string | undefined;
177
+ pageSize?: number | undefined;
178
+ } | undefined;
179
+ } | undefined;
180
+ result?: {
181
+ gauges?: {
182
+ metadata?: {
183
+ address?: string | undefined;
184
+ contractName?: string | undefined;
185
+ blockNumber?: bigint | undefined;
186
+ transactionHash?: string | undefined;
187
+ chainId?: string | undefined;
188
+ transactionIndex?: number | undefined;
189
+ logIndex?: number | undefined;
190
+ name?: string | undefined;
191
+ labels?: {
192
+ [x: string]: string | undefined;
193
+ } | undefined;
194
+ } | undefined;
195
+ metricValue?: {
196
+ bigDecimal?: string | undefined;
197
+ doubleValue?: number | undefined;
198
+ bigInteger?: {
199
+ negative?: boolean | undefined;
200
+ data?: Uint8Array | undefined;
201
+ } | undefined;
202
+ } | undefined;
203
+ runtimeInfo?: {
204
+ from?: HandlerType | undefined;
205
+ } | undefined;
206
+ }[] | undefined;
207
+ counters?: {
208
+ metadata?: {
209
+ address?: string | undefined;
210
+ contractName?: string | undefined;
211
+ blockNumber?: bigint | undefined;
212
+ transactionHash?: string | undefined;
213
+ chainId?: string | undefined;
214
+ transactionIndex?: number | undefined;
215
+ logIndex?: number | undefined;
216
+ name?: string | undefined;
217
+ labels?: {
218
+ [x: string]: string | undefined;
219
+ } | undefined;
220
+ } | undefined;
221
+ metricValue?: {
222
+ bigDecimal?: string | undefined;
223
+ doubleValue?: number | undefined;
224
+ bigInteger?: {
225
+ negative?: boolean | undefined;
226
+ data?: Uint8Array | undefined;
227
+ } | undefined;
228
+ } | undefined;
229
+ add?: boolean | undefined;
230
+ runtimeInfo?: {
231
+ from?: HandlerType | undefined;
232
+ } | undefined;
233
+ }[] | undefined;
234
+ events?: {
235
+ metadata?: {
236
+ address?: string | undefined;
237
+ contractName?: string | undefined;
238
+ blockNumber?: bigint | undefined;
239
+ transactionHash?: string | undefined;
240
+ chainId?: string | undefined;
241
+ transactionIndex?: number | undefined;
242
+ logIndex?: number | undefined;
243
+ name?: string | undefined;
244
+ labels?: {
245
+ [x: string]: string | undefined;
246
+ } | undefined;
247
+ } | undefined;
248
+ distinctEntityId?: string | undefined;
249
+ attributes?: {
250
+ [x: string]: any;
251
+ } | undefined;
252
+ severity?: _sentio_protos.LogLevel | undefined;
253
+ message?: string | undefined;
254
+ runtimeInfo?: {
255
+ from?: HandlerType | undefined;
256
+ } | undefined;
257
+ noMetric?: boolean | undefined;
258
+ }[] | undefined;
259
+ exports?: {
260
+ metadata?: {
261
+ address?: string | undefined;
262
+ contractName?: string | undefined;
263
+ blockNumber?: bigint | undefined;
264
+ transactionHash?: string | undefined;
265
+ chainId?: string | undefined;
266
+ transactionIndex?: number | undefined;
267
+ logIndex?: number | undefined;
268
+ name?: string | undefined;
269
+ labels?: {
270
+ [x: string]: string | undefined;
271
+ } | undefined;
272
+ } | undefined;
273
+ payload?: string | undefined;
274
+ runtimeInfo?: {
275
+ from?: HandlerType | undefined;
276
+ } | undefined;
277
+ }[] | undefined;
278
+ states?: {
279
+ configUpdated?: boolean | undefined;
280
+ error?: string | undefined;
281
+ } | undefined;
282
+ } | undefined;
283
+ }, void, undefined>;
284
+ handlePreprocessRequests(requests: AsyncIterable<PreprocessStreamRequest>, subject: Subject<DeepPartial$1<PreprocessStreamResponse>>): Promise<void>;
285
+ preprocessBindingsStream(requests: AsyncIterable<PreprocessStreamRequest>, context: CallContext): AsyncGenerator<{
286
+ processId?: number | undefined;
287
+ dbRequest?: {
288
+ opId?: bigint | undefined;
289
+ get?: {
290
+ entity?: string | undefined;
291
+ id?: string | undefined;
292
+ } | undefined;
293
+ upsert?: {
294
+ entity?: string[] | undefined;
295
+ id?: string[] | undefined;
296
+ data?: {
297
+ [x: string]: any;
298
+ }[] | undefined;
299
+ entityData?: {
300
+ fields?: {
301
+ [x: string]: {
302
+ nullValue?: _sentio_protos.RichValue_NullValue | undefined;
303
+ intValue?: number | undefined;
304
+ floatValue?: number | undefined;
305
+ bytesValue?: Uint8Array | undefined;
306
+ boolValue?: boolean | undefined;
307
+ stringValue?: string | undefined;
308
+ timestampValue?: Date | undefined;
309
+ bigintValue?: {
310
+ negative?: boolean | undefined;
311
+ data?: Uint8Array | undefined;
312
+ } | undefined;
313
+ bigdecimalValue?: {
314
+ value?: {
315
+ negative?: boolean | undefined;
316
+ data?: Uint8Array | undefined;
317
+ } | undefined;
318
+ exp?: number | undefined;
319
+ } | undefined;
320
+ listValue?: {
321
+ values?: any[] | undefined;
322
+ } | undefined;
323
+ } | undefined;
324
+ } | undefined;
325
+ }[] | undefined;
326
+ } | undefined;
327
+ delete?: {
328
+ entity?: string[] | undefined;
329
+ id?: string[] | undefined;
330
+ } | undefined;
331
+ list?: {
332
+ entity?: string | undefined;
333
+ filters?: {
334
+ field?: string | undefined;
335
+ op?: _sentio_protos.DBRequest_DBOperator | undefined;
336
+ value?: {
337
+ values?: any[] | undefined;
338
+ } | undefined;
339
+ }[] | undefined;
340
+ cursor?: string | undefined;
341
+ pageSize?: number | undefined;
342
+ } | undefined;
343
+ } | undefined;
344
+ }, void, undefined>;
345
+ private handleRequests;
346
+ }
347
+
348
+ interface ExecutionConfig {
349
+ sequential: boolean;
350
+ forceExactBlockTime: boolean;
351
+ processBindingTimeout: number;
352
+ }
353
+ declare const ExecutionConfig: {
354
+ encode(message: ExecutionConfig, writer?: _m0.Writer): _m0.Writer;
355
+ decode(input: _m0.Reader | Uint8Array, length?: number): ExecutionConfig;
356
+ fromJSON(object: any): ExecutionConfig;
357
+ toJSON(message: ExecutionConfig): unknown;
358
+ create(base?: DeepPartial<ExecutionConfig>): ExecutionConfig;
359
+ fromPartial(object: DeepPartial<ExecutionConfig>): ExecutionConfig;
360
+ };
361
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
362
+ type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
363
+ [K in keyof T]?: DeepPartial<T[K]>;
364
+ } : Partial<T>;
365
+
366
+ interface GlobalConfig {
367
+ execution: Partial<ExecutionConfig>;
368
+ }
369
+ declare const GLOBAL_CONFIG: GlobalConfig;
370
+
371
+ export { ChainConfig, Endpoints, GLOBAL_CONFIG, GlobalConfig, ListStateStorage, MapStateStorage, Plugin, PluginManager, ProcessorServiceImpl, State, StateStorage, StoreContext, USER_PROCESSOR, errorString, makeEthCallKey, mergeProcessResults, timeoutError };
package/lib/index.js CHANGED
@@ -1,9 +1,94 @@
1
- export * from './plugin.js';
2
- export * from './state.js';
3
- export * from './utils.js';
4
- export * from './endpoints.js';
5
- export * from './chain-config.js';
6
- export * from './service.js';
7
- export { GLOBAL_CONFIG } from './global-config.js';
8
- export * from './db-context.js';
9
- //# sourceMappingURL=index.js.map
1
+ import { createRequire as createRequireShim } from 'module'; const require = createRequireShim(import.meta.url);
2
+ import {
3
+ Endpoints,
4
+ GLOBAL_CONFIG,
5
+ Plugin,
6
+ PluginManager,
7
+ ProcessorServiceImpl,
8
+ StoreContext,
9
+ USER_PROCESSOR,
10
+ __publicField,
11
+ errorString,
12
+ makeEthCallKey,
13
+ mergeProcessResults,
14
+ timeoutError
15
+ } from "./chunk-FFU5RYDX.js";
16
+
17
+ // src/state.ts
18
+ var _State = class {
19
+ stateMap = /* @__PURE__ */ new Map();
20
+ static reset() {
21
+ _State.INSTANCE = new _State();
22
+ }
23
+ };
24
+ var State = _State;
25
+ __publicField(State, "INSTANCE", new _State());
26
+ var StateStorage = class {
27
+ // TODO learn how to define single instance for all subclasses
28
+ constructor() {
29
+ }
30
+ key() {
31
+ return this.constructor.name;
32
+ }
33
+ getOrRegister() {
34
+ let metricState = State.INSTANCE.stateMap.get(this.key());
35
+ if (!metricState) {
36
+ metricState = this.initValue();
37
+ State.INSTANCE.stateMap.set(this.key(), metricState);
38
+ }
39
+ return metricState;
40
+ }
41
+ };
42
+ var MapStateStorage = class extends StateStorage {
43
+ initValue() {
44
+ return /* @__PURE__ */ new Map();
45
+ }
46
+ getValue(key) {
47
+ const m = this.getOrRegister();
48
+ return m.get(key);
49
+ }
50
+ getValues() {
51
+ const m = this.getOrRegister();
52
+ return Array.from(m.values());
53
+ }
54
+ getOrSetValue(key, value) {
55
+ const m = this.getOrRegister();
56
+ const oldValue = m.get(key);
57
+ if (oldValue) {
58
+ console.warn(key, "has been registered twice, use the previous one");
59
+ return oldValue;
60
+ }
61
+ m.set(key, value);
62
+ return value;
63
+ }
64
+ };
65
+ var ListStateStorage = class extends StateStorage {
66
+ initValue() {
67
+ return [];
68
+ }
69
+ getValues() {
70
+ return this.getOrRegister();
71
+ }
72
+ addValue(value) {
73
+ const m = this.getOrRegister();
74
+ m.push(value);
75
+ return value;
76
+ }
77
+ };
78
+ export {
79
+ Endpoints,
80
+ GLOBAL_CONFIG,
81
+ ListStateStorage,
82
+ MapStateStorage,
83
+ Plugin,
84
+ PluginManager,
85
+ ProcessorServiceImpl,
86
+ State,
87
+ StateStorage,
88
+ StoreContext,
89
+ USER_PROCESSOR,
90
+ errorString,
91
+ makeEthCallKey,
92
+ mergeProcessResults,
93
+ timeoutError
94
+ };
@@ -1,3 +1 @@
1
1
  #!/usr/bin/env node
2
- export {};
3
- //# sourceMappingURL=processor-runner.d.ts.map