This repository was archived by the owner on May 9, 2023. It is now read-only.
v0.1.0
New features
Partial fieldpaths
Querying partial fieldpaths will automatically select all non-list fields of the fieldpath leaf (closes #31).
For example, using the Ribbon V2 subgraph, the following Subgrounds query:
sg.query_df([
ribbon.Query.vaults
])
will result in the following query being made to the subgraph:
query {
vaults {
id
name
symbol
underlyingAsset
underlyingName
underlyingSymbol
underlyingDecimals
totalPremiumEarned
totalNominalVolume
totalNotionalVolume
numDepositors
totalBalance
cap
round
performanceFeeCollected
managementFeeCollected
totalFeeCollected
}
}
Misc
Code completion
When using Subgrounds in Jupyter notebooks and a subgraph has been loaded in a previous cell, fieldpaths will now autocomplete (closes #3)
What's Changed
- Feature/31 by @cvauclair in #35
- Major refactoring to allow for code-completion in Jupyter notebook by @cvauclair in #36
Full Changelog: v0.0.9...v0.1.0