@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/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?: any, shutdownHandler?: () => void);
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>;
package/lib/index.js CHANGED
@@ -30,7 +30,7 @@ import {
30
30
  providerMetrics,
31
31
  recordRuntimeInfo,
32
32
  timeoutError
33
- } from "./chunk-YBKSM3GO.js";
33
+ } from "./chunk-AHIIUVQL.js";
34
34
  import {
35
35
  Plugin,
36
36
  PluginManager