Skip to content

Commit

Permalink
Merge pull request #2586 from w3f/will-v3.0.14
Browse files Browse the repository at this point in the history
v3.0.19
  • Loading branch information
wpank authored Feb 19, 2024
2 parents fead15a + d4eaded commit ce25b97
Show file tree
Hide file tree
Showing 113 changed files with 8,041 additions and 9,678 deletions.
20 changes: 16 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,18 @@ jobs:
command: |
yarn set version 3.2.2 && yarn install && yarn build && yarn workspace @1kv/core lint
testCore:
docker:
- image: node:18
resource_class: large
steps:
- checkout
- run:
environment:
YARN_ENABLE_IMMUTABLE_INSTALLS: false
command: |
yarn set version 3.2.2 && yarn install && yarn build && yarn workspace @1kv/core test
helmLint:
docker:
- image: web3f/ci-commons:v3.2.3
Expand Down Expand Up @@ -175,10 +187,10 @@ workflows:
filters:
tags:
only: /.*/
# - unitTests:
# filters:
# tags:
# only: /.*/
- testCore:
filters:
tags:
only: /.*/
- helmLint:
filters:
tags:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ redis/
docs/.DS_Store
/packages/core/kusama-matrix.txt
/packages/core/polkadot-matrix.txt
/packages/common/kusama-slots.json
/packages/common/polkadot-slots.json
/packages/core/coverage/
9 changes: 2 additions & 7 deletions apps/1kv-backend-staging/config/kusama-score.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"inclusion": "220",
"spanInclusion": "220",
"discovered": "5",
"nominated": "30",
"nominated": "80",
"rank": "5",
"bonded": "50",
"faults": "5",
Expand All @@ -11,10 +11,5 @@
"region": "10",
"country": "10",
"provider": "100",
"council": "10",
"democracy": "30",
"nominations": "100",
"delegations": "0",
"openGov": "0",
"openGovDelegation": "0"
"nominations": "100"
}
9 changes: 2 additions & 7 deletions apps/1kv-backend-staging/config/polkadot-score.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"inclusion": "220",
"spanInclusion": "220",
"discovered": "5",
"nominated": "30",
"nominated": "80",
"rank": "5",
"bonded": "50",
"faults": "5",
Expand All @@ -11,10 +11,5 @@
"region": "10",
"country": "10",
"provider": "100",
"council": "10",
"democracy": "30",
"nominations": "100",
"delegations": "0",
"openGov": "0",
"openGovDelegation": "0"
"nominations": "100"
}
3 changes: 1 addition & 2 deletions apps/1kv-backend-staging/templates/kusama-otv-backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
source:
repoURL: https://w3f.github.io/helm-charts/
chart: otv-backend
targetRevision: v3.0.18
targetRevision: v3.0.19
plugin:
env:
- name: HELM_VALUES
Expand All @@ -41,7 +41,6 @@ spec:
config: |
{
"global": {
"dryRun": false,
"networkPrefix": 2,
"apiEndpoints": [
"wss://kusama-rpc.polkadot.io"
Expand Down
3 changes: 1 addition & 2 deletions apps/1kv-backend-staging/templates/polkadot-otv-backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
source:
repoURL: https://w3f.github.io/helm-charts/
chart: otv-backend
targetRevision: v3.0.18
targetRevision: v3.0.19
plugin:
env:
- name: HELM_VALUES
Expand All @@ -41,7 +41,6 @@ spec:
config: |
{
"global": {
"dryRun": false,
"networkPrefix": 0,
"apiEndpoints": [
"wss://rpc.polkadot.io",
Expand Down
9 changes: 2 additions & 7 deletions apps/1kv-backend/config/kusama-score.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"inclusion": "220",
"spanInclusion": "220",
"discovered": "5",
"nominated": "30",
"nominated": "80",
"rank": "5",
"bonded": "50",
"faults": "5",
Expand All @@ -11,10 +11,5 @@
"region": "10",
"country": "10",
"provider": "100",
"council": "10",
"democracy": "30",
"nominations": "100",
"delegations": "0",
"openGov": "0",
"openGovDelegation": "0"
"nominations": "100"
}
9 changes: 2 additions & 7 deletions apps/1kv-backend/config/polkadot-score.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"inclusion": "220",
"spanInclusion": "220",
"discovered": "5",
"nominated": "30",
"nominated": "80",
"rank": "5",
"bonded": "50",
"faults": "5",
Expand All @@ -11,10 +11,5 @@
"region": "10",
"country": "10",
"provider": "100",
"council": "10",
"democracy": "30",
"nominations": "100",
"delegations": "0",
"openGov": "0",
"openGovDelegation": "0"
"nominations": "100"
}
6 changes: 1 addition & 5 deletions apps/1kv-backend/templates/kusama-otv-backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
source:
repoURL: https://w3f.github.io/helm-charts/
chart: otv-backend
targetRevision: v3.0.18
targetRevision: v3.0.19
plugin:
env:
- name: HELM_VALUES
Expand All @@ -39,11 +39,7 @@ spec:
config: |
{
"global": {
"dryRun": false,
"networkPrefix": 2,
"test": false,
"retroactive": false,
"historicalNominations": false,
"apiEndpoints": [
"wss://kusama-rpc.polkadot.io",
"wss://kusama-rpc.dwellir.com",
Expand Down
6 changes: 1 addition & 5 deletions apps/1kv-backend/templates/polkadot-otv-backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
source:
repoURL: https://w3f.github.io/helm-charts/
chart: otv-backend
targetRevision: v3.0.18
targetRevision: v3.0.19
plugin:
env:
- name: HELM_VALUES
Expand All @@ -39,11 +39,7 @@ spec:
config: |
{
"global": {
"dryRun": false,
"networkPrefix": 0,
"test": false,
"retroactive": false,
"historicalNominations": false,
"apiEndpoints": [
"wss://rpc.polkadot.io",
"wss://polkadot-rpc.dwellir.com"
Expand Down
4 changes: 2 additions & 2 deletions charts/otv-backend/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: 1K Validators Backend
name: otv-backend
version: v3.0.18
appVersion: v3.0.18
version: v3.0.19
appVersion: v3.0.19
apiVersion: v2
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,13 @@
"start:dev:telemetry": "yarn workspace @1kv/telemetry run start:dev",
"start:js:telemetry": "NODE_OPTIONS='--max-old-space-size=10096' yarn workspace @1kv/telemetry run js:start",
"start:dev:worker": "yarn workspace @1kv/worker run start:dev",
"start:js:worker": "NODE_OPTIONS='--max-old-space-size=10096' yarn workspace @1kv/worker run js:start"
"start:js:worker": "NODE_OPTIONS='--max-old-space-size=10096' yarn workspace @1kv/worker run js:start",
"test:core": "yarn workspace @1kv/core run test"
},
"devDependencies": {
"@types/coingecko-api": "^1.0.13",
"@types/eslint": "^8.44.7",
"@types/jest": "^29.5.12",
"@types/koa-mount": "^4.0.5",
"@types/node": "^20.11.5",
"@types/request": "^2.48.12",
Expand All @@ -63,7 +65,8 @@
"eslint": "8.42.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "5.0.0",
"prettier": "^3.2.4"
"prettier": "^3.2.4",
"ts-jest": "^29.1.2"
},
"dependencies": {
"axios": "^1.6.7",
Expand All @@ -73,6 +76,7 @@
"koa-mount": "^4.0.0",
"koa-static": "^5.0.0",
"koa-swagger-decorator": "^1.8.7",
"lru-cache": "latest",
"node-fetch": "3.3.2",
"request": "^2.88.2",
"swagger-jsdoc": "^6.2.8",
Expand Down
9 changes: 5 additions & 4 deletions packages/common/package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
{
"name": "@1kv/common",
"version": "3.0.18",
"version": "3.0.19",
"description": "Services for running the Thousand Validator Program.",
"main": "build/index.js",
"types": "build/index.d.ts",
"scripts": {
"build": "tsc --build tsconfig.json",
"docker": "docker-compose rm -f; docker-compose build --no-cache; docker-compose up -d",
"lint": "tsc --noEmit && eslint 'src/**/*.{js,ts,tsx}' --quiet",
"lint:fix": "tsc --noEmit && eslint 'src/**/*.{js,ts,tsx}' --quiet --fix",
"lint:fix": "tsc --noEmit && eslint 'src/**/*.{js,ts,tsx, json}' --quiet --fix",
"clean": "../../node_modules/.bin/rimraf ./build tsconfig.tsbuildinfo combined.log",
"clean:build": "yarn clean && yarn build"
"clean:build": "yarn clean && yarn build",
"writeCandidatesFile": "ts-node src/scripts/writeCandidatesFile.ts && yarn lint:fix"
},
"author": "Web3 Foundation <[email protected]>",
"license": "GPL-3.0",
Expand All @@ -30,11 +31,11 @@
]
},
"dependencies": {
"@polkadot/keyring": "^12.6.2",
"@types/mongoose": "^5.11.97",
"@types/node": "^20.11.5",
"hash.js": "^1.1.7",
"mongoose": "^8.1.1",
"ts-node": "^10.9.2",
"typescript": "^5.3.3",
"winston": "^3.11.0"
}
Expand Down
Loading

0 comments on commit ce25b97

Please sign in to comment.