Skip to content

Commit

Permalink
fix: added missed fields to response
Browse files Browse the repository at this point in the history
  • Loading branch information
yevhen-burkovskyi committed May 14, 2024
1 parent 507775a commit 4a39789
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/staking/dtos/validators-view.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ export interface ValidatorsViewDto {
status: string;
jailed: boolean;
stakedAmount: string;
uptime: number;
votingPower: number;
}
2 changes: 2 additions & 0 deletions src/modules/staking/services/staking.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ export class StakingService implements OnModuleInit {
status: validator.status === ValidatorStatus.BONDED ? ValidatorStatusView.BONDED : ValidatorStatusView.UN_BONDED,
jailed: validator.jailed,
stakedAmount: validator.delegator_shares,
uptime: 0,
votingPower: 0,
commission: {
updateTime: validator.commission.update_time,
rate: validator.commission.commission_rates.rate,
Expand Down

0 comments on commit 4a39789

Please sign in to comment.