@sentio/runtime 2.58.2-rc.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
@@ -28,7 +28,7 @@ import {
28
28
  providerMetrics,
29
29
  recordRuntimeInfo,
30
30
  timeoutError
31
- } from "./chunk-NLEBXJPP.js";
31
+ } from "./chunk-GAHZFTVC.js";
32
32
  import {
33
33
  Plugin,
34
34
  PluginManager
@@ -44,7 +44,7 @@ import {
44
44
  require_lodash,
45
45
  require_src,
46
46
  trace
47
- } from "./chunk-NLEBXJPP.js";
47
+ } from "./chunk-GAHZFTVC.js";
48
48
  import {
49
49
  ExecutionConfig,
50
50
  HandlerType,
@@ -10,7 +10,7 @@ import {
10
10
  recordRuntimeInfo,
11
11
  require_lib3 as require_lib,
12
12
  require_lib4 as require_lib2
13
- } from "./chunk-NLEBXJPP.js";
13
+ } from "./chunk-GAHZFTVC.js";
14
14
  import {
15
15
  PluginManager,
16
16
  ProcessConfigResponse,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentio/runtime",
3
- "version": "2.58.2-rc.1",
3
+ "version": "2.58.2-rc.2",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
package/src/provider.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { JsonRpcProvider, Network, Provider } from 'ethers'
1
+ import { JsonRpcProvider, Network } from 'ethers'
2
2
 
3
3
  import PQueue from 'p-queue'
4
4
  import { Endpoints } from './endpoints.js'
@@ -22,7 +22,7 @@ const providers = new Map<string, JsonRpcProvider>()
22
22
  // return networkish
23
23
  // }
24
24
 
25
- export function getProvider(chainId?: EthChainId): Provider {
25
+ export function getProvider(chainId?: EthChainId): JsonRpcProvider {
26
26
  // const network = getNetworkFromCtxOrNetworkish(networkish)
27
27
  if (!chainId) {
28
28
  chainId = EthChainId.ETHEREUM