Practical overview
When it fits
Use Money Legos when a project needs package-provided contract references or Solidity interfaces for one of its supported DeFi protocols.
Who it is for
- JavaScript and TypeScript developers building Ethereum DeFi clients.
- Solidity developers who need interfaces for supported DeFi contracts.
Documented uses
- Retrieve a supported protocol’s ABI and mainnet address for use in application code.
- Import a protocol-specific module instead of the full collection.
- Reference supplied protocol interfaces in Solidity source.
- Use TypeScript autocomplete to explore available package entries.
Requirements & limits
- The package identifies its addresses as Ethereum mainnet addresses.
- Supported protocols listed in the README include AAVE, Compound, Curve Finance, MakerDAO, Uniswap v1 and v2, Synthetix and Balancer.
- The README demonstrates npm installation, JavaScript imports and a Solidity interface import.
- The repository identifies the license as MIT.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Install and import a protocol module in JavaScript
Add Money Legos to a JavaScript project and access a protocol ABI and address using the documented Uniswap import pattern.
Before you start
- A JavaScript project using npm.
Steps
Install the package with the command below.
npm install @studydefi/money-legosImport the protocol module, for example
import uniswap from "@studydefi/money-legos/uniswap";.Access the documented factory ABI and address through
uniswap.factory.abianduniswap.factory.address.
Expected outcome
The project can reference the imported protocol’s factory ABI and address from the package.
Guide limitations
- The package describes its addresses as mainnet addresses.
- This recipe documents access to package data, not a transaction or a deployed integration.
Import a supplied Solidity interface
Reference the documented OneSplit interface from a Solidity project.
Before you start
- A Solidity project.
- The example also imports OpenZeppelin’s
IERC20interface.
Steps
Install the package with the command below.
npm install @studydefi/money-legosIn a Solidity file, import
@studydefi/money-legos/onesplit/contracts/IOneSplit.sol.Use the imported
IOneSplitinterface in Solidity code, following the README’s OneSplit example.
Expected outcome
The Solidity source can refer to the package’s OneSplit interface.
Guide limitations
- The README example declares Solidity pragma
^0.5.0. - The interface import alone does not document deployment or transaction execution.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 14 October 2026
- Original website title
- studydefi/money-legos · Official homepage title · retained in its source language

