Package Exports
- swap.pet-sdk
- swap.pet-sdk/tokens
- swap.pet-sdk/uniswap
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (swap.pet-sdk) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
swappet-sdk
js SDK for swap.pet to popular DeFi protocols, include ABIs, Addresses, constants, utils ...
Now with Typescript-powered autocomplete!
swappet-sdk
is an NPM package that provides you with the ABIs, Addresses, constants, utils for popular DeFi protocols.
Click here for docs and visit our Discord here!
Protocols supported:
- 1inch
- AAVE
- ampl
- augur
- Balancer
- bancor
- band
- barnbridge
- bzx
- chainlink
- Compound
- Curve Finance
- DappSys
- ddex
- dfi
- dforce
- dodo
- DyDx
- ERC20
- Idle V3
- Kyber.Network
- MakerDAO
- OneSplit
- renbtc
- sushiswap
- Synthetix
- UMA Protocol
- Uniswap V2
- Uniswap v1
- wbtc
- mStable
- yearn
- yam
Install
npm install swappet-sdk
Usage
JavaScript
import { sdk } from "swappet-sdk";
// access token ABIs and addresses
sdk.tokens.dai.abi;
sdk.tokens.dai.address;
// of many popular DeFi protocols
sdk.uniswap.factory.abi;
sdk.uniswap.factory.address;
// import only the tokens
import tokens from "swappet-sdk/tokens";
tokens.dai.abi;
tokens.dai.address;
// import only the protocol you are interested in
import uniswap from "swappet-sdk/uniswap";
uniswap.factory.abi;
uniswap.factory.address;
// logo of DeFi app
import { uniswapLogo } from "swappet-sdk/logos/app.uniswap.org";