chore: awaiting latest common

This commit is contained in:
Jack Waller
2025-09-16 11:05:39 +10:00
parent f64091a09f
commit 0925a5a4fd
3 changed files with 6 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ RUN yarn && yarn build
FROM public.ecr.aws/docker/library/node:20.18.1-alpine FROM public.ecr.aws/docker/library/node:20.18.1-alpine
RUN apk add python3 make g++ --virtual .build &&\ 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 apk del .build
COPY --from=builder /app/lib/ ./lib/ COPY --from=builder /app/lib/ ./lib/

View File

@@ -13,7 +13,8 @@ const commonConfig = {
format: 'cjs', format: 'cjs',
external: [ external: [
'bigint-buffer', 'bigint-buffer',
'@triton-one/yellowstone-grpc' '@triton-one/yellowstone-grpc',
'helius-laserstream'
] ]
}; };

View File

@@ -109,6 +109,7 @@ const endpoint = process.env.ENDPOINT;
const grpcEndpoint = useGrpc const grpcEndpoint = useGrpc
? process.env.GRPC_ENDPOINT ?? endpoint + `/${token}` ? process.env.GRPC_ENDPOINT ?? endpoint + `/${token}`
: ''; : '';
const grpcClient = process.env.GRPC_CLIENT ?? 'yellowstone'
const wsEndpoint = process.env.WS_ENDPOINT; const wsEndpoint = process.env.WS_ENDPOINT;
const useOrderSubscriber = const useOrderSubscriber =
@@ -503,6 +504,8 @@ const main = async () => {
'grpc.keepalive_timeout_ms': 1_000, 'grpc.keepalive_timeout_ms': 1_000,
'grpc.keepalive_permit_without_calls': 1, 'grpc.keepalive_permit_without_calls': 1,
}, },
client: grpcClient
}, },
commitment: stateCommitment, commitment: stateCommitment,
}; };