diff --git a/packages/server/src/index.ts b/packages/server/src/index.ts index 1f37c13dd0..4f32d50ecb 100644 --- a/packages/server/src/index.ts +++ b/packages/server/src/index.ts @@ -19,7 +19,7 @@ */ import app from './server'; -import { EnvProviderService } from '@hashgraph/json-rpc-relay/src/lib/services/envProviderService'; +import { EnvProviderService } from '@hashgraph/json-rpc-relay/dist/lib/services/envProviderService'; import { setServerTimeout } from './koaJsonRpc/lib/utils'; // Import the 'setServerTimeout' function from the correct location async function main() { diff --git a/packages/server/src/koaJsonRpc/lib/methodConfiguration.ts b/packages/server/src/koaJsonRpc/lib/methodConfiguration.ts index 4f3f1a8bfe..f50fa6c3f7 100644 --- a/packages/server/src/koaJsonRpc/lib/methodConfiguration.ts +++ b/packages/server/src/koaJsonRpc/lib/methodConfiguration.ts @@ -18,7 +18,7 @@ * */ -import { EnvProviderService } from '@hashgraph/json-rpc-relay/src/lib/services/envProviderService'; +import { EnvProviderService } from '@hashgraph/json-rpc-relay/dist/lib/services/envProviderService'; import CONSTANTS from '../../../../relay/dist/lib/constants'; const tier1rateLimit = parseInt( diff --git a/packages/server/src/koaJsonRpc/lib/utils.ts b/packages/server/src/koaJsonRpc/lib/utils.ts index 6c29fb059d..ca5cf93013 100644 --- a/packages/server/src/koaJsonRpc/lib/utils.ts +++ b/packages/server/src/koaJsonRpc/lib/utils.ts @@ -20,7 +20,7 @@ import type { Server } from 'http'; import constants from '@hashgraph/json-rpc-relay/dist/lib/constants'; -import { EnvProviderService } from '@hashgraph/json-rpc-relay/src/lib/services/envProviderService'; +import { EnvProviderService } from '@hashgraph/json-rpc-relay/dist/lib/services/envProviderService'; export function hasOwnProperty(obj: any, prop: PropertyKey): boolean { return Object.prototype.hasOwnProperty.call(obj, prop); diff --git a/packages/server/src/rateLimit/index.ts b/packages/server/src/rateLimit/index.ts index a2512829fb..745a03f737 100644 --- a/packages/server/src/rateLimit/index.ts +++ b/packages/server/src/rateLimit/index.ts @@ -21,7 +21,7 @@ import { Logger } from 'pino'; import { formatRequestIdMessage } from '../formatters'; import { Counter, Registry } from 'prom-client'; -import { EnvProviderService } from '@hashgraph/json-rpc-relay/src/lib/services/envProviderService'; +import { EnvProviderService } from '@hashgraph/json-rpc-relay/dist/lib/services/envProviderService'; export default class RateLimit { private duration: number; diff --git a/packages/server/src/server.ts b/packages/server/src/server.ts index e7fd84453a..a20e93cb2f 100644 --- a/packages/server/src/server.ts +++ b/packages/server/src/server.ts @@ -19,7 +19,7 @@ */ import { JsonRpcError, MirrorNodeClientError, predefined, Relay, RelayImpl } from '@hashgraph/json-rpc-relay'; -import { EnvProviderService } from '@hashgraph/json-rpc-relay/src/lib/services/envProviderService'; +import { EnvProviderService } from '@hashgraph/json-rpc-relay/dist/lib/services/envProviderService'; import { ITracerConfig } from '@hashgraph/json-rpc-relay/src/lib/types'; import { collectDefaultMetrics, Histogram, Registry } from 'prom-client'; import KoaJsonRpc from './koaJsonRpc'; diff --git a/packages/ws-server/src/controllers/eth_subscribe.ts b/packages/ws-server/src/controllers/eth_subscribe.ts index bc773537ef..2eee7cd43f 100644 --- a/packages/ws-server/src/controllers/eth_subscribe.ts +++ b/packages/ws-server/src/controllers/eth_subscribe.ts @@ -24,7 +24,7 @@ import constants from '@hashgraph/json-rpc-relay/dist/lib/constants'; import { MirrorNodeClient } from '@hashgraph/json-rpc-relay/dist/lib/clients'; import jsonResp from '@hashgraph/json-rpc-server/dist/koaJsonRpc/lib/RpcResponse'; import { constructValidLogSubscriptionFilter, getMultipleAddressesEnabled } from '../utils/utils'; -import { EnvProviderService } from '@hashgraph/json-rpc-relay/src/lib/services/envProviderService'; +import { EnvProviderService } from '@hashgraph/json-rpc-relay/dist/lib/services/envProviderService'; /** * Subscribes to new block headers (newHeads) events and returns the response and subscription ID. diff --git a/packages/ws-server/src/metrics/connectionLimiter.ts b/packages/ws-server/src/metrics/connectionLimiter.ts index 6dc3e7b6b8..9e44edb999 100644 --- a/packages/ws-server/src/metrics/connectionLimiter.ts +++ b/packages/ws-server/src/metrics/connectionLimiter.ts @@ -25,7 +25,7 @@ import { WebSocketError } from '@hashgraph/json-rpc-relay'; import RateLimit from '@hashgraph/json-rpc-server/dist/rateLimit'; import constants from '@hashgraph/json-rpc-relay/dist/lib/constants'; import { methodConfiguration } from '@hashgraph/json-rpc-server/dist/koaJsonRpc/lib/methodConfiguration'; -import { EnvProviderService } from '@hashgraph/json-rpc-relay/src/lib/services/envProviderService'; +import { EnvProviderService } from '@hashgraph/json-rpc-relay/dist/lib/services/envProviderService'; type IpCounter = { [key: string]: number; diff --git a/packages/ws-server/src/utils/utils.ts b/packages/ws-server/src/utils/utils.ts index 5a62186f11..ab85e76033 100644 --- a/packages/ws-server/src/utils/utils.ts +++ b/packages/ws-server/src/utils/utils.ts @@ -22,7 +22,7 @@ import { WS_CONSTANTS } from './constants'; import WsMetricRegistry from '../metrics/wsMetricRegistry'; import ConnectionLimiter from '../metrics/connectionLimiter'; import { Relay } from '@hashgraph/json-rpc-relay'; -import { EnvProviderService } from '@hashgraph/json-rpc-relay/src/lib/services/envProviderService'; +import { EnvProviderService } from '@hashgraph/json-rpc-relay/dist/lib/services/envProviderService'; const hasOwnProperty = (obj: any, prop: any) => Object.prototype.hasOwnProperty.call(obj, prop); const getRequestIdIsOptional = () => { diff --git a/packages/ws-server/src/webSocketServer.ts b/packages/ws-server/src/webSocketServer.ts index 5bc8109d74..325fc940e5 100644 --- a/packages/ws-server/src/webSocketServer.ts +++ b/packages/ws-server/src/webSocketServer.ts @@ -34,7 +34,7 @@ import KoaJsonRpc from '@hashgraph/json-rpc-server/dist/koaJsonRpc'; import jsonResp from '@hashgraph/json-rpc-server/dist/koaJsonRpc/lib/RpcResponse'; import { JsonRpcError, predefined, Relay, RelayImpl } from '@hashgraph/json-rpc-relay'; import { getBatchRequestsMaxSize, getWsBatchRequestsEnabled, handleConnectionClose, sendToClient } from './utils/utils'; -import { EnvProviderService } from '@hashgraph/json-rpc-relay/src/lib/services/envProviderService'; +import { EnvProviderService } from '@hashgraph/json-rpc-relay/dist/lib/services/envProviderService'; dotenv.config({ path: path.resolve(__dirname, '../../../.env') });