@studydefi/money-legos

[![circleci](https://badgen.net/circleci/github/studydefi/money-legos)](https://app.circleci.com/pipelines/github/studydefi/money-legos) [![npm](https://badgen.net/npm/v/@studydefi/money-legos)](https://www.npmjs.com/package/@studydefi/money-legos) ![type


Keywords
ethereum, abi, defi, defi addresses, defi abi, ethereum abi, ethereum address, money-legos, blockchain
License
MIT
Install
npm install @studydefi/money-legos@2.4.2

Documentation

Money-legos

CircleCI

Quickstart your journey into building DeFi DApps!

money-legos is an NPM package that provides you with both the ABI and the addresses needed for you to quickly and rapidly build your Defi Dapp.

Currently the package includes ABI and mainnet addresses from:

  • ERC20 tokens (e.g. DAI, REP, USDC, etc)
  • MakerDAO
  • Uniswap
  • Compound
  • OneSplit

... and more coming soon!

Quickstart

Install

npm install @studydefi/money-legos

Usage

const { getLegosFor, networks } = require('@studydefi/money-legos')
const legos = getLegosFor(networks.mainnet)

// Access ABIs and addresses

// legos.erc20.contracts.dai.address
// legos.erc20.contracts.dai.abi

// legos.uniswap.contracts.factory.abi
// legos.uniswap.contracts.factory.address

// Alternatively
// rawLegos.erc20.contracts.dai.address[networks.mainnet]

Documentation

Documentation is hosted at https://money-legos.studydefi.com/