Skip to content

Commit

Permalink
fix: clean up types
Browse files Browse the repository at this point in the history
  • Loading branch information
rickimoore committed May 11, 2024
1 parent 9a1aaa7 commit f20217c
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 37 deletions.
1 change: 0 additions & 1 deletion backend/src/validator/validator.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ export class ValidatorService {
}

async updateGraffiti(data: any) {
console.log(data)
try {
const {status} = await this.utilsService.sendHttpRequest({url: `${this.validatorUrl}/lighthouse/validators/${data.pubKey}`, method: 'PATCH', config: {
data: JSON.stringify({graffiti: data.graffiti}),
Expand Down
12 changes: 0 additions & 12 deletions src/types/beacon.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
import { BeaconSyncInfo, ValidatorSyncInfo } from './diagnostic'

export type BeaconValidatorInclusionResults = {
current_epoch_active_gwei: number
current_epoch_target_attesting_gwei: number
previous_epoch_active_gwei: number
previous_epoch_head_attesting_gwei: number
previous_epoch_target_attesting_gwei: number
}

export type SyncData = {
beaconSync: BeaconSyncInfo
executionSync: ValidatorSyncInfo
Expand All @@ -34,10 +26,6 @@ export type BeaconValidatorMetric = {
attestation_target_hit_percentage: number
}

export type ValidatorMetricEpoch = {
[key: string]: BeaconValidatorMetricResults
}

export type BeaconValidatorMetricResults = {
[key: string]: BeaconValidatorMetric
}
Expand Down
3 changes: 0 additions & 3 deletions src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import { Protocol } from '../constants/enums'
import { BeaconNodeSpecResults, SyncData } from './beacon'
import {
BeaconSyncResult,
Diagnostics,
HealthDiagnosticResult,
ValidatorSyncResult,
} from './diagnostic'

export interface NextFetchRequestInit extends RequestInit {
Expand Down
2 changes: 0 additions & 2 deletions src/types/storage.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { UiMode } from '../constants/enums'
import { DeviceList, OptionalBoolean, OptionalString } from './index'

export type HealthCheckStorage = OptionalBoolean
export type UiThemeStorage = UiMode | undefined
export type UsernameStorage = OptionalString
export type ActiveCurrencyStorage = string
export type ValidatorIndicesStorage = OptionalString
export type DeviceListStorage = DeviceList | undefined
export type DeviceKeyStorage = OptionalString
19 changes: 0 additions & 19 deletions src/types/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,6 @@ export type FormattedValidatorCache = {
[key: number]: number[]
}

export type ValidatorCacheResults = {
[key: string]: ValidatorCacheDataInfo
}

export type ValidatorCacheDataInfo = {
info: ValidatorEpochResult[]
}

export type ValidatorCache = {
[key: number]: ValidatorEpochResult[]
}
Expand All @@ -107,17 +99,6 @@ export type ValidatorEpochResult = {
total_balance: number
}

export type activeValidatorDetail = {
status: ValidatorStatus
pubKey?: string
index: string
name: string
}

export type ValidatorGraffitiResults = {
[key: string]: string
}

export type SignedExitData = {
message: {
epoch: string
Expand Down

0 comments on commit f20217c

Please sign in to comment.