0.0.0 • Published 5 years ago
sushi-data v0.0.0
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))
0.0.0
5 years ago