Entities
Snapshot Entity Note
Within the Beanstalk Subgraph, there are many key areas where point in time snapshots are updated and saved for ease of access in the future. These entities contain the current point in time values for their respective period, along with the delta values from the previous snapshot. Delta values are represented as distinct fields. There are both hourly and daily period snapshots for the following base entities:
Silo
SiloAsset
Field
PodMarketplace
These Snapshot entities are not currently included in the parameter tables below.
Overview
SiloHourlySnapshot
SiloDailySnapshot
SiloAssetHourlySnapshot
SiloAssetDailySnapshot
FieldHourlySnapshot
FieldDailySnapshot
PodMarketplaceHourlySnapshot
PodMarketplaceDailySnapshot
Beanstalk
Metadata about Beanstalk and the subgraph.
Field | Type | Description |
---|---|---|
|
| Smart contract address of the protocol's main contract (Factory, Registry, etc) |
|
| Name of the protocol, including version. (e.g. Uniswap v3) |
|
| Slug of protocol, including version. (e.g. uniswap-v3) |
|
| Version of the subgraph schema, in SemVer format (e.g. 1.0.0) |
|
| Version of the subgraph implementation, in SemVer format (e.g. 1.0.0) |
|
| Version of the methodology used to compute metrics, loosely based on SemVer format (e.g. 1.0.0) |
|
| Timestamp of the latest diamondCut call |
|
| Season specific data |
|
| Silo level data |
|
| Field level data |
|
| Last Season |
|
| Array of the addresses for all active Farmers in the Silo |
|
| Array of the addresses for all Farmers that had Silo transfers and need Stalk/Seeds/Roots updated |
Season
Information about Season level data.
Field | Type | Description |
---|---|---|
|
| Season number |
|
| Beanstalk contract address |
|
| Season number in |
|
| Block timestamp when |
|
| Bean price during last |
|
| Total Bean supply |
|
| Bean market cap |
|
| Time weighted deltaB |
|
| Change in Bean supply |
|
| Amount of Beans minted during |
|
| Amount of Beans paid to |
|
| New Harvestable index for the Season |
Silo
Silo level data for either Beanstalk or individual Farmers is stored here. Use the Beanstalk contract address to view protocol level values.
Field | Type | Description |
---|---|---|
|
| Address for the Farmer or Beanstalk |
|
| Beanstalk contract address |
|
| Farmer address if applicable |
|
| Tokens on the Deposit Whitelist |
|
| Derived field linking to |
|
| Current BDV of Deposited assets in the Silo |
|
| Current Stalk in the Silo |
|
| Current Stalk not yet claimed via Plant |
|
| Current total Seeds |
|
| Current total Roots |
|
| Cumulative total of all Bean mints sent to the Silo |
|
| Current number of active Farmer addresses with non-zero Stalk |
|
| Derived field linking to |
|
| Derived field linking to |
SiloAsset
This entity holds asset specific totals and data for tokens found within the Silo.
Field | Type | Description |
---|---|---|
|
| Silo ID - Asset token address |
|
| Silo ID for which this asset belongs |
|
| Token address of the asset |
|
| Current BDV of Deposits |
|
| Current token amount of Deposits |
|
| Current token amount of Withdrawals |
|
| Current token amount held as an Internal Balance |
|
| Derived field linking to |
|
| Derived field linking to |
SiloYield
Data on what was used and the resulting vAPYs found within the Silo are stored here.
Field | Type | Description |
---|---|---|
|
| The Season of the yield |
|
| Season when calculated |
|
| Beta used for EMA |
|
| u value used for EMA |
|
| Bean EMA for the season |
|
| Bean APY for two Seeds per BDV |
|
| Stalk APY for two Seeds per BDV |
|
| Bean APY for four Seeds per BDV |
|
| Stalk APY for four Seeds per BDV |
|
| Block timestamp of creation |
Field
Field level data. Each Farmer and Beanstalk as a whole has their own Field.
Field | Type | Description |
---|---|---|
|
| Address for the Farmer or Beanstalk |
|
| Beanstalk contract address |
|
| Farmer address if applicable |
|
| Latest Season updated |
|
| Current Temperature offered for Sowing |
|
| Temperature / Bean Price |
|
| Cumulative number of Sowers |
|
| Cumulative number of Sows |
|
| Cumulative number of Sown Beans |
|
| Array of Unharvestable Plot indexes. Used when updating Harvestable amounts during |
|
| Current number of Unharvestable Pods |
|
| Current number of Harvestable Pods |
|
| Current number of Harvested Pods |
|
| Current amount of available Soil |
|
| Current Pod index for new Plots |
|
| Current Pod Rate: Unharvestable Pods / Bean supply |
|
| Derived field linking to |
|
| Derived field linking to |
Farmer
The Farmer entity is unique in the fact that it is comprised completely of derived fields. This is to aid in the exploration and querying of the information on a specific address.
Field | Type | Description |
---|---|---|
|
| Farmer's address |
|
| Derived field to |
|
| Derived field to |
|
| Derived field to |
|
| Derived field to |
|
| Derived field to |
|
| Derived field to |
|
| Derived field to |
|
| Derived field to |
|
| Derived field to |
SiloDeposit
Individual Silo Deposit data. Updated upon Withdrawals for the net Deposited amounts and BDV.
Field | Type | Description |
---|---|---|
|
| Account - Token Address - Season |
|
| Farmer address |
|
| Token contract address |
|
| Season of Deposit |
|
| Current token amount Deposited |
|
| Originally Deposited token amount |
|
| Withdrawn token amount |
|
| Current BDV of Deposit |
|
| Original BDV of a Deposit |
|
| Withdrawn BDV of Deposit |
|
| Transaction hashes included in original Deposit |
|
| Block timestamp of first Deposit |
|
| Block timestamp of last update |
SiloWithdraw
Withdrawal level data. Updated to flag whether a Withdrawal has been claimed.
Field | Type | Description |
---|---|---|
|
| Account - Deposit Token - Current Season |
|
| Farmer address |
|
| Token contract address |
|
| Season withdraw initiated |
|
| Season when claimable |
|
| Flag for if withdrawal has been claimed |
|
| Token amount being withdrawn |
|
| Transaction hashes included in this season's withdrawal |
|
| Block timestamp of first withdrawal |
Plot
All details related to a specific Plot.
Field | Type | Description |
---|---|---|
|
| Plot index |
|
| Field to which this Plot belongs |
|
| Farmer that owns this Plot |
|
| Enum for the source of this Plot:
|
|
| Any associated listing of this Plot |
|
| Season of creation |
|
| Transaction hash of creation |
|
| Block timestamp of creation |
|
| Block timestamp when updated |
|
| Plot index |
|
| Beans used to Sow, if any |
|
| Total Pods in the Plot |
|
| Total Pods Sown, if any |
|
| Temperature when Plot was sown |
|
| Number of Pods that are Harvestable |
|
| Number of Pods that have been Harvested |
|
| Flag for if a Plot has been fully Harvested |
PodMarketplace
Aggregated data surrounding the Pod Market.
Field | Type | Description |
---|---|---|
|
| Contract address of Beanstalk |
|
| Current Season of the Pod Market |
|
| Indexes of Listed {lots |
|
| Active Pod Order IDs |
|
| Derived field for all historical |
|
| Derived field for all historical |
|
| Current cumulative Pods Listed for sale |
|
| Current cumulative Pod Listings Filled |
|
| Current cumulative Pod Listings that expired |
|
| Current cumulative Pod Listings that are Cancelled |
|
| Current total of Pods available for purchase |
|
| Current cumulative Pod Orders created |
|
| Current cumulative Pod Orders that were Filled |
|
| Current cumulative Pod Orders that were Cancelled |
|
| Current cumulative Pod volume |
|
| Current cumulative Bean volume |
|
| Derived field to |
|
| Derived field to |
PodListing
Details regarding a specific Pod Listing.
Field | Type | Description |
---|---|---|
|
| Account - Plot Index |
|
| Pod Market where this Listing was made |
|
| Unique string to pull and display all historical activity |
|
| Plot being Listed |
|
| Farmer Listing this Plot |
|
| Block timestamp at creation |
|
| Block timestamp of last update |
|
| Enum for valid status:
|
|
| Any associated Fill |
|
| Original index of the Plot Listed |
|
| Current index of Plot Listed |
|
| Start within Plot for Listing |
|
| Amount of Pods Listed |
|
| Total amount of original Listing |
|
| Remaining amount left to be Filled |
|
| Amount Filled on this Listing |
|
| Total amount Filled from original Listing |
|
| Amount Cancelled |
|
| Market v1 price per Pod |
|
| Minimum amount needed to Fill this Listing |
|
| Max Harvestable index before Listing expires |
|
| Market v2 pricing function |
|
| Sale Bean mode (Internal/External) |
|
| Market v2 pricing type |
|
| Transaction hash at time of initial entity creation. |
PodOrder
Details regarding a specific Pod Order.
Field | Type | Descriptoin |
---|---|---|
|
| Order ID emitted by event |
|
| Marketplace used for Order |
|
| Unique string to pull and display all historical activity |
|
| Farmer placing the Order |
|
| Block timestamp at creation |
|
| Block timestamp at last update |
|
| Enum for valid status:
|
| [ | Any associated |
|
| V1 - Original amount of the Ordered Pods |
|
| V2 - Original amount of Beans used to Order Pods |
|
| Current Filled amount |
|
| Bean amount Filled |
|
| Minimum amount needed to Fill this Order |
|
| Max Place in Line for Pods to Fill the Order |
|
| Market v1 price per Pod |
|
| Market v2 pricing function |
|
| Market v2 pricing type |
|
| Transaction hash at time of initial entity creation. |
PodFill
Fill data for both Listings and Orders.
Field | Type | Description |
---|---|---|
|
| Beanstalk address - Order/Listing index - transaction hash |
|
| Marketplace associated with this Fill |
|
| Block timestamp at creation |
|
| Associated Listing, if any |
|
| Associated Order, if any |
|
| Account Filling the Listing/Order |
|
| Account Filling the Listing/Order |
|
| Number of Pods Filled |
|
| Index of Plot transferred |
|
| Start of Plot transferred |
|
| Total Beans used to Fill Listing/Order |
Fertilizer
Global Fertilizer data.
Field | Type | Description |
---|---|---|
|
| Contract address for Fertilizer |
|
| Total overall supply for Fertilizer tokens |
|
| Derived field to |
FertilizerToken
ID level information for Fertilizer tokens. BPF = Beans Per Fertilizer.
Field | Type | Description |
---|---|---|
|
| Total BPF for purchase |
|
| Fertilizer contract address |
|
| Total supply for this humidity |
|
| Humidity paid for this ID |
|
| Ending BPF on creation |
|
| Starting BPF on creation |
|
| Season created |
|
| Derived field to |
FertilizerBalance
Balance details by Farmer and Fertilizer token.
Field | Type | Description |
---|---|---|
|
| Fertilizer Token - Farmer address |
|
| ID of Fertilizer token |
|
| Farmer that owns the Fertilizer |
|
| Current balance of the token |
FertilizerYield
Field | Type | Description |
---|---|---|
|
| Season being calculated |
|
| Current season |
|
| Current humidity for new fertilizer |
|
| Current total fertilizer still outstanding |
|
| Current Bean EMA |
|
| Current new beans per outstanding fertilizer |
|
| Simplified APY adjusted for the length of time needed to return total principal and yield based on humidity |
|
| Block timestamp at creation |
Last updated