🛠 An SDK for building applications on top of pancakeswap.
npm install catgirl-sdk


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.
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.tsWBNB
- Modify the testnet at the end of entities/token.ts:`
`
[ChainId.BSCTESTNET]: new Token(
ChainId.BSCTESTNET,
'0xae13d989dac2f0debff460ac112a837c89baa7cd',
18,
'WBNB',
'Wrapped BNB'
)
Build:
``
❯ yarn
❯ npm run build
Factory: 0x6725f303b657a9451d8ba641348b6761a6cc7a17
WETH: 0xae13d989dac2f0debff460ac112a837c89baa7cd
INIT_CODE_PAIR_HASH: 0xd0d4c4cd0848c93cb4fd1f498d7013ee6bfb25783ea21593d5834f5d250ece66
Factory: 0xb7926c0430afb07aa7defde6da862ae0bde767bc
WETH: 0xae13d989dac2f0debff460ac112a837c89baa7cd
INIT_CODE_PAIR_HASH: 0xecba335299a6693cb2ebc4782e74669b84290b6378ea3a3873c7231a8d7d1074`