@sentio/runtime 2.62.0-rc.8 → 2.62.0-rc.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-YBKSM3GO.js → chunk-AHIIUVQL.js} +2 -2
- package/lib/{chunk-YBKSM3GO.js.map → chunk-AHIIUVQL.js.map} +1 -1
- package/lib/index.d.ts +22 -1
- package/lib/index.js +1 -1
- package/lib/processor-runner.js +6819 -6802
- package/lib/processor-runner.js.map +1 -1
- package/lib/service-worker.js +1 -1
- package/lib/service-worker.js.map +1 -1
- package/package.json +3 -2
- package/src/processor-runner-program.ts +57 -0
- package/src/processor-runner.ts +10 -65
- package/src/service-manager.ts +3 -2
- package/src/service-v3.ts +3 -2
- package/src/service-worker.ts +3 -2
- package/src/service.ts +3 -2
package/lib/index.d.ts
CHANGED
@@ -5,6 +5,7 @@ import { TemplateInstance, ProcessResult, EthCallParam, ProcessorServiceImplemen
|
|
5
5
|
import { Required } from 'utility-types';
|
6
6
|
import { CallContext } from 'nice-grpc';
|
7
7
|
import { Subject } from 'rxjs';
|
8
|
+
import { Command } from '@commander-js/extra-typings';
|
8
9
|
import { JsonRpcProvider, Network } from 'ethers';
|
9
10
|
import PQueue from 'p-queue';
|
10
11
|
import { EthChainId } from '@sentio/chain';
|
@@ -73,6 +74,26 @@ interface ChainConfig {
|
|
73
74
|
ChainServer?: string;
|
74
75
|
}
|
75
76
|
|
77
|
+
declare const program: Command<[string], {
|
78
|
+
port: string;
|
79
|
+
concurrency: number;
|
80
|
+
batchCount: number;
|
81
|
+
chainsConfig: string;
|
82
|
+
chainqueryServer?: string | undefined;
|
83
|
+
pricefeedServer?: string | undefined;
|
84
|
+
logFormat: string;
|
85
|
+
debug?: true | undefined;
|
86
|
+
otlpDebug?: true | undefined;
|
87
|
+
startActionServer?: true | undefined;
|
88
|
+
worker: number;
|
89
|
+
processTimeout: number;
|
90
|
+
workerTimeout: number;
|
91
|
+
enablePartition: boolean;
|
92
|
+
}, {}>;
|
93
|
+
type ProcessorRuntimeOptions = ReturnType<typeof program.opts> & {
|
94
|
+
target: string;
|
95
|
+
};
|
96
|
+
|
76
97
|
declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
|
77
98
|
private started;
|
78
99
|
unhandled: Error;
|
@@ -81,7 +102,7 @@ declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
|
|
81
102
|
private readonly enablePreprocess;
|
82
103
|
private preparedData;
|
83
104
|
readonly enablePartition: boolean;
|
84
|
-
constructor(loader: () => Promise<any>, options?:
|
105
|
+
constructor(loader: () => Promise<any>, options?: ProcessorRuntimeOptions, shutdownHandler?: () => void);
|
85
106
|
getConfig(request: ProcessConfigRequest, context: CallContext): Promise<ProcessConfigResponse>;
|
86
107
|
start(request: StartRequest, context: CallContext): Promise<Empty>;
|
87
108
|
stop(request: Empty, context: CallContext): Promise<Empty>;
|