-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathponder.schema.ts
86 lines (85 loc) · 2.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
import { createSchema } from "@ponder/core";
export default createSchema((p) => ({
CollectEvent: p.createTable({
id: p.string(),
chain: p.string(),
hearter: p.string(),
memeToken: p.string(),
allocation: p.bigint(),
timestamp: p.int(),
blockNumber: p.int(),
}),
HeartEvent: p.createTable({
id: p.string(),
chain: p.string(),
hearter: p.string(),
memeToken: p.string(),
amount: p.bigint(),
timestamp: p.int(),
blockNumber: p.int(),
}),
OLASJourneyToAscendanceEvent: p.createTable({
id: p.string(),
chain: p.string(),
olas: p.string(),
amount: p.bigint(),
timestamp: p.int(),
blockNumber: p.int(),
}),
PurgeEvent: p.createTable({
id: p.string(),
chain: p.string(),
memeToken: p.string(),
remainingAmount: p.bigint(),
timestamp: p.int(),
blockNumber: p.int(),
}),
SummonEvent: p.createTable({
id: p.string(),
chain: p.string(),
summoner: p.string(),
memeToken: p.string(),
nativeTokenContributed: p.bigint(),
timestamp: p.int(),
blockNumber: p.int(),
}),
UnleashEvent: p.createTable({
id: p.string(),
chain: p.string(),
unleasher: p.string(),
memeToken: p.string(),
lpPairAddress: p.string(),
liquidity: p.bigint(),
burnPercentageOfStable: p.bigint(),
timestamp: p.int(),
blockNumber: p.int(),
}),
MemeToken: p.createTable({
id: p.string(),
chain: p.string(),
owner: p.string(),
lpPairAddress: p.string(),
liquidity: p.bigint(),
heartCount: p.bigint(),
isUnleashed: p.boolean(),
timestamp: p.int(),
blockNumber: p.int(),
hearts: p.many("Heart.memeTokenId"),
heartAmountId: p.string().references("totalHeartAmount.id"),
heartAmount: p.one("heartAmountId"),
}),
Heart: p.createTable({
id: p.string(),
chain: p.string(),
hearter: p.string(),
memeTokenId: p.string().references("MemeToken.id"),
amount: p.bigint(),
timestamp: p.int(),
blockNumber: p.int(),
}),
totalHeartAmount: p.createTable({
id: p.string(),
chain: p.string(),
amount: p.bigint(),
}),
}));