{"_id":"@amblade/patswap-sdk","_rev":"2-9c0296c6a7b318a5820d11b6eb070417","name":"@amblade/patswap-sdk","dist-tags":{"latest":"5.0.0-canary.99"},"versions":{"5.0.0-canary.99":{"name":"@amblade/patswap-sdk","license":"MIT","version":"5.0.0-canary.99","description":"🛠 An SDK for building applications on top of Patswap.","main":"dist/index.js","typings":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/amblade/patswap-sdk.git"},"keywords":["patswap","ethereum","sdk"],"module":"dist/sdk.esm.js","scripts":{"lint":"tsdx lint src test","build":"tsdx build","watch":"tsdx watch","test":"tsdx test","prepublish":"tsdx build","prepare":"husky install","prettier":"prettier --write 'src/**/*.ts' 'test/**/*.ts'"},"lint-staged":{"*.{js,jsx,ts,tsx}":["yarn lint","yarn test --bail --passWithNoTests --findRelatedTests","prettier --write"],"*.md":"prettier --write"},"dependencies":{"@ethersproject/abi":"^5.4.0","@ethersproject/abstract-signer":"^5.4.0","@ethersproject/address":"^5.4.0","@ethersproject/bignumber":"^5.4.0","@ethersproject/bytes":"^5.4.0","@ethersproject/contracts":"^5.4.0","@ethersproject/experimental":"^5.4.0","@ethersproject/networks":"^5.4.0","@ethersproject/providers":"^5.4.0","@ethersproject/signing-key":"^5.4.0","@ethersproject/solidity":"^5.4.0","@ethersproject/transactions":"^5.4.0","@sushiswap/core":"^2.0.0-canary.1","big.js":"^6.1.0","decimal.js-light":"^2.5.0","eip-712":"^0.4.3","isomorphic-unfetch":"^3.1.0","jsbi":"^3.1.0","tiny-invariant":"^1.1.0","tiny-warning":"^1.0.3","toformat":"^2.0.0"},"devDependencies":{"@sushiswap/prettier-config":"^0.1.0","@types/big.js":"^6.1.0","babel-plugin-transform-jsbi-to-bigint":"^1.4.0","husky":"^7.0.0","lint-staged":"^11.1.2","prettier":"^2.4.1","seedrandom":"^3.0.5","tsdx":"^0.14.1"},"engines":{"node":">=12"},"bugs":{"url":"https://github.com/amblade/patswap-sdk/issues"},"homepage":"https://github.com/amblade/patswap-sdk#readme","directories":{"test":"test"},"author":{"name":"amblade"},"gitHead":"6172af64747f48a0b8151a58f12cc158bdb36b03","_id":"@amblade/patswap-sdk@5.0.0-canary.99","_nodeVersion":"14.17.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-0i12p/0RoU6cut+iqdNcRrU43ORnZD2ADzu6EdS4TknmL1k0LQZp2fgOINWP7aIpjS4xhJrUVRh28EkFOtdQxw==","shasum":"dbf7bfc3fe8e6188da58d16d19dc0a9197d704a0","tarball":"https://registry.npmjs.org/@amblade/patswap-sdk/-/patswap-sdk-5.0.0-canary.99.tgz","fileCount":79,"unpackedSize":1632822,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzFNlCRA9TVsSAnZWagAALBkQAKT1TrvCsmclzbYajDC4\npe39HPpluRcWzKuPBRrpEH9UlgMAyXuE1JhH4dRPnzKpS5cNh01TQTqpgXBz\ndWMDJPcYNjZTBI4r2qUaAnGrLe9cbnbl0Rm0nSiJObUH+45L2e67sadvDdtK\ngxRebJS3p7UK/OjBQnbj+z/Z7liRi1zXopyMkdVeIU57+/PyrRPoUK60aHQF\nJnohNigcNCdT8gcsU+1u76YWVMQNPQl9BEdd4fC/oBYryi7qbo9RKswTkjT9\nfP18LzvZ+l9pa2QdboGM+b3kwBciB+yfg4kFNTQmX4ueBaRWGGUtQ2x6mfLT\n6tXqxBr7Y5PYVHRc5qSanZTiQ+wqF+VQemas9utRK5TuhLQuRflBQsHuHTdV\nC77gmQW+diwsOowKGMxglzh2Nf0LGZInNFATjTECvuY9SCEis03TKeEpSvwe\n0GwDzKUhFLpOoJOqkE70vSv8gd50VN5XvvHz7H7lKvf/wASiWxhCgU+m5mX7\ng3ejf/uZeQZkUXRd37ADGy+qPpKIuiuMvloLk2CgLprGPz0bjKZJWxjQaQpl\ncYlMsrG1dlBBXT3eLOZyD5qy+4lwTtEJlulg1Wigpulk+GLaj8XD3ZLTj+aY\n+N/yOgeHWccvYv1FaDNllXZFpc1AKv227m37TIM5SWyWEI08GuCAEuBw4OTu\nj60V\r\n=UHiC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD1gPKhqAGOsVmSxr+HIIssrxjvOJmIgD4rH4bBD5Sr+wIgYkCmFFbDoVrjOfc/ZQyS8k9UHMQy7Uxmiv4sCOosiPI="}]},"_npmUser":{"name":"amblade","email":"belbct@gmail.com"},"maintainers":[{"name":"amblade","email":"belbct@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/patswap-sdk_5.0.0-canary.99_1636792308065_0.5507596063937563"},"_hasShrinkwrap":false}},"time":{"created":"2021-11-13T08:31:48.006Z","5.0.0-canary.99":"2021-11-13T08:31:48.210Z","modified":"2022-04-04T13:46:41.157Z"},"maintainers":[{"name":"amblade","email":"belbct@gmail.com"}],"description":"🛠 An SDK for building applications on top of Patswap.","homepage":"https://github.com/amblade/patswap-sdk#readme","keywords":["patswap","ethereum","sdk"],"repository":{"type":"git","url":"git+https://github.com/amblade/patswap-sdk.git"},"author":{"name":"amblade"},"bugs":{"url":"https://github.com/amblade/patswap-sdk/issues"},"license":"MIT","readme":"# Patswap SDK\r\n\r\nIn-depth documentation on this SDK is available at [uniswap.org](https://uniswap.org/docs/v2/SDK/getting-started/).\r\n\r\nThis modifies uniswap-sdk's UniswapV2Factory address. The new address for PatSwap is  `0xC0AEe478e3658e2610c5F7A4A2E1777cE9e4f2Ac`.\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/amblade/patswap-sdk.git\r\n```\r\n\r\nMove into the patswap-sdk working directory\r\n\r\n```sh\r\ncd patswap-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"}