studydefi / Money Legos
Licence: mit
💰One stop shop for Ethereum ABIs, addresses, and Solidity interfaces!
Stars: ✭ 372
Programming Languages
solidity
1140 projects
Labels
Projects that are alternatives of or similar to Money Legos
Uport Connect
Main uPort library for front end developers
Stars: ✭ 295 (-20.7%)
Mutual labels: blockchain, ethereum
Unlock
Ʉnlock is a protocol for memberships built on a blockchain.
Stars: ✭ 365 (-1.88%)
Mutual labels: blockchain, ethereum
Status React
a free (libre) open source, mobile OS for Ethereum
Stars: ✭ 3,307 (+788.98%)
Mutual labels: blockchain, ethereum
0xdeca10b
Sharing Updatable Models (SUM) on Blockchain
Stars: ✭ 285 (-23.39%)
Mutual labels: blockchain, ethereum
Ethvm
⚡️EthVM: Open Source Processing Engine and Block Explorer for Ethereum ⚡️
Stars: ✭ 319 (-14.25%)
Mutual labels: blockchain, ethereum
Web3j
Lightweight Java and Android library for integration with Ethereum clients
Stars: ✭ 3,537 (+850.81%)
Mutual labels: blockchain, ethereum
Cryptolist
Curated collection of blockchain & cryptocurrency resources.
Stars: ✭ 3,501 (+841.13%)
Mutual labels: blockchain, ethereum
Celo Monorepo
Official repository for core projects comprising the Celo platform
Stars: ✭ 269 (-27.69%)
Mutual labels: blockchain, ethereum
Contracts
[DEPRECATED] 0x smart contracts and tests.
Stars: ✭ 317 (-14.78%)
Mutual labels: blockchain, ethereum
Embark
Framework for serverless Decentralized Applications using Ethereum, IPFS and other platforms
Stars: ✭ 3,478 (+834.95%)
Mutual labels: blockchain, ethereum
Ethlist
The Comprehensive Ethereum Reading List
Stars: ✭ 3,576 (+861.29%)
Mutual labels: blockchain, ethereum
Eventeum
A resilient Ethereum event listener that bridges your smart contract events and backend microservices
Stars: ✭ 272 (-26.88%)
Mutual labels: blockchain, ethereum
Awesome Blockchains
A collection about awesome blockchains - open distributed public databases w/ crypto hashes incl. git ;-). Blockchains are the new tulips 🌷🌷🌷. Distributed is the new centralized.
Stars: ✭ 3,243 (+771.77%)
Mutual labels: blockchain, ethereum
Weiwallet Ios
Wei Wallet is an open source Ethereum wallet for iOS
Stars: ✭ 271 (-27.15%)
Mutual labels: blockchain, ethereum
Khipu
An enterprise blockchain platform based on Ethereum
Stars: ✭ 301 (-19.09%)
Mutual labels: blockchain, ethereum
Monax
DEPRECATED. To be removed December, 2018 (use monax/bosmarmot)
Stars: ✭ 269 (-27.69%)
Mutual labels: blockchain, ethereum
Ruby Ethereum
A Ruby implementation of Ethereum.
Stars: ✭ 270 (-27.42%)
Mutual labels: blockchain, ethereum
Squeezer
Squeezer Framework - Build serverless dApps
Stars: ✭ 3,242 (+771.51%)
Mutual labels: blockchain, ethereum
money-legos
Get ABIs, Addresses, and Solidity Interfaces to popular DeFi protocols
Now with Typescript-powered autocomplete!
money-legos
is an NPM package that provides you with the mainnet addresses, ABIs, and Solidity interfaces for popular DeFi protocols.
here for docs and visit our Discord here!
ClickProtocols supported:
- AAVE
- Compound
- Curve Finance
- DappSys
- DyDx
- ERC20
- Idle V3
- Kyber.Network
- MakerDAO
- OneSplit
- UMA Protocol
- Uniswap v1
- Synthetix
- Balancer
- mStable
Importing specific protocols is also supported:
Install
npm install @studydefi/money-legos
Usage
JavaScript
import { legos } from "@studydefi/money-legos";
// access ABIs and addresses
legos.erc20.abi;
legos.erc20.dai.address;
// of many popular DeFi protocols
legos.uniswap.factory.abi;
legos.uniswap.factory.address;
// import only the protocol you are interested in
import uniswap from "@studydefi/money-legos/uniswap";
uniswap.factory.abi;
uniswap.factory.address;
Solidity
pragma solidity ^0.5.0;
import "@studydefi/money-legos/onesplit/contracts/IOneSplit.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
contract OneSplitSwapper {
// Uniswap Mainnet factory address
address constant OneSplitAddress = 0xC586BeF4a0992C495Cf22e1aeEE4E446CECDee0E;
function _swap(address from, address to, uint256 amountWei) internal {
IERC20 fromIERC20 = IERC20(from);
IERC20 toIERC20 = IERC20(to);
(uint256 returnAmount, uint256[] memory distribution) = IOneSplit(
OneSplitAddress
).getExpectedReturn(
fromIERC20,
toIERC20,
amountWei,
10,
0
);
IOneSplit(OneSplitAddress).swap(
fromIERC20,
toIERC20,
amountWei,
returnAmount,
distribution,
0
);
}
}
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].