{"_id":"@anon.3mpx/sdk-v2","name":"@anon.3mpx/sdk-v2","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@anon.3mpx/sdk-v2","license":"MIT","version":"1.0.0","description":"🛠 An SDK for building applications on top of pancakeswap.","main":"dist/index.js","typings":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/anon3mpx/pancakeswap-sdk-v2.git"},"keywords":["pancakeswap","ethereum"],"module":"dist/sdk.esm.js","scripts":{"lint":"tsdx lint src test","lint:fix":"tsdx lint src test --fix","build":"tsdx build","start":"tsdx watch","test":"tsdx test","prepublishOnly":"tsdx build"},"dependencies":{"@pancakeswap-libs/pancake-swap-core":"^0.1.0","big.js":"^5.2.2","decimal.js-light":"^2.5.0","jsbi":"^3.1.1","tiny-invariant":"^1.1.0","tiny-warning":"^1.0.3","toformat":"^2.0.0"},"peerDependencies":{"@ethersproject/address":"^5.0.0-beta","@ethersproject/contracts":"^5.0.0-beta","@ethersproject/networks":"^5.0.0-beta","@ethersproject/providers":"^5.0.0-beta","@ethersproject/solidity":"^5.0.0-beta"},"devDependencies":{"@ethersproject/address":"^5.0.2","@ethersproject/contracts":"^5.0.2","@ethersproject/networks":"^5.0.2","@ethersproject/providers":"^5.0.5","@ethersproject/solidity":"^5.0.2","@types/big.js":"^4.0.5","@types/jest":"^24.0.25","babel-plugin-transform-jsbi-to-bigint":"^1.3.1","tsdx":"^0.12.3"},"engines":{"node":">=10"},"prettier":{"printWidth":120,"semi":false,"singleQuote":true},"_id":"@anon.3mpx/sdk-v2@1.0.0","gitHead":"2c5653790534582b0768a529a936bfa0566f0da4","bugs":{"url":"https://github.com/anon3mpx/pancakeswap-sdk-v2/issues"},"homepage":"https://github.com/anon3mpx/pancakeswap-sdk-v2#readme","_nodeVersion":"22.18.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-RkDsNo4acJo/4tnaPYbNMpEUh+2C4goVWFYewTkyML3BVeS2IAjS4FD0sd3Qqp2b9yA7tlSxZEqvkpMLDfL6HA==","shasum":"dae053bfc9820bdca6db6cddaae9c5ddb784c36f","tarball":"https://registry.npmjs.org/@anon.3mpx/sdk-v2/-/sdk-v2-1.0.0.tgz","fileCount":38,"unpackedSize":457749,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGCqd4ZW7rNqstVyRs352cgJ5Beiq2PeWQyhNAh9cms2AiB78OTaDNSawS2rE10Oo5l0AR7VaRmeU8mBAALDRhE61A=="}]},"_npmUser":{"name":"anon.3mpx","email":"anon.3mpx@gmail.com"},"directories":{},"maintainers":[{"name":"anon.3mpx","email":"anon.3mpx@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk-v2_1.0.0_1755267729495_0.010812876808644623"},"_hasShrinkwrap":false}},"time":{"created":"2025-08-15T14:22:09.417Z","1.0.0":"2025-08-15T14:22:09.681Z","modified":"2025-08-15T14:22:09.938Z"},"maintainers":[{"name":"anon.3mpx","email":"anon.3mpx@gmail.com"}],"description":"🛠 An SDK for building applications on top of pancakeswap.","homepage":"https://github.com/anon3mpx/pancakeswap-sdk-v2#readme","keywords":["pancakeswap","ethereum"],"repository":{"type":"git","url":"git+https://github.com/anon3mpx/pancakeswap-sdk-v2.git"},"bugs":{"url":"https://github.com/anon3mpx/pancakeswap-sdk-v2/issues"},"license":"MIT","readme":"# Pancakeswap SDK\r\n\r\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\r\n[![Actions Status](https://github.com/pancakeswap/pancakeswap-sdk/workflows/CI/badge.svg)](https://github.com/pancakeswap/pancakeswap-sdk)\r\n[![npm version](https://img.shields.io/npm/v/@pancakeswap-lib/sdk/latest.svg)](https://www.npmjs.com/package/@pancakeswap-lib/sdk/v/latest)\r\n\r\n## V2 SDK for the BSC testnet\r\n\r\nThis 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`](https://github.com/pancakeswap/pancake-swap-interface-v1).\r\n\r\nDetailed instructions and the modified `pancake-swap-interface-v1` code can be found at [https://github.com/ibhagwan/pancake-swap-interface-v1](https://github.com/ibhagwan/pancake-swap-interface-v1).\r\n\r\n### Building this SDK\r\n\r\nClone either this repository or the official one:\r\n```\r\n❯ git clone https://github.com/ibhagwan/pancakeswap-sdk-v2\r\n```\r\n\r\n- Modify `FACTORY_ADDRESS` & `INIT_CODE_HASH` in `src/constants.ts`\r\n- Modify the testnet `WBNB` at the end of `entities/token.ts`:\r\n    ```\r\n    [ChainId.BSCTESTNET]: new Token(\r\n        ChainId.BSCTESTNET,\r\n        '0xae13d989dac2f0debff460ac112a837c89baa7cd',\r\n        18,\r\n        'WBNB',\r\n        'Wrapped BNB'\r\n    )\r\n    ```\r\n\r\nBuild:\r\n```\r\n❯ yarn\r\n❯ npm run build\r\n```\r\n\r\n### PancaeSwap V2, option #1 (default)\r\nRouter: [`0xD99D1c33F9fC3444f8101754aBC46c52416550D1`](https://testnet.bscscan.com/address/0xD99D1c33F9fC3444f8101754aBC46c52416550D1)\r\n\r\nFactory: [`0x6725f303b657a9451d8ba641348b6761a6cc7a17`](https://testnet.bscscan.com/address/0x6725f303b657a9451d8ba641348b6761a6cc7a17)\r\n\r\nWETH: [`0xae13d989dac2f0debff460ac112a837c89baa7cd`](https://testnet.bscscan.com/address/0xae13d989dac2f0debff460ac112a837c89baa7cd)\r\n\r\nINIT_CODE_PAIR_HASH: `0xd0d4c4cd0848c93cb4fd1f498d7013ee6bfb25783ea21593d5834f5d250ece66`\r\n\r\n\r\n### PancaeSwap V2, option #2\r\nRouter: [`0x9Ac64Cc6e4415144C455BD8E4837Fea55603e5c3`](https://testnet.bscscan.com/address/0x9Ac64Cc6e4415144C455BD8E4837Fea55603e5c3)\r\n\r\nFactory: [`0xb7926c0430afb07aa7defde6da862ae0bde767bc`](https://testnet.bscscan.com/address/0xb7926c0430afb07aa7defde6da862ae0bde767bc)\r\n\r\nWETH: [`0xae13d989dac2f0debff460ac112a837c89baa7cd`](https://testnet.bscscan.com/address/0xae13d989dac2f0debff460ac112a837c89baa7cd)\r\n\r\nINIT_CODE_PAIR_HASH: `0xecba335299a6693cb2ebc4782e74669b84290b6378ea3a3873c7231a8d7d1074`\r\n\r\n\r\n\r\n","readmeFilename":"README.md","_rev":"1-630488182cfd6dad65a4719886f7072c"}