Skip to content
Open
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/manual_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ on:
workflow_dispatch:
inputs:
branch:
description: "Branch to build and release"
description: 'Branch to build and release'
required: true
default: "master"
default: 'master'
tag:
description: "Tag to build and release"
description: 'Tag to build and release'
required: true

env:
Expand All @@ -17,7 +17,7 @@ env:

jobs:
build-and-push:
runs-on: "ubuntu-latest"
runs-on: 'ubuntu-latest'
timeout-minutes: 20
steps:
- name: Checkout
Expand Down
3 changes: 3 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@

npm run prettier:lint
npm run eslint:lint
npm run generate-envs

git add docs/env-vars.md
6 changes: 3 additions & 3 deletions docs/env-vars.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ _Object containing the following properties:_
| `TARGET_SOLUTION_NAMESPACES` | If set it will only install solutions that namespaces are specified in this env. variable. Comma-separated. | `string` | |
| `RETRY_WORKER_CHECKS` | If it's enabled it will indefinitely await for worker to pass all checks otherwise it will kill process. Useful e.g if worker account is not yet assigned to operator at the moment of configuration. | `boolean` (_nullable_) | `true` |
| `ENABLE_HEALTH_API` | If it's enabled it will enable health check routes. | `boolean` (_nullable_) | `true` |
| **`PALLET_RPC_URL`** (\*) | Read EWX Parachain URL | `string` (_url_) | |
| `PALLET_RPC_URL` | Read EWX Parachain URL. If provided, it will overwrite value provided from BASE_URLS. | `string` (_url_) | |
| **`VOTING_RPC_URL`** (\*) | Write EWX Parachain URL | `string` (_url_) | |
| **`VOTING_WORKER_SEED`** (\*) | Seed of the worker (not operator) | `string` | |
| `PORT` | Port number of NodeRed Server. | `number` (_>0_) | `8000` |
Expand All @@ -30,9 +30,9 @@ _Object containing the following properties:_
| `HEARTBEAT_PATH` | Path to the heartbeat file used for monitoring. | `string` | `'heartbeat_monitor.txt'` |
| `HEARTBEAT_INTERVAL` | Interval (in ms) at which the heartbeat process updates the file. | `number` (_>0_) | `5000` |
| `HEARTBEAT_PRINT_SUCCESS_LOG` | Should print successful logs. | `'true' \| 'false'` | `'true'` |
| `PALLET_AUTH_SERVER_LOGIN_URL` | Pallet Auth Server Url used for authentication to Workers Registry | `string` (_url_) | `'https://auth.energywebx.com/api/auth/login'` |
| `PALLET_AUTH_SERVER_LOGIN_URL` | Pallet Auth Server Url used for authentication to Workers Registry. If provided, it will overwrite value provided from BASE_URLS. | `string` (_url_) | |
| `PALLET_AUTH_SERVER_DOMAIN` | Pallet Auth Server domain | `string` | `'default'` |
| `WORKER_REGISTRY_URL` | | `string` (_url_) | `'https://workers-registry.energywebx.com'` |
| `WORKER_REGISTRY_URL` | Url of Workers Registry that stores information about Worker Location. If provided, it will overwrite value provided from BASE_URLS. | `string` (_url_) | |
| `BASE_URLS` | Base URLs of EWX resources | `string` (_url_) | `'https://marketplace-cdn.energyweb.org/base_urls.json'` |
| `BUILD_METADATA_PATH` | Path to build metadata file | `string` | `'./build.json'` |

Expand Down
186 changes: 184 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
"version": "1.0.0",
"description": "",
"main": "dist/main.js",
"engineStrict": true,
"engines": {
"node": ">=22.21.1",
"npm": ">=10.9.0"
},
"scripts": {
"build": "tsc",
"build:watch": "tsc --watch",
Expand All @@ -21,10 +26,12 @@
"@energyweb/node-red-contrib-green-proof-worker": "2.5.1",
"@polkadot/api": "14.0.1",
"axios": "1.7.9",
"cache-manager": "7.2.5",
"dotenv": "16.4.7",
"express": "4.21.2",
"express-async-handler": "1.2.0",
"fastq": "1.19.0",
"jsonwebtoken": "9.0.2",
"node-red": "4.0.8",
"pino": "9.6.0",
"pino-pretty": "13.0.0",
Expand All @@ -34,6 +41,7 @@
"devDependencies": {
"@commitlint/cli": "19.7.1",
"@commitlint/config-conventional": "19.7.1",
"@types/jsonwebtoken": "9.0.10",
"@types/node": "18.19.75",
"@types/node-red": "1.3.5",
"@types/promise-retry": "1.1.6",
Expand Down
Loading