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

Commit 5c6db32

Browse files
authored
Merge pull request #2595 from w3f/will-v3.0.15
v3.0.16
2 parents d9166fa + 416a85a commit 5c6db32

File tree

10 files changed

+25
-16
lines changed

10 files changed

+25
-16
lines changed

apps/1kv-backend-staging/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.0.15
20+
targetRevision: v3.0.16
2121
plugin:
2222
env:
2323
- name: HELM_VALUES

apps/1kv-backend-staging/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.0.15
20+
targetRevision: v3.0.16
2121
plugin:
2222
env:
2323
- name: HELM_VALUES

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.0.15
20+
targetRevision: v3.0.16
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.0.15
20+
targetRevision: v3.0.16
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.0.15
4-
appVersion: v3.0.15
3+
version: v3.0.16
4+
appVersion: v3.0.16
55
apiVersion: v2

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.0.15",
3+
"version": "3.0.16",
44
"description": "Services for running the Thousand Validator Program.",
55
"main": "build/index.js",
66
"types": "build/index.d.ts",

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.0.15",
3+
"version": "3.0.16",
44
"description": "Services for running the Thousand Validator Program.",
55
"main": "index.js",
66
"scripts": {

packages/core/src/nominator.ts

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,21 @@ export default class Nominator {
114114

115115
public async payee(): Promise<any> {
116116
const api = this.handler.getApi();
117-
const ledger = await api.query.staking.ledger(this.controller);
118-
const { stash } = ledger.unwrap();
119-
const payee = await api.query.staking.payee(stash);
120-
if (payee) {
121-
// @ts-ignore
122-
return payee.toJSON().account ? payee.toJSON().account : payee.toString();
117+
try {
118+
const ledger = await api.query.staking.ledger(this.controller);
119+
const { stash } = ledger.unwrap();
120+
const payee = await api.query.staking.payee(stash);
121+
if (payee) {
122+
// @ts-ignore
123+
return payee.toJSON()?.account
124+
? // @ts-ignore
125+
payee.toJSON()?.account
126+
: payee.toString();
127+
}
128+
} catch (e) {
129+
logger.error(`Error getting payee for ${this.controller}: ${e}`, label);
130+
logger.error(e, label);
131+
return this.controller;
123132
}
124133
}
125134

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.0.15",
3+
"version": "3.0.16",
44
"description": "Services for running the Thousand Validator Program.",
55
"main": "build/index.js",
66
"types": "build/index.d.ts",

packages/worker/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@1kv/worker",
3-
"version": "3.0.15",
3+
"version": "3.0.16",
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)