@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/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, Provider, Network } from 'ethers';
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): Provider;
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{a as p,b as f,c as i,d as m,e as n}from"./chunk-WHWNPZZ3.js";import{O as l,P as u,Q as w,R as I,S as L,T as O,U as b,W as c,X as v,Y as y,Z as A,_ as B,a as x,b as s,c as C,d as a,e as g,f as h,h as G,i as d,q as o}from"./chunk-LHDBKJ2B.js";import{t,u as e}from"./chunk-NEX6GJVW.js";import("node:process").then(r=>r.stdout.write(""));import("node:process").then(r=>r.stdout.write(""));export{O as AbstractStoreContext,c as DummyProvider,G as Endpoints,o as GLOBAL_CONFIG,m as ListStateStorage,i as MapStateStorage,t as Plugin,e as PluginManager,A as ProcessorServiceImpl,y as QueuedStaticJsonRpcProvider,p as State,f as StateStorage,b as StoreContext,n as TemplateInstanceState,C as USER_PROCESSOR,h as compareSemver,d as configureEndpoints,l as dbMetrics,s as errorString,v as getProvider,a as makeEthCallKey,x as mergeProcessResults,I as metricsStorage,g as parseSemver,w as processMetrics,u as providerMetrics,B as recordRuntimeInfo,L as timeoutError};
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":";kSAKC,OAAO,cAAc,EAAE,KAAMA,GAAMA,EAAE,OAAO,MAAM,EAAE,CAAC,ECKrD,OAAO,cAAc,EAAE,KAAMC,GAAMA,EAAE,OAAO,MAAM,EAAE,CAAC","names":["p","p"]}
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":[]}