0.0.0 • Published 4 years ago

sushi-data v0.0.0

Weekly downloads
61
License
MIT
Repository
-
Last release
4 years ago

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.

  1. 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))