diff --git a/src/modules/staking/dtos/validators-view.dto.ts b/src/modules/staking/dtos/validators-view.dto.ts index 96afd98..f4179a9 100644 --- a/src/modules/staking/dtos/validators-view.dto.ts +++ b/src/modules/staking/dtos/validators-view.dto.ts @@ -17,4 +17,6 @@ export interface ValidatorsViewDto { status: string; jailed: boolean; stakedAmount: string; + uptime: number; + votingPower: number; } \ No newline at end of file diff --git a/src/modules/staking/services/staking.service.ts b/src/modules/staking/services/staking.service.ts index bcab2d3..f8c3fb8 100644 --- a/src/modules/staking/services/staking.service.ts +++ b/src/modules/staking/services/staking.service.ts @@ -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,