Money-legos
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/