-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathponder.schema.ts
37 lines (33 loc) · 1.09 KB
/
ponder.schema.ts
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
import { onchainTable } from "@ponder/core";
export const citizen = onchainTable("citizen", (t) => ({
id: t.text().primaryKey(),
address: t.text().notNull(),
farcaster_id: t.text().notNull(),
selection_method: t.text().notNull(),
revoked: t.boolean().notNull(),
}));
export const badgeholder = onchainTable("badgeholder", (t) => ({
id: t.text().primaryKey(),
address: t.text().notNull(),
rpgf_round: t.text().notNull(),
referred_by: t.text().notNull(),
referred_method: t.text(),
revoked: t.boolean().notNull(),
}));
export const gov_contribution = onchainTable("gov_contribution", (t) => ({
id: t.text().primaryKey(),
address: t.text().notNull(),
gov_season: t.text().notNull(),
gov_role: t.text().notNull(),
revoked: t.boolean().notNull(),
}));
export const rf_voter = onchainTable("rf_voter", (t) => ({
id: t.text().primaryKey(),
address: t.text().notNull(),
farcaster_id: t.text().notNull(),
round: t.text().notNull(),
voter_type: t.text().notNull(),
voting_group: t.text().notNull(),
selection_method: t.text().notNull(),
revoked: t.boolean().notNull(),
}));