From 434fc6836b3f21ad6905191732906caa4b8ccbb1 Mon Sep 17 00:00:00 2001 From: Ahmed Ihsan Tawfeeq Date: Fri, 9 Feb 2024 15:58:11 -0400 Subject: [PATCH] build: upgrade package version to 1.2.0 build: move hardhat ts config to "tsconfig.dev.json" file build: switch node version to "v20" in NVM config build: use "node:20-alpine" instead of "node:16-slim" in Docker config build: use "tsconfig.dev.json" for hardhat script in "package.json" file build: remove superfluous network config from test script in "package.json" file --- .nvmrc | 2 +- Dockerfile | 2 +- deployment.yaml | 2 +- package.json | 4 ++-- tsconfig.dev.json | 5 +++++ tsconfig.json | 3 +-- 6 files changed, 11 insertions(+), 7 deletions(-) create mode 100644 tsconfig.dev.json diff --git a/.nvmrc b/.nvmrc index e329619..9a2a0e2 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v16.19.1 +v20 diff --git a/Dockerfile b/Dockerfile index 8c7d899..1bb481b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=linux/amd64 node:16-slim AS base +FROM --platform=linux/amd64 node:20-alpine AS base LABEL author="scorpion9979 " WORKDIR /liquidator diff --git a/deployment.yaml b/deployment.yaml index c99117d..8f901c7 100644 --- a/deployment.yaml +++ b/deployment.yaml @@ -59,7 +59,7 @@ spec: secretKeyRef: name: hifi-liquidator-js-secret key: wallet-seed - image: us-west3-docker.pkg.dev/liquidation-bots/hifi/hifi-liquidator-js:1.1.4 + image: us-west3-docker.pkg.dev/liquidation-bots/hifi/hifi-liquidator-js:1.2.0 name: hifi-liquidator-js resources: limits: diff --git a/package.json b/package.json index 191ef19..e597a84 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@hifi/liquidator-js", "description": "Utility for automatically liquidating underwater accounts in Hifi", - "version": "1.1.4", + "version": "1.2.0", "author": { "name": "Hifi", "email": "contact@hifi.finance", @@ -53,7 +53,7 @@ "prettier": "prettier --config ./.prettierrc --write \"**/*.{js,json,md,ts}\"", "prettier:check": "prettier --check --config ./.prettierrc \"**/*.{js,json,md,ts}\"", "start": "ts-node src", - "test": "hardhat test --network hardhat" + "test": "hardhat test --tsconfig tsconfig.dev.json" }, "dependencies": { "@hifi/flash-swap": "^1.13.0", diff --git a/tsconfig.dev.json b/tsconfig.dev.json new file mode 100644 index 0000000..7f120ae --- /dev/null +++ b/tsconfig.dev.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "files": ["./hardhat.config.ts"], + "include": ["test/**/*"] +} diff --git a/tsconfig.json b/tsconfig.json index b550fa1..6683ed8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,6 +13,5 @@ "target": "es6" }, "exclude": ["node_modules"], - "files": ["./hardhat.config.ts"], - "include": ["src/**/*", "test/**/*"] + "include": ["src/**/*"] }