-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c17d78d
commit 4d2b896
Showing
16 changed files
with
93 additions
and
913 deletions.
There are no files selected for viewing
20 changes: 4 additions & 16 deletions
20
packages/brain/src/calls/fetchValidatorsPerformanceData.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,22 @@ | ||
import { fetchAndProcessValidatorsData } from "../modules/validatorsDataIngest/index.js"; | ||
import { minGenesisTime, secondsPerSlot } from "../index.js"; | ||
import type { | ||
ValidatorsDataProcessed, | ||
Granularity, | ||
NumberOfDaysToQuery | ||
} from "../modules/validatorsDataIngest/types.js"; | ||
import type { EpochsValidatorsMap, NumberOfDaysToQuery } from "../modules/validatorsDataIngest/types.js"; | ||
import { PostgresClient } from "../modules/apiClients/index.js"; | ||
|
||
export async function fetchValidatorsPerformanceData({ | ||
postgresClient, | ||
validatorIndexes, | ||
numberOfDaysToQuery, | ||
granularity | ||
numberOfDaysToQuery | ||
}: { | ||
postgresClient: PostgresClient; | ||
validatorIndexes: string[]; | ||
numberOfDaysToQuery?: NumberOfDaysToQuery; | ||
granularity?: Granularity; | ||
}): Promise< | ||
Map< | ||
number, // validatorIndex | ||
ValidatorsDataProcessed // processed data of the validator | ||
> | ||
> { | ||
}): Promise<EpochsValidatorsMap> { | ||
return await fetchAndProcessValidatorsData({ | ||
validatorIndexes, | ||
postgresClient, | ||
minGenesisTime, | ||
secondsPerSlot, | ||
numberOfDaysToQuery, | ||
granularity | ||
numberOfDaysToQuery | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 0 additions & 39 deletions
39
packages/brain/src/modules/validatorsDataIngest/getAttestationSuccessRate.ts
This file was deleted.
Oops, something went wrong.
35 changes: 0 additions & 35 deletions
35
packages/brain/src/modules/validatorsDataIngest/getAttestationSuccessRatePerClients.ts
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
packages/brain/src/modules/validatorsDataIngest/getClientsUsedPerIntervalsMap.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.