This repository was archived by the owner on Mar 18, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 11 files changed +241
-230
lines changed
apps/1kv-backend/templates Expand file tree Collapse file tree 11 files changed +241
-230
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 11description : 1K Validators Backend
22name : otv-backend
3- version : v3.3.4
4- appVersion : v3.3.4
3+ version : v3.3.5
4+ appVersion : v3.3.5
55apiVersion : v2
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 66import { ApiPromise } from "@polkadot/api" ;
77import { scorekeeperLabel } from "./scorekeeper" ;
88import Nominator from "../nominator/nominator" ;
9- import { Constants } from "../index" ;
9+ import { Constants , queries } from "../index" ;
1010import logger from "../logger" ;
1111import { 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 ) ,
Original file line number Diff line number Diff line change 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" : {
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments