forked from Vero-protocol/vero-guardian-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproofService.ts
More file actions
26 lines (24 loc) · 740 Bytes
/
Copy pathproofService.ts
File metadata and controls
26 lines (24 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { ProofRecord } from '@/types/proof';
/**
* Mock fetch function for proof history.
* In a real implementation this would call an API endpoint or indexer.
*/
export const fetchProofHistory = async (): Promise<ProofRecord[]> => {
// Simulated network latency
await new Promise((r) => setTimeout(r, 100));
// Example mock data – replace with real data source later
return [
{
timestamp: new Date().toISOString(),
taskId: 'task-123',
proofHash: '0xabcde12345f6789',
proofBlob: '{"proof":"sample"}',
},
{
timestamp: new Date(Date.now() - 86400000).toISOString(),
taskId: 'task-122',
proofHash: '0xdeadbeefcafebabe',
proofBlob: '{"proof":"older"}',
},
];
};