@sentio/runtime 2.57.9-rc.8 → 2.57.9
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.
- package/lib/chunk-TTE5MQNI.js +131 -0
- package/lib/{chunk-QLDMXVEC.js.map → chunk-TTE5MQNI.js.map} +1 -1
- package/lib/index.d.ts +25 -1
- package/lib/index.js +1 -1
- package/lib/processor-runner.js +27 -27
- package/lib/processor-runner.js.map +1 -1
- package/package.json +1 -1
- package/src/full-service.ts +21 -0
- package/src/gen/processor/protos/processor.ts +266 -11
- package/src/metrics.ts +11 -1
- package/src/service.ts +0 -1
- package/lib/chunk-QLDMXVEC.js +0 -131
package/lib/index.d.ts
CHANGED
@@ -470,7 +470,7 @@ interface ExecutionConfig {
|
|
470
470
|
processBindingTimeout: number;
|
471
471
|
skipStartBlockValidation: boolean;
|
472
472
|
rpcRetryTimes: number;
|
473
|
-
|
473
|
+
ethAbiDecoderConfig?: ExecutionConfig_DecoderWorkerConfig | undefined;
|
474
474
|
}
|
475
475
|
declare const ExecutionConfig: {
|
476
476
|
encode(message: ExecutionConfig, writer?: _m0.Writer): _m0.Writer;
|
@@ -480,6 +480,20 @@ declare const ExecutionConfig: {
|
|
480
480
|
create(base?: DeepPartial<ExecutionConfig>): ExecutionConfig;
|
481
481
|
fromPartial(object: DeepPartial<ExecutionConfig>): ExecutionConfig;
|
482
482
|
};
|
483
|
+
interface ExecutionConfig_DecoderWorkerConfig {
|
484
|
+
enabled: boolean;
|
485
|
+
workerCount?: number | undefined;
|
486
|
+
skipWhenDecodeFailed?: boolean | undefined;
|
487
|
+
recordTiming?: boolean | undefined;
|
488
|
+
}
|
489
|
+
declare const ExecutionConfig_DecoderWorkerConfig: {
|
490
|
+
encode(message: ExecutionConfig_DecoderWorkerConfig, writer?: _m0.Writer): _m0.Writer;
|
491
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ExecutionConfig_DecoderWorkerConfig;
|
492
|
+
fromJSON(object: any): ExecutionConfig_DecoderWorkerConfig;
|
493
|
+
toJSON(message: ExecutionConfig_DecoderWorkerConfig): unknown;
|
494
|
+
create(base?: DeepPartial<ExecutionConfig_DecoderWorkerConfig>): ExecutionConfig_DecoderWorkerConfig;
|
495
|
+
fromPartial(object: DeepPartial<ExecutionConfig_DecoderWorkerConfig>): ExecutionConfig_DecoderWorkerConfig;
|
496
|
+
};
|
483
497
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
484
498
|
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 {} ? {
|
485
499
|
[K in keyof T]?: DeepPartial<T[K]>;
|
@@ -620,6 +634,11 @@ declare const processMetrics: {
|
|
620
634
|
processor_rpc_duration: H;
|
621
635
|
processor_rpc_queue_duration: H;
|
622
636
|
processor_template_instance_count: C;
|
637
|
+
processor_worker_run_time: G;
|
638
|
+
processor_worker_wait_time: G;
|
639
|
+
processor_worker_utilization: G;
|
640
|
+
processor_worker_queue_size: G;
|
641
|
+
processor_worker_completed: G;
|
623
642
|
stats(): {
|
624
643
|
process_binding_count: number;
|
625
644
|
process_binding_time: number;
|
@@ -634,6 +653,11 @@ declare const processMetrics: {
|
|
634
653
|
processor_rpc_duration: number;
|
635
654
|
processor_rpc_queue_duration: number;
|
636
655
|
processor_template_instance_count: number;
|
656
|
+
processor_worker_run_time: number;
|
657
|
+
processor_worker_wait_time: number;
|
658
|
+
processor_worker_utilization: number;
|
659
|
+
processor_worker_queue_size: number;
|
660
|
+
processor_worker_completed: number;
|
637
661
|
};
|
638
662
|
};
|
639
663
|
declare const metricsStorage: AsyncLocalStorage<string>;
|
package/lib/index.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
import { createRequire as createRequireShim } from 'module'; const require = createRequireShim(import.meta.url);
|
2
|
-
import{$ as O,A as p,X as N,Y as C,Z as V,_ as w,aa as A,ca as I,da as M,ea as b,fa as y,i as u,j as c,m as T,n as m,o as h,p as l,q as f,r as x,s as d}from"./chunk-
|
2
|
+
import{$ as O,A as p,X as N,Y as C,Z as V,_ as w,aa as A,ca as I,da as M,ea as b,fa as y,i as u,j as c,m as T,n as m,o as h,p as l,q as f,r as x,s as d}from"./chunk-TTE5MQNI.js";var r=class e{stateMap=new Map;static INSTANCE=new e;static reset(){e.INSTANCE=new e}},i=class{constructor(){}key(){return this.constructor.name}getOrRegister(){let t=r.INSTANCE.stateMap.get(this.key());return t||(t=this.initValue(),r.INSTANCE.stateMap.set(this.key(),t)),t}unregister(){let t=r.INSTANCE.stateMap.get(this.key());return r.INSTANCE.stateMap.delete(this.key()),t}},a=class extends i{initValue(){return new Map}getValue(t){return this.getOrRegister().get(t)}getValues(){let t=this.getOrRegister();return Array.from(t.values())}getOrSetValue(t,s){let o=this.getOrRegister(),n=o.get(t);return n?(n!==s&&console.warn(t,"has been registered twice, use the previous one"),n):(o.set(t,s),s)}},g=class extends i{initValue(){return[]}getValues(){return this.getOrRegister()}addValue(t){return this.getOrRegister().push(t),t}};import("node:process").then(e=>e.stdout.write(""));import("node:process").then(e=>e.stdout.write(""));import("node:process").then(e=>e.stdout.write(""));export{I as DummyProvider,d as Endpoints,p as GLOBAL_CONFIG,g as ListStateStorage,a as MapStateStorage,u as Plugin,c as PluginManager,y as ProcessorServiceImpl,b as QueuedStaticJsonRpcProvider,r as State,i as StateStorage,A as StoreContext,h as USER_PROCESSOR,x as compareSemver,N as dbMetrics,m as errorString,M as getProvider,l as makeEthCallKey,T as mergeProcessResults,w as metricsStorage,f as parseSemver,V as processMetrics,C as providerMetrics,O as timeoutError};
|
3
3
|
//# sourceMappingURL=index.js.map
|