forked from Celo-HaiTi/celoht-dapp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathagents.ts
More file actions
47 lines (46 loc) · 1.33 KB
/
Copy pathagents.ts
File metadata and controls
47 lines (46 loc) · 1.33 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
export type Agent = {
address: `0x${string}`;
displayName: string;
region: string;
status: "Active" | "Pending" | "Suspended";
services: Array<"cash-in" | "cash-out" | "p2p-transfer" | "onboarding">;
rating: number; // 0-5, off-chain aggregate
lat: number;
lng: number;
};
// Sample data — see README.md in this folder. In production this is a
// Join between CeloHTAgentRegistry reads and off-chain profile metadata.
// profile metadata (name, coordinates) resolved from each agent's
// metadataURI.
export const agents: Agent[] = [
{
address: "0x1111111111111111111111111111111111aaaa",
displayName: "Jean M. — Léogâne Centre",
region: "Léogâne, Ouest",
status: "Active",
services: ["cash-in", "cash-out", "onboarding"],
rating: 4.8,
lat: 18.5119,
lng: -72.6338,
},
{
address: "0x2222222222222222222222222222222222bbbb",
displayName: "Marie-Ange D. — Gressier",
region: "Gressier, Ouest",
status: "Active",
services: ["cash-in", "cash-out", "p2p-transfer"],
rating: 4.6,
lat: 18.5486,
lng: -72.5442,
},
{
address: "0x3333333333333333333333333333333333cccc",
displayName: "Wilkens P. — Petit-Goâve",
region: "Petit-Goâve, Ouest",
status: "Pending",
services: ["onboarding"],
rating: 0,
lat: 18.4373,
lng: -72.8664,
},
];