-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
65 lines (58 loc) · 1.04 KB
/
schema.graphql
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
# type Account @entity {
# id: ID!
# publicAddress: String!
# }
type BlockEntity @entity {
id: ID! #id is a required field
field1: Int
field4: Date
field5: Boolean
field6: String
}
type Transfer @entity {
id: ID! #id is a required field
amount: BigInt!
blockNumber: BigInt!
from: String!
to: String!
}
type SponsoredPool @entity {
id: ID! #id is a required field
targets: [String]!
poolOwner: String!
amount: BigInt!
discount: Int!
txLimit: Int!
poolName: String
totalUsers: Int!
enabledWhitelist: Boolean
createdAt: Date
updatedAt: Date
}
type User @entity {
id: ID! # user account address
h160Address: String
createdAt: Date
updatedAt: Date
}
type UserJoinedPool @entity {
id: ID!
pool: SponsoredPool!
account: User!
createdAt: Date
updatedAt: Date
}
type ClaimedContract @entity {
id: ID!
contractAddress: String!
account: User!
createdAt: Date
updatedAt: Date
}
type CreatedContract @entity {
id: ID!
contractAddress: String!
account: User!
createdAt: Date
updatedAt: Date
}