Skip to content

Commit

Permalink
Merge pull request #226 from gobitfly/NOBIDS/Optional_rewards_duties
Browse files Browse the repository at this point in the history
Made the rewards duties info optional
  • Loading branch information
Eisei24 authored Apr 23, 2024
2 parents 8ae3be7 + ea9b87f commit dcfc069
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions backend/pkg/api/types/validator_dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ type InternalGetValidatorDashboardValidatorIndicesResponse ApiDataResponse[[]uin
// ------------------------------------------------------------
// Rewards Tab
type VDBRewardesTableDuty struct {
Attestation float64 `json:"attestation"`
Proposal float64 `json:"proposal"`
Sync float64 `json:"sync"`
Slashing uint64 `json:"slashing"`
Attestation *float64 `json:"attestation"`
Proposal *float64 `json:"proposal"`
Sync *float64 `json:"sync"`
Slashing *uint64 `json:"slashing"`
}

type VDBRewardsTableRow struct {
Expand Down
8 changes: 4 additions & 4 deletions frontend/types/api/validator_dashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ export type InternalGetValidatorDashboardValidatorIndicesResponse = ApiDataRespo
* Rewards Tab
*/
export interface VDBRewardesTableDuty {
attestation: number /* float64 */;
proposal: number /* float64 */;
sync: number /* float64 */;
slashing: number /* uint64 */;
attestation?: number /* float64 */;
proposal?: number /* float64 */;
sync?: number /* float64 */;
slashing?: number /* uint64 */;
}
export interface VDBRewardsTableRow {
epoch: number /* uint64 */;
Expand Down

0 comments on commit dcfc069

Please sign in to comment.