{"_id":"@candyswap/sdk","_rev":"2-722753d6a8935ab831c493bd37500a13","name":"@candyswap/sdk","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.1":{"name":"@candyswap/sdk","license":"MIT","version":"1.0.1","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/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},"bugs":{"url":"https://github.com/Candy-Shop-Swap/candyswap-sdk/issues"},"homepage":"https://github.com/Candy-Shop-Swap/candyswap-sdk#readme","_id":"@candyswap/sdk@1.0.1","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-vavgz8Q9pGgnRTaVnP9GNucbDrtRWi/fwaPCRQVp3opstNg6Rv9GLPKWpMt5/ufVXluaqUtRrKefGblEFPqgpQ==","shasum":"895962bfd6ed42e2d5358130bf475f886f7113a0","tarball":"https://registry.npmjs.org/@candyswap/sdk/-/sdk-1.0.1.tgz","fileCount":37,"unpackedSize":455299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgdQciCRA9TVsSAnZWagAAnrEP+wTHfth8vgf/pnXvNoHS\n5hObITppxi07lA48BF+lfBwkutj3fMMxZ8/dAPs2D3JIXPc8ZFbM5tsDN+wn\nKtdXfEmPaUVVZoqEso3vMVspBS9SvMnL/U41q1kqYOco4eRGDvfmkC5dIXH2\nElsE+hQYhObicfAyVv5RVNjmiraE5zk+o9Jj0j/aGXDNObYz/Gqs1lrgD5id\njSSpYXcIhbJrO8t5P4m14/DdWEUs/rG7yCDZTJy6vxCnk+DnOg7cgRtnYLjq\nX6PviFL6ZTrbz/nULgVrArH37hf1RE8pv3poGmx5QV0Q35tAg8T7i2vLg1Bf\nANZ0QSHbXMNekOQaMm0UnCpgbOxuH6qSrJps83jZqkJjFX4yUUyIEZTgHQHd\n9hO1p+7PrlEI/EaWH0Cih9u3yjF9lHMOymH65MVWLel+2QCZCvEisn78wkkk\nG1uwT1CcFnILXGl3Id6nsWnEEFhL7b8trXw3z835ypRE6khGwQJ5d1N83hc/\nN29kHRPVi8vaaVWuEzB6UswDOwnyK5HB9NPluEgxppw/2keQC0XkongYdFP/\nCbnUeTAE4HOSO64LZqWCgNXnVIWfV4NPGMmMRrcW0dq5IV9vkfYhJum1Ewta\nJZrx8jZlnOU7xJpweXd0UlKZki7EVT6cPq+1WsnFT44UqGtHkiagxSqZt1WQ\naX7K\r\n=FFbm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGQYR1m+MWdkTGj1tK/uh6jhclawyBvEmfSZjj0LiyR2AiEA6DZ1nVOX6DoKkC1lZ1vjZz36jAOF0VmI8UDPn+u9ESM="}]},"_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.1_1618282273776_0.6693025597796967"},"_hasShrinkwrap":false},"1.0.2":{"name":"@candyswap/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/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":"0fd0b8bd5197aacca2f6d33669d6c08f92962247","bugs":{"url":"https://github.com/Candy-Shop-Swap/candyswap-sdk/issues"},"homepage":"https://github.com/Candy-Shop-Swap/candyswap-sdk#readme","_id":"@candyswap/sdk@1.0.2","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-YOb9OJ36LwhvtW8H7QEM8jlqjNQblfQnH27Uy/pYrGsC84NlaDnFmUM8uQJmCta6tEW3rDdUYj76+t1d1EUhZA==","shasum":"aa821f4713b41e185ef42059296464d34fdda54d","tarball":"https://registry.npmjs.org/@candyswap/sdk/-/sdk-1.0.2.tgz","fileCount":38,"unpackedSize":456144,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgdePjCRA9TVsSAnZWagAAC88QAJhERXxbBHvPCAdvYoSp\nE6P8ZXmRWqLNINnvn/J6TwHb/UM6VOdJ25XZlubWrvwBQ2XctrELu4oFvDwg\ndqT0IsaGcerWJg5G4H5Y83AuDJsB69dtnenjcFDhAe2ndMwTXmKpusCBVSXo\n1zqKgNj7y66dEnZ6eE9Bqqce0qeBPx+iJG8QjnadI2zKhQ1ohoOzwza0gOZe\nN/IxHwzYwVYWtDdwWQujB4tlmuaVuuqjUqMf6PmUW4KTMw/gC81F2PsEtxDd\nPT7ri13c7ouEhDWHrjNDfgtQ9wNtxwlnlTE98q94yPkzL3Q8ZFdJ4IIeYur2\new8at/c9RWXJCrlOyspxW8/pcsDNFctluwaWGC5yK8XpagN8sQXvEX51mcXx\nZJXgYTiEkLpU1/TDQzodP2R76Vk3gMM005PdkYPzoy7l4+gcg/SIQGB86d7t\nO5XuKFZFygTNBk3dM1sNF/1rXNLg9/lcQq34Hu1NdQQgxSqClTsyMaJ0YqOa\ncMN5ydKS/mu+ENYcXNkwvsh6zHlfECDvrZ3rXAz5eg4r/3WuvrC8QqDBMTLK\nFTu9+mUxuUi+qJPfWiohGBMz2KSU6mwrM6oRu7S5DnHgUbIJfFsr7crNRIbp\ny0acdjeESL09ijpqEllP+l6lcZBqkgbQ32rRWGRsHZiiTy7o9VLSGKkO6Qzv\n1eJl\r\n=4PWa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCyutTarLRj1WjEQ97+FqKm/IB+0V4kN6voiRXHmHd37AIgKrGjMfZPNGgVnkhpzh5It9ppsJwAycOi/02W0UEYWWM="}]},"_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_1618338786577_0.7854464598288118"},"_hasShrinkwrap":false}},"time":{"created":"2021-04-13T02:51:13.535Z","1.0.1":"2021-04-13T02:51:13.904Z","modified":"2022-04-04T21:36:58.567Z","1.0.2":"2021-04-13T18:33:06.718Z"},"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"}