diff --git a/Dockerfile b/Dockerfile index c92076b..a57f423 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,7 @@ RUN yarn && yarn build FROM public.ecr.aws/docker/library/node:20.18.1-alpine RUN apk add python3 make g++ --virtual .build &&\ - npm install -C /lib bigint-buffer @triton-one/yellowstone-grpc@1.3.0 &&\ + npm install -C /lib bigint-buffer @triton-one/yellowstone-grpc@1.3.0 helius-laserstream &&\ apk del .build COPY --from=builder /app/lib/ ./lib/ diff --git a/esbuild.config.js b/esbuild.config.js index 51a3a20..8132a55 100644 --- a/esbuild.config.js +++ b/esbuild.config.js @@ -13,7 +13,8 @@ const commonConfig = { format: 'cjs', external: [ 'bigint-buffer', - '@triton-one/yellowstone-grpc' + '@triton-one/yellowstone-grpc', + 'helius-laserstream' ] }; diff --git a/src/publishers/dlobPublisher.ts b/src/publishers/dlobPublisher.ts index fba9e8b..adf7b9c 100644 --- a/src/publishers/dlobPublisher.ts +++ b/src/publishers/dlobPublisher.ts @@ -109,6 +109,7 @@ const endpoint = process.env.ENDPOINT; const grpcEndpoint = useGrpc ? process.env.GRPC_ENDPOINT ?? endpoint + `/${token}` : ''; +const grpcClient = process.env.GRPC_CLIENT ?? 'yellowstone' const wsEndpoint = process.env.WS_ENDPOINT; const useOrderSubscriber = @@ -503,6 +504,8 @@ const main = async () => { 'grpc.keepalive_timeout_ms': 1_000, 'grpc.keepalive_permit_without_calls': 1, }, + client: grpcClient + }, commitment: stateCommitment, };