Skip to content

Commit

Permalink
lastProvenAt
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhorsey committed Feb 8, 2023
1 parent 69d01ee commit f6382f4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions packages/status-page/src/pages/home/Home.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,24 @@
tooltip: "The most recent block proposal on TaikoL1 contract.",
});
statusIndicators.push({
provider: l1Provider,
contractAddress: l1TaikoAddress,
header: "Latest Proof",
intervalInMs: 5 * 1000,
statusFunc: async (
provider: ethers.providers.JsonRpcProvider,
address: string
) => {
const stateVars = await getStateVariables(provider, address);
return stateVars.lastProvenAt.toNumber();
},
colorFunc: function (status: Status) {
return "green"; // todo: whats green, yellow, red?
},
tooltip: "The most recent block proof submitted on TaikoL1 contract.",
});
statusIndicators.push({
provider: l1Provider,
contractAddress: l1TaikoAddress,
Expand Down

0 comments on commit f6382f4

Please sign in to comment.