npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

pancakeswap-sdk-v2-development

v0.0.1

Published

🛠 An SDK for building applications on top of pancakeswap.

Downloads

4

Readme

Pancakeswap SDK

code style: prettier Actions Status npm version

V2 SDK for the BSC testnet

This is a fork of @pancakeswap-libs/sdk-v2 modified to work on the BSC testnet against PancakeSwap V2 routers coupled with pancake-swap-interface-v1.

Detailed instructions and the modified pancake-swap-interface-v1 code can be found at https://github.com/ibhagwan/pancake-swap-interface-v1.

Building this SDK

Clone either this repository or the official one:

❯ git clone https://github.com/ibhagwan/pancakeswap-sdk-v2
  • Modify FACTORY_ADDRESS & INIT_CODE_HASH in src/constants.ts
  • Modify the testnet WBNB at the end of entities/token.ts:
    [ChainId.BSCTESTNET]: new Token(
        ChainId.BSCTESTNET,
        '0xae13d989dac2f0debff460ac112a837c89baa7cd',
        18,
        'WBNB',
        'Wrapped BNB'
    )

Build:

❯ yarn
❯ npm run build

PancaeSwap V2, option #1 (default)

Router: 0xD99D1c33F9fC3444f8101754aBC46c52416550D1

Factory: 0x6725f303b657a9451d8ba641348b6761a6cc7a17

WETH: 0xae13d989dac2f0debff460ac112a837c89baa7cd

INIT_CODE_PAIR_HASH: 0xd0d4c4cd0848c93cb4fd1f498d7013ee6bfb25783ea21593d5834f5d250ece66

PancaeSwap V2, option #2

Router: 0x9Ac64Cc6e4415144C455BD8E4837Fea55603e5c3

Factory: 0xb7926c0430afb07aa7defde6da862ae0bde767bc

WETH: 0xae13d989dac2f0debff460ac112a837c89baa7cd

INIT_CODE_PAIR_HASH: 0xecba335299a6693cb2ebc4782e74669b84290b6378ea3a3873c7231a8d7d1074