{"_id":"@candyswap-libs/sdk","_rev":"1-96022c96c7174e95bfdf5449c58d11a2","name":"@candyswap-libs/sdk","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.2":{"name":"@candyswap-libs/sdk","license":"MIT","version":"1.0.2","description":"🛠 An SDK for building applications on top of candyswap.","main":"dist/index.js","typings":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/Candy-Shop-Swap/candyswap-sdk.git"},"keywords":["candyswap","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":{"@candyswap-libs/candy-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},"gitHead":"0dd3b8ed8340c7c75a817f58ffca37834631d8cb","bugs":{"url":"https://github.com/Candy-Shop-Swap/candyswap-sdk/issues"},"homepage":"https://github.com/Candy-Shop-Swap/candyswap-sdk#readme","_id":"@candyswap-libs/sdk@1.0.2","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-Um/TWp2O6VIQg/XDuuUY1oet0IZFRewDaGzXDzmjk1/f50RKCM33gFm7urno2PZgGNMi1ssNwNeTFxj8oU1BRQ==","shasum":"4ead3a4154581ed74fa1699d520e24dcc92e7330","tarball":"https://registry.npmjs.org/@candyswap-libs/sdk/-/sdk-1.0.2.tgz","fileCount":38,"unpackedSize":456184,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgfAB4CRA9TVsSAnZWagAAa1YP/1vQbqjHjXUJs+yLYjl2\nQ86m+qzoXflixfDigRK5f4Fg0sKay3+aVs9G4FbPt6JOB0xPH8MvJuFFek/H\nRJOz9bleIY2BHqfLF/wZsVQH+2lSMH+62gDg3Zq+pJSITp5yNYlgMr86AyLq\nF1IHvDcLIUNBl8LkYcYgeIjsnpdmA71U9mkntz02wDkgRn6cdzNsR+dwgxMN\nmht3fnb8cXY2C1favPv+nBjxNjZcdmJXCK1ADrwqnFoYpLRveh0FxrfmWPE0\nN2HPfZ20q/mUWbztFj8+oglmjX+sRTLoAWfQ47u6i9QuUduDVg55nH1AcNNb\nDsLjeHIGfbxbjAOjeCCIj9cUvsIBoeZPg2wjscA+MalVPYQPGLkdac7oDWet\nLYQ80DA50PekNTvHvxn2GmqW+BKhoZBSQ3Tg8hFEFyhBSAfVfUPTytdzBklz\n50yZbR4vfta+U8Fdp9dENZHdRQgdkriCXNVARyGjI3M1MgtEbFcJRYkL51Kk\niMKLCC7mT0X1k5tFH5PgrZjiGeeWvZ9ga/SZmE0R2cFa6i428rHE14dIQZx7\naVWrwo8OKx7HDmLYd3mqAqe8yZ0xVtPMlHxjDgjUqAcBed8TZUdCluFHZHq4\nLedQm9iZgHjLiP3Rz6aj9mlK7Kf2rdeokUgyGlIrUl16O8gveG/qosDh7GhX\np5Zh\r\n=LpHG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDwuAmE4W6He31tESaHILQjP9+So+7s00xbBkLLYKAUSAiBvpG1+pS2l/kCT0eKapQir6HEpoxKlP4nR9QfCci9/Mw=="}]},"_npmUser":{"name":"lemoncrypto","email":"bluedragon.cstar@outlook.com"},"directories":{},"maintainers":[{"name":"lemoncrypto","email":"bluedragon.cstar@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_1.0.2_1618739320148_0.4045538412962597"},"_hasShrinkwrap":false}},"time":{"created":"2021-04-18T09:48:39.903Z","1.0.2":"2021-04-18T09:48:40.328Z","modified":"2022-04-04T21:36:57.603Z"},"maintainers":[{"name":"lemoncrypto","email":"bluedragon.cstar@outlook.com"}],"description":"🛠 An SDK for building applications on top of candyswap.","homepage":"https://github.com/Candy-Shop-Swap/candyswap-sdk#readme","keywords":["candyswap","ethereum"],"repository":{"type":"git","url":"git+https://github.com/Candy-Shop-Swap/candyswap-sdk.git"},"bugs":{"url":"https://github.com/Candy-Shop-Swap/candyswap-sdk/issues"},"license":"MIT","readme":"# Candyswap 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/Candy-Shop-Swap/candyswap-sdk/workflows/CI/badge.svg)](https://github.com/Candy-Shop-Swap/candyswap-sdk)\r\n[![npm version](https://img.shields.io/npm/v/@candyswap/sdk/latest.svg)](https://www.npmjs.com/package/@candyswap/sdk/v/latest)\r\n\r\n## Running tests\r\n\r\nTo run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.\r\n\r\nFirst clone the repository:\r\n\r\n```sh\r\ngit clone https://github.com/Candy-Shop-Swap/candyswap-sdk.git\r\n```\r\n\r\nMove into the candyswap-sdk working directory\r\n\r\n```sh\r\ncd candyswap-sdk/\r\n```\r\n\r\nInstall dependencies\r\n\r\n```sh\r\nyarn install\r\n```\r\n\r\nRun tests\r\n\r\n```sh\r\nyarn test\r\n```\r\n\r\nYou should see output like the following:\r\n\r\n```sh\r\nyarn run v1.22.4\r\n$ tsdx test\r\n PASS  test/constants.test.ts\r\n PASS  test/pair.test.ts\r\n PASS  test/fraction.test.ts\r\n PASS  test/miscellaneous.test.ts\r\n PASS  test/entities.test.ts\r\n PASS  test/trade.test.ts\r\n\r\nTest Suites: 1 skipped, 6 passed, 6 of 7 total\r\nTests:       3 skipped, 82 passed, 85 total\r\nSnapshots:   0 total\r\nTime:        5.091s\r\nRan all test suites.\r\n✨  Done in 6.61s.\r\n```\r\n","readmeFilename":"README.md"}