-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.graphql
More file actions
50 lines (45 loc) · 1.09 KB
/
schema.graphql
File metadata and controls
50 lines (45 loc) · 1.09 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
48
49
50
type Invested @entity(immutable: true) {
id: Bytes!
investor: Bytes! # address
period: BigInt! # uint32
amount: BigInt! # uint256
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
}
type TokensClaimed @entity(immutable: true) {
id: Bytes!
investor: Bytes! # address
period: BigInt! # uint32
amount: BigInt! # uint256
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
}
type PeriodSummary @entity {
id: Bytes!
period: BigInt! # uint32
totalInvested: BigInt! # uint256
totalClaimed: BigInt! # uint256
totalUniqueInvestors: BigInt! # uint256
}
type UniqueInvestor @entity(immutable: true) {
id: String!
investor: Bytes! # address
period: BigInt! # uint32
}
type GlobalSummary @entity {
id: String!
totalInvested: BigInt! # uint256
totalClaimed: BigInt! # uint256
totalUniqueInvestors: BigInt! # uint256
}
type PTTokensClaimed @entity(immutable: true) {
id: Bytes!
tokenId: BigInt! # uint256
claimant: Bytes! # address
amount: BigInt! # uint256
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
}