Skip to content

Commit

Permalink
chore(repo): add lefthook rule for guardian ui (#17178)
Browse files Browse the repository at this point in the history
Co-authored-by: d1onys1us <[email protected]>
  • Loading branch information
KorbinianK and dionysuzx authored May 15, 2024
1 parent be67f2f commit 5878c29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 3 additions & 0 deletions lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
pre-commit:
parallel: true
commands:
guardian-ui:
glob: "packages/guardian-prover-health-check-ui/**.{js,ts,css,svelte}"
run: pnpm -F guardian-prover-health-check-ui svelte:check && pnpm -F guardian-prover-health-check-ui lint:fix && git add {staged_files}
protocol_sol:
glob: "packages/protocol/**.{sol}"
run: pnpm -F protocol lint:sol && git add {staged_files}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,9 @@ async function fetchGuardians() {
...newGuardian,
alive: GuardianProverStatus.UNKNOWN
};
console.log('fetching guardian info for', guardian.address, guardian.id);

guardian.name = await getPseudonym(guardian.address);

console.log('getting balance for', guardian.name, guardian.id, guardian.address);

const [status, uptime, balance] = await Promise.all([
fetchLatestGuardianProverHealthCheckFromApi(
import.meta.env.VITE_GUARDIAN_PROVER_API_URL,
Expand Down Expand Up @@ -186,7 +183,6 @@ async function fetchStats(): Promise<void> {
const guardians = get(guardianProvers);

const updatedGuardiansPromises = guardians.map(async (guardian) => {
console.log('fetching stats for', guardian.address);
const startupDataFetch = fetchStartupDataFromApi(
import.meta.env.VITE_GUARDIAN_PROVER_API_URL,
guardian.address
Expand Down

0 comments on commit 5878c29

Please sign in to comment.