-
Notifications
You must be signed in to change notification settings - Fork 2
/
schema.graphql
74 lines (67 loc) · 1.38 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
66
67
68
69
70
71
72
73
74
type User @entity{
id: ID!
mintedLinear: BigInt!
unstakedLinear: BigInt!
stakedNear: BigInt!
unstakeReceivedNear: BigInt!
firstStakingTime: BigInt!
transferedInValue: BigDecimal!
transferedOutValue: BigDecimal!
transferedInShares: BigInt!
transferedOutShares: BigInt!
feesPaid: BigInt!
}
type Price @entity{
id: ID!
timestamp: BigInt!
method: String!
event: String!
receiptHash: String!
deltaLinearAmount: BigDecimal!
deltaNearAmount: BigDecimal!
totalLinearAmount: BigDecimal!
totalNearAmount: BigDecimal!
price: BigDecimal!
}
type TotalSwapFee @entity{
id: ID!
timestamp: BigInt!
feesPaid: BigInt!
}
# Records the latest versions and statues
type Status @entity{
id: ID!
price: BigDecimal!
priceVersion: BigInt!
totalSwapFeeVersion: BigInt!
}
# Raw NEP-297 Events
type FtTransfer @entity {
id: ID!
to: User!
from: User!
timestamp: String!
price: BigDecimal!
amount: BigInt!
}
type ValidatorEpochInfo @entity {
id: ID!
epochId: String!
validatorId: String!
epochUnstakedAmount: BigInt!
}
type EpochCleanup @entity {
"""
The ID is the epoch ID
"""
id: ID!
timestamp: BigInt!
stakeAmountToSettle: BigInt!
unstakeAmountToSettle: BigInt!
}
type StakeAmountChange @entity {
id: ID!
accountId: String!
timestamp: BigInt!
amount: BigInt!
}