swap.pet-sdk
    TypeScript icon, indicating that this package has built-in type declarations

    1.1.6 • Public • Published

    swappet-sdk

    js SDK for swap.pet to popular DeFi protocols, include ABIs, Addresses, constants, utils ...

    circleci npm types minzip

    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";

    Install

    npm i swap.pet-sdk

    DownloadsWeekly Downloads

    3

    Version

    1.1.6

    License

    Apache-2.0

    Unpacked Size

    1.93 MB

    Total Files

    276

    Last publish

    Collaborators

    • swappet