forked from BeanstalkFarms/Beanstalk-Subgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
160 lines (143 loc) · 5.76 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
# An entity representing an account's Plot
type Plot @entity {
id: ID!
timestamp: BigInt!
account: Account!
txn: Bytes!
season: Season!
index: BigDecimal!
beans: BigDecimal!
pods: BigDecimal!
weather: Int!
harvested: Boolean!
}
# An entity representing an account's Bean Deposit
type BeanDeposit @entity {
id: ID!
account: Account!
season: Season!
beans: BigDecimal!
farmedBeans: BigDecimal!
depositedBeans: BigDecimal!
}
# An entity representing an account's LP Deposit
type LPDeposit @entity {
id: ID!
account: Account!
season: Season!
lp: BigDecimal!
}
# An entity representing an account's Bean Withdrawal
type BeanWithdrawal @entity {
id: ID!
account: Account!
season: Season!
beans: BigDecimal!
}
# An entity representing an account's LP Withdrawal
type LPWithdrawal @entity {
id: ID!
account: Account!
season: Season!
lp: BigDecimal!
}
# An entity that holds the current Season
type State @entity {
id: ID!
season: BigInt!
}
# An entity that holds Season level data
type Season @entity {
id: ID! # the Season ID.
timestamp: BigInt! # The Season timestamp.
price: BigDecimal! # The TWAP for the Season.
podIndex: BigDecimal! # The Pod index
weather: BigInt! # The Weather
plots: [Plot!]! @derivedFrom(field: "season") # The Plots created
newPods: BigDecimal! # The number of new Pods
pods: BigDecimal! # The total number of Pods
harvestableBeans: BigDecimal! # The total number of harvestable Beans
harvestedPods: BigDecimal! # The total number of Harvestable + Harvested Pods
numberOfSowers: Int! # The total number of unique Sowers
numberOfSows: Int! # The total number of Sows
newSownBeans: BigDecimal! # The number of new Sown Beans
sownBeans: BigDecimal! # The total number of Sown Beans
newSoil: BigDecimal! # The number of new Soil
soil: BigDecimal! # The number of Soil
beanDeposits: [BeanDeposit!]! @derivedFrom(field: "season") # The Bean Deposits
beanWithdrawals: [BeanWithdrawal!]! @derivedFrom(field: "season") # The Bean Withdrawals
newDepositedBeans: BigDecimal! # The number of new deposited Beans
newRemovedBeans: BigDecimal! # The number of new removed Beans
newWithdrawnBeans: BigDecimal! # The number of new withdrawn Beans
depositedBeans: BigDecimal! # The total number of deposited Beans
withdrawnBeans: BigDecimal! # The total number of withdrawn Beans
claimableBeans: BigDecimal! # The total number of claimable Beans
budgetBeans: BigDecimal! # The total number of budget Beans
pooledBeans: BigDecimal! # The total number pooled Beans
beans: BigDecimal! # The total number of Beans
pooledEth: BigDecimal! # The total number of pooled Ether
lp: BigDecimal! # The total number of LP Tokens
lpDeposits: [LPDeposit!]! @derivedFrom(field: "season") # The LP Deposits
lpWithdrawals: [LPWithdrawal!]! @derivedFrom(field: "season") # The LP Withdrawals
newDepositedLP: BigDecimal! # The number of new deposited LP
newRemovedLP: BigDecimal! # The number of new removed LP
newWithdrawnLP: BigDecimal! # The total number of new withdrawn LP
depositedLP: BigDecimal! # The total number of deposited LP
withdrawnLP: BigDecimal! # The total number of withdrawn LP
claimableLP: BigDecimal! # The total number of claimable LP
sopEth: BigDecimal! # The number of unclaimed SOP Eth
cumulativeSopEth: BigDecimal! # The cumulative total SOP Eth
claimedSopEth: BigDecimal! # The number of claimed SOP Eth
reinvestedSopEth: BigDecimal! # The number of reinvested SOP Eth
stalk: BigDecimal! # The total number of Stalk
seeds: BigDecimal! # The total number of Seeds
newFarmableBeans: BigDecimal! # The number of new Farmable Beans
newHarvestablePods: BigDecimal! # The number of new Harvested Pods
newSopEth: BigDecimal! # The number of new SOP Eth
cumulativeFarmableBeansPerLP: BigDecimal! # The cumulative total of Beans per LP minted
farmableBeansPerSeason7: BigDecimal! # The 7 day average of Silo Beans per Season normalized to the current LP
farmableBeansPerSeason30: BigDecimal! # The 30 day average of Silo Beans per Season normalized to the current LP
cumulativeHarvestableBeansPerLP: BigDecimal! # The cumulative total of Beans per LP minted
harvestableBeansPerSeason7: BigDecimal! # The 7 day average of Silo Beans per Season normalized to the current LP
harvestableBeansPerSeason30: BigDecimal! # The 30 day average of Silo Beans per Season normalized to the current LP
boughtBeans: BigDecimal! # The total number of bought Beans
newBoughtBeans: BigDecimal! # The number of new bought Beans
newBoughtBeansETH: BigDecimal! # The number of new bought Beans in ETH
newBoughtBeansUSD: BigDecimal! # The number of new bought Beans in USD
soldBeans: BigDecimal! # The total number of sold Beans
newSoldBeans: BigDecimal! # The number of new sold Beans
newSoldBeansETH: BigDecimal! # The number of new sold Beans in ETH
newSoldBeansUSD: BigDecimal! # The number of new sold Beans in USD
}
# An entity representing an account
type Account @entity {
id: ID!
beans: BigDecimal!
plots: [Plot!]! @derivedFrom(field: "account")
pods: BigDecimal!
beanDeposits: [BeanDeposit!]! @derivedFrom(field: "account")
depositedBeans: BigDecimal!
lpDeposits: [LPDeposit!]! @derivedFrom(field: "account")
depositedLP: BigDecimal!
beanWithdrawals: [BeanWithdrawal!]! @derivedFrom(field: "account")
withdrawnBeans: BigDecimal!
lpWithdrawals: [LPWithdrawal!]! @derivedFrom(field: "account")
withdrawnLP: BigDecimal!
claimedSopEth: BigDecimal!
sown: Boolean!
}
# An entity representing a transaction
type Transaction @entity {
id: ID!
beansToBeanstalk: BigDecimal!
beansFromBeanstalk: BigDecimal!
}
# An entity representing a pair
type Pair @entity {
id: ID!
supply: BigDecimal!
decimals0: BigInt!
decimals1: BigInt!
reserve0: BigDecimal!
reserve1: BigDecimal!
}