Skip to content

Commit

Permalink
bump versions to 3.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
will pankiewicz authored and will pankiewicz committed Jan 11, 2024
1 parent a244b25 commit 5821132
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 20 deletions.
2 changes: 1 addition & 1 deletion 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.6
targetRevision: ^v3.0.7
plugin:
env:
- name: HELM_VALUES
Expand Down
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.6
targetRevision: ^v3.0.7
plugin:
env:
- name: HELM_VALUES
Expand Down
2 changes: 1 addition & 1 deletion 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.6
targetRevision: v3.0.7
plugin:
env:
- name: HELM_VALUES
Expand Down
2 changes: 1 addition & 1 deletion 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.6
targetRevision: v3.0.7
plugin:
env:
- name: HELM_VALUES
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.6
appVersion: v3.0.6
version: v3.0.7
appVersion: v3.0.7
apiVersion: v2
2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@1kv/common",
"version": "3.0.6",
"version": "3.0.7",
"description": "Services for running the Thousand Validator Program.",
"main": "build/index.js",
"types": "build/index.d.ts",
Expand Down
9 changes: 1 addition & 8 deletions packages/common/src/chaindata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,14 +242,7 @@ export class ChainData {
eraIndex,
validator
);
if (prefs.isEmpty) {
return [
null,
`Preferences is empty. Are you sure ${validator} was a validator in era ${eraIndex}?`,
];
} else {
return [prefs.commission.toNumber(), null];
}
return prefs?.commission?.toNumber();
};

// returns the human denominated balance of a given address.
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@1kv/core",
"version": "3.0.6",
"version": "3.0.7",
"description": "Services for running the Thousand Validator Program.",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/gateway/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@1kv/gateway",
"version": "3.0.6",
"version": "3.0.7",
"description": "Services for running the Thousand Validator Program.",
"main": "build/index.js",
"types": "build/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/telemetry/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@1kv/telemetry",
"version": "3.0.6",
"version": "3.0.7",
"description": "Services for running the Thousand Validator Program.",
"main": "build/index.js",
"types": "build/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/worker/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@1kv/worker",
"version": "3.0.6",
"version": "3.0.7",
"description": "Services for running the Thousand Validator Program.",
"main": "build/index.js",
"types": "build/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/worker/src/jobs/BlockDataJob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ const processPayoutStakers = async (
exposurePercentage: exposurePercentage || 0,
exposure: ownExposure[0]?.value,
totalStake: parseInt(total),
commission: commissionPercentage,
commission: commissionPercentage || 0,
validator: validator,
nominator: nominator,
rewardAmount: parseFloat(amount) / denom,
Expand Down

0 comments on commit 5821132

Please sign in to comment.