Skip to content

Commit c12813a

Browse files
committed
chore: upgrade node to v20
1 parent 5968300 commit c12813a

File tree

13 files changed

+119
-93
lines changed

13 files changed

+119
-93
lines changed

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
package-manager-strict=true
2+
engine-strict=true

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v18.19.1
1+
v20.17.0

.tool-versions

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
nodejs 18.19.1
2-
pnpm 9.3.0
1+
nodejs 20.17.0
2+
pnpm 9.12.1
33
rust 1.78.0
44
python 3.12.4

Dockerfile.node

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:18.19.1-slim@sha256:246bf34b0c7cf8d9ff7cbe0c1ff44b178051f06c432c8e7df1645f1bd20b0352 as builder-base
1+
FROM node:20.17.0-slim@sha256:246bf34b0c7cf8d9ff7cbe0c1ff44b178051f06c432c8e7df1645f1bd20b0352 as builder-base
22
WORKDIR /usr/src/pyth
33
ENV PNPM_HOME="/pnpm"
44
ENV PATH="$PNPM_HOME:$PATH"
@@ -7,7 +7,7 @@ COPY ./ .
77
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
88

99

10-
FROM node:18.19.1-alpine@sha256:c7620fdecfefb96813da62519897808775230386f4c8482e972e37b8b18cb460 as runner-base
10+
FROM node:20.17.0-alpine@sha256:c7620fdecfefb96813da62519897808775230386f4c8482e972e37b8b18cb460 as runner-base
1111
WORKDIR /srv
1212
ENV NODE_ENV production
1313
RUN addgroup --system --gid 1001 pyth && adduser --system --uid 1001 pyth -g pyth && chown pyth:pyth .

apps/api-reference/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"type": "module",
66
"engines": {
7-
"node": "18"
7+
"node": "20"
88
},
99
"scripts": {
1010
"build": "next build",

apps/staking/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"type": "module",
66
"engines": {
7-
"node": "18"
7+
"node": "20"
88
},
99
"scripts": {
1010
"build": "next build",

flake.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414
flake-utils.lib.eachDefaultSystem
1515
(
1616
system: let
17-
nodejs-overlay = _: prev: {
18-
nodejs = prev.nodejs_18;
19-
};
20-
2117
cli-overlay = _: prev: {
2218
cli = let
2319
pnpm = "${prev.pnpm}/bin/pnpm i && ${prev.pnpm}/bin/pnpm";
@@ -48,7 +44,7 @@
4844

4945
pkgs = import nixpkgs {
5046
inherit system;
51-
overlays = [mkCli.overlays.default cli-overlay nodejs-overlay];
47+
overlays = [mkCli.overlays.default cli-overlay];
5248
config = {};
5349
};
5450
in {
@@ -63,6 +59,7 @@
6359
pkgs.pnpm
6460
pkgs.pre-commit
6561
pkgs.python3
62+
pkgs.python3Packages.distutils
6663
];
6764
};
6865
}

governance/xc_admin/packages/xc_admin_cli/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
},
2222
"dependencies": {
2323
"@coral-xyz/anchor": "^0.29.0",
24-
"@ledgerhq/hw-transport": "^6.27.10",
25-
"@ledgerhq/hw-transport-node-hid": "^6.27.10",
24+
"@ledgerhq/hw-transport": "^6.31.4",
25+
"@ledgerhq/hw-transport-node-hid": "^6.29.5",
2626
"@pythnetwork/client": "^2.22.0",
2727
"@pythnetwork/pyth-solana-receiver": "workspace:*",
2828
"@pythnetwork/solana-utils": "workspace:^",

governance/xc_admin/packages/xc_admin_cli/src/ledger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ async function send(
152152
buffer
153153
);
154154
if (response.length !== 2)
155-
throw TransportStatusError(StatusCodes.INCORRECT_DATA);
155+
throw new TransportStatusError(StatusCodes.INCORRECT_DATA);
156156

157157
p2 |= P2_EXTEND;
158158
offset += MAX_PAYLOAD;

0 commit comments

Comments
 (0)