Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Commit

Permalink
version bump, updated changelog, fixed staking status
Browse files Browse the repository at this point in the history
  • Loading branch information
pabelnl committed Jun 19, 2020
1 parent 5ea096e commit 00014e5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions doc/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 0.5.5-RC
- Fixes for the staking status of nodes and apps.

## 0.5.4-RC
- Added consensus relay support to the PocketRpcProvider.
- Fixed Send Transaction failing in some scenarios.
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pokt-network/pocket-js",
"version": "0.5.4-rc",
"version": "0.5.5-rc",
"engine": {
"node": ">=10.19.0 <=12.15.0"
},
Expand Down
5 changes: 4 additions & 1 deletion src/rpc/models/staking-status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* StakingStatus enum with the possible Staking status values
*/
export enum StakingStatus {
Unstaked = 0,
Unstaking = 1,
Staked = 2
}
Expand All @@ -20,12 +21,14 @@ export namespace StakingStatus {
*/
export function getStatus(status: number): StakingStatus {
switch (status) {
case 0:
return StakingStatus.Unstaked
case 1:
return StakingStatus.Unstaking
case 2:
return StakingStatus.Staked
default:
return StakingStatus.Unstaking
return StakingStatus.Unstaked
}
}
}

0 comments on commit 00014e5

Please sign in to comment.