@sentio/runtime 2.58.1 → 2.58.2-rc.2
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-6XHWJ2VS.js +92 -0
- package/lib/{chunk-WHWNPZZ3.js.map → chunk-6XHWJ2VS.js.map} +1 -1
- package/lib/chunk-BPGFX5S5.js +10975 -0
- package/lib/{chunk-QVIDLAYP.js.map → chunk-BPGFX5S5.js.map} +1 -1
- package/lib/chunk-GAHZFTVC.js +59726 -0
- package/lib/{chunk-LHDBKJ2B.js.map → chunk-GAHZFTVC.js.map} +1 -1
- package/lib/chunk-ZUTD563J.js +23006 -0
- package/lib/{chunk-NEX6GJVW.js.map → chunk-ZUTD563J.js.map} +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +70 -1
- package/lib/index.js.map +1 -1
- package/lib/processor-runner.js +26592 -21
- package/lib/processor-runner.js.map +1 -1
- package/lib/service-worker.js +128 -2
- package/lib/service-worker.js.map +1 -1
- package/lib/test-processor.test.js.map +1 -1
- package/package.json +1 -1
- package/src/processor-runner.ts +6 -2
- package/src/provider.ts +2 -2
- package/lib/chunk-LHDBKJ2B.js +0 -116
- package/lib/chunk-NEX6GJVW.js +0 -26
- package/lib/chunk-QVIDLAYP.js +0 -38
- package/lib/chunk-WHWNPZZ3.js +0 -3
package/lib/index.d.ts
CHANGED
@@ -5,7 +5,7 @@ import { AsyncLocalStorage } from 'node:async_hooks';
|
|
5
5
|
import { Required } from 'utility-types';
|
6
6
|
import { CallContext } from 'nice-grpc';
|
7
7
|
import _m0 from 'protobufjs/minimal.js';
|
8
|
-
import { JsonRpcProvider,
|
8
|
+
import { JsonRpcProvider, Network } from 'ethers';
|
9
9
|
import PQueue from 'p-queue';
|
10
10
|
import { EthChainId } from '@sentio/chain';
|
11
11
|
import { Counter, Attributes, Gauge, Histogram } from '@opentelemetry/api';
|
@@ -526,7 +526,7 @@ interface GlobalConfig {
|
|
526
526
|
declare const GLOBAL_CONFIG: GlobalConfig;
|
527
527
|
|
528
528
|
declare const DummyProvider: JsonRpcProvider;
|
529
|
-
declare function getProvider(chainId?: EthChainId):
|
529
|
+
declare function getProvider(chainId?: EthChainId): JsonRpcProvider;
|
530
530
|
declare class QueuedStaticJsonRpcProvider extends JsonRpcProvider {
|
531
531
|
#private;
|
532
532
|
executor: PQueue;
|
package/lib/index.js
CHANGED
@@ -1,3 +1,72 @@
|
|
1
1
|
import { createRequire as createRequireShim } from 'module'; const require = createRequireShim(import.meta.url);
|
2
|
-
import
|
2
|
+
import {
|
3
|
+
ListStateStorage,
|
4
|
+
MapStateStorage,
|
5
|
+
State,
|
6
|
+
StateStorage,
|
7
|
+
TemplateInstanceState
|
8
|
+
} from "./chunk-6XHWJ2VS.js";
|
9
|
+
import {
|
10
|
+
AbstractStoreContext,
|
11
|
+
DummyProvider,
|
12
|
+
Endpoints,
|
13
|
+
GLOBAL_CONFIG,
|
14
|
+
ProcessorServiceImpl,
|
15
|
+
QueuedStaticJsonRpcProvider,
|
16
|
+
StoreContext,
|
17
|
+
USER_PROCESSOR,
|
18
|
+
compareSemver,
|
19
|
+
configureEndpoints,
|
20
|
+
dbMetrics,
|
21
|
+
errorString,
|
22
|
+
getProvider,
|
23
|
+
makeEthCallKey,
|
24
|
+
mergeProcessResults,
|
25
|
+
metricsStorage,
|
26
|
+
parseSemver,
|
27
|
+
processMetrics,
|
28
|
+
providerMetrics,
|
29
|
+
recordRuntimeInfo,
|
30
|
+
timeoutError
|
31
|
+
} from "./chunk-GAHZFTVC.js";
|
32
|
+
import {
|
33
|
+
Plugin,
|
34
|
+
PluginManager
|
35
|
+
} from "./chunk-ZUTD563J.js";
|
36
|
+
|
37
|
+
// src/chain-config.ts
|
38
|
+
import("node:process").then((p) => p.stdout.write(""));
|
39
|
+
|
40
|
+
// src/index.ts
|
41
|
+
import("node:process").then((p) => p.stdout.write(""));
|
42
|
+
export {
|
43
|
+
AbstractStoreContext,
|
44
|
+
DummyProvider,
|
45
|
+
Endpoints,
|
46
|
+
GLOBAL_CONFIG,
|
47
|
+
ListStateStorage,
|
48
|
+
MapStateStorage,
|
49
|
+
Plugin,
|
50
|
+
PluginManager,
|
51
|
+
ProcessorServiceImpl,
|
52
|
+
QueuedStaticJsonRpcProvider,
|
53
|
+
State,
|
54
|
+
StateStorage,
|
55
|
+
StoreContext,
|
56
|
+
TemplateInstanceState,
|
57
|
+
USER_PROCESSOR,
|
58
|
+
compareSemver,
|
59
|
+
configureEndpoints,
|
60
|
+
dbMetrics,
|
61
|
+
errorString,
|
62
|
+
getProvider,
|
63
|
+
makeEthCallKey,
|
64
|
+
mergeProcessResults,
|
65
|
+
metricsStorage,
|
66
|
+
parseSemver,
|
67
|
+
processMetrics,
|
68
|
+
providerMetrics,
|
69
|
+
recordRuntimeInfo,
|
70
|
+
timeoutError
|
71
|
+
};
|
3
72
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/chain-config.ts","../src/index.ts"],"sourcesContent":["export interface ChainConfig {\n ChainID: string\n Https?: string[]\n ChainServer?: string\n}\n;import(\"node:process\").then((p) => p.stdout.write(\"\"));","export * from './plugin.js'\nexport * from './state.js'\nexport * from './utils.js'\nexport * from './endpoints.js'\nexport * from './chain-config.js'\nexport * from './service.js'\nexport { GLOBAL_CONFIG, type GlobalConfig } from './global-config.js'\nexport * from './db-context.js'\nexport * from './provider.js'\nexport * from './metrics.js'\n;import(\"node:process\").then((p) => p.stdout.write(\"\"));"],"mappings":"
|
1
|
+
{"version":3,"sources":["../src/chain-config.ts","../src/index.ts"],"sourcesContent":["export interface ChainConfig {\n ChainID: string\n Https?: string[]\n ChainServer?: string\n}\n;import(\"node:process\").then((p) => p.stdout.write(\"\"));","export * from './plugin.js'\nexport * from './state.js'\nexport * from './utils.js'\nexport * from './endpoints.js'\nexport * from './chain-config.js'\nexport * from './service.js'\nexport { GLOBAL_CONFIG, type GlobalConfig } from './global-config.js'\nexport * from './db-context.js'\nexport * from './provider.js'\nexport * from './metrics.js'\n;import(\"node:process\").then((p) => p.stdout.write(\"\"));"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKC,OAAO,cAAc,EAAE,KAAK,CAAC,MAAM,EAAE,OAAO,MAAM,EAAE,CAAC;;;ACKrD,OAAO,cAAc,EAAE,KAAK,CAAC,MAAM,EAAE,OAAO,MAAM,EAAE,CAAC;","names":[]}
|