Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit 9b6d091

Browse files
authored
Merge pull request #3049 from w3f/staging
Staging
2 parents 326f7bf + 3971171 commit 9b6d091

File tree

11 files changed

+241
-230
lines changed

11 files changed

+241
-230
lines changed

apps/1kv-backend/templates/kusama-otv-backend.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ spec:
1717
source:
1818
repoURL: https://w3f.github.io/helm-charts/
1919
chart: otv-backend
20-
targetRevision: v3.3.4
20+
targetRevision: v3.3.5
2121
plugin:
2222
env:
2323
- name: HELM_VALUES

apps/1kv-backend/templates/polkadot-otv-backend.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ spec:
1717
source:
1818
repoURL: https://w3f.github.io/helm-charts/
1919
chart: otv-backend
20-
targetRevision: v3.3.4
20+
targetRevision: v3.3.5
2121
plugin:
2222
env:
2323
- name: HELM_VALUES

charts/otv-backend/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
description: 1K Validators Backend
22
name: otv-backend
3-
version: v3.3.4
4-
appVersion: v3.3.4
3+
version: v3.3.5
4+
appVersion: v3.3.5
55
apiVersion: v2

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@
8181
"@1kv/telemetry": "workspace:*",
8282
"@koa/router": "^12.0.1",
8383
"@octokit/rest": "^20.0.2",
84-
"@polkadot/api": "^12.4.2",
85-
"@polkadot/keyring": "^12.6.2",
84+
"@polkadot/api": "^13.1.1",
85+
"@polkadot/keyring": "^13.1.1",
8686
"axios": "^1.6.7",
8787
"chalk": "5.3.0",
8888
"coingecko-api-v3": "^0.0.29",

packages/common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@1kv/common",
3-
"version": "3.3.4",
3+
"version": "3.3.5",
44
"description": "Services for running the Thousand Validator Program.",
55
"main": "build/index.js",
66
"types": "build/index.d.ts",

packages/common/src/scorekeeper/NumNominations.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import { ApiPromise } from "@polkadot/api";
77
import { scorekeeperLabel } from "./scorekeeper";
88
import Nominator from "../nominator/nominator";
9-
import { Constants } from "../index";
9+
import { Constants, queries } from "../index";
1010
import logger from "../logger";
1111
import { NominatorState, NominatorStatus } from "../types";
1212

@@ -112,7 +112,11 @@ export const autoNumNominations = async (
112112
// How many additional validator to nominate above the amount to get in the set
113113
const additional = 1.05;
114114

115-
const maxNominations = 24;
115+
//Kusama max 24; Polkadot max 16
116+
const maxNominations =
117+
(await queries.getChainMetadata())?.name.toLowerCase() == "kusama"
118+
? 24
119+
: 16;
116120
// The total amount of validators to nominate
117121
const adjustedNominationAmount = Math.min(
118122
Math.ceil(amount * additional),

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@1kv/core",
3-
"version": "3.3.4",
3+
"version": "3.3.5",
44
"description": "Services for running the Thousand Validator Program.",
55
"main": "index.js",
66
"scripts": {

packages/gateway/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@1kv/gateway",
3-
"version": "3.3.4",
3+
"version": "3.3.5",
44
"description": "Services for running the Thousand Validator Program.",
55
"main": "build/index.js",
66
"types": "build/index.d.ts",

packages/scorekeeper-status-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@1kv/scorekeeper-status-ui",
33
"private": true,
4-
"version": "3.3.4",
4+
"version": "3.3.5",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

packages/telemetry/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@1kv/telemetry",
3-
"version": "3.3.4",
3+
"version": "3.3.5",
44
"description": "Services for running the Thousand Validator Program.",
55
"main": "build/index.js",
66
"types": "build/index.d.ts",

0 commit comments

Comments
 (0)