-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
52 lines (46 loc) · 1.3 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
type RedeemEntity @entity {
id: ID! # Incrementing ID, 1, 2, etc, as txhashes can contain multiple events
_lockingId: BigInt! # uint256
_beneficiary: Bytes! # address
_amount: BigInt! # uint256
_batchIndex: BigInt! # uint256
}
type LockTokenEntity @entity {
id: ID! # Incrementing ID, 1, 2, etc, as txhashes can contain multiple events
_locker: Bytes! # address
_lockingId: BigInt! # uint256
_amount: BigInt! # uint256
_period: BigInt! # uint256
}
type ExtendLockingEntity @entity {
id: ID! # Incrementing ID, 1, 2, etc, as txhashes can contain multiple events
_lockingId: BigInt! # uint256
_locker: Bytes! # address
_extendPeriod: BigInt! # uint256
}
type ReleaseEntity @entity {
id: ID! # Incrementing ID, 1, 2, etc, as txhashes can contain multiple events
_lockingId: BigInt! # uint256
_beneficiary: Bytes! # address
_amount: BigInt! # uint256
}
type BatchDataEntity @entity {
id: ID!
lockCount: BigInt!
batchId: BigInt!
userScore: BigInt! # address
totalScore: BigInt! # uint256
}
type TotalEvents @entity {
id: ID!
count: BigInt!
}
type Lock @entity {
id: ID! # lockingId from blockchain
locker: Bytes! # address
period: BigInt! # uint256
amount: BigInt! # uint256
released: Boolean # bool
lockTimestamp: BigInt! # uint256
periodDuration: BigInt! # uint256
}