sushi-data
v0.0.0
Published
This is a collection of utilities to query SushiSwap data from Ethereum. This data has been indexed by the Graph via the subgraph the SushiSwap team maintains.
Downloads
11
Readme
sushi-data
This is a collection of utilities to query SushiSwap data from Ethereum. This data has been indexed by the Graph via the subgraph the SushiSwap team maintains.
Supported Queries
The below all return a Promise that resolves with the requested results.
masterchef.masterChefPools()
Get all pool info for pools in MasterChef.
Example
const sushiData = require('sushi-data'); // common js
// or
import sushiData from 'sushi-data'; // es modules
// query and log resolved results
sushiData.masterchef
.masterChefPools()
.then(masterchef => console.log(masterchef))