Skip to content
This repository was archived by the owner on May 9, 2023. It is now read-only.

v0.1.0

Compare
Choose a tag to compare
@cvauclair cvauclair released this 27 Apr 21:34
· 116 commits to main since this release

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)
Screenshot from 2022-04-19 15-36-01
Screenshot from 2022-04-19 15-34-47

What's Changed

Full Changelog: v0.0.9...v0.1.0