chore: awaiting latest common
This commit is contained in:
@@ -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/
|
||||||
|
|||||||
@@ -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'
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user