Skip to content

Commit

Permalink
Merge pull request #1879 from w3f/will-vals156
Browse files Browse the repository at this point in the history
Add More Validators Round 156
  • Loading branch information
wpank committed Jul 12, 2022
2 parents 9dfc9e6 + 29d641a commit e10cefd
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 29 deletions.
2 changes: 1 addition & 1 deletion charts/otv-backend/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
description: 1K Validators Backend
name: otv-backend
version: v2.6.19
version: v2.6.20
apiVersion: v2
2 changes: 1 addition & 1 deletion charts/otv-backend/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ resources:

image:
repo: web3f/otv-backend
tag: v2.6.19
tag: v2.6.20

certificate:
enabled: true
Expand Down
4 changes: 2 additions & 2 deletions helmfile.d/10-otv-backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ releases:
namespace: kusama
{{ if eq .Environment.Name "production" }}
chart: w3f/otv-backend
version: v2.6.19
version: v2.6.20
{{ else }}
chart: ../charts/otv-backend
{{ end }}
Expand All @@ -27,7 +27,7 @@ releases:
namespace: polkadot
{{ if eq .Environment.Name "production" }}
chart: w3f/otv-backend
version: v2.6.19
version: v2.6.20
{{ else }}
chart: ../charts/otv-backend
{{ end }}
Expand Down
15 changes: 5 additions & 10 deletions helmfile.d/config/kusama/otv-backend-prod.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,6 @@ config: |
"stash": "DVasGX5qBMrCwNM8SnLyFrRpeniAwAsWe2noN6jPdx1jjao",
"riotHandle": "@agx10000:matrix.org"
},
{
"name": "DrNo-sv-validator-0",
"stash": "HKgfmuxsnMBHGQ3phxiuHgfju5o2aUtYCU3dYhPEzGjFm6U",
"riotHandle": "@goldeneye1:matrix.org"
},
{
"name": "NeNa",
"stash": "GhNL9Mi5KiL3Ge2jv4jUdncipZNnUFALbzmwg8QqwjxJxcp",
Expand Down Expand Up @@ -432,11 +427,6 @@ config: |
"stash": "FPwa55diVEYwSuhNXwDACk31u4BTe2kgC255BsibKJwFksc",
"riotHandle": "@kogeler:matrix.org"
},
{
"name": "DrNo-sv-validator-2",
"stash": "H9fx3m7aXUh8EjTU8Y41dvucSkhP88HKwPYdaYCVJBdeEFZ",
"riotHandle": "@goldeneye1:matrix.org"
},
{
"name": "Staker_Space-sv-validator-2",
"stash": "Dm64aaAUyy5dvYCSmyzz3njGrWrVaki9F6BvUDSYjDDoqR2",
Expand Down Expand Up @@ -2939,6 +2929,11 @@ config: |
"name": "summerstake",
"stash": "Gh86VtoTd3c5fGvCjSRhymndg8AUpR4NZAit8XVGCv985Wf",
"riotHandle": "@summerstak3:matrix.org"
},
{
"name": "Green Cloud In the sky",
"stash": "HLfUw3p1W5mx57wJeDG6n6uRYDR7H22ViRLuCTgbJCirbai",
"riotHandle": "@green-cloud:matrix.org"
}
],
"forceRound": false,
Expand Down
12 changes: 6 additions & 6 deletions helmfile.d/config/polkadot/otv-backend-prod.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,6 @@ config: |
"kusamaStash": "EXS1FwCt9YvUMpqqrG7BUUonhoFDkqnHXPrHfSCATYvQCUc",
"riotHandle": "@xzhang:matrix.org"
},
{
"name": "DrNo-sv-validator-1",
"stash": "14gYRjn6fn5hu45zEAtXodPDbtaditK8twoWUXFi6DsLwd31",
"kusamaStash": "H9fx3m7aXUh8EjTU8Y41dvucSkhP88HKwPYdaYCVJBdeEFZ",
"riotHandle": "@goldeneye1:matrix.org"
},
{
"name": "🔱-Masternode24-🔱",
"stash": "14Q74NU7dG4uxiHTSCSZii5T1Y368cm7BNVNeRWmEuoDUGXQ",
Expand Down Expand Up @@ -1146,6 +1140,12 @@ config: |
"stash": "1sgm3kyLxWgNWfNMtvnZU7Ammbzhdwbo2TC4hgMPhP91n9M",
"kusamaStash": "EVTgjzPPHrQwVx97dc7p55hYkVdW6is1mzMr1kacHpkZDTQ",
"riotHandle": "@sakuratech:matrix.org"
},
{
"name": "Mermaid",
"stash": "126gTJ1q3eJE8fFVjCqkfmz7KKr9g6rZSARXE2yeT1PRpFzj",
"kusamaStash": "Drb5XkyGvm26ph6d1DE4wxbwqiUCKyVXpcThBUSHE4VxrB7",
"riotHandle": "@mermaidonline:matrix.org"
}
],
"forceRound": false,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "1k-validators-be",
"version": "2.6.19",
"version": "2.6.20",
"description": "Services for running the Thousand Validator Program.",
"main": "index.js",
"scripts": {
Expand Down
8 changes: 4 additions & 4 deletions src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/// 10% in per billion type.
export const TEN_PERCENT = 100000000;
/// 15% in per billion type.
export const FIFTEEN_PERCENT = 150000000;

/// 3% in per billion type.
export const THREE_PERCENT = 30000000;
/// 5% in per billion type.
export const FIVE_PERCENT = 50000000;

/// 10 KSM with decimals.
export const TEN_KSM: number = 10 * 10 ** 12;
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { startClearAccumulatedOfflineTimeJob, startMonitorJob } from "./cron";

const isCI = process.env.CI;

const version = "v2.6.19";
const version = "v2.6.20";

const catchAndQuit = async (fn: any) => {
try {
Expand Down
6 changes: 3 additions & 3 deletions src/scorekeeper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import {
KUSAMA_FOUR_DAYS_ERAS,
POLKADOT_FOUR_DAYS_ERAS,
SCOREKEEPER_CRON,
TEN_PERCENT,
FIFTEEN_PERCENT,
TEN_THOUSAND_DOT,
FIVE_THOUSAND_DOT,
THREE_PERCENT,
FIVE_PERCENT,
SIXTEEN_HOURS,
TEN_KSM,
BALANCE_BUFFER_PERCENT,
Expand Down Expand Up @@ -284,7 +284,7 @@ export default class ScoreKeeper {
this.config.constraints.skipClientUpgrade,
this.config.constraints.skipUnclaimed,
this.config.global.networkPrefix == 2 ? TEN_KSM : FIVE_THOUSAND_DOT,
this.config.global.networkPrefix == 2 ? TEN_PERCENT : THREE_PERCENT,
this.config.global.networkPrefix == 2 ? FIFTEEN_PERCENT : FIVE_PERCENT,
this.config.global.networkPrefix == 2
? KUSAMA_FOUR_DAYS_ERAS
: POLKADOT_FOUR_DAYS_ERAS,
Expand Down

0 comments on commit e10cefd

Please sign in to comment.