{"_id":"@reach-sh/humble-sdk","_rev":"65-cf46c6db29b854a7c7913ebd07f2e9d2","name":"@reach-sh/humble-sdk","dist-tags":{"latest":"2.1.3-o","beta":"2.1.3-b"},"versions":{"1.0.0":{"name":"@reach-sh/humble-sdk","version":"1.0.0","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000","build":"rm -rf lib/ && tsc"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/jest":"^27.4.1","@types/node":"^17.0.21","dotenv":"^16.0.0","jest":"^27.5.1","typescript":"^4.6.2"},"dependencies":{"@reach-sh/stdlib":"0.1.8-rc.7"},"gitHead":"ec85260230ff19770de3393cff601d5a013a0aa4","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@1.0.0","_nodeVersion":"17.0.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-uWRSx2R2wg06aLlOWN6+cx/R9k26nD5naiLJMiGNxYB5KiWQzZlIZKvUaqCJE5qVWPe8EtEg682dUeuI0Q+i6w==","shasum":"0ea50fd9343bdab6b567523075fe1f6b32c3dc73","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-1.0.0.tgz","fileCount":42,"unpackedSize":966351,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiO7HtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo4CBAAk3BPwYDej7Y8ZqVqmZ06Rwim/VWmAXL56rwABu7WKuFFEO2S\r\nLqRBj4kE+SMx62MS92fW/S3K5zIsqZbYkS7cmp+2x0EKA3xAbh0L1YCQ4jsw\r\nNLjj0x7dgoYCrr0zDXcDs01OQwPUHupn3EhNdKkaZGyYtmgOQtTAYTiLWWlB\r\nYyEuIdjQUveycdWQ+/2quu24uDJ75unfNKro9pgKkP5VC3xVBqO7QB0zWmK4\r\nLUrQWeTNkpRMCYiJYTZVdeKyNESNOIcfRJNdkZXMp3Pvq4/0SnNPvUk/Paj1\r\nWHAqYjp7Y5O4K+tjqX0WSNAFwg+3etNXITPTyYl3g11sCeach03wO8wKcteW\r\ngei+KGFIJdFdMUF0PY0UtS4f8ctmqjCXfF4phsXix3BJu+OlKvWpkNyrDXdO\r\n3q2qkU3hzwsNY5f1Umow5CE8Cb7NTTU4oDhcdgz+d1LUrIPC/Rq8oLIt5+Mv\r\nkg2kGwmRaDpFkx144jxkgsBqXy4WYI6L6LfVoq57ujcJ5E2itOpzMgT1Q5hL\r\nWsaXGbVFh74JU3og6WX6ZS+gXgCvYMHnrcd29pM24w48N7cPHI1g6n7gpb7g\r\nk4hGkljXKb7uM5eXvxdhmQrN/Lk5S8PKsViRhjlynRTO1VptEy/iZQAWMDNz\r\nYokVPw+rpOhIvK3ys02xXywYrVtgGNTYxbY=\r\n=Ru4b\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC8AueIuCbjAV1lSkUCwp7Mw187BhHPYxcS3c19i0bYPwIhAPRYekbWnNQwNPRkCavon8MS3rngVru05q6v5IFxaU51"}]},"_npmUser":{"name":"danburton","email":"danburton.email@gmail.com"},"directories":{},"maintainers":[{"name":"hamir","email":"hamir@reach.sh"},{"name":"abuahchu","email":"abuahchu@gmail.com"},{"name":"vmazzi","email":"vinicius.mazzi@gmail.com"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"},{"name":"danburton","email":"danburton.email@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_1.0.0_1648079341271_0.3408485541191033"},"_hasShrinkwrap":false},"1.0.1":{"name":"@reach-sh/humble-sdk","version":"1.0.1","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000","build":"rm -rf lib/ && tsc"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/jest":"^27.4.1","@types/node":"^17.0.21","dotenv":"^16.0.0","jest":"^27.5.1","typescript":"^4.6.2"},"dependencies":{"@reach-sh/stdlib":"0.1.8-rc.7"},"gitHead":"f0f5fb3cb79b7aeddfdc10b2813ca7c708261e6b","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@1.0.1","_nodeVersion":"15.3.0","_npmVersion":"7.20.6","dist":{"integrity":"sha512-hKb8+vvWNjTB7GJpnMpqKQlWnl2ZqRf3a/+cDSv39p4mbgyL3ydisGrgsUM3B6Z3gILKCFtzfsXOAaZIpVypkA==","shasum":"674225de534cb7916b0c59f8c82bb9dc2976bf27","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-1.0.1.tgz","fileCount":42,"unpackedSize":966351,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiQc9pACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqlHw//Us8v8NYhQL5f+KP6KSx87eYSaGoax2FOBqRTPwzsOCJUV/al\r\nnIF2+VCgfK0FvEmR9NJ4V/jVo0LcexNs07lTI/pdl0gu8925zzxXNKuYqVvD\r\n4xWkQMYoi3NrG56GtVPOtciLpob5AL2d1SdiXaWJfXmWIgo7tPllxT1EbCuW\r\n/ikRP4EgpGSOeOLcG3nrCPkPyAbVfAUmpEun43RBvAA7v+inCb7sGFgHhE+R\r\nG75gz8irL8czQyYsmpAMM4TM3mNT3R9IdbbYR94tUD4rURDU+D/Dr8XTZnKS\r\naPXtnnkZsxOr5z9QgRjvmH5gWMKn3Kca8HoHuskqNpnxCAegjMxFsqaKX8ZG\r\n8cUWm7UpyWHn3US5AJ1VF0Z1YbtTWnH5qrpD3BVCPPnfTsylQmOedkdTYaNU\r\nFIkuuWV5DZ0vpao5Xgd7MlkdtF8lGqxAwl76G1Lmh6McgUev0ElNwUjK85+R\r\ngXvEfDwbHCiGdEWhfFf4PdLiSqMioqYC9fwB8gKp6PqVABfeNQuzdTEYwDSa\r\nVviVVTB+3eqOp1KOPzeWF7iLzH+3Z43O/5GLEqxTxdH7FO2giImjTBTjNqab\r\nWbViO5mxStqobPNU6SvzORldViTL2cFHpOUuP3ArqF+noBgaWkX7gRP1p2jw\r\nECLd9KlvfsrvUC8OsROxp+aVF54S5c9F8I8=\r\n=RueV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICxUx5FtG3tttMJjrgs/au4JL+obbnJetEYLqAb+toj6AiAzjTqic11lwbvHZUDKHbEy4n1jt3PZQoCNEta4UIHNmQ=="}]},"_npmUser":{"name":"jackcom","email":"1mrjackdaw@gmail.com"},"directories":{},"maintainers":[{"name":"jackcom","email":"1mrjackdaw@gmail.com"},{"name":"hamir","email":"hamir@reach.sh"},{"name":"abuahchu","email":"abuahchu@gmail.com"},{"name":"vmazzi","email":"vinicius.mazzi@gmail.com"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"},{"name":"danburton","email":"danburton.email@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_1.0.1_1648480105550_0.02194944042267255"},"_hasShrinkwrap":false},"1.0.2":{"name":"@reach-sh/humble-sdk","version":"1.0.2","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000","build":"rm -rf lib/ && tsc"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/jest":"^27.4.1","@types/node":"^17.0.21","dotenv":"^16.0.0","jest":"^27.5.1","typescript":"^4.6.2"},"dependencies":{"@reach-sh/stdlib":"0.1.8-rc.7"},"gitHead":"c54eb937c215399a21de7ee59c5ca51101fd9974","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@1.0.2","_nodeVersion":"15.3.0","_npmVersion":"7.20.6","dist":{"integrity":"sha512-CPO/DMRoshoqBNazRQOsSBKAZYrWLH8+FIXoX8ExQIaZfkvw1IsNnmAzeAIUfPOcbsiVymxrGsdveKUFAfvaGw==","shasum":"608c36cb0dc6b9100c0756adeb1ac24c391f0815","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-1.0.2.tgz","fileCount":42,"unpackedSize":965828,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiQdn1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqH/g/9GB8fvkjN06/XCpCzDlpYJAndk7wJ1PAuGzEZrfeAV/0dTLi2\r\n/VdbqjsqJ+WVhhHgMGpFLG0oZ2hvkuOqRiMmg0L97Sq0vq/8YIAnGqwDTURG\r\nu0GOdjaDXF/dlGr6bSV+ozgKwc5KUfb1FU2bxzQ5QXy/vvDS/W67+K1lCIo3\r\nFICNUEY+RvKnbEeGcweU4c1ygSGwlm6+WVTiAdyA1uZQbwBsVQsLQntbyypz\r\n2+WDDOvPFNL5tACX28iPJR5ubtvuhEiVC4fxcDMdK+cCTQvD2R4qM16uASb2\r\nDNZ3ra3DofCKDCwmX2hM0I09SGpiZKSvz9HYhikNtveayxWxHpOHcmttiTEr\r\n+lp9IyI7xlRVcqUkupp7JrMq4PmRgqUVSj+9uUIFG9DtnX+Sr/PPc/oPjqnI\r\n/AEF6ERXzs0po3aGZuMzHXE9fMN2/5b0Asx90zA3JIS90ilfpOE+6SwLMpcR\r\n6wdH1IvED1jn4YZb7pQhFLzUHJoUuJtwD172+B4vdIzU6BmhsgMoF9tj+UKz\r\nVH1c3JrrgazTD9EeOaCZXZhoquE4vgPbs5hjzNxFXbo5Wc+0pLIYLFELk3s0\r\n3G9GDK6JptqGCpLT5QZFsQRZl2rWo8L4HrPAof8BdKCTCwe9JLfuOXveU3AP\r\n00C5cX21t7H117DeQ67XjTpHSWpOOJq5uLM=\r\n=aR0e\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEui6Kre2DaNYNvA9u2dqI1DDqVWqz3qjY96gkQe9DnzAiEA447qGa0DeJltlGSfCU57CXNFIr2Lq9+ymrnvSojg/xA="}]},"_npmUser":{"name":"jackcom","email":"1mrjackdaw@gmail.com"},"directories":{},"maintainers":[{"name":"jackcom","email":"1mrjackdaw@gmail.com"},{"name":"hamir","email":"hamir@reach.sh"},{"name":"abuahchu","email":"abuahchu@gmail.com"},{"name":"vmazzi","email":"vinicius.mazzi@gmail.com"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"},{"name":"danburton","email":"danburton.email@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_1.0.2_1648482805178_0.91513977706394"},"_hasShrinkwrap":false},"2.0.0":{"name":"@reach-sh/humble-sdk","version":"2.0.0","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","build":"rm -rf lib/ && tsc"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/jest":"^27.4.1","@types/node":"^17.0.21","jest":"^27.5.1","nodemon":"^2.0.15","ts-node":"^10.7.0","typescript":"^4.6.2"},"dependencies":{"@reach-sh/stdlib":"0.1.10-rc.6"},"gitHead":"7368e1ebd0223b7c2511260f9169b8fd0b8e45f1","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@2.0.0","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-++0t+t1wbibkM77R772Mf9N7Ghq28ivqbO1C2VTMrMfqMjhjc+entqlrotiG9VWXuxaBAcicjUEwvmMIHKD1rQ==","shasum":"e2f80b997a42dbe311b146786eb53140237c279c","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-2.0.0.tgz","fileCount":66,"unpackedSize":1538070,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFm+Rl7yGu56ouvMiAyUN1CUqSkSHCkjkSoEFEGa4ArrAiEA7SBvU7K7CccZsSMLBkKneBI6cfixJsMPiPZDCBYxW9k="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJis0HDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoukg/9HcyfthnJDqTNtSEkLyK/jmvdQdnmy1jyLPYGXyhySb/zuwq6\r\nwlNNOYCf6amsZc7aSYvbguoFtKmDHzeRo1fFlMyRJYwuPImLvXnP9+N4AmIh\r\ngM+C1wZqyelF4+WBT/hYunGwEXPz32J3bOVCaFiooFEa23HJ75kwxZBzfdKY\r\nCR4gd3ZJdZKBGkHnOr2y30MYcHuhDfXkuu+evpK78DUnMXN13BmVIcMtvQAx\r\ndLx3JADDa1S6AVafM2SmeAGvGhJmyspXn1oUTw5mjCP2d5GHFgepOQVFF8Lu\r\nVl/VGApJ43uYH1x0W2+A3Qb39Mzb914IHpA1OnvsuCpYIC/6WJwpSK9Ur2dg\r\n9YELgmsEuDzWzOqKXTUwkie0yVXdChJbTtmW2W1xyxP+NkTY4q6q6DWym4ku\r\nvDXsr3O+c6gjOqzb2dPExWDho6TolmkmPTBJ/CO4MhjXt38ccYUHIz2UycXd\r\nXRkuNzLjL+jfcZBX1N5Kp8ydqqVidNP2Bg696sD5vJ4bc3Y6fbOv6AmPx0ta\r\npfTBKyAuJ5iHoUqtAGO+c2d7FNWhl+J4HR+m1FjFymZlp0RlBvbO9kDWkZfX\r\neVJpqlF7tWirI+1Rs34r1bgUWJb7Y3Tw3WqrMgPWzurput/5ap9bT5baqh2E\r\nwQ+t157kskh4ayLOILqeDYuaOKm5BKmzLnM=\r\n=K0X9\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"krysztof","email":"cbaunach@reach.sh"},"directories":{},"maintainers":[{"name":"krysztof","email":"cbaunach@reach.sh"},{"name":"jackcom","email":"1mrjackdaw@gmail.com"},{"name":"hamir","email":"hamir@reach.sh"},{"name":"abuahchu","email":"abuahchu@gmail.com"},{"name":"vmazzi","email":"vinicius.mazzi@gmail.com"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"},{"name":"danburton","email":"danburton.email@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_2.0.0_1655914947259_0.558581546989231"},"_hasShrinkwrap":false},"2.1.0-beta.0":{"name":"@reach-sh/humble-sdk","version":"2.1.0-beta.0","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","build":"rm -rf lib/ && tsc"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/jest":"^27.4.1","@types/node":"^17.0.21","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2"},"dependencies":{"@reach-sh/stdlib":"0.1.10-rc.6"},"readme":"# HumbleSDK v2.0.0\n\n<header>\n  <img src=\"./logo-white.svg\" width=\"80\" height=\"auto\">\n</header>\n\nA Javascript library for interacting with the [HumbleSwap DEx](https://app.humble.sh).\n\n- [HumbleSDK v2.0.0](#humblesdk-v200)\n  - [Documentation](#documentation)\n  - [v2 Changes](#v2-changes)\n  - [Installing the SDK](#installing-the-sdk)\n    - [Option 1. NPM (recommended)](#option-1-npm-recommended)\n    - [Option 2. Cloning the repo directly](#option-2-cloning-the-repo-directly)\n  - [Example Usage](#example-usage)\n    - [Subscribing to a stream of **Liquidity Pool** data](#subscribing-to-a-stream-of-liquidity-pool-data)\n    - [**Swapping** between a pair of tokens](#swapping-between-a-pair-of-tokens)\n  - [Local Testing](#local-testing)\n\n---\n## Documentation\nDocumentation has moved [here](https://reach-sh.github.io/humble-sdk/).\n\n--- \n\n## v2 Changes \n`v2` introduces a few changes and adds new functionality, including staking pools. Some functions may have been renamed: review changes in our [changelog](./CHANGELOG.md), and view our [documentation](https://reach-sh.github.io/humble-sdk/) for additional info.\n\n--- \n\n## Installing the SDK\n### Option 1. NPM (recommended)\nThe fastest way is to use `npm`:\n```bash\n$. npm i -s @reach-sh/humble-sdk\n```\n\n### Option 2. Cloning the repo directly\nTo get started without NPM, you can clone and build the SDK from the repository. \n```bash\n# Clone the repository \n$. git clone https://github.com/reach-sh/humble-sdk.git\n\n# Enter the directory with the repo (replace with path to your repository clone)\n$. cd path/to/humble-sdk \n\n# and install dependencies (there aren't a lot)\n$. npm install\n\n# Build the SDK. Will output to a ./lib directory in the same folder as the \n# package.json file. This takes seconds and doesn't output anything to your terminal.\n$. npm run build\n``` \nYou will know it is complete when your (terminal's) typing prompt reappears.\\\nThen, as a **FINAL STEP**, copy or move the new `lib/` directory into your project. This will allow you to access it like any other JS module:\n\n```typescript\nimport { initHumbleSDK } from \"path/to/lib\";\n```\n\n---\n\n## Example Usage\n\n### Subscribing to a stream of **Liquidity Pool** data\n```typescript\nimport { subscribeToPoolStream, createReachAPI } from \"@reach-sh/humble-sdk\";\n\nconst stdlib = createReachAPI();\nconst acc = await stdlib.createAccount();\n\n// Fetch existing streams and get notified when a new one is created\nsubscribeToPoolStream(acc, {\n    // Pool ID (and id of pool tokens) received from contract.\n    // Pool data has NOT been fetched yet.\n    onPoolReceived: (info) => { \n        const [poolAddr, tokenAId, tokenBId] = info;\n        // ... do something with data\n     },\n\n    // Pool and Token data has been received from network. \n    onPoolFetched: (result: FetchPoolTxnResult) => { \n        const { succeeded, poolAddress, data, message } = result;\n        if (succeeded) // ... do something with data\n     }\n})\n```\n\n\n### **Swapping** between a pair of tokens\n> **Note:** Swapping does not use routing. Read the [docs](https://reach-sh.github.io/humble-sdk/) to learn how to fetch pools for DEx operations.\n```typescript\nimport { calculateTokenSwap, performSwap } from \"@reach-sh/humble-sdk\";\n\nconst pool = /* pool source */\n\n// Calculate expected swap output\nconst { tokenAId, tokenBId } = pool;\nconst amountA = 100;\nconst swap = calculateTokenSwap({ \n    pool, \n    swap: { amountA, tokenAId, tokenBId } \n});\n\n// Perform swap\nconst swapOpts = { poolAddress: pool.poolAddress, swap, pool };\nconst { data, message, succeeded } = await performSwap(acc, swapOpts);\n// if (succeeded) data == { amountIn: string; amountOut: string }\n```\n\n--- \n\n## Local Testing\nThe `humble-sdk` contains some helper scripts for running the SDK on a command line. See more [**here**](./cli/README.md)\n","readmeFilename":"README.md","gitHead":"773e07981142a9f8ea6fda4170f8a17ba4ef951c","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@2.1.0-beta.0","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-EgwxfpFAfkQDodreSYlkdkwBd8JfL3ozWrlnwn/DlaNbVLUVR8QAB3GROMawN/WiygvHWHNIjmGgeLjVi+fORw==","shasum":"48418a8db2c910b4efe4c8be1cb9a86f6c4f1706","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-2.1.0-beta.0.tgz","fileCount":74,"unpackedSize":1631666,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGNGiMvAGCQx8hwSUQ/yVy2rv/SVypsjLWuY2MnwXPZDAiARwa37N0cx7nehFcosJHbT8XoRuc134BbIl/rGO+aa5w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6VSTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmogSxAAjFGMZvSB125a+pdtH4SZC544RvUDQ7uItQExyXTmpEmVOnBX\r\nzSxUiEGcrhcBBrowHUEgthJjFlkQmEc9aa10Spq3yqan/ShEkQu6Ulhx30gB\r\n2Bk/v7d1DYSSwiF0dyKgKLutNdEhaWSej2S/8xXYScwD08VWK2Ie4rW4RP4k\r\nHykvz9EP0X9IlU3+ce4O/XMbasN6GcEKzvK1vMnuk67slH+gXWBaTqY6HYYR\r\nsE05/D3VPsHK+fvrZ+qbs2CW18eiUA9TEMfNr8qcWw9szZ12Q1IBH1lXUW3Y\r\n/66ieMAKP4G58QkbBmBtEpWLTDFEx2X8Vzvntig7twNpV0QOgAPCPHum3K+3\r\nYIz1FldvmqI+NfjVDY2BHv5WhC8hQmPrnkF0gw3hShOjHtBBGDGo16cyEDAf\r\nk4rjxAc5U4qRjbQ8ryiHHfmGSsKqjntFc2q+Fuo9WPUqHy8q+Bdgj1jc8dYq\r\nshlgq6WLTFy4Q5aoKUWm/SBjgHvt+iEow8ib42pXIUAGobyowk+47Tg5lJZr\r\n5xGSomjkIjVRmppW/tvvioc06cN2A17prF0lnKGRELSGgj+KKYdx1Ns/TPsQ\r\nRWKzZvIg+davrTDAbo3wxfeA/2EoLoO4cAaLRFjUw6H5xTvTtMeB+RabE/KJ\r\n6lib2Sp7fMG7VPgaMVOiRVF6ySH36BKAyVs=\r\n=GF54\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jackcom","email":"1mrjackdaw@gmail.com"},"directories":{},"maintainers":[{"name":"krysztof","email":"cbaunach@reach.sh"},{"name":"jackcom","email":"1mrjackdaw@gmail.com"},{"name":"hamir","email":"hamir@reach.sh"},{"name":"abuahchu","email":"abuahchu@gmail.com"},{"name":"vmazzi","email":"vinicius.mazzi@gmail.com"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"},{"name":"danburton","email":"danburton.email@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_2.1.0-beta.0_1659458707106_0.3365932546411996"},"_hasShrinkwrap":false},"2.1.0-beta.1":{"name":"@reach-sh/humble-sdk","version":"2.1.0-beta.1","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","build":"rm -rf lib/ && tsc"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/jest":"^27.4.1","@types/node":"^17.0.21","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2"},"dependencies":{"@reach-sh/stdlib":"0.1.10-rc.6"},"readme":"# HumbleSDK v2.0.0\n\n<header>\n  <img src=\"./logo-white.svg\" width=\"80\" height=\"auto\">\n</header>\n\nA Javascript library for interacting with the [HumbleSwap DEx](https://app.humble.sh).\n\n- [HumbleSDK v2.0.0](#humblesdk-v200)\n  - [Documentation](#documentation)\n  - [v2 Changes](#v2-changes)\n  - [Installing the SDK](#installing-the-sdk)\n    - [Option 1. NPM (recommended)](#option-1-npm-recommended)\n    - [Option 2. Cloning the repo directly](#option-2-cloning-the-repo-directly)\n  - [Example Usage](#example-usage)\n    - [Subscribing to a stream of **Liquidity Pool** data](#subscribing-to-a-stream-of-liquidity-pool-data)\n    - [**Swapping** between a pair of tokens](#swapping-between-a-pair-of-tokens)\n  - [Local Testing](#local-testing)\n\n---\n## Documentation\nDocumentation has moved [here](https://reach-sh.github.io/humble-sdk/).\n\n--- \n\n## v2 Changes \n`v2` introduces a few changes and adds new functionality, including staking pools. Some functions may have been renamed: review changes in our [changelog](./CHANGELOG.md), and view our [documentation](https://reach-sh.github.io/humble-sdk/) for additional info.\n\n--- \n\n## Installing the SDK\n### Option 1. NPM (recommended)\nThe fastest way is to use `npm`:\n```bash\n$. npm i -s @reach-sh/humble-sdk\n```\n\n### Option 2. Cloning the repo directly\nTo get started without NPM, you can clone and build the SDK from the repository. \n```bash\n# Clone the repository \n$. git clone https://github.com/reach-sh/humble-sdk.git\n\n# Enter the directory with the repo (replace with path to your repository clone)\n$. cd path/to/humble-sdk \n\n# and install dependencies (there aren't a lot)\n$. npm install\n\n# Build the SDK. Will output to a ./lib directory in the same folder as the \n# package.json file. This takes seconds and doesn't output anything to your terminal.\n$. npm run build\n``` \nYou will know it is complete when your (terminal's) typing prompt reappears.\\\nThen, as a **FINAL STEP**, copy or move the new `lib/` directory into your project. This will allow you to access it like any other JS module:\n\n```typescript\nimport { initHumbleSDK } from \"path/to/lib\";\n```\n\n---\n\n## Example Usage\n\n### Subscribing to a stream of **Liquidity Pool** data\n```typescript\nimport { subscribeToPoolStream, createReachAPI } from \"@reach-sh/humble-sdk\";\n\nconst stdlib = createReachAPI();\nconst acc = await stdlib.createAccount();\n\n// Fetch existing streams and get notified when a new one is created\nsubscribeToPoolStream(acc, {\n    // Pool ID (and id of pool tokens) received from contract.\n    // Pool data has NOT been fetched yet.\n    onPoolReceived: (info) => { \n        const [poolAddr, tokenAId, tokenBId] = info;\n        // ... do something with data\n     },\n\n    // Pool and Token data has been received from network. \n    onPoolFetched: (result: FetchPoolTxnResult) => { \n        const { succeeded, poolAddress, data, message } = result;\n        if (succeeded) // ... do something with data\n     }\n})\n```\n\n\n### **Swapping** between a pair of tokens\n> **Note:** Swapping does not use routing. Read the [docs](https://reach-sh.github.io/humble-sdk/) to learn how to fetch pools for DEx operations.\n```typescript\nimport { calculateTokenSwap, performSwap } from \"@reach-sh/humble-sdk\";\n\nconst pool = /* pool source */\n\n// Calculate expected swap output\nconst { tokenAId, tokenBId } = pool;\nconst amountA = 100;\nconst swap = calculateTokenSwap({ \n    pool, \n    swap: { amountA, tokenAId, tokenBId } \n});\n\n// Perform swap\nconst swapOpts = { poolAddress: pool.poolAddress, swap, pool };\nconst { data, message, succeeded } = await performSwap(acc, swapOpts);\n// if (succeeded) data == { amountIn: string; amountOut: string }\n```\n\n--- \n\n## Local Testing\nThe `humble-sdk` contains some helper scripts for running the SDK on a command line. See more [**here**](./cli/README.md)\n","readmeFilename":"README.md","gitHead":"8112540efb74b5bc8d73a20daada0be4c6e999e2","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@2.1.0-beta.1","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-x2aIgC21dDtSLp9M8xg9cWVWLHlaCX50VyjHe+LrLhg5oQoEZUJpgpLgSqKQ07BRxb6tjcbXSIr0NjOUMdZP6w==","shasum":"5260c46294f63e0ef3212c9c7156df6158813df7","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-2.1.0-beta.1.tgz","fileCount":74,"unpackedSize":1632124,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDgH21BAQ+J2PD+j0R1OK2v+PpQxydyu6BHF+7njMQqfwIgegl7qy9uYujE25R+0OxHXGTnKzyiO05Z79nKnRc8f2Y="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6pCYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrEpA/+Oh2zOlLQV634aTa+P/F4OGfvFD87V8P9cfHefH+nw6Gsh6H8\r\n0p9YKz2UQ2UIulmFYmu2XhPEUETrSFfkRR/MEllY55ocQThnRJEv0zZoqX5B\r\nRerRJsLk4UADaBbdaDdVFzBugncgm51B2878tAlfKrGnqY6Uo+7mKH/3c8y2\r\n52NIt40QUoU8+DAwLHkU5NYeHHEPqJTORGvWAkOUl9adl+wKnbLLLjXi08EH\r\nhjCNbeKiETTW8Z4Nex8QxJnLwgsSWdrF+RCCwrbGZU1tOshNIz3m3DRYZgWI\r\nThUMvDmiMzNSM3PDKV7/dN0ob7QWk/Vc84Z7i0h5OEghaBsT9gWkFgFNEXT0\r\nUz9ACqwgLDT6masnDyZiJ2eU4Zv1seQW7fPCTt1eC8AaYNnJ6oeJ9XpNknBx\r\n4qQxYf1ffA/EW2qhExqc0ZzZp2QoJ/u9oSs24UbPBRi+9s1bS5rnVmzig4Bc\r\nRfX15Ghm58ehAX6/LcNRoUO0NijUniJV7GtKro4hNH67PU5aGTTX6YkuqaxM\r\nqBOrvm7UdpnKdv0tDP1C0ZRCHCmIUgpBd5i1UvcBfaRPn009pi7brqrz5gw5\r\nrPzmhdJBN7QwzbtLl5rkDdZrfEkEppBXZeJiOKY/1GHgmxV8+MqFbqqLTWSc\r\nlXtookRsbqsh+quyKKCfv+8uIeeuhpwNVe4=\r\n=mbSl\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jackcom","email":"1mrjackdaw@gmail.com"},"directories":{},"maintainers":[{"name":"krysztof","email":"cbaunach@reach.sh"},{"name":"jackcom","email":"1mrjackdaw@gmail.com"},{"name":"hamir","email":"hamir@reach.sh"},{"name":"abuahchu","email":"abuahchu@gmail.com"},{"name":"vmazzi","email":"vinicius.mazzi@gmail.com"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"},{"name":"danburton","email":"danburton.email@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_2.1.0-beta.1_1659539608434_0.9718445230749704"},"_hasShrinkwrap":false},"2.1.0-beta.3":{"name":"@reach-sh/humble-sdk","version":"2.1.0-beta.3","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","build":"rm -rf lib/ && tsc","beta":"npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/jest":"^27.4.1","@types/node":"^17.0.21","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2"},"dependencies":{"@reach-sh/stdlib":"0.1.10-rc.6"},"readme":"# HumbleSDK v2.0.0\n\n<header>\n  <img src=\"./logo-white.svg\" width=\"80\" height=\"auto\">\n</header>\n\nA Javascript library for interacting with the [HumbleSwap DEx](https://app.humble.sh).\n\n- [HumbleSDK v2.0.0](#humblesdk-v200)\n  - [Documentation](#documentation)\n  - [v2 Changes](#v2-changes)\n  - [Installing the SDK](#installing-the-sdk)\n    - [Option 1. NPM (recommended)](#option-1-npm-recommended)\n    - [Option 2. Cloning the repo directly](#option-2-cloning-the-repo-directly)\n  - [Example Usage](#example-usage)\n    - [Subscribing to a stream of **Liquidity Pool** data](#subscribing-to-a-stream-of-liquidity-pool-data)\n    - [**Swapping** between a pair of tokens](#swapping-between-a-pair-of-tokens)\n  - [Local Testing](#local-testing)\n\n---\n## Documentation\nDocumentation has moved [here](https://reach-sh.github.io/humble-sdk/).\n\n--- \n\n## v2 Changes \n`v2` introduces a few changes and adds new functionality, including staking pools. Some functions may have been renamed: review changes in our [changelog](./CHANGELOG.md), and view our [documentation](https://reach-sh.github.io/humble-sdk/) for additional info.\n\n--- \n\n## Installing the SDK\n### Option 1. NPM (recommended)\nThe fastest way is to use `npm`:\n```bash\n$. npm i -s @reach-sh/humble-sdk\n```\n\n### Option 2. Cloning the repo directly\nTo get started without NPM, you can clone and build the SDK from the repository. \n```bash\n# Clone the repository \n$. git clone https://github.com/reach-sh/humble-sdk.git\n\n# Enter the directory with the repo (replace with path to your repository clone)\n$. cd path/to/humble-sdk \n\n# and install dependencies (there aren't a lot)\n$. npm install\n\n# Build the SDK. Will output to a ./lib directory in the same folder as the \n# package.json file. This takes seconds and doesn't output anything to your terminal.\n$. npm run build\n``` \nYou will know it is complete when your (terminal's) typing prompt reappears.\\\nThen, as a **FINAL STEP**, copy or move the new `lib/` directory into your project. This will allow you to access it like any other JS module:\n\n```typescript\nimport { initHumbleSDK } from \"path/to/lib\";\n```\n\n---\n\n## Example Usage\n\n### Subscribing to a stream of **Liquidity Pool** data\n```typescript\nimport { subscribeToPoolStream, createReachAPI } from \"@reach-sh/humble-sdk\";\n\nconst stdlib = createReachAPI();\nconst acc = await stdlib.createAccount();\n\n// Fetch existing streams and get notified when a new one is created\nsubscribeToPoolStream(acc, {\n    // Pool ID (and id of pool tokens) received from contract.\n    // Pool data has NOT been fetched yet.\n    onPoolReceived: (info) => { \n        const [poolAddr, tokenAId, tokenBId] = info;\n        // ... do something with data\n     },\n\n    // Pool and Token data has been received from network. \n    onPoolFetched: (result: FetchPoolTxnResult) => { \n        const { succeeded, poolAddress, data, message } = result;\n        if (succeeded) // ... do something with data\n     }\n})\n```\n\n\n### **Swapping** between a pair of tokens\n> **Note:** Swapping does not use routing. Read the [docs](https://reach-sh.github.io/humble-sdk/) to learn how to fetch pools for DEx operations.\n```typescript\nimport { calculateTokenSwap, performSwap } from \"@reach-sh/humble-sdk\";\n\nconst pool = /* pool source */\n\n// Calculate expected swap output\nconst { tokenAId, tokenBId } = pool;\nconst amountA = 100;\nconst swap = calculateTokenSwap({ \n    pool, \n    swap: { amountA, tokenAId, tokenBId } \n});\n\n// Perform swap\nconst swapOpts = { poolAddress: pool.poolAddress, swap, pool };\nconst { data, message, succeeded } = await performSwap(acc, swapOpts);\n// if (succeeded) data == { amountIn: string; amountOut: string }\n```\n\n--- \n\n## Local Testing\nThe `humble-sdk` contains some helper scripts for running the SDK on a command line. See more [**here**](./cli/README.md)\n","readmeFilename":"README.md","gitHead":"5e0dd441f10eb320d0593506874449dcec3bb775","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@2.1.0-beta.3","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-eBGTdkcl2b/GA1/hDsPxg/3mAwgA6rgF8vcxFX/bWpfj0bmzhiHoPImCHUO2zE/QLTFzjqntRZi4TYArKNGsVg==","shasum":"16c03280cc292639d9631d401f6d56e8b727d495","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-2.1.0-beta.3.tgz","fileCount":74,"unpackedSize":1632162,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICkN4rEBZCQLZkNkV/ZY6KVOPy0tFY4/o8ivON+YczbcAiEAuelN5APzw9xW5e3361WF88oIjMHUKuGg+hiuSUxww7k="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi8mEvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqmIA/+Ogv5dInhOgT0P/7RHTyzxnWBReXva9vLb/xeNeI8kU+k6Qel\r\nt+ZSrEW6DD1EEE9ldcxKdM5uiZj9Qye9IBZpPZ+09EiIrNHownCaojhR1V6m\r\n5Fgyn+FrC2Nrcm9SSm6FaSCbNPdKQWkc6urbgV8MzosJEoTSQ0O94qW6ZrOm\r\n7QGJ71A8L3Fjb9kypF7OnQhF8sG+8H/nIItttqQsWmhqV+rlgk6Ej08yY93E\r\nuk/fnHnwxG/JAz31op7bYtYxNaxlngLUUTSXZdhv6LTxtCRVEKlN0TOA4CuW\r\nIeuDNNQl4zF/JRjPL9hihXkKhO5iL4Ohnl2a9qpEfGnLKY3RdiFA6zqroAey\r\nqwx+CABPYyP52V0LQ2pYxav3XH0EGO88cR9xiqMxjUQKdhsDwGtfXw4xt+Gs\r\nig/YtQY5pNXlOeSLUXiouvqhilyteAwNyWbtDzdfdEH4WGrp7OING1Qwntde\r\nirmOurGfFZqXp/6rt1bxZSIQpUNKt03L7dj2w/aPRF2wc5iPg6mos60X48J1\r\nT+SdZ7xtSZxL20LSex5wDUxCQtP3fPnvA64WL1kdgWX3g/kZpejoZzkWW4hD\r\nABjYaIk90F5IXspPvSD7PUjc91YHRRrEYcDfEOReZKEfpIbB2ats+TKF4obe\r\nfSCX1C8LBBi+1zxwakpfQn3pDkTStEjl5ac=\r\n=QhIG\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"krysztof","email":"cbaunach@reach.sh"},"directories":{},"maintainers":[{"name":"krysztof","email":"cbaunach@reach.sh"},{"name":"jackcom","email":"1mrjackdaw@gmail.com"},{"name":"hamir","email":"hamir@reach.sh"},{"name":"abuahchu","email":"abuahchu@gmail.com"},{"name":"vmazzi","email":"vinicius.mazzi@gmail.com"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"},{"name":"danburton","email":"danburton.email@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_2.1.0-beta.3_1660051759225_0.15481096528915939"},"_hasShrinkwrap":false},"2.1.0-beta.4":{"name":"@reach-sh/humble-sdk","version":"2.1.0-beta.4","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","build":"rm -rf lib/ && tsc","beta":"npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/jest":"^27.4.1","@types/node":"^17.0.21","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2"},"dependencies":{"@reach-sh/stdlib":"0.1.10-rc.6"},"readme":"# HumbleSDK v2.0.0\n\n<header>\n  <img src=\"./logo-white.svg\" width=\"80\" height=\"auto\">\n</header>\n\nA Javascript library for interacting with the [HumbleSwap DEx](https://app.humble.sh).\n\n- [HumbleSDK v2.0.0](#humblesdk-v200)\n  - [Documentation](#documentation)\n  - [v2 Changes](#v2-changes)\n  - [Installing the SDK](#installing-the-sdk)\n    - [Option 1. NPM (recommended)](#option-1-npm-recommended)\n    - [Option 2. Cloning the repo directly](#option-2-cloning-the-repo-directly)\n  - [Example Usage](#example-usage)\n    - [Subscribing to a stream of **Liquidity Pool** data](#subscribing-to-a-stream-of-liquidity-pool-data)\n    - [**Swapping** between a pair of tokens](#swapping-between-a-pair-of-tokens)\n  - [Local Testing](#local-testing)\n\n---\n## Documentation\nDocumentation has moved [here](https://reach-sh.github.io/humble-sdk/).\n\n--- \n\n## v2 Changes \n`v2` introduces a few changes and adds new functionality, including staking pools. Some functions may have been renamed: review changes in our [changelog](./CHANGELOG.md), and view our [documentation](https://reach-sh.github.io/humble-sdk/) for additional info.\n\n--- \n\n## Installing the SDK\n### Option 1. NPM (recommended)\nThe fastest way is to use `npm`:\n```bash\n$. npm i -s @reach-sh/humble-sdk\n```\n\n### Option 2. Cloning the repo directly\nTo get started without NPM, you can clone and build the SDK from the repository. \n```bash\n# Clone the repository \n$. git clone https://github.com/reach-sh/humble-sdk.git\n\n# Enter the directory with the repo (replace with path to your repository clone)\n$. cd path/to/humble-sdk \n\n# and install dependencies (there aren't a lot)\n$. npm install\n\n# Build the SDK. Will output to a ./lib directory in the same folder as the \n# package.json file. This takes seconds and doesn't output anything to your terminal.\n$. npm run build\n``` \nYou will know it is complete when your (terminal's) typing prompt reappears.\\\nThen, as a **FINAL STEP**, copy or move the new `lib/` directory into your project. This will allow you to access it like any other JS module:\n\n```typescript\nimport { initHumbleSDK } from \"path/to/lib\";\n```\n\n---\n\n## Example Usage\n\n### Subscribing to a stream of **Liquidity Pool** data\n```typescript\nimport { subscribeToPoolStream, createReachAPI } from \"@reach-sh/humble-sdk\";\n\nconst stdlib = createReachAPI();\nconst acc = await stdlib.createAccount();\n\n// Fetch existing streams and get notified when a new one is created\nsubscribeToPoolStream(acc, {\n    // Pool ID (and id of pool tokens) received from contract.\n    // Pool data has NOT been fetched yet.\n    onPoolReceived: (info) => { \n        const [poolAddr, tokenAId, tokenBId] = info;\n        // ... do something with data\n     },\n\n    // Pool and Token data has been received from network. \n    onPoolFetched: (result: FetchPoolTxnResult) => { \n        const { succeeded, poolAddress, data, message } = result;\n        if (succeeded) // ... do something with data\n     }\n})\n```\n\n\n### **Swapping** between a pair of tokens\n> **Note:** Swapping does not use routing. Read the [docs](https://reach-sh.github.io/humble-sdk/) to learn how to fetch pools for DEx operations.\n```typescript\nimport { calculateTokenSwap, performSwap } from \"@reach-sh/humble-sdk\";\n\nconst pool = /* pool source */\n\n// Calculate expected swap output\nconst { tokenAId, tokenBId } = pool;\nconst amountA = 100;\nconst swap = calculateTokenSwap({ \n    pool, \n    swap: { amountA, tokenAId, tokenBId } \n});\n\n// Perform swap\nconst swapOpts = { poolAddress: pool.poolAddress, swap, pool };\nconst { data, message, succeeded } = await performSwap(acc, swapOpts);\n// if (succeeded) data == { amountIn: string; amountOut: string }\n```\n\n--- \n\n## Local Testing\nThe `humble-sdk` contains some helper scripts for running the SDK on a command line. See more [**here**](./cli/README.md)\n","readmeFilename":"README.md","gitHead":"301e819ffe6155313553581062d9c608e00cfe11","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@2.1.0-beta.4","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-03/p/V7ps5S+71YNxbeCzK3KyvZMcCTznvdCunrXl7AYHZvr8J/UmvOgzk8PnoHEyK7i5dCCtyrCqD4FImqzRw==","shasum":"23340d08afb576eb4a8f3dce2eb4eb28fd4c3009","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-2.1.0-beta.4.tgz","fileCount":74,"unpackedSize":1632162,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFunKRoEBVal5uDFZAVdoLCHCcar4Wcov1/xebQvcscwAiB72jsN9eo3cJVGGB4xjY33sjWDk4pI6pN4HsgGsUrrpQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi8rj2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmquRw/9FSVLwArGGu15sccZ26l6JEZbgrGClB68fwtFJi2VF1QARt7Q\r\nTKMTs0+p2Ulf57D8JlHpG1lO0+ZuXYbzCr9nETqKMnisy23Ynwk8Z0uA0w3P\r\nbCB4ZheS+XSeCW6FVpD+A4ikKQ5/01M1jkcWj7SN2ki90JZSPIbpfj0MwDdL\r\nLq1NU3fRzOi9OJwCecSVFmfZKIj8A9LbuK907T9f276Yu2RJ0+DvbFB+SucS\r\nz5CFWlzfIgQ8/g4EfpQ8BDckiYKazJwhH0hwywpV+IGZVFYBD+lW2tUMXZdE\r\nRtpkA/0bHTKdBvfheAetAzjBE/C5/Gmo19VoJcPOhvTtrh9v/vf/d9bj7FVO\r\nW/5ZIy5DLygg57uNvj/BdASAvCeZj2etM/Wpzxa/XHqbn01jwPkMOBGmPHdH\r\nTmXuKLpi+dF7f0dor1i7FAZ5zZnyV9X0t8+7FZR7ANvhDJhtVwRaMYRwQOZo\r\nboml/eCxGWvnoRsZx2meZLsQSA22WJffrghnudTGld1ZyFsZCXo2s5OSvelu\r\n34ibaXSQDPPlz544pnPitCASL8luz/4RkPqwrZ6tW61gbMR2fzv8A3bYhFH6\r\nTZYuzMzYd7NlMhignAJewz6GeDJi/u24wpWt1+BKrunhNS8ehxfgypXEWAbb\r\nhK4b6rx44R4iQlXbz5rBYmOS1LfeyUeJAXY=\r\n=pSvA\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"krysztof","email":"cbaunach@reach.sh"},"directories":{},"maintainers":[{"name":"krysztof","email":"cbaunach@reach.sh"},{"name":"jackcom","email":"1mrjackdaw@gmail.com"},{"name":"hamir","email":"hamir@reach.sh"},{"name":"abuahchu","email":"abuahchu@gmail.com"},{"name":"vmazzi","email":"vinicius.mazzi@gmail.com"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"},{"name":"danburton","email":"danburton.email@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_2.1.0-beta.4_1660074230468_0.3174543463368935"},"_hasShrinkwrap":false},"2.1.0-beta.5":{"name":"@reach-sh/humble-sdk","version":"2.1.0-beta.5","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","build":"rm -rf lib/ && tsc","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/jest":"^27.4.1","@types/node":"^17.0.21","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2"},"dependencies":{"@reach-sh/stdlib":"0.1.10-rc.6"},"readme":"# HumbleSDK v2.0.0\n\n<header>\n  <img src=\"./logo-white.svg\" width=\"80\" height=\"auto\">\n</header>\n\nA Javascript library for interacting with the [HumbleSwap DEx](https://app.humble.sh).\n\n- [HumbleSDK v2.0.0](#humblesdk-v200)\n  - [Documentation](#documentation)\n  - [v2 Changes](#v2-changes)\n  - [Installing the SDK](#installing-the-sdk)\n    - [Option 1. NPM (recommended)](#option-1-npm-recommended)\n    - [Option 2. Cloning the repo directly](#option-2-cloning-the-repo-directly)\n  - [Example Usage](#example-usage)\n    - [Subscribing to a stream of **Liquidity Pool** data](#subscribing-to-a-stream-of-liquidity-pool-data)\n    - [**Swapping** between a pair of tokens](#swapping-between-a-pair-of-tokens)\n  - [Local Testing](#local-testing)\n\n---\n## Documentation\nDocumentation has moved [here](https://reach-sh.github.io/humble-sdk/).\n\n--- \n\n## v2 Changes \n`v2` introduces a few changes and adds new functionality, including staking pools. Some functions may have been renamed: review changes in our [changelog](./CHANGELOG.md), and view our [documentation](https://reach-sh.github.io/humble-sdk/) for additional info.\n\n--- \n\n## Installing the SDK\n### Option 1. NPM (recommended)\nThe fastest way is to use `npm`:\n```bash\n$. npm i -s @reach-sh/humble-sdk\n```\n\n### Option 2. Cloning the repo directly\nTo get started without NPM, you can clone and build the SDK from the repository. \n```bash\n# Clone the repository \n$. git clone https://github.com/reach-sh/humble-sdk.git\n\n# Enter the directory with the repo (replace with path to your repository clone)\n$. cd path/to/humble-sdk \n\n# and install dependencies (there aren't a lot)\n$. npm install\n\n# Build the SDK. Will output to a ./lib directory in the same folder as the \n# package.json file. This takes seconds and doesn't output anything to your terminal.\n$. npm run build\n``` \nYou will know it is complete when your (terminal's) typing prompt reappears.\\\nThen, as a **FINAL STEP**, copy or move the new `lib/` directory into your project. This will allow you to access it like any other JS module:\n\n```typescript\nimport { initHumbleSDK } from \"path/to/lib\";\n```\n\n---\n\n## Example Usage\n\n### Subscribing to a stream of **Liquidity Pool** data\n```typescript\nimport { subscribeToPoolStream, createReachAPI } from \"@reach-sh/humble-sdk\";\n\nconst stdlib = createReachAPI();\nconst acc = await stdlib.createAccount();\n\n// Fetch existing streams and get notified when a new one is created\nsubscribeToPoolStream(acc, {\n    // Pool ID (and id of pool tokens) received from contract.\n    // Pool data has NOT been fetched yet.\n    onPoolReceived: (info) => { \n        const [poolAddr, tokenAId, tokenBId] = info;\n        // ... do something with data\n     },\n\n    // Pool and Token data has been received from network. \n    onPoolFetched: (result: FetchPoolTxnResult) => { \n        const { succeeded, poolAddress, data, message } = result;\n        if (succeeded) // ... do something with data\n     }\n})\n```\n\n\n### **Swapping** between a pair of tokens\n> **Note:** Swapping does not use routing. Read the [docs](https://reach-sh.github.io/humble-sdk/) to learn how to fetch pools for DEx operations.\n```typescript\nimport { calculateTokenSwap, performSwap } from \"@reach-sh/humble-sdk\";\n\nconst pool = /* pool source */\n\n// Calculate expected swap output\nconst { tokenAId, tokenBId } = pool;\nconst amountA = 100;\nconst swap = calculateTokenSwap({ \n    pool, \n    swap: { amountA, tokenAId, tokenBId } \n});\n\n// Perform swap\nconst swapOpts = { poolAddress: pool.poolAddress, swap, pool };\nconst { data, message, succeeded } = await performSwap(acc, swapOpts);\n// if (succeeded) data == { amountIn: string; amountOut: string }\n```\n\n--- \n\n## Local Testing\nThe `humble-sdk` contains some helper scripts for running the SDK on a command line. See more [**here**](./cli/README.md)\n","readmeFilename":"README.md","gitHead":"fd637b119b2c87590d4566aecd592c17bde2a438","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@2.1.0-beta.5","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-reuFBY8BlqKrZ4XMrazDL5T3/7KQs1/roX3UumXlvJYUYqrG26OZy92YRuL/8/PwfwisV10Tq2y6pNta5tip7g==","shasum":"9dd0bd57777ec15d2390451f49998e7ab47d4b15","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-2.1.0-beta.5.tgz","fileCount":74,"unpackedSize":1632275,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCYLGmURkJMvYpAv2P/zFFMRTreKexwrsl8eEsLs6fxqQIgCByhgBbV37LHzjH9jjxLxAv17IueXIZbL5Kw5rQklgo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi8sAlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmriVA/+LaVziMNPFEeEG+8Bsx5QQ2ufMXRQLZxdkUe8eQdcs3CYdyM/\r\ntevo8kNIh40YSUGbz+skOjSs7Kgy6v9yWdqL9WeJtdjjUGhjWJRYyMAXfmNC\r\nCTGVJPCytcFY5i0ge0a9Y4IUQ16Fg6wE+n6uSLc1fkl2Qg1ZAUeSr+rAKqvB\r\n6+GURP5GhF/yxk1+l0Uo4vtDhlG0+riyComdmuH6cK5SAMTgtSZaG20T4bL7\r\ndlfRvKK7ugM8GglD5wlrM6W+2BG8PPikT95/kcRAv/gNGNbruScewTbRUCIO\r\nMwKHM1eqUOQSPDX+r+JlD5/ADQWbHlRhL09uGPPlwo8rcmoDW9uF7aCKztsH\r\nEU3NruRwP+rra8XrflFygzHInqh7Egl3fzdlrV54wtF35+EcpoTwWgfpg1cg\r\nkmNhmUedoR5DcCGq++Sr8NWDvqFSWo9ORVVax71/DlbYZTZArkmXIwFBQ1VD\r\ny3kHE9krA0w+RQFcU6/ny9lTUNXWrTJtQXYjmLYs62rjIJd//q41ukT1eAag\r\nUn/7x8C3Q7UXTtceFda7FzLpGYIGfy7ZPVOLZbYIizQVY0tE+UQXlSS0xhRN\r\nUNqcHPsOw2CqcfoVMeYe1D7ZlmiZ2nTRItnE6p3h3c6C2zw5fT6ymf1oprvb\r\nYZSfLkHRG0CV/f4Ce2PYWkompxxTmC3suOc=\r\n=95s5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"krysztof","email":"cbaunach@reach.sh"},"directories":{},"maintainers":[{"name":"krysztof","email":"cbaunach@reach.sh"},{"name":"jackcom","email":"1mrjackdaw@gmail.com"},{"name":"hamir","email":"hamir@reach.sh"},{"name":"abuahchu","email":"abuahchu@gmail.com"},{"name":"vmazzi","email":"vinicius.mazzi@gmail.com"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"},{"name":"danburton","email":"danburton.email@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_2.1.0-beta.5_1660076069664_0.09891778840969945"},"_hasShrinkwrap":false},"2.1.0-beta.6":{"name":"@reach-sh/humble-sdk","version":"2.1.0-beta.6","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","build":"rm -rf lib/ && tsc","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/jest":"^27.4.1","@types/node":"^17.0.21","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2"},"dependencies":{"@reach-sh/stdlib":"0.1.10-rc.6"},"readme":"# HumbleSDK v2.0.0\n\n<header>\n  <img src=\"./logo-white.svg\" width=\"80\" height=\"auto\">\n</header>\n\nA Javascript library for interacting with the [HumbleSwap DEx](https://app.humble.sh).\n\n- [HumbleSDK v2.0.0](#humblesdk-v200)\n  - [Documentation](#documentation)\n  - [v2 Changes](#v2-changes)\n  - [Installing the SDK](#installing-the-sdk)\n    - [Option 1. NPM (recommended)](#option-1-npm-recommended)\n    - [Option 2. Cloning the repo directly](#option-2-cloning-the-repo-directly)\n  - [Example Usage](#example-usage)\n    - [Subscribing to a stream of **Liquidity Pool** data](#subscribing-to-a-stream-of-liquidity-pool-data)\n    - [**Swapping** between a pair of tokens](#swapping-between-a-pair-of-tokens)\n  - [Local Testing](#local-testing)\n\n---\n## Documentation\nDocumentation has moved [here](https://reach-sh.github.io/humble-sdk/).\n\n--- \n\n## v2 Changes \n`v2` introduces a few changes and adds new functionality, including staking pools. Some functions may have been renamed: review changes in our [changelog](./CHANGELOG.md), and view our [documentation](https://reach-sh.github.io/humble-sdk/) for additional info.\n\n--- \n\n## Installing the SDK\n### Option 1. NPM (recommended)\nThe fastest way is to use `npm`:\n```bash\n$. npm i -s @reach-sh/humble-sdk\n```\n\n### Option 2. Cloning the repo directly\nTo get started without NPM, you can clone and build the SDK from the repository. \n```bash\n# Clone the repository \n$. git clone https://github.com/reach-sh/humble-sdk.git\n\n# Enter the directory with the repo (replace with path to your repository clone)\n$. cd path/to/humble-sdk \n\n# and install dependencies (there aren't a lot)\n$. npm install\n\n# Build the SDK. Will output to a ./lib directory in the same folder as the \n# package.json file. This takes seconds and doesn't output anything to your terminal.\n$. npm run build\n``` \nYou will know it is complete when your (terminal's) typing prompt reappears.\\\nThen, as a **FINAL STEP**, copy or move the new `lib/` directory into your project. This will allow you to access it like any other JS module:\n\n```typescript\nimport { initHumbleSDK } from \"path/to/lib\";\n```\n\n---\n\n## Example Usage\n\n### Subscribing to a stream of **Liquidity Pool** data\n```typescript\nimport { subscribeToPoolStream, createReachAPI } from \"@reach-sh/humble-sdk\";\n\nconst stdlib = createReachAPI();\nconst acc = await stdlib.createAccount();\n\n// Fetch existing streams and get notified when a new one is created\nsubscribeToPoolStream(acc, {\n    // Pool ID (and id of pool tokens) received from contract.\n    // Pool data has NOT been fetched yet.\n    onPoolReceived: (info) => { \n        const [poolAddr, tokenAId, tokenBId] = info;\n        // ... do something with data\n     },\n\n    // Pool and Token data has been received from network. \n    onPoolFetched: (result: FetchPoolTxnResult) => { \n        const { succeeded, poolAddress, data, message } = result;\n        if (succeeded) // ... do something with data\n     }\n})\n```\n\n\n### **Swapping** between a pair of tokens\n> **Note:** Swapping does not use routing. Read the [docs](https://reach-sh.github.io/humble-sdk/) to learn how to fetch pools for DEx operations.\n```typescript\nimport { calculateTokenSwap, performSwap } from \"@reach-sh/humble-sdk\";\n\nconst pool = /* pool source */\n\n// Calculate expected swap output\nconst { tokenAId, tokenBId } = pool;\nconst amountA = 100;\nconst swap = calculateTokenSwap({ \n    pool, \n    swap: { amountA, tokenAId, tokenBId } \n});\n\n// Perform swap\nconst swapOpts = { poolAddress: pool.poolAddress, swap, pool };\nconst { data, message, succeeded } = await performSwap(acc, swapOpts);\n// if (succeeded) data == { amountIn: string; amountOut: string }\n```\n\n--- \n\n## Local Testing\nThe `humble-sdk` contains some helper scripts for running the SDK on a command line. See more [**here**](./cli/README.md)\n","readmeFilename":"README.md","gitHead":"30c24c3d9a8693ccb28b2c6379b384f7ccae29d4","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@2.1.0-beta.6","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-x0hGOcyoTWAsIK+T45xlOCx2f6eE6ssb3jOwbhAxNy62TT9jwP4UP7QGhqDb5rVCIZj9MOGy0DZEBmayTfBs7w==","shasum":"e9d5d3d83b34697065fb50b3792a68575f99982f","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-2.1.0-beta.6.tgz","fileCount":74,"unpackedSize":1639856,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDESDk3yfIXLCryPzzLBlgHwKi5f4YMSbMLaaJmOH+clgIhAM66D5o2zW7eOQy5++zwp0T8GoJPt8nwjBqXqx7qIXFA"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi+4cbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpvFw/9Fk7I+DekhdbjvM5UCILV6MGEdjHPuOYroYmuHskaAdw1MmV8\r\nzWq5zG2sYVR9wO/EFlkKt54+5QQZ+OevbpBBI4R9iFb7hxlViIJbD6Cja49m\r\ndFXN47HEpFh8bu2aTNdD483EkNWa56/efYnf9HyExji4KVPIpTQ8VvELERb+\r\n0He6ijd1HXOiMsVUlJRYonL3XzjbEEKc6eZHxCdscWSL87aFlzBJKI7+F7+U\r\nJEGaLW42G5o1rDoXmeF+cIDiEDGje/cN8FvHlj8PdZ6Wsb8vZKnw2STJB1MC\r\n0781MBza+Lss84kKdCjd0h/Bq5WFH/6Ii8nNNNDp8eGJda3Ho0bZV/DvUcru\r\nitBVAnoYQS5Owg/h6klbt6etHQAZktqO42xh+0Xj0LpMA1bkGveXNdsSGp65\r\nnmQqfN/KO1hWaTxMkyFlzhl/T3GzM0VJgdaqmPsz4rKif/09g/z2cvcNcKyL\r\nSfrLR7uYI7+HpfLm8M5It+S5BG74UX/qrCbJ5kYvCoGsL4hVr8VcVHVF0ld6\r\nuOCTbnYyCSukNsEnM10z5jJn2sOZLpeQ7BvpItR/Y19MDjzRdazDUIFIBWnj\r\nmkDzXWQveFcbAUdPE+zDfg6VYbK9JXQXt296pCvHgrdGDXfmCqnofcqbRrY9\r\nRSmCuV1eWk0QCsC0hgKe/H4GKk44kn+3sB8=\r\n=kIwj\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jackcom","email":"1mrjackdaw@gmail.com"},"directories":{},"maintainers":[{"name":"krysztof","email":"cbaunach@reach.sh"},{"name":"jackcom","email":"1mrjackdaw@gmail.com"},{"name":"hamir","email":"hamir@reach.sh"},{"name":"abuahchu","email":"abuahchu@gmail.com"},{"name":"vmazzi","email":"vinicius.mazzi@gmail.com"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"},{"name":"danburton","email":"danburton.email@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_2.1.0-beta.6_1660651291003_0.025085491324705167"},"_hasShrinkwrap":false},"2.1.0-beta.7":{"name":"@reach-sh/humble-sdk","version":"2.1.0-beta.7","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","build":"rm -rf lib/ && tsc","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/dotenv":"^8.2.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2"},"dependencies":{"@reach-sh/stdlib":"0.1.10-rc.6"},"readme":"# HumbleSDK v2.0.0\n\n<header>\n  <img src=\"./logo-white.svg\" width=\"80\" height=\"auto\">\n</header>\n\nA Javascript library for interacting with the [HumbleSwap DEx](https://app.humble.sh).\n\n- [HumbleSDK v2.0.0](#humblesdk-v200)\n  - [Documentation](#documentation)\n  - [v2 Changes](#v2-changes)\n  - [Installing the SDK](#installing-the-sdk)\n    - [Option 1. NPM (recommended)](#option-1-npm-recommended)\n    - [Option 2. Cloning the repo directly](#option-2-cloning-the-repo-directly)\n  - [Example Usage](#example-usage)\n    - [Subscribing to a stream of **Liquidity Pool** data](#subscribing-to-a-stream-of-liquidity-pool-data)\n    - [**Swapping** between a pair of tokens](#swapping-between-a-pair-of-tokens)\n  - [Local Testing](#local-testing)\n\n---\n## Documentation\nDocumentation has moved [here](https://reach-sh.github.io/humble-sdk/).\n\n--- \n\n## v2 Changes \n`v2` introduces a few changes and adds new functionality, including staking pools. Some functions may have been renamed: review changes in our [changelog](./CHANGELOG.md), and view our [documentation](https://reach-sh.github.io/humble-sdk/) for additional info.\n\n--- \n\n## Installing the SDK\n### Option 1. NPM (recommended)\nThe fastest way is to use `npm`:\n```bash\n$. npm i -s @reach-sh/humble-sdk\n```\n\n### Option 2. Cloning the repo directly\nTo get started without NPM, you can clone and build the SDK from the repository. \n```bash\n# Clone the repository \n$. git clone https://github.com/reach-sh/humble-sdk.git\n\n# Enter the directory with the repo (replace with path to your repository clone)\n$. cd path/to/humble-sdk \n\n# and install dependencies (there aren't a lot)\n$. npm install\n\n# Build the SDK. Will output to a ./lib directory in the same folder as the \n# package.json file. This takes seconds and doesn't output anything to your terminal.\n$. npm run build\n``` \nYou will know it is complete when your (terminal's) typing prompt reappears.\\\nThen, as a **FINAL STEP**, copy or move the new `lib/` directory into your project. This will allow you to access it like any other JS module:\n\n```typescript\nimport { initHumbleSDK } from \"path/to/lib\";\n```\n\n---\n\n## Example Usage\n\n### Subscribing to a stream of **Liquidity Pool** data\n```typescript\nimport { subscribeToPoolStream, createReachAPI } from \"@reach-sh/humble-sdk\";\n\nconst stdlib = createReachAPI();\nconst acc = await stdlib.createAccount();\n\n// Fetch existing streams and get notified when a new one is created\nsubscribeToPoolStream(acc, {\n    // Pool ID (and id of pool tokens) received from contract.\n    // Pool data has NOT been fetched yet.\n    onPoolReceived: (info) => { \n        const [poolAddr, tokenAId, tokenBId] = info;\n        // ... do something with data\n     },\n\n    // Pool and Token data has been received from network. \n    onPoolFetched: (result: FetchPoolTxnResult) => { \n        const { succeeded, poolAddress, data, message } = result;\n        if (succeeded) // ... do something with data\n     }\n})\n```\n\n\n### **Swapping** between a pair of tokens\n> **Note:** Swapping does not use routing. Read the [docs](https://reach-sh.github.io/humble-sdk/) to learn how to fetch pools for DEx operations.\n```typescript\nimport { calculateTokenSwap, performSwap } from \"@reach-sh/humble-sdk\";\n\nconst pool = /* pool source */\n\n// Calculate expected swap output\nconst { tokenAId, tokenBId } = pool;\nconst amountA = 100;\nconst swap = calculateTokenSwap({ \n    pool, \n    swap: { amountA, tokenAId, tokenBId } \n});\n\n// Perform swap\nconst swapOpts = { poolAddress: pool.poolAddress, swap, pool };\nconst { data, message, succeeded } = await performSwap(acc, swapOpts);\n// if (succeeded) data == { amountIn: string; amountOut: string }\n```\n\n--- \n\n## Local Testing\nThe `humble-sdk` contains some helper scripts for running the SDK on a command line. See more [**here**](./cli/README.md)\n","readmeFilename":"README.md","gitHead":"047cbd079301b3e59cc87d4117fefee3491d9cd9","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@2.1.0-beta.7","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-wXRh9bD917ebW34npbGmOoj2zNLDtK0k3QWikqutrO1bosm5SPUc+UOA84fvj1TqXWPxrD74zQsS4LellqP21A==","shasum":"675ba313141bfe6cee6915a9b7e1638fb3369b60","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-2.1.0-beta.7.tgz","fileCount":74,"unpackedSize":1640350,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCLCdQyIWeA/vfk7bQ+DtpTKVfr9B+GQjrKyQUV5fPZOwIhAO+u9Iqz2XeNIvkE6WTHQOoEtZIhkG3iIWmCQCqBz6Jr"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi+6zfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq+hA/+KKUauxQpjfWGPkQYSK7V0kxefdUJyzTbmdW45nfQD1B4P3YZ\r\nc87+zZBMcCRxgB72XIM6u2uBWbvv7T8wlJYhJcO+WCa57f46uaq9iRcfgS2j\r\nb+5UW////lROENVXJtR7b72Nx1iNkZTgoOXPR56kYL5Uw9FL2vWfDKnlmSqr\r\ni2qBokaA6PYaBV5FXGl7ps5NXVS4ah66sZUjH4OiS6DIBcjldYuIQToc9ysl\r\nOsWkKR+mOn04EgGBVjcLg38K+1/rWfg0UCIIxuoNCWuBWuSv9QiQi/Hlg9Ti\r\nJmukM9PdvU6E56Gyq8k+XVftHmOhX6yNEkCMtGIRaxJb8SYdPC55h5zzOVdh\r\nTKdnHX2Vry6RH1GggRdv7p7E8Rx35TCsHJ7btsI0lx6NHGfYBuipesxot8bs\r\nbuRtlWx2M0hesEVHguZ56XYPR++mRrxQAZd1Fm7zwNvproiV+ppV61sH4+jy\r\n104sEGPf0zOGHNa/ti9zuLca4e9Oa9eKZ3boNsDKO4W+jxNZJK1zQGzlAaFb\r\nu/j9X++8pumudSu/FkgTDiQMixazrGtlsoLzNGuSOHrEaoE3Cudcxyy7bsoz\r\nW2FoZyDKsiZT6Ho3IsjT2NRjLRgWsr8+qkYCRonWov8CJFzDuBCbLCs7iULu\r\nIug3H7sA1RFeJfpQJiYlbA2lEkWEkdJOlN0=\r\n=crRe\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jackcom","email":"1mrjackdaw@gmail.com"},"directories":{},"maintainers":[{"name":"krysztof","email":"cbaunach@reach.sh"},{"name":"jackcom","email":"1mrjackdaw@gmail.com"},{"name":"hamir","email":"hamir@reach.sh"},{"name":"abuahchu","email":"abuahchu@gmail.com"},{"name":"vmazzi","email":"vinicius.mazzi@gmail.com"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"},{"name":"danburton","email":"danburton.email@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_2.1.0-beta.7_1660660959513_0.07980860603288442"},"_hasShrinkwrap":false},"2.1.0-beta.8":{"name":"@reach-sh/humble-sdk","version":"2.1.0-beta.8","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","build":"rm -rf lib/ && tsc","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/jest":"^27.4.1","@types/node":"^17.0.45","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2"},"dependencies":{"@reach-sh/stdlib":"0.1.10-rc.6"},"readme":"# HumbleSDK v2.0.0\n\n<header>\n  <img src=\"./logo-white.svg\" width=\"80\" height=\"auto\">\n</header>\n\nA Javascript library for interacting with the [HumbleSwap DEx](https://app.humble.sh).\n\n- [HumbleSDK v2.0.0](#humblesdk-v200)\n  - [Documentation](#documentation)\n  - [v2 Changes](#v2-changes)\n  - [Installing the SDK](#installing-the-sdk)\n    - [Option 1. NPM (recommended)](#option-1-npm-recommended)\n    - [Option 2. Cloning the repo directly](#option-2-cloning-the-repo-directly)\n  - [Example Usage](#example-usage)\n    - [Subscribing to a stream of **Liquidity Pool** data](#subscribing-to-a-stream-of-liquidity-pool-data)\n    - [**Swapping** between a pair of tokens](#swapping-between-a-pair-of-tokens)\n  - [Local Testing](#local-testing)\n\n---\n## Documentation\nDocumentation has moved [here](https://reach-sh.github.io/humble-sdk/).\n\n--- \n\n## v2 Changes \n`v2` introduces a few changes and adds new functionality, including staking pools. Some functions may have been renamed: review changes in our [changelog](./CHANGELOG.md), and view our [documentation](https://reach-sh.github.io/humble-sdk/) for additional info.\n\n--- \n\n## Installing the SDK\n### Option 1. NPM (recommended)\nThe fastest way is to use `npm`:\n```bash\n$. npm i -s @reach-sh/humble-sdk\n```\n\n### Option 2. Cloning the repo directly\nTo get started without NPM, you can clone and build the SDK from the repository. \n```bash\n# Clone the repository \n$. git clone https://github.com/reach-sh/humble-sdk.git\n\n# Enter the directory with the repo (replace with path to your repository clone)\n$. cd path/to/humble-sdk \n\n# and install dependencies (there aren't a lot)\n$. npm install\n\n# Build the SDK. Will output to a ./lib directory in the same folder as the \n# package.json file. This takes seconds and doesn't output anything to your terminal.\n$. npm run build\n``` \nYou will know it is complete when your (terminal's) typing prompt reappears.\\\nThen, as a **FINAL STEP**, copy or move the new `lib/` directory into your project. This will allow you to access it like any other JS module:\n\n```typescript\nimport { initHumbleSDK } from \"path/to/lib\";\n```\n\n---\n\n## Example Usage\n\n### Subscribing to a stream of **Liquidity Pool** data\n```typescript\nimport { subscribeToPoolStream, createReachAPI } from \"@reach-sh/humble-sdk\";\n\nconst stdlib = createReachAPI();\nconst acc = await stdlib.createAccount();\n\n// Fetch existing streams and get notified when a new one is created\nsubscribeToPoolStream(acc, {\n    // Pool ID (and id of pool tokens) received from contract.\n    // Pool data has NOT been fetched yet.\n    onPoolReceived: (info) => { \n        const [poolAddr, tokenAId, tokenBId] = info;\n        // ... do something with data\n     },\n\n    // Pool and Token data has been received from network. \n    onPoolFetched: (result: FetchPoolTxnResult) => { \n        const { succeeded, poolAddress, data, message } = result;\n        if (succeeded) // ... do something with data\n     }\n})\n```\n\n\n### **Swapping** between a pair of tokens\n> **Note:** Swapping does not use routing. Read the [docs](https://reach-sh.github.io/humble-sdk/) to learn how to fetch pools for DEx operations.\n```typescript\nimport { calculateTokenSwap, performSwap } from \"@reach-sh/humble-sdk\";\n\nconst pool = /* pool source */\n\n// Calculate expected swap output\nconst { tokenAId, tokenBId } = pool;\nconst amountA = 100;\nconst swap = calculateTokenSwap({ \n    pool, \n    swap: { amountA, tokenAId, tokenBId } \n});\n\n// Perform swap\nconst swapOpts = { poolAddress: pool.poolAddress, swap, pool };\nconst { data, message, succeeded } = await performSwap(acc, swapOpts);\n// if (succeeded) data == { amountIn: string; amountOut: string }\n```\n\n--- \n\n## Local Testing\nThe `humble-sdk` contains some helper scripts for running the SDK on a command line. See more [**here**](./cli/README.md)\n","readmeFilename":"README.md","gitHead":"579b8a3f5f88b3246da183400c4f14e8d3e9dd87","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@2.1.0-beta.8","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-rZtpaQF4csNf+sELkyJ1qFuoWSgq/bzy4BmyNRhRNpjmu2ja/GND5W59PM8EiLCwITUhLRU/INZbBUWQLlWRDw==","shasum":"b88994626d05a2cd980549cac9ede3a23495c9cf","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-2.1.0-beta.8.tgz","fileCount":74,"unpackedSize":1639824,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQgIhegKE9JHs2PDuSxR9nNDWgPNp5bYm5BAkidY/vwQIhAJIjokV7RXCU/Nk2WHNuEnld2tiP3iCFm4uEWoVZSPTq"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi/CPSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqPkQ/+P010tIz04H3Ms3ZK9dTeUNgyD798RoOAC63/+OfUUNgg8RdL\r\nLIDHvTUoj4TY91zB3iTWzjVQRrtgIo/Ex5s1GT9pSaTn6LjhaczHh6C7OQ+q\r\nRxZi4DIuomGLWlWb0AwzF6cprv/N2K18PooTTmTrt4VofqAfPN8CB5lBV5+7\r\nbrYy3ttxQjFaNfzNrDd7U/OLAWDh1Yab/c0WntVJanfQc3e+i0k+6rlo1F96\r\niXERGw3JEAYb3C5AiwW5sEpIZhlg2FQwQatxUKuuxLSaRHKaEecX+nkVBCLB\r\n88ObfLUK+IvX/7W2IdUevrk8vP6c4kmbrxtTyVnmUiVUQjPPVlXprgtcMRJt\r\nYo41L9aEk+aIgKtX3FTRZthuEwcoRcP0CNY9r0jiaDz5lGFf5CAajQe4f8lH\r\n4Qq0Yx0BnI+XRSMHJ1gkHjE2lgIlbo0WyjTtBYwyGl6bs1VjMTHMFKf928pW\r\n9ppHeYtRBePdOs5doMdpQe7u3RkyVdj/NGlxqUuKmOERGrUkrUOwLCaOaKKp\r\nWqt7ogdu5l1+qBa7NUeuwZEn8Oiw78e1L0wNSycNbC7oMharGkP0QcNfLnp3\r\nzxNKAbBpmLTPLFdkLykdCos3I0DbW5+WXdfKAZqnexOWIpOE1KyoYQFmo6TG\r\n0VYy681opxKRezol1K6yHIiXcwpSxcEaf/0=\r\n=pniL\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jackcom","email":"1mrjackdaw@gmail.com"},"directories":{},"maintainers":[{"name":"krysztof","email":"cbaunach@reach.sh"},{"name":"jackcom","email":"1mrjackdaw@gmail.com"},{"name":"hamir","email":"hamir@reach.sh"},{"name":"abuahchu","email":"abuahchu@gmail.com"},{"name":"vmazzi","email":"vinicius.mazzi@gmail.com"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"},{"name":"danburton","email":"danburton.email@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_2.1.0-beta.8_1660691409961_0.7281536074921819"},"_hasShrinkwrap":false},"2.1.1-beta.0":{"name":"@reach-sh/humble-sdk","version":"2.1.1-beta.0","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","build":"rm -rf lib/ && tsc","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2"},"dependencies":{"@reach-sh/stdlib":"0.1.10-rc.6","axios":"^0.27.2"},"readme":"# HumbleSDK v2.0.0\n\n<header>\n  <img src=\"./logo-white.svg\" width=\"80\" height=\"auto\">\n</header>\n\nA Javascript library for interacting with the [HumbleSwap DEx](https://app.humble.sh).\n\n- [HumbleSDK v2.0.0](#humblesdk-v200)\n  - [Documentation](#documentation)\n  - [v2 Changes](#v2-changes)\n  - [Installing the SDK](#installing-the-sdk)\n    - [Option 1. NPM (recommended)](#option-1-npm-recommended)\n    - [Option 2. Cloning the repo directly](#option-2-cloning-the-repo-directly)\n  - [Example Usage](#example-usage)\n    - [Subscribing to a stream of **Liquidity Pool** data](#subscribing-to-a-stream-of-liquidity-pool-data)\n    - [**Swapping** between a pair of tokens](#swapping-between-a-pair-of-tokens)\n  - [Local Testing](#local-testing)\n\n---\n## Documentation\nDocumentation has moved [here](https://reach-sh.github.io/humble-sdk/).\n\n--- \n\n## v2 Changes \n`v2` introduces a few changes and adds new functionality, including staking pools. Some functions may have been renamed: review changes in our [changelog](./CHANGELOG.md), and view our [documentation](https://reach-sh.github.io/humble-sdk/) for additional info.\n\n--- \n\n## Installing the SDK\n### Option 1. NPM (recommended)\nThe fastest way is to use `npm`:\n```bash\n$. npm i -s @reach-sh/humble-sdk\n```\n\n### Option 2. Cloning the repo directly\nTo get started without NPM, you can clone and build the SDK from the repository. \n```bash\n# Clone the repository \n$. git clone https://github.com/reach-sh/humble-sdk.git\n\n# Enter the directory with the repo (replace with path to your repository clone)\n$. cd path/to/humble-sdk \n\n# and install dependencies (there aren't a lot)\n$. npm install\n\n# Build the SDK. Will output to a ./lib directory in the same folder as the \n# package.json file. This takes seconds and doesn't output anything to your terminal.\n$. npm run build\n``` \nYou will know it is complete when your (terminal's) typing prompt reappears.\\\nThen, as a **FINAL STEP**, copy or move the new `lib/` directory into your project. This will allow you to access it like any other JS module:\n\n```typescript\nimport { initHumbleSDK } from \"path/to/lib\";\n```\n\n---\n\n## Example Usage\n\n### Subscribing to a stream of **Liquidity Pool** data\n```typescript\nimport { subscribeToPoolStream, createReachAPI } from \"@reach-sh/humble-sdk\";\n\nconst stdlib = createReachAPI();\nconst acc = await stdlib.createAccount();\n\n// Fetch existing streams and get notified when a new one is created\nsubscribeToPoolStream(acc, {\n    // Pool ID (and id of pool tokens) received from contract.\n    // Pool data has NOT been fetched yet.\n    onPoolReceived: (info) => { \n        const [poolAddr, tokenAId, tokenBId] = info;\n        // ... do something with data\n     },\n\n    // Pool and Token data has been received from network. \n    onPoolFetched: (result: FetchPoolTxnResult) => { \n        const { succeeded, poolAddress, data, message } = result;\n        if (succeeded) // ... do something with data\n     }\n})\n```\n\n\n### **Swapping** between a pair of tokens\n> **Note:** Swapping does not use routing. Read the [docs](https://reach-sh.github.io/humble-sdk/) to learn how to fetch pools for DEx operations.\n```typescript\nimport { calculateTokenSwap, performSwap } from \"@reach-sh/humble-sdk\";\n\nconst pool = /* pool source */\n\n// Calculate expected swap output\nconst { tokenAId, tokenBId } = pool;\nconst amountA = 100;\nconst swap = calculateTokenSwap({ \n    pool, \n    swap: { amountA, tokenAId, tokenBId } \n});\n\n// Perform swap\nconst swapOpts = { poolAddress: pool.poolAddress, swap, pool };\nconst { data, message, succeeded } = await performSwap(acc, swapOpts);\n// if (succeeded) data == { amountIn: string; amountOut: string }\n```\n\n--- \n\n## Local Testing\nThe `humble-sdk` contains some helper scripts for running the SDK on a command line. See more [**here**](./cli/README.md)\n","readmeFilename":"README.md","gitHead":"a0d14f83a04c04308923839bed71e355f5133b25","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@2.1.1-beta.0","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-HjBLwAA8FeKB0jow6nShwNDlsKzNMNhlOy0/RGrQF2q+m99U4UTwd5ufCPswyQoxBLGXkUjUUvncuHWMreRyNA==","shasum":"1cdbafba28bbdcf89c639a690798fb1a89454434","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-2.1.1-beta.0.tgz","fileCount":74,"unpackedSize":1644784,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCA3tYIZ5wYYv+mK0i2XDGavmZD7bwTsaU4ZqNWs2koowIhAPB/kjgWLTdEh2UqELkts5d26ixhGhI6T2y5ILZl3UYJ"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjD4huACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrigg/+KyvIKY5wssWQ17hH9+HZnRHVWiqetLxY1aGBZdM21sBHpKWH\r\nghYCIbgWUYFmI10drMi0lHDjX6Hx+P708zmjiRuhYm1LsLU8OS1Xkk8n8VNM\r\naIbcOPQxuclxMLsCBbGgYcwXDvr9EYUbQlyWtwektkJbR6RWNpl6HiS9xQkW\r\n56/Fy22nUKpj4MxPFYWWeQjD2DIX6h3kWXveDpYzcrjPjqWmGf2ttMX4PSqR\r\n/4aXxR4mpNETZJxN1joRJqRzFB+Wor4euPTSr+wsj1AfpuyMrYlji3V9EffX\r\nggjRSHUaFaDJx1ZuRKM8yoYkE98bghS/kmfNFFHdSDkVE7fp9hLHL0BW8D5Z\r\nfaz4scZSqFXYP6WxA7vQZsqvLktwVRV0M7uWdTFStucV7B9J2wKNKVEftwKU\r\nk1VmxmwqzCyp841MBlMEp/JAts3vMUvMvQloaGUbopW1PkJ3HXS8c6D6aadn\r\nsryS+Ovd34W25T6Iq52m1i5MYnukvrcvTSba2+sSnlg09FgJdFusMhnOGQaQ\r\nJsHP1TG+DdJ1V3KRZBnd0fG7OiXLBWD8EtxqgL/gauELuFpINj+qhOUcO9/A\r\nlF4cxyTArQJy4RL3jTJpPt+2RxZfkSO9i/Qrggak564kmrCLV6jX74e18ZMS\r\n0tp0gUjdgHcIlHDGSeeQyjTYiumgbwGwYRk=\r\n=nxbm\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jackcom","email":"1mrjackdaw@gmail.com"},"directories":{},"maintainers":[{"name":"krysztof","email":"cbaunach@reach.sh"},{"name":"jackcom","email":"1mrjackdaw@gmail.com"},{"name":"hamir","email":"hamir@reach.sh"},{"name":"abuahchu","email":"abuahchu@gmail.com"},{"name":"vmazzi","email":"vinicius.mazzi@gmail.com"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"},{"name":"danburton","email":"danburton.email@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_2.1.1-beta.0_1661962350531_0.3399879507996466"},"_hasShrinkwrap":false},"2.1.1-beta.1":{"name":"@reach-sh/humble-sdk","version":"2.1.1-beta.1","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","build":"rm -rf lib/ && tsc","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2"},"dependencies":{"@reach-sh/stdlib":"0.1.10-rc.6","axios":"^0.27.2"},"readme":"# HumbleSDK v2.0.0\n\n<header>\n  <img src=\"./logo-white.svg\" width=\"80\" height=\"auto\">\n</header>\n\nA Javascript library for interacting with the [HumbleSwap DEx](https://app.humble.sh).\n\n- [HumbleSDK v2.0.0](#humblesdk-v200)\n  - [Documentation](#documentation)\n  - [v2 Changes](#v2-changes)\n  - [Installing the SDK](#installing-the-sdk)\n    - [Option 1. NPM (recommended)](#option-1-npm-recommended)\n    - [Option 2. Cloning the repo directly](#option-2-cloning-the-repo-directly)\n  - [Example Usage](#example-usage)\n    - [Subscribing to a stream of **Liquidity Pool** data](#subscribing-to-a-stream-of-liquidity-pool-data)\n    - [**Swapping** between a pair of tokens](#swapping-between-a-pair-of-tokens)\n  - [Local Testing](#local-testing)\n\n---\n## Documentation\nDocumentation has moved [here](https://reach-sh.github.io/humble-sdk/).\n\n--- \n\n## v2 Changes \n`v2` introduces a few changes and adds new functionality, including staking pools. Some functions may have been renamed: review changes in our [changelog](./CHANGELOG.md), and view our [documentation](https://reach-sh.github.io/humble-sdk/) for additional info.\n\n--- \n\n## Installing the SDK\n### Option 1. NPM (recommended)\nThe fastest way is to use `npm`:\n```bash\n$. npm i -s @reach-sh/humble-sdk\n```\n\n### Option 2. Cloning the repo directly\nTo get started without NPM, you can clone and build the SDK from the repository. \n```bash\n# Clone the repository \n$. git clone https://github.com/reach-sh/humble-sdk.git\n\n# Enter the directory with the repo (replace with path to your repository clone)\n$. cd path/to/humble-sdk \n\n# and install dependencies (there aren't a lot)\n$. npm install\n\n# Build the SDK. Will output to a ./lib directory in the same folder as the \n# package.json file. This takes seconds and doesn't output anything to your terminal.\n$. npm run build\n``` \nYou will know it is complete when your (terminal's) typing prompt reappears.\\\nThen, as a **FINAL STEP**, copy or move the new `lib/` directory into your project. This will allow you to access it like any other JS module:\n\n```typescript\nimport { initHumbleSDK } from \"path/to/lib\";\n```\n\n---\n\n## Example Usage\n\n### Subscribing to a stream of **Liquidity Pool** data\n```typescript\nimport { subscribeToPoolStream, createReachAPI } from \"@reach-sh/humble-sdk\";\n\nconst stdlib = createReachAPI();\nconst acc = await stdlib.createAccount();\n\n// Fetch existing streams and get notified when a new one is created\nsubscribeToPoolStream(acc, {\n    // Pool ID (and id of pool tokens) received from contract.\n    // Pool data has NOT been fetched yet.\n    onPoolReceived: (info) => { \n        const [poolAddr, tokenAId, tokenBId] = info;\n        // ... do something with data\n     },\n\n    // Pool and Token data has been received from network. \n    onPoolFetched: (result: FetchPoolTxnResult) => { \n        const { succeeded, poolAddress, data, message } = result;\n        if (succeeded) // ... do something with data\n     }\n})\n```\n\n\n### **Swapping** between a pair of tokens\n> **Note:** Swapping does not use routing. Read the [docs](https://reach-sh.github.io/humble-sdk/) to learn how to fetch pools for DEx operations.\n```typescript\nimport { calculateTokenSwap, performSwap } from \"@reach-sh/humble-sdk\";\n\nconst pool = /* pool source */\n\n// Calculate expected swap output\nconst { tokenAId, tokenBId } = pool;\nconst amountA = 100;\nconst swap = calculateTokenSwap({ \n    pool, \n    swap: { amountA, tokenAId, tokenBId } \n});\n\n// Perform swap\nconst swapOpts = { poolAddress: pool.poolAddress, swap, pool };\nconst { data, message, succeeded } = await performSwap(acc, swapOpts);\n// if (succeeded) data == { amountIn: string; amountOut: string }\n```\n\n--- \n\n## Local Testing\nThe `humble-sdk` contains some helper scripts for running the SDK on a command line. See more [**here**](./cli/README.md)\n","readmeFilename":"README.md","gitHead":"649bf3f9b7d01a3b0a8e978e5de8e87d308c3939","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@2.1.1-beta.1","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-1clp4L16PCHOpJWtF+Lg62aL1nntjKeTyfjf1JYelLzl94eJp+3RZ44sh0KotbonFjbRG4UQW4f9KY9x4+sluA==","shasum":"c5fd9007d2bc8ef29a49360081a5972963c3e322","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-2.1.1-beta.1.tgz","fileCount":74,"unpackedSize":1650014,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDQ+rgIKkDIiqYNAieC1S04YzTZAhSOMuR8f+X3ZFF/9wIgdmZWLg4Xd4HFf6f8clgOXyFQ4EeXsuVQ2OkM0quFoCY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEMdGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpdXA//exJY50VbcgLJjqPX4F3EVB/6UJYNXUjTVCu8Q7s+Fn+dgNj3\r\nP4PRZ/ge4Nwpza5re3X7/jjNnEz7qpy4xlw+1d4ysS3J88wpBVeZDuo5fkc4\r\nbsL5wI6QePEFnybxsWxt36wyW8twAyrSa7hzQCHUCqtT3akWsjCf30oc+5ZO\r\nawBU54B3pBFvDTTo4ABoN66Ytn/LdMqOwYmNNeKKkG4eXPel40SRRWO2Ut+Y\r\nvcAXfh7PZlOYKDrsNA2F9CF7N2ptFoUiOlJMGvNLn+2FqbDtx7dK6KxbXBRF\r\nN2g2JWB+uXmXHnUYRDKfcZ/lVWWztpxIma/2bb8G0TXq8X6lX/yvQm1KlXcz\r\ncSMQMjJboRNNcHys8Xre1zbV0QGPQALeTag3+DJX+vY6pWJPPOYM7VlLH3cG\r\nJj3A9UaLLHvI4S3CdX9rr7ltIUl9trh9LDTZ/pDvyTvU5tubw/k4lR4Vk0HQ\r\nEM4Byvpjv/+tm4A30wkwMFu2qTR54AliUEOoF+moFFwUFErgPx62sh2kLhy/\r\nZp/olAUgGC5Ed2AwxZDmxllx3h79vSttF8kfwfzTMXh/7IHRS+lQhzRxrrBI\r\nJunEbLHiK0YuTlw0R+YFFlxdwQLsB8PSfkx5ffkbzwY99FG+1ZuaopjQWHUo\r\nR3jIV3YEqus7ccO+WxkTbmNiql0PdcLuQBw=\r\n=yLHX\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jackcom","email":"1mrjackdaw@gmail.com"},"directories":{},"maintainers":[{"name":"krysztof","email":"cbaunach@reach.sh"},{"name":"jackcom","email":"1mrjackdaw@gmail.com"},{"name":"hamir","email":"hamir@reach.sh"},{"name":"abuahchu","email":"abuahchu@gmail.com"},{"name":"vmazzi","email":"vinicius.mazzi@gmail.com"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"},{"name":"danburton","email":"danburton.email@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_2.1.1-beta.1_1662043974020_0.7510700557777008"},"_hasShrinkwrap":false},"2.1.1-beta.2":{"name":"@reach-sh/humble-sdk","version":"2.1.1-beta.2","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","build":"rm -rf lib/ && tsc","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2"},"dependencies":{"@reach-sh/stdlib":"0.1.10-rc.6","axios":"^0.27.2"},"readme":"# HumbleSDK v2.0.0\n\n<header>\n  <img src=\"./logo-white.svg\" width=\"80\" height=\"auto\">\n</header>\n\nA Javascript library for interacting with the [HumbleSwap DEx](https://app.humble.sh).\n\n- [HumbleSDK v2.0.0](#humblesdk-v200)\n  - [Documentation](#documentation)\n  - [v2 Changes](#v2-changes)\n  - [Installing the SDK](#installing-the-sdk)\n    - [Option 1. NPM (recommended)](#option-1-npm-recommended)\n    - [Option 2. Cloning the repo directly](#option-2-cloning-the-repo-directly)\n  - [Example Usage](#example-usage)\n    - [Subscribing to a stream of **Liquidity Pool** data](#subscribing-to-a-stream-of-liquidity-pool-data)\n    - [**Swapping** between a pair of tokens](#swapping-between-a-pair-of-tokens)\n  - [Local Testing](#local-testing)\n\n---\n## Documentation\nDocumentation has moved [here](https://reach-sh.github.io/humble-sdk/).\n\n--- \n\n## v2 Changes \n`v2` introduces a few changes and adds new functionality, including staking pools. Some functions may have been renamed: review changes in our [changelog](./CHANGELOG.md), and view our [documentation](https://reach-sh.github.io/humble-sdk/) for additional info.\n\n--- \n\n## Installing the SDK\n### Option 1. NPM (recommended)\nThe fastest way is to use `npm`:\n```bash\n$. npm i -s @reach-sh/humble-sdk\n```\n\n### Option 2. Cloning the repo directly\nTo get started without NPM, you can clone and build the SDK from the repository. \n```bash\n# Clone the repository \n$. git clone https://github.com/reach-sh/humble-sdk.git\n\n# Enter the directory with the repo (replace with path to your repository clone)\n$. cd path/to/humble-sdk \n\n# and install dependencies (there aren't a lot)\n$. npm install\n\n# Build the SDK. Will output to a ./lib directory in the same folder as the \n# package.json file. This takes seconds and doesn't output anything to your terminal.\n$. npm run build\n``` \nYou will know it is complete when your (terminal's) typing prompt reappears.\\\nThen, as a **FINAL STEP**, copy or move the new `lib/` directory into your project. This will allow you to access it like any other JS module:\n\n```typescript\nimport { initHumbleSDK } from \"path/to/lib\";\n```\n\n---\n\n## Example Usage\n\n### Subscribing to a stream of **Liquidity Pool** data\n```typescript\nimport { subscribeToPoolStream, createReachAPI } from \"@reach-sh/humble-sdk\";\n\nconst stdlib = createReachAPI();\nconst acc = await stdlib.createAccount();\n\n// Fetch existing streams and get notified when a new one is created\nsubscribeToPoolStream(acc, {\n    // Pool ID (and id of pool tokens) received from contract.\n    // Pool data has NOT been fetched yet.\n    onPoolReceived: (info) => { \n        const [poolAddr, tokenAId, tokenBId] = info;\n        // ... do something with data\n     },\n\n    // Pool and Token data has been received from network. \n    onPoolFetched: (result: FetchPoolTxnResult) => { \n        const { succeeded, poolAddress, data, message } = result;\n        if (succeeded) // ... do something with data\n     }\n})\n```\n\n\n### **Swapping** between a pair of tokens\n> **Note:** Swapping does not use routing. Read the [docs](https://reach-sh.github.io/humble-sdk/) to learn how to fetch pools for DEx operations.\n```typescript\nimport { calculateTokenSwap, performSwap } from \"@reach-sh/humble-sdk\";\n\nconst pool = /* pool source */\n\n// Calculate expected swap output\nconst { tokenAId, tokenBId } = pool;\nconst amountA = 100;\nconst swap = calculateTokenSwap({ \n    pool, \n    swap: { amountA, tokenAId, tokenBId } \n});\n\n// Perform swap\nconst swapOpts = { poolAddress: pool.poolAddress, swap, pool };\nconst { data, message, succeeded } = await performSwap(acc, swapOpts);\n// if (succeeded) data == { amountIn: string; amountOut: string }\n```\n\n--- \n\n## Local Testing\nThe `humble-sdk` contains some helper scripts for running the SDK on a command line. See more [**here**](./cli/README.md)\n","readmeFilename":"README.md","gitHead":"1411f2637b10f3b55432eae9c84a8b53ec0764f9","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@2.1.1-beta.2","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-MFFHKodiDp1Za20+wYBuo+zyu69E6tXWeMGutX2utHFdb8lJkzGCFrgup1z8RCvg2uGB85k9RsZJAtsgFFAIqA==","shasum":"5697444980414d1b1d0ca8995375f0a99653372a","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-2.1.1-beta.2.tgz","fileCount":74,"unpackedSize":1651367,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEqPb8H1iYej4tvfeJMdrY4BSWwgLaMy6WLqOGpsNdZ4AiAhtRbvQx3l+hrf/RhdQl9wfKXXcZ+21pxZEH4s3Lkjew=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjF7oeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpY/A//XSQs+RcxwGM+CPKlCUv3vUTEdkL/xazoi4YwdlHphjG8vfh8\r\nWTjej5H2EsxUy0aZu47qt9Vnw25lnX5PVsWYFWxF5+ImaOOxmM0FDQJgQk9/\r\nrC0yKvn5ZpLHhdri1FnpTZMdchJ/7yilt0xy88E+y1u9rAQZc1e4MFJNPCZ+\r\n1rldnfS9Zgh8bQuLq/alFhMh1IoCHALDrO2D5silRDn7kTyoyZXH1dNUhk/r\r\nEnFSyt7u8Rha/Xp1mENzTWf9gwe9Ss7t+hHZfwNry5Cswqd6VOUiU5XVet0I\r\nj0f3yrfQ5WVHEuwC9HHKk6ZBRi35Sv3ATffVK8uHE0iZ49DEox13mWHbMDQd\r\n650rlI6VuNSiNNVeU4FIKAJ6jAc/75qN5FI6py4ugpC3fQyuVLVhePbwxnhx\r\nQhregVK2M2YmEPqCToZaHNKkbog7HfqIQWmNSoRh9h7p3IPu9AJtUVOcZMav\r\nYo2YB2OCMsNEVba1zATHjIk10Lx72PGqOXqz/5EWq+nu+erpAkBuYae0ABbP\r\nOkjVPeHd7Ynxfjlxe/1zB4LaRU7tEbaPp/rTBORG2q4tufQjUZA2i2fiVY6t\r\nYBobeiLaY8MMidQez720ituaehxy7m+Cexb55FQf8oEL3quYz2SC5liNTvOm\r\nYxoPcWEJhEzHqBuoEPjQC+SHZZwYvzmatxI=\r\n=C3Y4\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jackcom","email":"1mrjackdaw@gmail.com"},"directories":{},"maintainers":[{"name":"krysztof","email":"cbaunach@reach.sh"},{"name":"jackcom","email":"1mrjackdaw@gmail.com"},{"name":"hamir","email":"hamir@reach.sh"},{"name":"abuahchu","email":"abuahchu@gmail.com"},{"name":"vmazzi","email":"vinicius.mazzi@gmail.com"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"},{"name":"danburton","email":"danburton.email@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_2.1.1-beta.2_1662499358056_0.3976407464969016"},"_hasShrinkwrap":false},"2.1.1-beta.3":{"name":"@reach-sh/humble-sdk","version":"2.1.1-beta.3","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","build":"rm -rf lib/ && tsc","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2"},"dependencies":{"@reach-sh/stdlib":"0.1.10-rc.6","axios":"^0.27.2"},"readme":"# HumbleSDK v2.0.0\n\n<header>\n  <img src=\"./logo-white.svg\" width=\"80\" height=\"auto\">\n</header>\n\nA Javascript library for interacting with the [HumbleSwap DEx](https://app.humble.sh).\n\n- [HumbleSDK v2.0.0](#humblesdk-v200)\n  - [Documentation](#documentation)\n  - [v2 Changes](#v2-changes)\n  - [Installing the SDK](#installing-the-sdk)\n    - [Option 1. NPM (recommended)](#option-1-npm-recommended)\n    - [Option 2. Cloning the repo directly](#option-2-cloning-the-repo-directly)\n  - [Example Usage](#example-usage)\n    - [Subscribing to a stream of **Liquidity Pool** data](#subscribing-to-a-stream-of-liquidity-pool-data)\n    - [**Swapping** between a pair of tokens](#swapping-between-a-pair-of-tokens)\n  - [Local Testing](#local-testing)\n\n---\n## Documentation\nDocumentation has moved [here](https://reach-sh.github.io/humble-sdk/).\n\n--- \n\n## v2 Changes \n`v2` introduces a few changes and adds new functionality, including staking pools. Some functions may have been renamed: review changes in our [changelog](./CHANGELOG.md), and view our [documentation](https://reach-sh.github.io/humble-sdk/) for additional info.\n\n--- \n\n## Installing the SDK\n### Option 1. NPM (recommended)\nThe fastest way is to use `npm`:\n```bash\n$. npm i -s @reach-sh/humble-sdk\n```\n\n### Option 2. Cloning the repo directly\nTo get started without NPM, you can clone and build the SDK from the repository. \n```bash\n# Clone the repository \n$. git clone https://github.com/reach-sh/humble-sdk.git\n\n# Enter the directory with the repo (replace with path to your repository clone)\n$. cd path/to/humble-sdk \n\n# and install dependencies (there aren't a lot)\n$. npm install\n\n# Build the SDK. Will output to a ./lib directory in the same folder as the \n# package.json file. This takes seconds and doesn't output anything to your terminal.\n$. npm run build\n``` \nYou will know it is complete when your (terminal's) typing prompt reappears.\\\nThen, as a **FINAL STEP**, copy or move the new `lib/` directory into your project. This will allow you to access it like any other JS module:\n\n```typescript\nimport { initHumbleSDK } from \"path/to/lib\";\n```\n\n---\n\n## Example Usage\n\n### Subscribing to a stream of **Liquidity Pool** data\n```typescript\nimport { subscribeToPoolStream, createReachAPI } from \"@reach-sh/humble-sdk\";\n\nconst stdlib = createReachAPI();\nconst acc = await stdlib.createAccount();\n\n// Fetch existing streams and get notified when a new one is created\nsubscribeToPoolStream(acc, {\n    // Pool ID (and id of pool tokens) received from contract.\n    // Pool data has NOT been fetched yet.\n    onPoolReceived: (info) => { \n        const [poolAddr, tokenAId, tokenBId] = info;\n        // ... do something with data\n     },\n\n    // Pool and Token data has been received from network. \n    onPoolFetched: (result: FetchPoolTxnResult) => { \n        const { succeeded, poolAddress, data, message } = result;\n        if (succeeded) // ... do something with data\n     }\n})\n```\n\n\n### **Swapping** between a pair of tokens\n> **Note:** Swapping does not use routing. Read the [docs](https://reach-sh.github.io/humble-sdk/) to learn how to fetch pools for DEx operations.\n```typescript\nimport { calculateTokenSwap, performSwap } from \"@reach-sh/humble-sdk\";\n\nconst pool = /* pool source */\n\n// Calculate expected swap output\nconst { tokenAId, tokenBId } = pool;\nconst amountA = 100;\nconst swap = calculateTokenSwap({ \n    pool, \n    swap: { amountA, tokenAId, tokenBId } \n});\n\n// Perform swap\nconst swapOpts = { poolAddress: pool.poolAddress, swap, pool };\nconst { data, message, succeeded } = await performSwap(acc, swapOpts);\n// if (succeeded) data == { amountIn: string; amountOut: string }\n```\n\n--- \n\n## Local Testing\nThe `humble-sdk` contains some helper scripts for running the SDK on a command line. See more [**here**](./cli/README.md)\n","readmeFilename":"README.md","gitHead":"b9eabeb6342ff8e167d7da7545ea1dde08729429","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@2.1.1-beta.3","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-3a+iqdEdJUtAhWseF0qrSzrq/dvkqXDqarKmuOyhFa41BvA0vFzuFgTAWPkAe6/DvXggxyVk/EQEKeZ1NbWa5A==","shasum":"ea7499801f7502d362472d9aee72ab9216853e67","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-2.1.1-beta.3.tgz","fileCount":74,"unpackedSize":1650235,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD4MXPGSot3H+cZaoxLltXOvtmzTk5Tj5wDByn77VJZxwIhAMcZJ5ePnsWoCxwvk2g0QqWNrJMPglFcRofIxJMvkqbh"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjGiZMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqShw/+NCZiif2wbuhRnETLx+kaeo3wmFIOjbls2VjhFrtqKRRGEFzW\r\n4A8mPbRTUfOV8Z6Rs4aCJX7uKGM263PLEJ93QPFO1FFtuOIZXjVKVjxdHN+p\r\nzPT3/OFPGeo/6WtQu0KX1Wk2ejQrnwZXhSh6iRlTMM+mi6+rDDRhxBnxjCOF\r\nuzB8Oe+YODmzosOJZ02Zcha4j4qKnJNpPHpUrTCD3pZFJBWt+73yTDx/HXmb\r\ndyv+0UHpenYwSG7N9WF6GpzdgLAz/GPbo3HmF2stQKRHCm6/CSXnV9YfGokp\r\nwI5fbzTl4vXliYq+z4yHnxSg0Dkr5gjQcwHOjtNFinw8FF21RPah5Zl54MSZ\r\nxWU3a5NvInw73kolU8nJrm6Fn9TPIwF6V4H6cirT7AEaDxxkkAHkyIXTHeEK\r\nIiAlDvlRACqVZHXq6MHJG0O5SrXhkFsc4YSHAeh2baAhxcxdJM+8KnsM9GY1\r\nJEIDvSZoxOir0+jQscwZYhPVhttZBCebm+htk+qJ4TsUHiwOCuV0oT2440MQ\r\nGZy9cc+hAr4JcuaimK8KQBsFs03JacRUsgYF7rIhD5nzhlj5sNlf9IKL0XS7\r\nhHe63T70pyJa/aSZOAdJ6sW8WAO7sb3dw2Pb80N24VR7Zv+ydxFYshTioVFk\r\nOhx5YQcBMdlBe01Y9O4O9ozCY2KZPRsRj3I=\r\n=1M/2\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jackcom","email":"1mrjackdaw@gmail.com"},"directories":{},"maintainers":[{"name":"krysztof","email":"cbaunach@reach.sh"},{"name":"jackcom","email":"1mrjackdaw@gmail.com"},{"name":"hamir","email":"hamir@reach.sh"},{"name":"abuahchu","email":"abuahchu@gmail.com"},{"name":"vmazzi","email":"vinicius.mazzi@gmail.com"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"},{"name":"danburton","email":"danburton.email@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_2.1.1-beta.3_1662658124388_0.5437277910796265"},"_hasShrinkwrap":false},"2.1.1-beta.4":{"name":"@reach-sh/humble-sdk","version":"2.1.1-beta.4","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","build":"rm -rf lib/ && tsc","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2"},"dependencies":{"@reach-sh/stdlib":"0.1.10-rc.6","axios":"^0.27.2"},"readme":"# HumbleSDK v2.0.0\n\n<header>\n  <img src=\"./logo-white.svg\" width=\"80\" height=\"auto\">\n</header>\n\nA Javascript library for interacting with the [HumbleSwap DEx](https://app.humble.sh).\n\n- [HumbleSDK v2.0.0](#humblesdk-v200)\n  - [Documentation](#documentation)\n  - [v2 Changes](#v2-changes)\n  - [Installing the SDK](#installing-the-sdk)\n    - [Option 1. NPM (recommended)](#option-1-npm-recommended)\n    - [Option 2. Cloning the repo directly](#option-2-cloning-the-repo-directly)\n  - [Example Usage](#example-usage)\n    - [Subscribing to a stream of **Liquidity Pool** data](#subscribing-to-a-stream-of-liquidity-pool-data)\n    - [**Swapping** between a pair of tokens](#swapping-between-a-pair-of-tokens)\n  - [Local Testing](#local-testing)\n\n---\n## Documentation\nDocumentation has moved [here](https://reach-sh.github.io/humble-sdk/).\n\n--- \n\n## v2 Changes \n`v2` introduces a few changes and adds new functionality, including staking pools. Some functions may have been renamed: review changes in our [changelog](./CHANGELOG.md), and view our [documentation](https://reach-sh.github.io/humble-sdk/) for additional info.\n\n--- \n\n## Installing the SDK\n### Option 1. NPM (recommended)\nThe fastest way is to use `npm`:\n```bash\n$. npm i -s @reach-sh/humble-sdk\n```\n\n### Option 2. Cloning the repo directly\nTo get started without NPM, you can clone and build the SDK from the repository. \n```bash\n# Clone the repository \n$. git clone https://github.com/reach-sh/humble-sdk.git\n\n# Enter the directory with the repo (replace with path to your repository clone)\n$. cd path/to/humble-sdk \n\n# and install dependencies (there aren't a lot)\n$. npm install\n\n# Build the SDK. Will output to a ./lib directory in the same folder as the \n# package.json file. This takes seconds and doesn't output anything to your terminal.\n$. npm run build\n``` \nYou will know it is complete when your (terminal's) typing prompt reappears.\\\nThen, as a **FINAL STEP**, copy or move the new `lib/` directory into your project. This will allow you to access it like any other JS module:\n\n```typescript\nimport { initHumbleSDK } from \"path/to/lib\";\n```\n\n---\n\n## Example Usage\n\n### Subscribing to a stream of **Liquidity Pool** data\n```typescript\nimport { subscribeToPoolStream, createReachAPI } from \"@reach-sh/humble-sdk\";\n\nconst stdlib = createReachAPI();\nconst acc = await stdlib.createAccount();\n\n// Fetch existing streams and get notified when a new one is created\nsubscribeToPoolStream(acc, {\n    // Pool ID (and id of pool tokens) received from contract.\n    // Pool data has NOT been fetched yet.\n    onPoolReceived: (info) => { \n        const [poolAddr, tokenAId, tokenBId] = info;\n        // ... do something with data\n     },\n\n    // Pool and Token data has been received from network. \n    onPoolFetched: (result: FetchPoolTxnResult) => { \n        const { succeeded, poolAddress, data, message } = result;\n        if (succeeded) // ... do something with data\n     }\n})\n```\n\n\n### **Swapping** between a pair of tokens\n> **Note:** Swapping does not use routing. Read the [docs](https://reach-sh.github.io/humble-sdk/) to learn how to fetch pools for DEx operations.\n```typescript\nimport { calculateTokenSwap, performSwap } from \"@reach-sh/humble-sdk\";\n\nconst pool = /* pool source */\n\n// Calculate expected swap output\nconst { tokenAId, tokenBId } = pool;\nconst amountA = 100;\nconst swap = calculateTokenSwap({ \n    pool, \n    swap: { amountA, tokenAId, tokenBId } \n});\n\n// Perform swap\nconst swapOpts = { poolAddress: pool.poolAddress, swap, pool };\nconst { data, message, succeeded } = await performSwap(acc, swapOpts);\n// if (succeeded) data == { amountIn: string; amountOut: string }\n```\n\n--- \n\n## Local Testing\nThe `humble-sdk` contains some helper scripts for running the SDK on a command line. See more [**here**](./cli/README.md)\n","readmeFilename":"README.md","gitHead":"9f9c29a90dcf6ecc05ba82fe2a4493626e241c0b","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@2.1.1-beta.4","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-0mJ31azQS19gTpbHqdi1SEEaY/q365SXELzJ0yCuP+OC3ZACMUM+Fx2SxfMFipdR8NEbMizayfVNoGtKderfLg==","shasum":"ccc0ea2f571fac4c88da0fefb291231ab74ff673","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-2.1.1-beta.4.tgz","fileCount":74,"unpackedSize":1650235,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8t2ubvZYZHO0o9uqSLlM44djfINk5Yk//PbF3E6lUWwIgW0damZPi2SIljVorDsjk+ETtt0N5c0HGl8y+9aeJTsA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjKySAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrjZBAAmuv542yB24QdcmSQrmD9FzUA+2wPmU7KJp6MhLcgoYQSaiHe\r\n5HfJnUtBP0YRclcpFKpU58+hnocryCII8q1ocfz0Qln1K/Sm7/cLtyrOUCeH\r\nTQIGSzjiPjJHOjZwBVOdeI3U5EPhpSwIe2StP3LnqhZDalEIZNGIEsW8cF2d\r\nL7pBPHqE0FlNNyJlZQjI2BmgvjyAQKA93zMHNW19WZLyGCzhOLWBBUGJ8Ca6\r\nizHcOGahcpxhlI5MBGBFQKzDQ3gtTpBJTV8smCoXw7acHS2qMJTDJPrTJy59\r\nX3tBa0ceHW/qBlzxABgBkkPre51/Ino5j7Nec6iH7JYMf36508GXn7VyuzDg\r\nI7XMRPLFXbMFIHaVNDph0z/Zf2+t9Iil81ZHK0+fww0Jm6/TyoTeYf93AKTS\r\nbUuJnn1BzpxLrVWqdlxc/AOe0S1/UJjniG8/oqDn7hx0CBbAEBEStYU1blFz\r\nSN0CQaJP2qOk1+9ZnvfSeAyI5OZwTZIppl6H6zlzfMzy7PDXu5jSxE3Dub6m\r\n2TGskli2o4YmZbi60xUVEb5SJd/YUmOG1/EDIMJbTWpaI9g1lphp3klmBMbY\r\nci6L2gxl728/yLo63aosWu/Cflnt/VJZTdFD13/NA7LSPm3zDGoLZwtANpPr\r\nj1HbI3yR5cjCdD15MuXSvTVVP6Wjd0hsE9k=\r\n=SLEv\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jackcom","email":"1mrjackdaw@gmail.com"},"directories":{},"maintainers":[{"name":"krysztof","email":"cbaunach@reach.sh"},{"name":"jackcom","email":"1mrjackdaw@gmail.com"},{"name":"hamir","email":"hamir@reach.sh"},{"name":"abuahchu","email":"abuahchu@gmail.com"},{"name":"vmazzi","email":"vinicius.mazzi@gmail.com"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"},{"name":"danburton","email":"danburton.email@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_2.1.1-beta.4_1663771776025_0.3115443082745297"},"_hasShrinkwrap":false},"2.1.1-beta.5":{"name":"@reach-sh/humble-sdk","version":"2.1.1-beta.5","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","build":"rm -rf lib/ && tsc","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2"},"dependencies":{"@reach-sh/stdlib":"0.1.10-rc.6","axios":"^0.27.2"},"readme":"# HumbleSDK v2.0.0\n\n<header>\n  <img src=\"./logo-white.svg\" width=\"80\" height=\"auto\">\n</header>\n\nA Javascript library for interacting with the [HumbleSwap DEx](https://app.humble.sh).\n\n- [HumbleSDK v2.0.0](#humblesdk-v200)\n  - [Documentation](#documentation)\n  - [v2 Changes](#v2-changes)\n  - [Installing the SDK](#installing-the-sdk)\n    - [Option 1. NPM (recommended)](#option-1-npm-recommended)\n    - [Option 2. Cloning the repo directly](#option-2-cloning-the-repo-directly)\n  - [Example Usage](#example-usage)\n    - [Subscribing to a stream of **Liquidity Pool** data](#subscribing-to-a-stream-of-liquidity-pool-data)\n    - [**Swapping** between a pair of tokens](#swapping-between-a-pair-of-tokens)\n  - [Local Testing](#local-testing)\n\n---\n## Documentation\nDocumentation has moved [here](https://reach-sh.github.io/humble-sdk/).\n\n--- \n\n## v2 Changes \n`v2` introduces a few changes and adds new functionality, including staking pools. Some functions may have been renamed: review changes in our [changelog](./CHANGELOG.md), and view our [documentation](https://reach-sh.github.io/humble-sdk/) for additional info.\n\n--- \n\n## Installing the SDK\n### Option 1. NPM (recommended)\nThe fastest way is to use `npm`:\n```bash\n$. npm i -s @reach-sh/humble-sdk\n```\n\n### Option 2. Cloning the repo directly\nTo get started without NPM, you can clone and build the SDK from the repository. \n```bash\n# Clone the repository \n$. git clone https://github.com/reach-sh/humble-sdk.git\n\n# Enter the directory with the repo (replace with path to your repository clone)\n$. cd path/to/humble-sdk \n\n# and install dependencies (there aren't a lot)\n$. npm install\n\n# Build the SDK. Will output to a ./lib directory in the same folder as the \n# package.json file. This takes seconds and doesn't output anything to your terminal.\n$. npm run build\n``` \nYou will know it is complete when your (terminal's) typing prompt reappears.\\\nThen, as a **FINAL STEP**, copy or move the new `lib/` directory into your project. This will allow you to access it like any other JS module:\n\n```typescript\nimport { initHumbleSDK } from \"path/to/lib\";\n```\n\n---\n\n## Example Usage\n\n### Subscribing to a stream of **Liquidity Pool** data\n```typescript\nimport { subscribeToPoolStream, createReachAPI } from \"@reach-sh/humble-sdk\";\n\nconst stdlib = createReachAPI();\nconst acc = await stdlib.createAccount();\n\n// Fetch existing streams and get notified when a new one is created\nsubscribeToPoolStream(acc, {\n    // Pool ID (and id of pool tokens) received from contract.\n    // Pool data has NOT been fetched yet.\n    onPoolReceived: (info) => { \n        const [poolAddr, tokenAId, tokenBId] = info;\n        // ... do something with data\n     },\n\n    // Pool and Token data has been received from network. \n    onPoolFetched: (result: FetchPoolTxnResult) => { \n        const { succeeded, poolAddress, data, message } = result;\n        if (succeeded) // ... do something with data\n     }\n})\n```\n\n\n### **Swapping** between a pair of tokens\n> **Note:** Swapping does not use routing. Read the [docs](https://reach-sh.github.io/humble-sdk/) to learn how to fetch pools for DEx operations.\n```typescript\nimport { calculateTokenSwap, performSwap } from \"@reach-sh/humble-sdk\";\n\nconst pool = /* pool source */\n\n// Calculate expected swap output\nconst { tokenAId, tokenBId } = pool;\nconst amountA = 100;\nconst swap = calculateTokenSwap({ \n    pool, \n    swap: { amountA, tokenAId, tokenBId } \n});\n\n// Perform swap\nconst swapOpts = { poolAddress: pool.poolAddress, swap, pool };\nconst { data, message, succeeded } = await performSwap(acc, swapOpts);\n// if (succeeded) data == { amountIn: string; amountOut: string }\n```\n\n--- \n\n## Local Testing\nThe `humble-sdk` contains some helper scripts for running the SDK on a command line. See more [**here**](./cli/README.md)\n","readmeFilename":"README.md","gitHead":"031a599ed18635292029eafa4d7a29b01c39e3fe","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@2.1.1-beta.5","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-eYu8EjJ45/QkvnDjTkgdcsvV9QEtxxS4eaeCwF0yw4rlWvjhYHDmQW4S6hBqCNRtLwkOgticmYu6tHdTXTbR2g==","shasum":"98f45d33ec48f79ecec70625a2bd3e4806082a72","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-2.1.1-beta.5.tgz","fileCount":74,"unpackedSize":1650235,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBZvBEojmMOCh6eAKHBc1NGhgXSIVldWtDJ1NXXdbjP0AiBFEt3nQRbM9Sj2y5HqILSB2V7agMf4m2uapBLkmLwm7A=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjKyk9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpfCg/8CkFsvcl4KJ9rLbH2UjYm3agKr4hDOzP0RY1ASgZFj3RPbvz0\r\neSrpiULlz5KJlUYVdHX8KE13kD0wXC/TgsML/n+kE9f7hMT8QoqHxC/aK3Q8\r\nlRWAUowU2tc1IeBdzzjL0c9NTTRWM7O5zhVpMZxjMGBaXvr4HWiOjqHrHsm4\r\nQO6FXsT27bqB5O79NJDxNsxD4B7u0Fqy6+OQ8tZMQAPKlfHBDlNnwhMT5Q1c\r\n6m9/sZlQ4ycXfNn8UwoAcZvlnmc0Jn4aIW2Z9cQFFaDlmxfdbiXna4F8pkGd\r\n6XqNygh5LZvIn8EnHRZh91QAoOiFvGny7u8vks7/L5jRcgtY/2wQDFYOt+mo\r\njezKovwaV5lXpRv17w54ixsyLxeviIE35s/GTwci4inkQ2PFrhmHpNWIoeCJ\r\nWbMqf6zpl6QvFUIDkTs7Qei4/IiqXyvN757Irms6H9CrTlxAMGF+feShK/As\r\ndgheyVxT+IErn7qYBxjrdFbdhfUhFme09zRoxmTiO2RFkkg++oLa2NAh3Cw2\r\npu2R7YpPygXyMG2vt+QhjlQv2f+agmWSRJMtJcNxBvg5F+9G2TqsqtMHsfK/\r\n42UQE0kBWorjrUxYjAZhH1yQhAuZ6g/h5TJb3w7t+Tv9DJ5e+RY1QRiHOnqH\r\nNn08cg0Uu4Lr48CiHMzgrBlQgM9UQu+gTtI=\r\n=FRHg\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jackcom","email":"1mrjackdaw@gmail.com"},"directories":{},"maintainers":[{"name":"krysztof","email":"cbaunach@reach.sh"},{"name":"jackcom","email":"1mrjackdaw@gmail.com"},{"name":"hamir","email":"hamir@reach.sh"},{"name":"abuahchu","email":"abuahchu@gmail.com"},{"name":"vmazzi","email":"vinicius.mazzi@gmail.com"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"},{"name":"danburton","email":"danburton.email@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_2.1.1-beta.5_1663772989595_0.39107995400120554"},"_hasShrinkwrap":false},"2.1.1-beta.6":{"name":"@reach-sh/humble-sdk","version":"2.1.1-beta.6","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","compress-announcer:farm":"uglifyjs -m -c -o src/build/farmAnnouncer.large.js -- src/build/farmAnnouncer.large.js","compress-announcer:pool":"uglifyjs -m -c -o src/build/index.main.js -- src/build/index.main.js","compress-triumvirate":"uglifyjs -m -c -o src/build/index.triumvirate.js -- src/build/index.triumvirate.js","compress-n2nn":"uglifyjs -m -c -o src/build/index.net_tok.js -- src/build/index.net_tok.js","compress-nn2nn":"uglifyjs -m -c -o src/build/index.tok_tok.js -- src/build/index.tok_tok.js","compress-staker":"uglifyjs -m -c -o src/build/staker.main.js -- src/build/staker.main.js","compress-mjs":"npm run compress-announcer:farm && npm run compress-announcer:pool && npm run compress-triumvirate && npm run compress-n2nn && npm run compress-nn2nn && npm run compress-staker","build":"rm -rf lib/ && tsc","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2","uglify-js":"^3.17.1"},"dependencies":{"@reach-sh/stdlib":"0.1.10-rc.6","axios":"^0.27.2","reach-edge":"npm:@reach-sh/stdlib@^0.1.12-rc.0"},"readme":"# HumbleSDK v2.0.0\n\n<header>\n  <img src=\"./logo-white.svg\" width=\"80\" height=\"auto\">\n</header>\n\nA Javascript library for interacting with the [HumbleSwap DEx](https://app.humble.sh).\n\n- [HumbleSDK v2.0.0](#humblesdk-v200)\n  - [Documentation](#documentation)\n  - [v2 Changes](#v2-changes)\n  - [Installing the SDK](#installing-the-sdk)\n    - [Option 1. NPM (recommended)](#option-1-npm-recommended)\n    - [Option 2. Cloning the repo directly](#option-2-cloning-the-repo-directly)\n  - [Example Usage](#example-usage)\n    - [Subscribing to a stream of **Liquidity Pool** data](#subscribing-to-a-stream-of-liquidity-pool-data)\n    - [**Swapping** between a pair of tokens](#swapping-between-a-pair-of-tokens)\n  - [Local Testing](#local-testing)\n\n---\n## Documentation\nDocumentation has moved [here](https://reach-sh.github.io/humble-sdk/).\n\n--- \n\n## v2 Changes \n`v2` introduces a few changes and adds new functionality, including staking pools. Some functions may have been renamed: review changes in our [changelog](./CHANGELOG.md), and view our [documentation](https://reach-sh.github.io/humble-sdk/) for additional info.\n\n--- \n\n## Installing the SDK\n### Option 1. NPM (recommended)\nThe fastest way is to use `npm`:\n```bash\n$. npm i -s @reach-sh/humble-sdk\n```\n\n### Option 2. Cloning the repo directly\nTo get started without NPM, you can clone and build the SDK from the repository. \n```bash\n# Clone the repository \n$. git clone https://github.com/reach-sh/humble-sdk.git\n\n# Enter the directory with the repo (replace with path to your repository clone)\n$. cd path/to/humble-sdk \n\n# and install dependencies (there aren't a lot)\n$. npm install\n\n# Build the SDK. Will output to a ./lib directory in the same folder as the \n# package.json file. This takes seconds and doesn't output anything to your terminal.\n$. npm run build\n``` \nYou will know it is complete when your (terminal's) typing prompt reappears.\\\nThen, as a **FINAL STEP**, copy or move the new `lib/` directory into your project. This will allow you to access it like any other JS module:\n\n```typescript\nimport { initHumbleSDK } from \"path/to/lib\";\n```\n\n---\n\n## Example Usage\n\n### Subscribing to a stream of **Liquidity Pool** data\n```typescript\nimport { subscribeToPoolStream, createReachAPI } from \"@reach-sh/humble-sdk\";\n\nconst stdlib = createReachAPI();\nconst acc = await stdlib.createAccount();\n\n// Fetch existing streams and get notified when a new one is created\nsubscribeToPoolStream(acc, {\n    // Pool ID (and id of pool tokens) received from contract.\n    // Pool data has NOT been fetched yet.\n    onPoolReceived: (info) => { \n        const [poolAddr, tokenAId, tokenBId] = info;\n        // ... do something with data\n     },\n\n    // Pool and Token data has been received from network. \n    onPoolFetched: (result: FetchPoolTxnResult) => { \n        const { succeeded, poolAddress, data, message } = result;\n        if (succeeded) // ... do something with data\n     }\n})\n```\n\n\n### **Swapping** between a pair of tokens\n> **Note:** Swapping does not use routing. Read the [docs](https://reach-sh.github.io/humble-sdk/) to learn how to fetch pools for DEx operations.\n```typescript\nimport { calculateTokenSwap, performSwap } from \"@reach-sh/humble-sdk\";\n\nconst pool = /* pool source */\n\n// Calculate expected swap output\nconst { tokenAId, tokenBId } = pool;\nconst amountA = 100;\nconst swap = calculateTokenSwap({ \n    pool, \n    swap: { amountA, tokenAId, tokenBId } \n});\n\n// Perform swap\nconst swapOpts = { poolAddress: pool.poolAddress, swap, pool };\nconst { data, message, succeeded } = await performSwap(acc, swapOpts);\n// if (succeeded) data == { amountIn: string; amountOut: string }\n```\n\n--- \n\n## Local Testing\nThe `humble-sdk` contains some helper scripts for running the SDK on a command line. See more [**here**](./cli/README.md)\n","readmeFilename":"README.md","gitHead":"ca99f57b6d5f83dafd72bdcb50e933e3f8765a1f","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@2.1.1-beta.6","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-gvdjODWNuTqkEEkAkqxwP9MHDB2LHaipNSi4rOyOdI+2dJF1XKRCqiZ+RPeGBdHFn741jFDmagur2AmP/zjwDw==","shasum":"70bb37c9ad05a677a6e8b1993fbc605daba33588","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-2.1.1-beta.6.tgz","fileCount":74,"unpackedSize":1227388,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDpX/SFQYpm9YCmb71QIuZMlkRV3V2utXLxP9R5tLwxaAiAGDMQrrLP3v0hZNxvC5JSW/gcF+XX64euaW+zKb3ltNw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjLKtWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrpbxAApSt+qbEoD6EX9dvqa/9jbdjLfh1HOIG5kYtNsgn3tPjoj3/e\r\nKW+cwacPfuWCbF9QTBYFz5+vRaS4p7wjZ5ILuCxJ4q07Sy0+L6PWXWuuvZWC\r\n3ScJHaIvoaXQ1h0WfPjng7HeYxWmpA4fFfc/YJS+n7hNsrtFtdgjf5uM8krP\r\nlbFKlVgJblUcX97RXp6qLgm/W5ZC1VDIAHrspyduGW0hwtSI5z0MnIFf/K+m\r\nbuaBsCRqgO7nTC5cbazmvrFI3EnZD6scKrDi7Fcb8cyglV9+/FQJi/ekmQEL\r\n0AlLx5cM/tY/BZKW5N0tfmz4fRDbBk6wGh3hP2dgRDkDr4HtVdCgfFQZ/L8x\r\nPYx3XESc60ZPMgmZ+ORZK3tt67gVTxEbEZ1X1eis11gZ3EdsggezSBrE2x4l\r\n/uFajTo+pcnw8RIEh6ZKg77SJUcVpYPoz+12oZD10ZyNszowSkome+jJP6RJ\r\n6P9OHNAbzt2Syyr4t9jfjShrQtN5TJzT+rpPuVwhNPM4XCEgvNzgCBiTGPOm\r\nfAFFQ0FUSe9VxQn3JwpMgtivImQT9FS00czByQ+8exFzSj2FtuJkFZtKbsvj\r\naupYccq/cfl6UmY+02D+PHbLjc6yZioujhcWOiIlUcTXsAvYGt9ZC8NWWVvr\r\nvfigRtHGf/g/APC32Bldij4NLRGsD2V6o3s=\r\n=ZHrW\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jackcom","email":"1mrjackdaw@gmail.com"},"directories":{},"maintainers":[{"name":"krysztof","email":"cbaunach@reach.sh"},{"name":"jackcom","email":"1mrjackdaw@gmail.com"},{"name":"hamir","email":"hamir@reach.sh"},{"name":"abuahchu","email":"abuahchu@gmail.com"},{"name":"vmazzi","email":"vinicius.mazzi@gmail.com"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"},{"name":"danburton","email":"danburton.email@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_2.1.1-beta.6_1663871829742_0.9126685069377749"},"_hasShrinkwrap":false},"2.1.1-beta.7":{"name":"@reach-sh/humble-sdk","version":"2.1.1-beta.7","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","compress":"make compress","build":"rm -rf lib/ && tsc && make compress","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2","uglify-js":"^3.17.1"},"dependencies":{"@reach-sh/stdlib":"0.1.10-rc.6","axios":"^0.27.2","reach-edge":"npm:@reach-sh/stdlib@^0.1.12-rc.0"},"readme":"# HumbleSDK v2.0.0\n\n<header>\n  <img src=\"./logo-white.svg\" width=\"80\" height=\"auto\">\n</header>\n\nA Javascript library for interacting with the [HumbleSwap DEx](https://app.humble.sh).\n\n- [HumbleSDK v2.0.0](#humblesdk-v200)\n  - [Documentation](#documentation)\n  - [v2 Changes](#v2-changes)\n  - [Installing the SDK](#installing-the-sdk)\n    - [Option 1. NPM (recommended)](#option-1-npm-recommended)\n    - [Option 2. Cloning the repo directly](#option-2-cloning-the-repo-directly)\n  - [Example Usage](#example-usage)\n    - [Subscribing to a stream of **Liquidity Pool** data](#subscribing-to-a-stream-of-liquidity-pool-data)\n    - [**Swapping** between a pair of tokens](#swapping-between-a-pair-of-tokens)\n  - [Local Testing](#local-testing)\n\n---\n## Documentation\nDocumentation has moved [here](https://reach-sh.github.io/humble-sdk/).\n\n--- \n\n## v2 Changes \n`v2` introduces a few changes and adds new functionality, including staking pools. Some functions may have been renamed: review changes in our [changelog](./CHANGELOG.md), and view our [documentation](https://reach-sh.github.io/humble-sdk/) for additional info.\n\n--- \n\n## Installing the SDK\n### Option 1. NPM (recommended)\nThe fastest way is to use `npm`:\n```bash\n$. npm i -s @reach-sh/humble-sdk\n```\n\n### Option 2. Cloning the repo directly\nTo get started without NPM, you can clone and build the SDK from the repository. \n```bash\n# Clone the repository \n$. git clone https://github.com/reach-sh/humble-sdk.git\n\n# Enter the directory with the repo (replace with path to your repository clone)\n$. cd path/to/humble-sdk \n\n# and install dependencies (there aren't a lot)\n$. npm install\n\n# Build the SDK. Will output to a ./lib directory in the same folder as the \n# package.json file. This takes seconds and doesn't output anything to your terminal.\n$. npm run build\n``` \nYou will know it is complete when your (terminal's) typing prompt reappears.\\\nThen, as a **FINAL STEP**, copy or move the new `lib/` directory into your project. This will allow you to access it like any other JS module:\n\n```typescript\nimport { initHumbleSDK } from \"path/to/lib\";\n```\n\n---\n\n## Example Usage\n\n### Subscribing to a stream of **Liquidity Pool** data\n```typescript\nimport { subscribeToPoolStream, createReachAPI } from \"@reach-sh/humble-sdk\";\n\nconst stdlib = createReachAPI();\nconst acc = await stdlib.createAccount();\n\n// Fetch existing streams and get notified when a new one is created\nsubscribeToPoolStream(acc, {\n    // Pool ID (and id of pool tokens) received from contract.\n    // Pool data has NOT been fetched yet.\n    onPoolReceived: (info) => { \n        const [poolAddr, tokenAId, tokenBId] = info;\n        // ... do something with data\n     },\n\n    // Pool and Token data has been received from network. \n    onPoolFetched: (result: FetchPoolTxnResult) => { \n        const { succeeded, poolAddress, data, message } = result;\n        if (succeeded) // ... do something with data\n     }\n})\n```\n\n\n### **Swapping** between a pair of tokens\n> **Note:** Swapping does not use routing. Read the [docs](https://reach-sh.github.io/humble-sdk/) to learn how to fetch pools for DEx operations.\n```typescript\nimport { calculateTokenSwap, performSwap } from \"@reach-sh/humble-sdk\";\n\nconst pool = /* pool source */\n\n// Calculate expected swap output\nconst { tokenAId, tokenBId } = pool;\nconst amountA = 100;\nconst swap = calculateTokenSwap({ \n    pool, \n    swap: { amountA, tokenAId, tokenBId } \n});\n\n// Perform swap\nconst swapOpts = { poolAddress: pool.poolAddress, swap, pool };\nconst { data, message, succeeded } = await performSwap(acc, swapOpts);\n// if (succeeded) data == { amountIn: string; amountOut: string }\n```\n\n--- \n\n## Local Testing\nThe `humble-sdk` contains some helper scripts for running the SDK on a command line. See more [**here**](./cli/README.md)\n","readmeFilename":"README.md","gitHead":"ff3b4c1e7cbbd34cc3ad56dfe1f963eeb7cdeff5","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@2.1.1-beta.7","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-hjvDl6KrBLMsJd0wkQWR3ZGp3UA9+U0vMTbZ0ObJizEQVpTmG6dktGEFmdyhZo9FmguAIPG6aqWLg4TCkUaFpA==","shasum":"985e350b56cae2e50d1a1397b3ccc9b5167d20c5","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-2.1.1-beta.7.tgz","fileCount":74,"unpackedSize":922252,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCPJgEFlY6GcrqDuwiz4tMrDIG8SICB0kjKorYNKMIw1wIgKzIFC8Lx31zbVkhsKd7DEju74TgCXTeTQfo70LmjgwY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjPYANACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqd4g/9G5GCQvCMlHPAuYY+FV1oGDoKvP6itD4arEdRO1KAVpPYGGRN\r\nAWIsyg6lrGjfVfbRRH/7bcgubhrgWhHbFYN89rbOgtvmeLaldaQhzBmiR0Kn\r\nui00WSn4Ljxf1Fe8WQmNe/r7Oa6d7Wp8U/GmzbB5f0XhzlAN/oVcsIKBJNA8\r\nNGO5uX1iCI5ZfEIKiSnb/WI3ekdiTRX9kNaBnn7rxPF43/Imq8j/fFIY2+9o\r\nOc3ROAFZLvCoveruD/wORPbiNZS/2DWWLCnJYXqWXGwqIsUY3KjoblnWT4oL\r\nv6FnKiWbUFIhqgkpe6tfJJM0hU9vnGRyNwC/GX2+rts0368l/IueBjv0gLS1\r\nrn9DeV35m3LqTtd8gPd1Q5pzHHRA9iA7cJWNbeNvbgU0/y+5RDyViehUgY4v\r\n5tw+6XGA4CUbVFamVN4K0ZgBoMTI85uIOTFdCiywn/EURZUaPQ+RGY0hvdd/\r\nJbodwdncCkxyIvZWrodbIffDLaf83vl0Psu05KOHQmKJewqb5AT8K8CujHE2\r\n1F78Ky71uapqJJCMLWM7eIHNfL7g4Keyh1Iv1w2zjW5cPU8ofGfrk/F9XilV\r\nUe1jIvabJTwIerUJozPnwc3drnGK/VsJfKgOV2MYdVFDf6Cu3PTZqI59qsOd\r\nM6Xz8JuZkEFbmuT1JQ8vXq03y5CVr1kS/BI=\r\n=3qig\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jackcom","email":"1mrjackdaw@gmail.com"},"directories":{},"maintainers":[{"name":"krysztof","email":"cbaunach@reach.sh"},{"name":"jackcom","email":"1mrjackdaw@gmail.com"},{"name":"hamir","email":"hamir@reach.sh"},{"name":"abuahchu","email":"abuahchu@gmail.com"},{"name":"vmazzi","email":"vinicius.mazzi@gmail.com"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"},{"name":"danburton","email":"danburton.email@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_2.1.1-beta.7_1664974861800_0.10320604956256219"},"_hasShrinkwrap":false},"2.1.1-beta.8":{"name":"@reach-sh/humble-sdk","version":"2.1.1-beta.8","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","compress":"make compress","build":"rm -rf lib/ && tsc && make compress","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2","uglify-js":"^3.17.1"},"dependencies":{"@reach-sh/stdlib":"0.1.10-rc.6","axios":"^0.27.2","reach-edge":"npm:@reach-sh/stdlib@^0.1.12-rc.0"},"readme":"# HumbleSDK v2.0.0\n\n<header>\n  <img src=\"./logo-white.svg\" width=\"80\" height=\"auto\">\n</header>\n\nA Javascript library for interacting with the [HumbleSwap DEx](https://app.humble.sh).\n\n- [HumbleSDK v2.0.0](#humblesdk-v200)\n  - [Documentation](#documentation)\n  - [v2 Changes](#v2-changes)\n  - [Installing the SDK](#installing-the-sdk)\n    - [Option 1. NPM (recommended)](#option-1-npm-recommended)\n    - [Option 2. Cloning the repo directly](#option-2-cloning-the-repo-directly)\n  - [Example Usage](#example-usage)\n    - [Subscribing to a stream of **Liquidity Pool** data](#subscribing-to-a-stream-of-liquidity-pool-data)\n    - [**Swapping** between a pair of tokens](#swapping-between-a-pair-of-tokens)\n  - [Local Testing](#local-testing)\n\n---\n## Documentation\nDocumentation has moved [here](https://reach-sh.github.io/humble-sdk/).\n\n--- \n\n## v2 Changes \n`v2` introduces a few changes and adds new functionality, including staking pools. Some functions may have been renamed: review changes in our [changelog](./CHANGELOG.md), and view our [documentation](https://reach-sh.github.io/humble-sdk/) for additional info.\n\n--- \n\n## Installing the SDK\n### Option 1. NPM (recommended)\nThe fastest way is to use `npm`:\n```bash\n$. npm i -s @reach-sh/humble-sdk\n```\n\n### Option 2. Cloning the repo directly\nTo get started without NPM, you can clone and build the SDK from the repository. \n```bash\n# Clone the repository \n$. git clone https://github.com/reach-sh/humble-sdk.git\n\n# Enter the directory with the repo (replace with path to your repository clone)\n$. cd path/to/humble-sdk \n\n# and install dependencies (there aren't a lot)\n$. npm install\n\n# Build the SDK. Will output to a ./lib directory in the same folder as the \n# package.json file. This takes seconds and doesn't output anything to your terminal.\n$. npm run build\n``` \nYou will know it is complete when your (terminal's) typing prompt reappears.\\\nThen, as a **FINAL STEP**, copy or move the new `lib/` directory into your project. This will allow you to access it like any other JS module:\n\n```typescript\nimport { initHumbleSDK } from \"path/to/lib\";\n```\n\n---\n\n## Example Usage\n\n### Subscribing to a stream of **Liquidity Pool** data\n```typescript\nimport { subscribeToPoolStream, createReachAPI } from \"@reach-sh/humble-sdk\";\n\nconst stdlib = createReachAPI();\nconst acc = await stdlib.createAccount();\n\n// Fetch existing streams and get notified when a new one is created\nsubscribeToPoolStream(acc, {\n    // Pool ID (and id of pool tokens) received from contract.\n    // Pool data has NOT been fetched yet.\n    onPoolReceived: (info) => { \n        const [poolAddr, tokenAId, tokenBId] = info;\n        // ... do something with data\n     },\n\n    // Pool and Token data has been received from network. \n    onPoolFetched: (result: FetchPoolTxnResult) => { \n        const { succeeded, poolAddress, data, message } = result;\n        if (succeeded) // ... do something with data\n     }\n})\n```\n\n\n### **Swapping** between a pair of tokens\n> **Note:** Swapping does not use routing. Read the [docs](https://reach-sh.github.io/humble-sdk/) to learn how to fetch pools for DEx operations.\n```typescript\nimport { calculateTokenSwap, performSwap } from \"@reach-sh/humble-sdk\";\n\nconst pool = /* pool source */\n\n// Calculate expected swap output\nconst { tokenAId, tokenBId } = pool;\nconst amountA = 100;\nconst swap = calculateTokenSwap({ \n    pool, \n    swap: { amountA, tokenAId, tokenBId } \n});\n\n// Perform swap\nconst swapOpts = { poolAddress: pool.poolAddress, swap, pool };\nconst { data, message, succeeded } = await performSwap(acc, swapOpts);\n// if (succeeded) data == { amountIn: string; amountOut: string }\n```\n\n--- \n\n## Local Testing\nThe `humble-sdk` contains some helper scripts for running the SDK on a command line. See more [**here**](./cli/README.md)\n","readmeFilename":"README.md","gitHead":"cd6b50288e3e46917622d7f95a66cd2e91731278","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@2.1.1-beta.8","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-/8Lhx7ZkyBvXTbQd5QXY5/DYcqYlW171j7DBWYWAYu7w8GrUnGcfUipjGNvI6FkOdjmcj0B30LyRFiCCbIUpGg==","shasum":"91d5c2c15dd4c0b0ff16db1d190f9278ae34d87b","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-2.1.1-beta.8.tgz","fileCount":74,"unpackedSize":965992,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAan+aRjjhDTqtVoz6G3++aA1Kn285lEoWs0/gmsxOVBAiBhPG0lY5TI4Z0Gz8PxFd8RLreLyXofXJdeRfxagxlkDQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjQVtUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmotgw//ScnMhA1dLSrlvqZ5OUzphPoasUbiNZ1VaaiptbvVUFCWrlsr\r\nLRzbzpczvBW0CaCvRkhxyKzuawrKp2lRFFaDFt30M6ZcVN7pW+x8+mUj7X/i\r\n1u1QQ3e8ufNr6T8NX7VBwVS8qBHgZditj/gLloWY1lYCr4HoiTbOzzVTLfpE\r\nGQuQKibNvGBpxtEuub3etX49CgdifWXRTMmWJbaVRizc5SzNkCqrSV+B7Tjk\r\nceT02Y6YrxkEj33nn0ehBUHztMFyJV+MVtMNXm4W9EfemlzejZKHB9FgfQbc\r\n+jYoTHMO3VkZBdoTNQ8MQXmA4/oEuPC3oU8BgXPfisD/xfyAJCt28lWuFAlo\r\nODaRCwjyXcZ8u8B6tkBYvoJD565Tk7e1ZKfNCSoE8U0++Nc7aI4wF4QtiOsJ\r\n9iilEehfX2q8mvL03dZ4Y2GGv/C32uxfoRPQrFYntvzQSsVxMIzUXxpJbLLt\r\nTAbeZSUviXDVmoZ5n6JKokLljn2W97KtsB8Ao+2cDaPRFCKNA0Zbwm7T45se\r\nHYlnEp2UZ22cb8qWuyh/Vc9JyRR1WGXka6qPDt3B/f4HSF/biUapbQuZe0yP\r\nRIzrwcFQWvXIrM8oGMrgB4wJYACDBE7QAKZuiMgFXuT9rtrYbOtu0i7C8B1r\r\nfMjushNQuMpoWTaboWT7+icarWuQc6HOQ54=\r\n=eBTL\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jackcom","email":"1mrjackdaw@gmail.com"},"directories":{},"maintainers":[{"name":"krysztof","email":"cbaunach@reach.sh"},{"name":"jackcom","email":"1mrjackdaw@gmail.com"},{"name":"hamir","email":"hamir@reach.sh"},{"name":"abuahchu","email":"abuahchu@gmail.com"},{"name":"vmazzi","email":"vinicius.mazzi@gmail.com"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"},{"name":"danburton","email":"danburton.email@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_2.1.1-beta.8_1665227604154_0.4747338632980751"},"_hasShrinkwrap":false},"2.1.1":{"name":"@reach-sh/humble-sdk","version":"2.1.1","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","compress":"make compress","build":"rm -rf lib/ && tsc && make compress","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2","uglify-js":"^3.17.1"},"dependencies":{"@reach-sh/stdlib":"0.1.10-rc.6","axios":"^0.27.2","reach-edge":"npm:@reach-sh/stdlib@^0.1.12-rc.0"},"readme":"# HumbleSDK v2.0.0\n\n<header>\n  <img src=\"./logo-white.svg\" width=\"80\" height=\"auto\">\n</header>\n\nA Javascript library for interacting with the [HumbleSwap DEx](https://app.humble.sh).\n\n- [HumbleSDK v2.0.0](#humblesdk-v200)\n  - [Documentation](#documentation)\n  - [v2 Changes](#v2-changes)\n  - [Installing the SDK](#installing-the-sdk)\n    - [Option 1. NPM (recommended)](#option-1-npm-recommended)\n    - [Option 2. Cloning the repo directly](#option-2-cloning-the-repo-directly)\n  - [Example Usage](#example-usage)\n    - [Subscribing to a stream of **Liquidity Pool** data](#subscribing-to-a-stream-of-liquidity-pool-data)\n    - [**Swapping** between a pair of tokens](#swapping-between-a-pair-of-tokens)\n  - [Local Testing](#local-testing)\n\n---\n## Documentation\nDocumentation has moved [here](https://reach-sh.github.io/humble-sdk/).\n\n--- \n\n## v2 Changes \n`v2` introduces a few changes and adds new functionality, including staking pools. Some functions may have been renamed: review changes in our [changelog](./CHANGELOG.md), and view our [documentation](https://reach-sh.github.io/humble-sdk/) for additional info.\n\n--- \n\n## Installing the SDK\n### Option 1. NPM (recommended)\nThe fastest way is to use `npm`:\n```bash\n$. npm i -s @reach-sh/humble-sdk\n```\n\n### Option 2. Cloning the repo directly\nTo get started without NPM, you can clone and build the SDK from the repository. \n```bash\n# Clone the repository \n$. git clone https://github.com/reach-sh/humble-sdk.git\n\n# Enter the directory with the repo (replace with path to your repository clone)\n$. cd path/to/humble-sdk \n\n# and install dependencies (there aren't a lot)\n$. npm install\n\n# Build the SDK. Will output to a ./lib directory in the same folder as the \n# package.json file. This takes seconds and doesn't output anything to your terminal.\n$. npm run build\n``` \nYou will know it is complete when your (terminal's) typing prompt reappears.\\\nThen, as a **FINAL STEP**, copy or move the new `lib/` directory into your project. This will allow you to access it like any other JS module:\n\n```typescript\nimport { initHumbleSDK } from \"path/to/lib\";\n```\n\n---\n\n## Example Usage\n\n### Subscribing to a stream of **Liquidity Pool** data\n```typescript\nimport { subscribeToPoolStream, createReachAPI } from \"@reach-sh/humble-sdk\";\n\nconst stdlib = createReachAPI();\nconst acc = await stdlib.createAccount();\n\n// Fetch existing streams and get notified when a new one is created\nsubscribeToPoolStream(acc, {\n    // Pool ID (and id of pool tokens) received from contract.\n    // Pool data has NOT been fetched yet.\n    onPoolReceived: (info) => { \n        const [poolAddr, tokenAId, tokenBId] = info;\n        // ... do something with data\n     },\n\n    // Pool and Token data has been received from network. \n    onPoolFetched: (result: FetchPoolTxnResult) => { \n        const { succeeded, poolAddress, data, message } = result;\n        if (succeeded) // ... do something with data\n     }\n})\n```\n\n\n### **Swapping** between a pair of tokens\n> **Note:** Swapping does not use routing. Read the [docs](https://reach-sh.github.io/humble-sdk/) to learn how to fetch pools for DEx operations.\n```typescript\nimport { calculateTokenSwap, performSwap } from \"@reach-sh/humble-sdk\";\n\nconst pool = /* pool source */\n\n// Calculate expected swap output\nconst { tokenAId, tokenBId } = pool;\nconst amountA = 100;\nconst swap = calculateTokenSwap({ \n    pool, \n    swap: { amountA, tokenAId, tokenBId } \n});\n\n// Perform swap\nconst swapOpts = { poolAddress: pool.poolAddress, swap, pool };\nconst { data, message, succeeded } = await performSwap(acc, swapOpts);\n// if (succeeded) data == { amountIn: string; amountOut: string }\n```\n\n--- \n\n## Local Testing\nThe `humble-sdk` contains some helper scripts for running the SDK on a command line. See more [**here**](./cli/README.md)\n","readmeFilename":"README.md","gitHead":"306136e8981074f122dc483f7c8137c128ee38a3","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@2.1.1","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-ZnmAbVMVLvBsRc0pDq/0sXTfvZjP7YR+vs+/cDkXydULjcOn/o5oxiYXN8tnzu/m4Z0NcVPimqLf5Q9xgVKBbw==","shasum":"e4f39bc5615b25aef5a3c1a76582e20670e18aa4","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-2.1.1.tgz","fileCount":74,"unpackedSize":966363,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCb+6UVdNHG6mxVnOc1x0ZT1720SiBsVV1wiGhfksgj9QIgKHCQKxIpNFCs85Ant8Drf1+bfNHpGZsGKlWSCDribto="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjTrEHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqQyA//QhCVTKk+YMP1wG2PLD0da2RZmgLgO4r3u2UrGm+gvU5rHkJy\r\nwQ2g/0vJodKdLZNLrFyejEYOc593Rxgp4Hyhcq7Gt0c9ElZifoubg4J74vQL\r\nh4zNKGGcShP7qHsv8zPTb8wC8kYtqt4Z8hHTmFGZXUivOxk0aOJi8+ncFdVy\r\nudLutLLcmZ+j0HvTzDHlrogQ8A+0Qm7T2uwvu4e6mbhzMmrscH3G0YzoRtCA\r\n575HNHRWP654kmEst+tvP2mIvV+w2vhTMjnuXF9XHfkWP77XZvy4NWg+FkoH\r\ncwVMCZlfF9gPc/cwg2TNxekkW0sKQ09GT9POaIzS2XMXUXcH78IBP+duZ5Zd\r\nXO6mvNzlwfmMdg9KrLp3CLx5s+WvGSgQPplgEK4N27Op1mHT6TEYwZTSDfYA\r\nAoYjZSXlSCtYvlDrkMjwAUyuXDFYepvwBlXwlQAnbf6R2Bmvh9xPaCv5YG6c\r\nYg5CEqbGhdnLtwGG6RmCv49kMX2Zs57v5+r/cxuOiv1IQaxAIC3d5Hn5Yt2D\r\nwA5yAm4aPcDyHuyz9OwIKgQz3zKZuSKhjDMhhpIBNo3sS9Fj9afFnMlgYGBx\r\nQrIz+YkAZnmVdoDhgtbKtzFeemI76rsw1sFwI4475jXEwTDcRXlpuo+l7EGu\r\nLCIttM6+TAGJSVCsdENgN/kmB54MOouBf44=\r\n=mOjk\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jackcom","email":"1mrjackdaw@gmail.com"},"directories":{},"maintainers":[{"name":"krysztof","email":"cbaunach@reach.sh"},{"name":"jackcom","email":"1mrjackdaw@gmail.com"},{"name":"hamir","email":"hamir@reach.sh"},{"name":"abuahchu","email":"abuahchu@gmail.com"},{"name":"vmazzi","email":"vinicius.mazzi@gmail.com"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"},{"name":"danburton","email":"danburton.email@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_2.1.1_1666101511531_0.38398128964803235"},"_hasShrinkwrap":false},"2.1.2":{"name":"@reach-sh/humble-sdk","version":"2.1.2","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","compress":"make compress","build":"rm -rf lib/ && tsc && make compress","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2","uglify-js":"^3.17.1"},"dependencies":{"@reach-sh/stdlib":"0.1.10-rc.6","axios":"^0.27.2","reach-edge":"npm:@reach-sh/stdlib@^0.1.12-rc.0"},"gitHead":"a688480d2a970b586d64ca2442dfac0c435e297b","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@2.1.2","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-sKGf8jca7dxuizAgd6twPS+33JusJi3HO90brLDkOxfpgLwE9gIoTK26xfYriZaHmLI7/+EiOIgAtsumDrz3hg==","shasum":"72ecf52b92ed0436b42fdcd9d1e1b0c483bcec74","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-2.1.2.tgz","fileCount":74,"unpackedSize":966363,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDMpSqhjiHotgKQYDijGcwv1IXclUghCYquttPV45NwZAIhANXTuMyqjymKeKdVp4GEyrrHv5vYXsyeDzRrOmsolox3"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjTrHcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrL6w//WBFh8KQEF7ublMCIh/tF6sBngnO+bgzZcDFKSU0nHAAnLRZD\r\nYzCfQxEQ9dDyfwd26Uc/acUgyQnsOTorZLR6aUI5PuTEwsi+4chouJNf3a63\r\n403PkWZjA062J5ScSKDDBYKDjIzG+aKt4NAzCP72KG3KeW+05g1qSwD3YjH1\r\nUgRJyWy+8MFkG+I7xAJC76IxZOSHFZ27h+E+6BSon7FRt1UXv6p9EFsFZuoT\r\nb6unI6W7OuFXYBGrYzdwUsHqDce5Fe/RoXc3yTIh0zZQg9me+YxIP4szq/ki\r\n3RqQR/X95wal8m37o4VJ4W8UxH5Ngec2Fje7caJSIMIlG6f1L9mUkTLA359N\r\nKmKurnmiGwHjGCU3/3rD1Vv6xysyJgVm0ziyTLBv0wCRE6OrmqvzhNvfSR42\r\nwO4JNwzIZOONRtcLCwFlsvyChgtyk6ZMCRatg3vkuKtRSZqrLpk0udL/J/XI\r\nccDAiuSPuchqErYJm7Gc8yOSjlAv0fHrUqSu+YApJi7nxjTd/0fySoOU6GhH\r\nZr8cHCEOcW6lpWfiXv57BSTtION8CumXZI0tpzHhbqKMWRhR9cljAwplofa9\r\nfQN23ICS+ZxBE5pTOx2Oq/dZ5OisAro/0zhBzFxUKIM5kYCr0gFuDKUPbd/7\r\nKHSC/2qT1LGHffIm/47N6ziiCwltiZ6RexA=\r\n=urKh\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jackcom","email":"1mrjackdaw@gmail.com"},"directories":{},"maintainers":[{"name":"krysztof","email":"cbaunach@reach.sh"},{"name":"jackcom","email":"1mrjackdaw@gmail.com"},{"name":"hamir","email":"hamir@reach.sh"},{"name":"abuahchu","email":"abuahchu@gmail.com"},{"name":"vmazzi","email":"vinicius.mazzi@gmail.com"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"},{"name":"danburton","email":"danburton.email@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_2.1.2_1666101724101_0.5519280553404806"},"_hasShrinkwrap":false},"3.0.0-beta.1":{"name":"@reach-sh/humble-sdk","version":"3.0.0-beta.1","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","compress":"make compress","build":"rm -rf lib/ && tsc && make compress","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2","uglify-js":"^3.17.1"},"dependencies":{"@reach-sh/stdlib":"0.1.12-rc.8","axios":"^0.27.2","reach-edge":"npm:@reach-sh/stdlib@latest"},"readme":"# HumbleSDK v2.0.0\n\n<header>\n  <img src=\"./logo-white.svg\" width=\"80\" height=\"auto\">\n</header>\n\nA Javascript library for interacting with the [HumbleSwap DEx](https://app.humble.sh).\n\n- [HumbleSDK v2.0.0](#humblesdk-v200)\n  - [Documentation](#documentation)\n  - [v2 Changes](#v2-changes)\n  - [Installing the SDK](#installing-the-sdk)\n    - [Option 1. NPM (recommended)](#option-1-npm-recommended)\n    - [Option 2. Cloning the repo directly](#option-2-cloning-the-repo-directly)\n  - [Example Usage](#example-usage)\n    - [Subscribing to a stream of **Liquidity Pool** data](#subscribing-to-a-stream-of-liquidity-pool-data)\n    - [**Swapping** between a pair of tokens](#swapping-between-a-pair-of-tokens)\n  - [Local Testing](#local-testing)\n\n---\n## Documentation\nDocumentation has moved [here](https://reach-sh.github.io/humble-sdk/).\n\n--- \n\n## v2 Changes \n`v2` introduces a few changes and adds new functionality, including staking pools. Some functions may have been renamed: review changes in our [changelog](./CHANGELOG.md), and view our [documentation](https://reach-sh.github.io/humble-sdk/) for additional info.\n\n--- \n\n## Installing the SDK\n### Option 1. NPM (recommended)\nThe fastest way is to use `npm`:\n```bash\n$. npm i -s @reach-sh/humble-sdk\n```\n\n### Option 2. Cloning the repo directly\nTo get started without NPM, you can clone and build the SDK from the repository. \n```bash\n# Clone the repository \n$. git clone https://github.com/reach-sh/humble-sdk.git\n\n# Enter the directory with the repo (replace with path to your repository clone)\n$. cd path/to/humble-sdk \n\n# and install dependencies (there aren't a lot)\n$. npm install\n\n# Build the SDK. Will output to a ./lib directory in the same folder as the \n# package.json file. This takes seconds and doesn't output anything to your terminal.\n$. npm run build\n``` \nYou will know it is complete when your (terminal's) typing prompt reappears.\\\nThen, as a **FINAL STEP**, copy or move the new `lib/` directory into your project. This will allow you to access it like any other JS module:\n\n```typescript\nimport { initHumbleSDK } from \"path/to/lib\";\n```\n\n---\n\n## Example Usage\n\n### Subscribing to a stream of **Liquidity Pool** data\n```typescript\nimport { subscribeToPoolStream, createReachAPI } from \"@reach-sh/humble-sdk\";\n\nconst stdlib = createReachAPI();\nconst acc = await stdlib.createAccount();\n\n// Fetch existing streams and get notified when a new one is created\nsubscribeToPoolStream(acc, {\n    // Pool ID (and id of pool tokens) received from contract.\n    // Pool data has NOT been fetched yet.\n    onPoolReceived: (info) => { \n        const [poolAddr, tokenAId, tokenBId] = info;\n        // ... do something with data\n     },\n\n    // Pool and Token data has been received from network. \n    onPoolFetched: (result: FetchPoolTxnResult) => { \n        const { succeeded, poolAddress, data, message } = result;\n        if (succeeded) // ... do something with data\n     }\n})\n```\n\n\n### **Swapping** between a pair of tokens\n> **Note:** Swapping does not use routing. Read the [docs](https://reach-sh.github.io/humble-sdk/) to learn how to fetch pools for DEx operations.\n```typescript\nimport { calculateTokenSwap, performSwap } from \"@reach-sh/humble-sdk\";\n\nconst pool = /* pool source */\n\n// Calculate expected swap output\nconst { tokenAId, tokenBId } = pool;\nconst amountA = 100;\nconst swap = calculateTokenSwap({ \n    pool, \n    swap: { amountA, tokenAId, tokenBId } \n});\n\n// Perform swap\nconst swapOpts = { poolAddress: pool.poolAddress, swap, pool };\nconst { data, message, succeeded } = await performSwap(acc, swapOpts);\n// if (succeeded) data == { amountIn: string; amountOut: string }\n```\n\n--- \n\n## Local Testing\nThe `humble-sdk` contains some helper scripts for running the SDK on a command line. See more [**here**](./cli/README.md)\n","readmeFilename":"README.md","gitHead":"450fbfe4746433a4515d69b72f8c62ace406d96b","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@3.0.0-beta.1","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-/YGCO9y86w8o5zMHG2fQpXVRCxBBj7+dy0yAYVhZBSODHnl3ZaBAELWS7JiWbNCVpfdWEvSZU/Qup38HXm1voA==","shasum":"ef378be0acbef28dbbfcc77efc9328b41539db29","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-3.0.0-beta.1.tgz","fileCount":92,"unpackedSize":1712696,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGP0I2WtuZXBsjVORWG4teN6DHmV0dB75gbDoP0rNHILAiEA/H6icp3OfwSAzQescNbIbB1ASFcQx5khbccNEhxoQTI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJja/eLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq9rQ/9GXN73AuCUmVWCDkE7PeqLh1WZ43ZzXALiRhH3rQCH9Gipj6o\r\nPSpjxtiFYDTvXKWwKoyIEF0d14xR+HvmtEHcaUMfJbWtx8sCcOtYIAXoZdQr\r\nwpJ/1XmVyM/hfREhh0+B0W7DOl+wzc4knB6xlXFZpHkJhoDLsJ+dDSs09zKS\r\nsNpqkrAqFmERVpm7frwfhf9YMs5Om2OZmLetnTjtbsYDCWjK81ItXjRd/SSN\r\npmaHsMlVNEamtd4/P/SVVCzS9w8EjswdyZzcSmr1cPogeING+lV95QPoZ9ye\r\nq+MJPP8OC++FaoHMeRLGsuqV4GuOxe9wUefqd6Myj+SF5w9Y3EkfygQOpsvC\r\nd+kPuF2okeFjiV3gSrwOwspLGabg+8XPyUvhcRWcYaqVqeLITT/OLdyafS7i\r\n9PjtXhN+leubCm0sQ8MzjEPI1D+IXmsQXsTUq8yMreKO8XoPH/lrdBI8zMSH\r\nPKnFWRUGeEcbYjIJicVYBGoV4PYJIvMBFzPUKhcEotlNhRSeiekpDRxjcak4\r\nAErm9e91sa17Gnhbl0POCtJYmwhS1WgO/WXGA7W0FJ6AUVgV613dTAjzRHpv\r\nFgHmLbu3f3CHQRUmfinOnsZHYn0TueNh6CeFktaZg57h/MZWTJdCA6NIEEO4\r\nBcKLk62OZ7UesUXEm8j5Msf3iXZw7H2b3kE=\r\n=NTSN\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jackcom","email":"1mrjackdaw@gmail.com"},"directories":{},"maintainers":[{"name":"jackcom","email":"1mrjackdaw@gmail.com"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"},{"name":"danburton","email":"danburton.email@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_3.0.0-beta.1_1668020107625_0.2140675016475917"},"_hasShrinkwrap":false},"3.0.0-beta.3":{"name":"@reach-sh/humble-sdk","version":"3.0.0-beta.3","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","compress":"make compress","build":"rm -rf lib/ && tsc && make compress","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2","uglify-js":"^3.17.1"},"dependencies":{"@reach-sh/stdlib":"0.1.12-rc.8","axios":"^0.27.2","reach-edge":"npm:@reach-sh/stdlib@latest"},"readme":"# HumbleSDK v2.0.0\n\n<header>\n  <img src=\"./logo-white.svg\" width=\"80\" height=\"auto\">\n</header>\n\nA Javascript library for interacting with the [HumbleSwap DEx](https://app.humble.sh).\n\n- [HumbleSDK v2.0.0](#humblesdk-v200)\n  - [Documentation](#documentation)\n  - [v2 Changes](#v2-changes)\n  - [Installing the SDK](#installing-the-sdk)\n    - [Option 1. NPM (recommended)](#option-1-npm-recommended)\n    - [Option 2. Cloning the repo directly](#option-2-cloning-the-repo-directly)\n  - [Example Usage](#example-usage)\n    - [Subscribing to a stream of **Liquidity Pool** data](#subscribing-to-a-stream-of-liquidity-pool-data)\n    - [**Swapping** between a pair of tokens](#swapping-between-a-pair-of-tokens)\n  - [Local Testing](#local-testing)\n\n---\n## Documentation\nDocumentation has moved [here](https://reach-sh.github.io/humble-sdk/).\n\n--- \n\n## v2 Changes \n`v2` introduces a few changes and adds new functionality, including staking pools. Some functions may have been renamed: review changes in our [changelog](./CHANGELOG.md), and view our [documentation](https://reach-sh.github.io/humble-sdk/) for additional info.\n\n--- \n\n## Installing the SDK\n### Option 1. NPM (recommended)\nThe fastest way is to use `npm`:\n```bash\n$. npm i -s @reach-sh/humble-sdk\n```\n\n### Option 2. Cloning the repo directly\nTo get started without NPM, you can clone and build the SDK from the repository. \n```bash\n# Clone the repository \n$. git clone https://github.com/reach-sh/humble-sdk.git\n\n# Enter the directory with the repo (replace with path to your repository clone)\n$. cd path/to/humble-sdk \n\n# and install dependencies (there aren't a lot)\n$. npm install\n\n# Build the SDK. Will output to a ./lib directory in the same folder as the \n# package.json file. This takes seconds and doesn't output anything to your terminal.\n$. npm run build\n``` \nYou will know it is complete when your (terminal's) typing prompt reappears.\\\nThen, as a **FINAL STEP**, copy or move the new `lib/` directory into your project. This will allow you to access it like any other JS module:\n\n```typescript\nimport { initHumbleSDK } from \"path/to/lib\";\n```\n\n---\n\n## Example Usage\n\n### Subscribing to a stream of **Liquidity Pool** data\n```typescript\nimport { subscribeToPoolStream, createReachAPI } from \"@reach-sh/humble-sdk\";\n\nconst stdlib = createReachAPI();\nconst acc = await stdlib.createAccount();\n\n// Fetch existing streams and get notified when a new one is created\nsubscribeToPoolStream(acc, {\n    // Pool ID (and id of pool tokens) received from contract.\n    // Pool data has NOT been fetched yet.\n    onPoolReceived: (info) => { \n        const [poolAddr, tokenAId, tokenBId] = info;\n        // ... do something with data\n     },\n\n    // Pool and Token data has been received from network. \n    onPoolFetched: (result: FetchPoolTxnResult) => { \n        const { succeeded, poolAddress, data, message } = result;\n        if (succeeded) // ... do something with data\n     }\n})\n```\n\n\n### **Swapping** between a pair of tokens\n> **Note:** Swapping does not use routing. Read the [docs](https://reach-sh.github.io/humble-sdk/) to learn how to fetch pools for DEx operations.\n```typescript\nimport { calculateTokenSwap, performSwap } from \"@reach-sh/humble-sdk\";\n\nconst pool = /* pool source */\n\n// Calculate expected swap output\nconst { tokenAId, tokenBId } = pool;\nconst amountA = 100;\nconst swap = calculateTokenSwap({ \n    pool, \n    swap: { amountA, tokenAId, tokenBId } \n});\n\n// Perform swap\nconst swapOpts = { poolAddress: pool.poolAddress, swap, pool };\nconst { data, message, succeeded } = await performSwap(acc, swapOpts);\n// if (succeeded) data == { amountIn: string; amountOut: string }\n```\n\n--- \n\n## Local Testing\nThe `humble-sdk` contains some helper scripts for running the SDK on a command line. See more [**here**](./cli/README.md)\n","readmeFilename":"README.md","gitHead":"f0e78b9e1cb925c42f7ae229791a9a9e9f6de835","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@3.0.0-beta.3","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-i6MAEEgsuVO6cSbx6pGnJ32qlyHE8KAAYoK3DbI3RwaGBXbn1g8+R5Mc9TidNG5QipI4B/ALv9G2Ao6rNI/fzA==","shasum":"5522064636016fef67d885770a9dff83c4111c96","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-3.0.0-beta.3.tgz","fileCount":92,"unpackedSize":1712837,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFWbtvuvXF0vWcCPoD/6KeErtGglzmKuhubWv0jJnrh6AiEAk9k0AXEtHe7b3XkZQZwVPEIjNpo0J1oJWUEbaxWt3w4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbCpxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq5CRAAiEfbSfnIVHEh9Gobc41g97WlO7BYsn3o5xQOSV6O5ElFaFUa\r\n5nUbckMC/weGkOXk0nqV1aGIl6oALz3y/XTRu2Csh9/z600CfRWPFARPZHNn\r\nu2h7OO4nkUT8JaL0j0+PMck+oL1tgQ5Nxbv/hy2RUrxHT33Vo/VIECzWDyj9\r\n3uH6M0uinYDDZ8VDsxXwV90AzIr1yYi9vxNAF+s4FsOwZ+PqojzXFuverusU\r\naBEjto5bGzfh5DciEhQ9H0lMmXfxtOnnuRmA4aVVQ6mffb1jUDPk3Vev0Iir\r\n16M1EdlNcUmsxThtuHGbBUPRO33WtICQo6MNOC2pIICfNc3mqp5S7q2xxWpe\r\nRsKVNYp1QeDeQhP0p0vIcvGeIBZWq9bXo+i/5M5JK+SB2zPYvO8IOY++FbYo\r\njJTL/5oowyQ9pNyLrXe73pFITrdLOSwRZGX998nzkHsz9UkBrLj+pnAK5VeO\r\nH2kGMS4Kv+R/LkJLO3wCt3UuuixbKkXNjs2amPYtgZeEOtqthS8zcjwdjh7s\r\ncADFXoSUmQYa7Tlln5Kg/+0iNWJ8eC9kqDjFc8Y2peDcqsSTG69/JcuF3CIw\r\nUVY8PE7V7NTWaY8Dc2zIebQzoFlpXCX9mUxvMwksvOOqvdLuLul8USGuJhIN\r\n7g0ZfVuMb1d7TcrDmAdxPxT/k5PahRoXvPY=\r\n=lAc+\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jackcom","email":"1mrjackdaw@gmail.com"},"directories":{},"maintainers":[{"name":"jackcom","email":"1mrjackdaw@gmail.com"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"},{"name":"danburton","email":"danburton.email@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_3.0.0-beta.3_1668033137193_0.8141632266306302"},"_hasShrinkwrap":false},"3.0.0-beta.4":{"name":"@reach-sh/humble-sdk","version":"3.0.0-beta.4","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","compress":"make compress","build":"rm -rf lib/ && tsc && make compress","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2","uglify-js":"^3.17.1"},"dependencies":{"@reach-sh/stdlib":"0.1.12-rc.8","axios":"^0.27.2","reach-edge":"npm:@reach-sh/stdlib@latest"},"readme":"# HumbleSDK v2.0.0\n\n<header>\n  <img src=\"./logo-white.svg\" width=\"80\" height=\"auto\">\n</header>\n\nA Javascript library for interacting with the [HumbleSwap DEx](https://app.humble.sh).\n\n- [HumbleSDK v2.0.0](#humblesdk-v200)\n  - [Documentation](#documentation)\n  - [v2 Changes](#v2-changes)\n  - [Installing the SDK](#installing-the-sdk)\n    - [Option 1. NPM (recommended)](#option-1-npm-recommended)\n    - [Option 2. Cloning the repo directly](#option-2-cloning-the-repo-directly)\n  - [Example Usage](#example-usage)\n    - [Subscribing to a stream of **Liquidity Pool** data](#subscribing-to-a-stream-of-liquidity-pool-data)\n    - [**Swapping** between a pair of tokens](#swapping-between-a-pair-of-tokens)\n  - [Local Testing](#local-testing)\n\n---\n## Documentation\nDocumentation has moved [here](https://reach-sh.github.io/humble-sdk/).\n\n--- \n\n## v2 Changes \n`v2` introduces a few changes and adds new functionality, including staking pools. Some functions may have been renamed: review changes in our [changelog](./CHANGELOG.md), and view our [documentation](https://reach-sh.github.io/humble-sdk/) for additional info.\n\n--- \n\n## Installing the SDK\n### Option 1. NPM (recommended)\nThe fastest way is to use `npm`:\n```bash\n$. npm i -s @reach-sh/humble-sdk\n```\n\n### Option 2. Cloning the repo directly\nTo get started without NPM, you can clone and build the SDK from the repository. \n```bash\n# Clone the repository \n$. git clone https://github.com/reach-sh/humble-sdk.git\n\n# Enter the directory with the repo (replace with path to your repository clone)\n$. cd path/to/humble-sdk \n\n# and install dependencies (there aren't a lot)\n$. npm install\n\n# Build the SDK. Will output to a ./lib directory in the same folder as the \n# package.json file. This takes seconds and doesn't output anything to your terminal.\n$. npm run build\n``` \nYou will know it is complete when your (terminal's) typing prompt reappears.\\\nThen, as a **FINAL STEP**, copy or move the new `lib/` directory into your project. This will allow you to access it like any other JS module:\n\n```typescript\nimport { initHumbleSDK } from \"path/to/lib\";\n```\n\n---\n\n## Example Usage\n\n### Subscribing to a stream of **Liquidity Pool** data\n```typescript\nimport { subscribeToPoolStream, createReachAPI } from \"@reach-sh/humble-sdk\";\n\nconst stdlib = createReachAPI();\nconst acc = await stdlib.createAccount();\n\n// Fetch existing streams and get notified when a new one is created\nsubscribeToPoolStream(acc, {\n    // Pool ID (and id of pool tokens) received from contract.\n    // Pool data has NOT been fetched yet.\n    onPoolReceived: (info) => { \n        const [poolAddr, tokenAId, tokenBId] = info;\n        // ... do something with data\n     },\n\n    // Pool and Token data has been received from network. \n    onPoolFetched: (result: FetchPoolTxnResult) => { \n        const { succeeded, poolAddress, data, message } = result;\n        if (succeeded) // ... do something with data\n     }\n})\n```\n\n\n### **Swapping** between a pair of tokens\n> **Note:** Swapping does not use routing. Read the [docs](https://reach-sh.github.io/humble-sdk/) to learn how to fetch pools for DEx operations.\n```typescript\nimport { calculateTokenSwap, performSwap } from \"@reach-sh/humble-sdk\";\n\nconst pool = /* pool source */\n\n// Calculate expected swap output\nconst { tokenAId, tokenBId } = pool;\nconst amountA = 100;\nconst swap = calculateTokenSwap({ \n    pool, \n    swap: { amountA, tokenAId, tokenBId } \n});\n\n// Perform swap\nconst swapOpts = { poolAddress: pool.poolAddress, swap, pool };\nconst { data, message, succeeded } = await performSwap(acc, swapOpts);\n// if (succeeded) data == { amountIn: string; amountOut: string }\n```\n\n--- \n\n## Local Testing\nThe `humble-sdk` contains some helper scripts for running the SDK on a command line. See more [**here**](./cli/README.md)\n","readmeFilename":"README.md","gitHead":"54b851b81d48021195cfbab0ef08757391d1886d","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@3.0.0-beta.4","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-+Vovtwr6OXYISqONN1L1m3cqGC2bTINgEi/9qm4N7Bu73PUwaq0+GppNmE9hes6YakuXFgcuYjMXU0iSybhebQ==","shasum":"339f309dd65f9a21f199403917f88c3f4412e533","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-3.0.0-beta.4.tgz","fileCount":92,"unpackedSize":1713243,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGucpKaukSl/4Tk5Ycih67BCFgacNN5jIRigkYRD6loVAiBNr2bpLpE1VSdZJVa57UJGFsm5K7t7m3PhIoZ4hsLrHg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbUXqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqwYA/7BUOVHH2n+18cr28TXAi6mOZJuQT3Ej90wcgCnxqA2sWb7INw\r\n2xSknaVMB4igcbPeKRA+DTROyoQEyxowDWnEYYcUKWFjCchRpsM1BvKJV51n\r\nooaSvi6DCybpEj/L+hSmP6t7ZLmEYGd2zyplcKeWa9MCzCtiaGqrAjtZBVUC\r\nJvNdBk2qX97Dl/pKthhb0btWmfzCU1PkjqXRu4szhQGaH0/iD2Tiog3Y+W7K\r\nhqCnwuGzHv0ufD5DH37llb8aPa9Z5P29G5wOOL5DpDqIVNrPVO6jJdd7XwxA\r\np+GbMyWzROPBJyAgAunfuIVLoKE89HYXGxq22RpES4k8iiyCXUy8lnmw4XS5\r\nb2D7QziYBTl2Qa1yCI1+MOXE1nreP/9UliLbF/M3dBbOt0FaJtBxB0a/j2z6\r\nVF8633X4s532R/gvU+qONZICvBlUCcrOzkP6vbLzlm6SuKC8PyD+DNnUEHj0\r\neHqdHR01R2ixnKySwBJJeQvQi9m6sgzT0zAChytJDN3aWO6LrrA0AZs54C8K\r\ntVNgT4xrRKn/arCM5g49MwiIJ94D/tHYOEGeXZ/WItGmZT34zDM65wrLL0jT\r\n6trzY8Dy5SyfBloIEkucwmiObpi1HuCTrwMJ72T/IIocEF64mQyFpryRl8mM\r\n0da8xoO6R0GX2FimRTPFxw+95zN/fA5kH04=\r\n=2wFo\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jackcom","email":"1mrjackdaw@gmail.com"},"directories":{},"maintainers":[{"name":"jackcom","email":"1mrjackdaw@gmail.com"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"},{"name":"danburton","email":"danburton.email@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_3.0.0-beta.4_1668105706183_0.0522487126622897"},"_hasShrinkwrap":false},"3.0.0-beta.5":{"name":"@reach-sh/humble-sdk","version":"3.0.0-beta.5","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","compress":"make compress","build":"rm -rf lib/ && tsc && make compress","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2","uglify-js":"^3.17.1"},"dependencies":{"@reach-sh/stdlib":"0.1.12-rc.8","axios":"^0.27.2","reach-edge":"npm:@reach-sh/stdlib@latest"},"readme":"# HumbleSDK v2.0.0\n\n<header>\n  <img src=\"./logo-white.svg\" width=\"80\" height=\"auto\">\n</header>\n\nA Javascript library for interacting with the [HumbleSwap DEx](https://app.humble.sh).\n\n- [HumbleSDK v2.0.0](#humblesdk-v200)\n  - [Documentation](#documentation)\n  - [v2 Changes](#v2-changes)\n  - [Installing the SDK](#installing-the-sdk)\n    - [Option 1. NPM (recommended)](#option-1-npm-recommended)\n    - [Option 2. Cloning the repo directly](#option-2-cloning-the-repo-directly)\n  - [Example Usage](#example-usage)\n    - [Subscribing to a stream of **Liquidity Pool** data](#subscribing-to-a-stream-of-liquidity-pool-data)\n    - [**Swapping** between a pair of tokens](#swapping-between-a-pair-of-tokens)\n  - [Local Testing](#local-testing)\n\n---\n## Documentation\nDocumentation has moved [here](https://reach-sh.github.io/humble-sdk/).\n\n--- \n\n## v2 Changes \n`v2` introduces a few changes and adds new functionality, including staking pools. Some functions may have been renamed: review changes in our [changelog](./CHANGELOG.md), and view our [documentation](https://reach-sh.github.io/humble-sdk/) for additional info.\n\n--- \n\n## Installing the SDK\n### Option 1. NPM (recommended)\nThe fastest way is to use `npm`:\n```bash\n$. npm i -s @reach-sh/humble-sdk\n```\n\n### Option 2. Cloning the repo directly\nTo get started without NPM, you can clone and build the SDK from the repository. \n```bash\n# Clone the repository \n$. git clone https://github.com/reach-sh/humble-sdk.git\n\n# Enter the directory with the repo (replace with path to your repository clone)\n$. cd path/to/humble-sdk \n\n# and install dependencies (there aren't a lot)\n$. npm install\n\n# Build the SDK. Will output to a ./lib directory in the same folder as the \n# package.json file. This takes seconds and doesn't output anything to your terminal.\n$. npm run build\n``` \nYou will know it is complete when your (terminal's) typing prompt reappears.\\\nThen, as a **FINAL STEP**, copy or move the new `lib/` directory into your project. This will allow you to access it like any other JS module:\n\n```typescript\nimport { initHumbleSDK } from \"path/to/lib\";\n```\n\n---\n\n## Example Usage\n\n### Subscribing to a stream of **Liquidity Pool** data\n```typescript\nimport { subscribeToPoolStream, createReachAPI } from \"@reach-sh/humble-sdk\";\n\nconst stdlib = createReachAPI();\nconst acc = await stdlib.createAccount();\n\n// Fetch existing streams and get notified when a new one is created\nsubscribeToPoolStream(acc, {\n    // Pool ID (and id of pool tokens) received from contract.\n    // Pool data has NOT been fetched yet.\n    onPoolReceived: (info) => { \n        const [poolAddr, tokenAId, tokenBId] = info;\n        // ... do something with data\n     },\n\n    // Pool and Token data has been received from network. \n    onPoolFetched: (result: FetchPoolTxnResult) => { \n        const { succeeded, poolAddress, data, message } = result;\n        if (succeeded) // ... do something with data\n     }\n})\n```\n\n\n### **Swapping** between a pair of tokens\n> **Note:** Swapping does not use routing. Read the [docs](https://reach-sh.github.io/humble-sdk/) to learn how to fetch pools for DEx operations.\n```typescript\nimport { calculateTokenSwap, performSwap } from \"@reach-sh/humble-sdk\";\n\nconst pool = /* pool source */\n\n// Calculate expected swap output\nconst { tokenAId, tokenBId } = pool;\nconst amountA = 100;\nconst swap = calculateTokenSwap({ \n    pool, \n    swap: { amountA, tokenAId, tokenBId } \n});\n\n// Perform swap\nconst swapOpts = { poolAddress: pool.poolAddress, swap, pool };\nconst { data, message, succeeded } = await performSwap(acc, swapOpts);\n// if (succeeded) data == { amountIn: string; amountOut: string }\n```\n\n--- \n\n## Local Testing\nThe `humble-sdk` contains some helper scripts for running the SDK on a command line. See more [**here**](./cli/README.md)\n","readmeFilename":"README.md","gitHead":"0b60615b7092a831ea609f1202bff2449284fd5d","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@3.0.0-beta.5","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-k4UmELk9vQ0w3t5H7xFhJWCwEwUTeXFE7J5yWL0SZlkVE1YXaPrwKi0gNV9KiJK5QTW39EwZB2Wx18AQ9TiAMw==","shasum":"94cbbaa75a5a65e0a8c74debc01bc87f025f7006","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-3.0.0-beta.5.tgz","fileCount":92,"unpackedSize":1717826,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDT0GlaLvnAVH8i/oj3VkPMhtQBeueh9bwLpLrYoOcYmQIhALfgTZ8S3CXjBEJwSXdF1JZWyk3KwPsWleai6tH5oqLJ"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjcqW+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmreXw/+MPPwR7Rfd3vEZlRG+YlP4QrS2HK1u7fxnHZL3stHhSyXOIlj\r\nC6DyG2BIHBH8k3PUPqOnYKrftYr8ZP+C+NQTmolMrIElqBqzIfZbLyMjw9ry\r\nPr1nKRzrJqUn/gZEXed3Yn1keJEuwfsWYjv78hFty+3lp6WpANPfUEuVclGj\r\nETYNT/Ofhh/gGivtIpdXDzmPXP1/TGNhFg3QN6q9aJ7v+c6s/0JlppsPK2E3\r\nW2Fb9ZYhZY7Jdd10WUyrtWj+LolBTzJfHOipuyKVKAZOKuckL2kOBIvOY2Fe\r\ntx8+uH5SBD0orlUSdErjWGuiVyLglJNMmTt7ncKZWOMW8G9GhfAh2xbSepUJ\r\nJms3hWFggHyMIIqh7W7iWTgSAMLFryNzltE19VrqYu1UoWDMX//Q2oi48ScP\r\nJm7KJ2avF/W/tQYBr42xj/DeSv6S+bqQuh4KSvic/T4xMe7ElsQ2s7sxMSpT\r\n/9vhLUqcgoKw9qfpsGUEgcrVsukJd+UAlvp+me0MyWUGS1ijJ+tsH5N16xyZ\r\nxR88ordkBNChxgufZxOdUGGQ09z+ftjYztcu4rm5WU4TcMFsqCODOvyBDr7N\r\nXPKg3wXqKYRc4vL0HlMQis6GHwRUDaaVhwv7V9iuyGzFBWEjsBhQ2qbANvt7\r\nvXFUqJsRNuUuwQpGWPy+4vKql/WwNclmLpQ=\r\n=tODW\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jackcom","email":"1mrjackdaw@gmail.com"},"directories":{},"maintainers":[{"name":"jackcom","email":"1mrjackdaw@gmail.com"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"},{"name":"danburton","email":"danburton.email@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_3.0.0-beta.5_1668457918610_0.06587439328832545"},"_hasShrinkwrap":false},"3.0.0-beta.6":{"name":"@reach-sh/humble-sdk","version":"3.0.0-beta.6","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","compress":"make compress","build":"rm -rf lib/ && tsc && make compress","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2","uglify-js":"^3.17.1"},"dependencies":{"@reach-sh/stdlib":"0.1.12-rc.8","axios":"^0.27.2","reach-edge":"npm:@reach-sh/stdlib@latest"},"readme":"# HumbleSDK v2.0.0\n\n<header>\n  <img src=\"./logo-white.svg\" width=\"80\" height=\"auto\">\n</header>\n\nA Javascript library for interacting with the [HumbleSwap DEx](https://app.humble.sh).\n\n- [HumbleSDK v2.0.0](#humblesdk-v200)\n  - [Documentation](#documentation)\n  - [v2 Changes](#v2-changes)\n  - [Installing the SDK](#installing-the-sdk)\n    - [Option 1. NPM (recommended)](#option-1-npm-recommended)\n    - [Option 2. Cloning the repo directly](#option-2-cloning-the-repo-directly)\n  - [Example Usage](#example-usage)\n    - [Subscribing to a stream of **Liquidity Pool** data](#subscribing-to-a-stream-of-liquidity-pool-data)\n    - [**Swapping** between a pair of tokens](#swapping-between-a-pair-of-tokens)\n  - [Local Testing](#local-testing)\n\n---\n## Documentation\nDocumentation has moved [here](https://reach-sh.github.io/humble-sdk/).\n\n--- \n\n## v2 Changes \n`v2` introduces a few changes and adds new functionality, including staking pools. Some functions may have been renamed: review changes in our [changelog](./CHANGELOG.md), and view our [documentation](https://reach-sh.github.io/humble-sdk/) for additional info.\n\n--- \n\n## Installing the SDK\n### Option 1. NPM (recommended)\nThe fastest way is to use `npm`:\n```bash\n$. npm i -s @reach-sh/humble-sdk\n```\n\n### Option 2. Cloning the repo directly\nTo get started without NPM, you can clone and build the SDK from the repository. \n```bash\n# Clone the repository \n$. git clone https://github.com/reach-sh/humble-sdk.git\n\n# Enter the directory with the repo (replace with path to your repository clone)\n$. cd path/to/humble-sdk \n\n# and install dependencies (there aren't a lot)\n$. npm install\n\n# Build the SDK. Will output to a ./lib directory in the same folder as the \n# package.json file. This takes seconds and doesn't output anything to your terminal.\n$. npm run build\n``` \nYou will know it is complete when your (terminal's) typing prompt reappears.\\\nThen, as a **FINAL STEP**, copy or move the new `lib/` directory into your project. This will allow you to access it like any other JS module:\n\n```typescript\nimport { initHumbleSDK } from \"path/to/lib\";\n```\n\n---\n\n## Example Usage\n\n### Subscribing to a stream of **Liquidity Pool** data\n```typescript\nimport { subscribeToPoolStream, createReachAPI } from \"@reach-sh/humble-sdk\";\n\nconst stdlib = createReachAPI();\nconst acc = await stdlib.createAccount();\n\n// Fetch existing streams and get notified when a new one is created\nsubscribeToPoolStream(acc, {\n    // Pool ID (and id of pool tokens) received from contract.\n    // Pool data has NOT been fetched yet.\n    onPoolReceived: (info) => { \n        const [poolAddr, tokenAId, tokenBId] = info;\n        // ... do something with data\n     },\n\n    // Pool and Token data has been received from network. \n    onPoolFetched: (result: FetchPoolTxnResult) => { \n        const { succeeded, poolAddress, data, message } = result;\n        if (succeeded) // ... do something with data\n     }\n})\n```\n\n\n### **Swapping** between a pair of tokens\n> **Note:** Swapping does not use routing. Read the [docs](https://reach-sh.github.io/humble-sdk/) to learn how to fetch pools for DEx operations.\n```typescript\nimport { calculateTokenSwap, performSwap } from \"@reach-sh/humble-sdk\";\n\nconst pool = /* pool source */\n\n// Calculate expected swap output\nconst { tokenAId, tokenBId } = pool;\nconst amountA = 100;\nconst swap = calculateTokenSwap({ \n    pool, \n    swap: { amountA, tokenAId, tokenBId } \n});\n\n// Perform swap\nconst swapOpts = { poolAddress: pool.poolAddress, swap, pool };\nconst { data, message, succeeded } = await performSwap(acc, swapOpts);\n// if (succeeded) data == { amountIn: string; amountOut: string }\n```\n\n--- \n\n## Local Testing\nThe `humble-sdk` contains some helper scripts for running the SDK on a command line. See more [**here**](./cli/README.md)\n","readmeFilename":"README.md","gitHead":"b2fc36a5fc39c581ae479b853e7705e1c5d12ac1","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@3.0.0-beta.6","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-llff8E/Tp+wfkgmzFUaFxlULHgcrgFyHLS9NAbNGvyIeN9rO1Kzo1wxaJiZl1RD5TDrW+xRXaBpVGF8dkHzqng==","shasum":"f8c752d54137359cb29c8cd1746e1e713d25024e","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-3.0.0-beta.6.tgz","fileCount":92,"unpackedSize":1720001,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE6iC1gjrMXfacpC7mQy1mrJF1AsW/qAhQxaXHSRc7oSAiB14/9fkvn0CnlcAvZJmaN57FhFK79XbqE9LabR4RFg4A=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjc9McACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo7dRAAnxTeNSt2S1/9xHZrUpuBDjJRjLR0umFRpWlFKw3VmLotQz/d\r\ngjt9K7OFFavbDd7tjMExf+UN4L2el/U1LLrTmoTXTm9szsEkdP8fmTdWB1zP\r\n6C8Oru013Ykz1e85T7PW7H4unUc09Fzuqw/CTwEb9YlTROYjI4Nsdy6nxYJb\r\nv0EO06TtSs8CpOWOrH8R++aUW0xn5UYmOaxjT2e0HcxcpildmL/woeCmJ5h+\r\nulSoTp+Bs9GD9I42rOjQVJ57DyFN5O2OxHpyhPCgQ7WzCLWVTcR85XeXuOwg\r\nKK3NvL5lzOxshqAIirxF5f+zRz96h/RYrhPa1yYfKcovtxE8rrs/xLgeYx9i\r\nHhuS24HMQwe7R1YE0LpWgo1TPltvBbpJzzzrkWjPED/hldxSOwvC2ByqY2ME\r\n/KOlUVEFCJqIDEhk7CBbXMBDTCN7WKLV9JFni3gynrzhOoUIMm+UdAFEA9OK\r\nCpCor+w/01cXRgQ/RxmOW+/yuLzyXD7R7XBDnQTxoNuyN+bihJ+skMdyvosG\r\n8S24HPYjZYmI+W9U56V8vt5Dhj8IAe/Ed+HSwSw8lRRiZWUWBQ1AfkelJ0dE\r\nNSQugmwVThgwcQaIJL8CFxXksKgYSbYBQzqxSJmgQ1TsCLyk9K8+H68rVLqI\r\nlgFmPS/flEpwglmacrXOm8Hr0atruNDmU8M=\r\n=HcCF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jackcom","email":"1mrjackdaw@gmail.com"},"directories":{},"maintainers":[{"name":"jackcom","email":"1mrjackdaw@gmail.com"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"},{"name":"danburton","email":"danburton.email@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_3.0.0-beta.6_1668535068238_0.06733932418447086"},"_hasShrinkwrap":false},"3.0.0-beta.7":{"name":"@reach-sh/humble-sdk","version":"3.0.0-beta.7","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","compress":"make compress","build":"rm -rf lib/ && tsc && make compress","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2","uglify-js":"^3.17.1"},"dependencies":{"@reach-sh/stdlib":"0.1.12-rc.8","axios":"^0.27.2","reach-edge":"npm:@reach-sh/stdlib@latest"},"readme":"# HumbleSDK v2.0.0\n\n<header>\n  <img src=\"./logo-white.svg\" width=\"80\" height=\"auto\">\n</header>\n\nA Javascript library for interacting with the [HumbleSwap DEx](https://app.humble.sh).\n\n- [HumbleSDK v2.0.0](#humblesdk-v200)\n  - [Documentation](#documentation)\n  - [v2 Changes](#v2-changes)\n  - [Installing the SDK](#installing-the-sdk)\n    - [Option 1. NPM (recommended)](#option-1-npm-recommended)\n    - [Option 2. Cloning the repo directly](#option-2-cloning-the-repo-directly)\n  - [Example Usage](#example-usage)\n    - [Subscribing to a stream of **Liquidity Pool** data](#subscribing-to-a-stream-of-liquidity-pool-data)\n    - [**Swapping** between a pair of tokens](#swapping-between-a-pair-of-tokens)\n  - [Local Testing](#local-testing)\n\n---\n## Documentation\nDocumentation has moved [here](https://reach-sh.github.io/humble-sdk/).\n\n--- \n\n## v2 Changes \n`v2` introduces a few changes and adds new functionality, including staking pools. Some functions may have been renamed: review changes in our [changelog](./CHANGELOG.md), and view our [documentation](https://reach-sh.github.io/humble-sdk/) for additional info.\n\n--- \n\n## Installing the SDK\n### Option 1. NPM (recommended)\nThe fastest way is to use `npm`:\n```bash\n$. npm i -s @reach-sh/humble-sdk\n```\n\n### Option 2. Cloning the repo directly\nTo get started without NPM, you can clone and build the SDK from the repository. \n```bash\n# Clone the repository \n$. git clone https://github.com/reach-sh/humble-sdk.git\n\n# Enter the directory with the repo (replace with path to your repository clone)\n$. cd path/to/humble-sdk \n\n# and install dependencies (there aren't a lot)\n$. npm install\n\n# Build the SDK. Will output to a ./lib directory in the same folder as the \n# package.json file. This takes seconds and doesn't output anything to your terminal.\n$. npm run build\n``` \nYou will know it is complete when your (terminal's) typing prompt reappears.\\\nThen, as a **FINAL STEP**, copy or move the new `lib/` directory into your project. This will allow you to access it like any other JS module:\n\n```typescript\nimport { initHumbleSDK } from \"path/to/lib\";\n```\n\n---\n\n## Example Usage\n\n### Subscribing to a stream of **Liquidity Pool** data\n```typescript\nimport { subscribeToPoolStream, createReachAPI } from \"@reach-sh/humble-sdk\";\n\nconst stdlib = createReachAPI();\nconst acc = await stdlib.createAccount();\n\n// Fetch existing streams and get notified when a new one is created\nsubscribeToPoolStream(acc, {\n    // Pool ID (and id of pool tokens) received from contract.\n    // Pool data has NOT been fetched yet.\n    onPoolReceived: (info) => { \n        const [poolAddr, tokenAId, tokenBId] = info;\n        // ... do something with data\n     },\n\n    // Pool and Token data has been received from network. \n    onPoolFetched: (result: FetchPoolTxnResult) => { \n        const { succeeded, poolAddress, data, message } = result;\n        if (succeeded) // ... do something with data\n     }\n})\n```\n\n\n### **Swapping** between a pair of tokens\n> **Note:** Swapping does not use routing. Read the [docs](https://reach-sh.github.io/humble-sdk/) to learn how to fetch pools for DEx operations.\n```typescript\nimport { calculateTokenSwap, performSwap } from \"@reach-sh/humble-sdk\";\n\nconst pool = /* pool source */\n\n// Calculate expected swap output\nconst { tokenAId, tokenBId } = pool;\nconst amountA = 100;\nconst swap = calculateTokenSwap({ \n    pool, \n    swap: { amountA, tokenAId, tokenBId } \n});\n\n// Perform swap\nconst swapOpts = { poolAddress: pool.poolAddress, swap, pool };\nconst { data, message, succeeded } = await performSwap(acc, swapOpts);\n// if (succeeded) data == { amountIn: string; amountOut: string }\n```\n\n--- \n\n## Local Testing\nThe `humble-sdk` contains some helper scripts for running the SDK on a command line. See more [**here**](./cli/README.md)\n","readmeFilename":"README.md","gitHead":"38568842011f3c20dbcae728079cf94d6d4bd7e8","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@3.0.0-beta.7","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-+8nHcBlj3aw+kHFbBWIlirrYKrWOktMOxeybylgM/I2fjjqJR6dOrcPdTxxgpvKtXNvWdLzajwjjBLumqFHt0A==","shasum":"dc3d3f233adf40b45833a1d4758939879f1a3377","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-3.0.0-beta.7.tgz","fileCount":92,"unpackedSize":1719924,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDhMm0uzOF+GzPJdRaDiLE2e5hl17aDaU+X1lAHRC9BFwIhAJnwYHCifz49C1/TwcHTOrL2y1LmG3wVM8ROYA2ZT5M1"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjc9e9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmriPQ/+KzVV26lq3ZX8MkfZXGnkUoDoau3ueqZ3qYtfFXeYH8vIDQov\r\niqjuSnPJkFSiNe6ti3iKHUbrY6AiGAsRMYaP99JX9EFMvWth0HeZNclxsDq2\r\nsmcb045LhZhRU9S+0MbJSAHd7Dq5SF0JzsB3G1CAwy9iiJSPPNf25wdl9pZJ\r\nk7R6UDQHpdNUA5bJuKbq4bH9svD6N8ftrIBYXD9NfqHaAlfIkY9rj9pczN9I\r\n0BA/4SS56IxU2yVCCRrnMbNqq32jl75xHLIX4jRP7HWCGUgm1SCgVhFzzzhx\r\npXLIMzFnVqwIzYNUGe2v/tLmbJF86zPhK7lAzZ17Crn022FZ78ycieMpWdH9\r\njld5KAz/eskJ04wQ7v+GLo+obo9M75cS+iOtMb7lKuWVStrli1GiJZsMKLQ7\r\nrMaAxMHOD6Lt0aGAxsvl7EyEtOma8p2/FywlOlt6SSc8muJG5zcrIeko8zfp\r\nJ7LehmC+RemrWW6YxiPgRbgyvztIIdIhiQLplg0aKQf9XbI/vR7P51suco20\r\n6YjARhh9RoRJdRONNCn5MBBLxhsPUaFjOtbfQiwBTbhACe1lUZlSMeOuqN3q\r\nq8FxgTuzURR+VwfZ9nceS08QqGgzxsfoYqiIPU4wn5F2+9lesEbOWhwmxh5C\r\nslE843jDJ9/G+j1ulHlF7gR9kNHOcRcHIdk=\r\n=8v4P\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jackcom","email":"1mrjackdaw@gmail.com"},"directories":{},"maintainers":[{"name":"jackcom","email":"1mrjackdaw@gmail.com"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"},{"name":"danburton","email":"danburton.email@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_3.0.0-beta.7_1668536253136_0.4439122371686115"},"_hasShrinkwrap":false},"3.0.0-beta.8":{"name":"@reach-sh/humble-sdk","version":"3.0.0-beta.8","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","compress":"make compress","build":"rm -rf lib/ && tsc && make compress","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2","uglify-js":"^3.17.1"},"dependencies":{"@reach-sh/stdlib":"0.1.12-rc.8","axios":"^0.27.2","reach-edge":"npm:@reach-sh/stdlib@latest"},"readme":"# HumbleSDK v2.0.0\n\n<header>\n  <img src=\"./logo-white.svg\" width=\"80\" height=\"auto\">\n</header>\n\nA Javascript library for interacting with the [HumbleSwap DEx](https://app.humble.sh).\n\n- [HumbleSDK v2.0.0](#humblesdk-v200)\n  - [Documentation](#documentation)\n  - [v2 Changes](#v2-changes)\n  - [Installing the SDK](#installing-the-sdk)\n    - [Option 1. NPM (recommended)](#option-1-npm-recommended)\n    - [Option 2. Cloning the repo directly](#option-2-cloning-the-repo-directly)\n  - [Example Usage](#example-usage)\n    - [Subscribing to a stream of **Liquidity Pool** data](#subscribing-to-a-stream-of-liquidity-pool-data)\n    - [**Swapping** between a pair of tokens](#swapping-between-a-pair-of-tokens)\n  - [Local Testing](#local-testing)\n\n---\n## Documentation\nDocumentation has moved [here](https://reach-sh.github.io/humble-sdk/).\n\n--- \n\n## v2 Changes \n`v2` introduces a few changes and adds new functionality, including staking pools. Some functions may have been renamed: review changes in our [changelog](./CHANGELOG.md), and view our [documentation](https://reach-sh.github.io/humble-sdk/) for additional info.\n\n--- \n\n## Installing the SDK\n### Option 1. NPM (recommended)\nThe fastest way is to use `npm`:\n```bash\n$. npm i -s @reach-sh/humble-sdk\n```\n\n### Option 2. Cloning the repo directly\nTo get started without NPM, you can clone and build the SDK from the repository. \n```bash\n# Clone the repository \n$. git clone https://github.com/reach-sh/humble-sdk.git\n\n# Enter the directory with the repo (replace with path to your repository clone)\n$. cd path/to/humble-sdk \n\n# and install dependencies (there aren't a lot)\n$. npm install\n\n# Build the SDK. Will output to a ./lib directory in the same folder as the \n# package.json file. This takes seconds and doesn't output anything to your terminal.\n$. npm run build\n``` \nYou will know it is complete when your (terminal's) typing prompt reappears.\\\nThen, as a **FINAL STEP**, copy or move the new `lib/` directory into your project. This will allow you to access it like any other JS module:\n\n```typescript\nimport { initHumbleSDK } from \"path/to/lib\";\n```\n\n---\n\n## Example Usage\n\n### Subscribing to a stream of **Liquidity Pool** data\n```typescript\nimport { subscribeToPoolStream, createReachAPI } from \"@reach-sh/humble-sdk\";\n\nconst stdlib = createReachAPI();\nconst acc = await stdlib.createAccount();\n\n// Fetch existing streams and get notified when a new one is created\nsubscribeToPoolStream(acc, {\n    // Pool ID (and id of pool tokens) received from contract.\n    // Pool data has NOT been fetched yet.\n    onPoolReceived: (info) => { \n        const [poolAddr, tokenAId, tokenBId] = info;\n        // ... do something with data\n     },\n\n    // Pool and Token data has been received from network. \n    onPoolFetched: (result: FetchPoolTxnResult) => { \n        const { succeeded, poolAddress, data, message } = result;\n        if (succeeded) // ... do something with data\n     }\n})\n```\n\n\n### **Swapping** between a pair of tokens\n> **Note:** Swapping does not use routing. Read the [docs](https://reach-sh.github.io/humble-sdk/) to learn how to fetch pools for DEx operations.\n```typescript\nimport { calculateTokenSwap, performSwap } from \"@reach-sh/humble-sdk\";\n\nconst pool = /* pool source */\n\n// Calculate expected swap output\nconst { tokenAId, tokenBId } = pool;\nconst amountA = 100;\nconst swap = calculateTokenSwap({ \n    pool, \n    swap: { amountA, tokenAId, tokenBId } \n});\n\n// Perform swap\nconst swapOpts = { poolAddress: pool.poolAddress, swap, pool };\nconst { data, message, succeeded } = await performSwap(acc, swapOpts);\n// if (succeeded) data == { amountIn: string; amountOut: string }\n```\n\n--- \n\n## Local Testing\nThe `humble-sdk` contains some helper scripts for running the SDK on a command line. See more [**here**](./cli/README.md)\n","readmeFilename":"README.md","gitHead":"b0ae676e4a628144ab4986af84fae11616323fe5","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@3.0.0-beta.8","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-XbNvun6CPAsaiVcucJkK6FheFizkQuQ8A9Km1nCf1Rcr2SiEcckJRd0+JJROLxfv/2GCuJGL0ti7gyMKvXaIQA==","shasum":"1a4af1817ffbc8295340692f3b18763ddf7028da","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-3.0.0-beta.8.tgz","fileCount":92,"unpackedSize":1720092,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCzu9LOqwaEzETYSB/uj+z16g0oSz+LA7ybdHfq17AmeQIgffW936EiICfzldSJL1tyceSznr5Gn/zlTBZDXJk8o4M="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjc+1bACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp7VA/+LePabS1CFsO5sJcRbt1/94Nl0WSASoK/Dz8A5bysE/NDQQ5k\r\nEwK6TZt4DpdKQw5xfullOiJHZZYtnYKx0n99OexfekWQwirFWP9pjT1M83Sy\r\naa85WXslUvs8WJQs/B4+bOUEBB04L/TFtMq2WnbZgJnpERywt/IdjoYKizPE\r\n+etNJ2TPYI+8zjsSO0epWsAbDV+cHDoXaf6FB9O1jA95mT6cbbLr+Kb5GOGf\r\n4wecrTqtbEEqkNuSUSuWUY78lTZistqcMzXD+qBpW/yST6igIiT3MFNqegZ2\r\n9K736eZv0qrSjcqFN+vUThhAX4eMZPsYpI3HFL32BswbBCkQA5OhPhf1jQ1C\r\nVn7xGOfM/1rKbIHu90DeigbrFkBeHpMIKX9oY8Wb1nYdj2e4xVpfP5yekXMT\r\nIfIm5C9i28Nn5ZJtZ338fAzJMq2QxUi5gtIS+xcLfEVibfa9iPU9nTDFY9kT\r\nuJxVPKAD+QN2Wsgtft/V50ZZqzo9Z/nH8vJlLMugqoupB3aDljF9sdj3V5bo\r\nUYkYeakON/2NtQk6U2+Kq3qPYPWRjmwdi5jA0U6s0wWhru7q07mR8hJQ47l3\r\niwL52T4dE9KPxMhWhBEtqdrnsXB+CB+nAG+wE/RBD9VHuf9r2MVWg1pyl97V\r\ntY4LHhmzVFEcLXYD6fR5VadRs50cYZ91JTo=\r\n=yByv\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jackcom","email":"1mrjackdaw@gmail.com"},"directories":{},"maintainers":[{"name":"jackcom","email":"1mrjackdaw@gmail.com"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"},{"name":"danburton","email":"danburton.email@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_3.0.0-beta.8_1668541787492_0.5790089292085445"},"_hasShrinkwrap":false},"3.0.0-beta.9":{"name":"@reach-sh/humble-sdk","version":"3.0.0-beta.9","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","compress":"make compress","build":"rm -rf lib/ && tsc && make compress","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2","uglify-js":"^3.17.1"},"dependencies":{"@reach-sh/stdlib":"0.1.12-rc.8","axios":"^0.27.2","reach-edge":"npm:@reach-sh/stdlib@latest"},"readme":"# HumbleSDK v2.0.0\n\n<header>\n  <img src=\"./logo-white.svg\" width=\"80\" height=\"auto\">\n</header>\n\nA Javascript library for interacting with the [HumbleSwap DEx](https://app.humble.sh).\n\n- [HumbleSDK v2.0.0](#humblesdk-v200)\n  - [Documentation](#documentation)\n  - [v2 Changes](#v2-changes)\n  - [Installing the SDK](#installing-the-sdk)\n    - [Option 1. NPM (recommended)](#option-1-npm-recommended)\n    - [Option 2. Cloning the repo directly](#option-2-cloning-the-repo-directly)\n  - [Example Usage](#example-usage)\n    - [Subscribing to a stream of **Liquidity Pool** data](#subscribing-to-a-stream-of-liquidity-pool-data)\n    - [**Swapping** between a pair of tokens](#swapping-between-a-pair-of-tokens)\n  - [Local Testing](#local-testing)\n\n---\n## Documentation\nDocumentation has moved [here](https://reach-sh.github.io/humble-sdk/).\n\n--- \n\n## v2 Changes \n`v2` introduces a few changes and adds new functionality, including staking pools. Some functions may have been renamed: review changes in our [changelog](./CHANGELOG.md), and view our [documentation](https://reach-sh.github.io/humble-sdk/) for additional info.\n\n--- \n\n## Installing the SDK\n### Option 1. NPM (recommended)\nThe fastest way is to use `npm`:\n```bash\n$. npm i -s @reach-sh/humble-sdk\n```\n\n### Option 2. Cloning the repo directly\nTo get started without NPM, you can clone and build the SDK from the repository. \n```bash\n# Clone the repository \n$. git clone https://github.com/reach-sh/humble-sdk.git\n\n# Enter the directory with the repo (replace with path to your repository clone)\n$. cd path/to/humble-sdk \n\n# and install dependencies (there aren't a lot)\n$. npm install\n\n# Build the SDK. Will output to a ./lib directory in the same folder as the \n# package.json file. This takes seconds and doesn't output anything to your terminal.\n$. npm run build\n``` \nYou will know it is complete when your (terminal's) typing prompt reappears.\\\nThen, as a **FINAL STEP**, copy or move the new `lib/` directory into your project. This will allow you to access it like any other JS module:\n\n```typescript\nimport { initHumbleSDK } from \"path/to/lib\";\n```\n\n---\n\n## Example Usage\n\n### Subscribing to a stream of **Liquidity Pool** data\n```typescript\nimport { subscribeToPoolStream, createReachAPI } from \"@reach-sh/humble-sdk\";\n\nconst stdlib = createReachAPI();\nconst acc = await stdlib.createAccount();\n\n// Fetch existing streams and get notified when a new one is created\nsubscribeToPoolStream(acc, {\n    // Pool ID (and id of pool tokens) received from contract.\n    // Pool data has NOT been fetched yet.\n    onPoolReceived: (info) => { \n        const [poolAddr, tokenAId, tokenBId] = info;\n        // ... do something with data\n     },\n\n    // Pool and Token data has been received from network. \n    onPoolFetched: (result: FetchPoolTxnResult) => { \n        const { succeeded, poolAddress, data, message } = result;\n        if (succeeded) // ... do something with data\n     }\n})\n```\n\n\n### **Swapping** between a pair of tokens\n> **Note:** Swapping does not use routing. Read the [docs](https://reach-sh.github.io/humble-sdk/) to learn how to fetch pools for DEx operations.\n```typescript\nimport { calculateTokenSwap, performSwap } from \"@reach-sh/humble-sdk\";\n\nconst pool = /* pool source */\n\n// Calculate expected swap output\nconst { tokenAId, tokenBId } = pool;\nconst amountA = 100;\nconst swap = calculateTokenSwap({ \n    pool, \n    swap: { amountA, tokenAId, tokenBId } \n});\n\n// Perform swap\nconst swapOpts = { poolAddress: pool.poolAddress, swap, pool };\nconst { data, message, succeeded } = await performSwap(acc, swapOpts);\n// if (succeeded) data == { amountIn: string; amountOut: string }\n```\n\n--- \n\n## Local Testing\nThe `humble-sdk` contains some helper scripts for running the SDK on a command line. See more [**here**](./cli/README.md)\n","readmeFilename":"README.md","gitHead":"f15b6c7cac9c9988e74a543d8efd2486308c5a6f","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@3.0.0-beta.9","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-xT5c+tDAaSprWgzp9b0xFghosinWCtb1LDYeGApw2bYISD0svQsV6LYAHwfOPXqApy2SwvrNOoxW6nHhkT5ayw==","shasum":"77ce53397c82d3354c2326f19d8559c76a71da62","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-3.0.0-beta.9.tgz","fileCount":92,"unpackedSize":1724058,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDtHDirqKDV/dEbmi4V8TSQBz6UsYSTovupjglJbMtQWgIhALpBgn/pJrvUUvlPmIT6CtQ2gWXIctHYgObazm6oOjIh"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJje2dzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqYlg/9HFkPPTW9GUFeZeT/NPe386p8eF9qsX2hfK7zv8XdRTAhaF1P\r\nep5vpDxLcDsOmPMVV47Rf5UxmXuTZIEUvuJCHjv+SLYqAC4+XObs22O+oImj\r\nKito8/02Qzk4qS8U4CImJyM9cNMThlB7jGpZ+aTSA8kCgnvyrAGNwrPwk97o\r\njx90nGJ2lkSxB4YIhPI2qtj/fkg9T4n3dSGqn25nilMbEGfQkHjfkDVlrSl3\r\naRvHgmFkUsLDiDV6p9GXK+HOm7udQmmPkJ+rXv2AFTzt+dJeeOtXq6tOEykZ\r\n4+JyH6yQbqcV4wS2oSMCy1J0K5B0LwilX8FKP0p/0RXf/pzN+dD/4Y+Sj70m\r\n7XjSvnHFsYGGeWIMTQzB6PWgZblmEyQNhMpoSdEi2MQvmrQaSXGvky8z1Zs1\r\nlzOyD3wX0CDmuP2TYNAJy/ntUDnSzJ3TNYodjTMWWcl5Wu4+3oGTSMxcXJlQ\r\nwnk6pAbmKhh3/ikDUI2C5oeb97c9RT+xXaEZU26ARAdEmOmSzyFMZav8zOdQ\r\nKEgl8QiFHxWdtTVKjy04WgNIYnAVRb9fv+ZvXu8v4LP93qG4A/67O2cKoN2+\r\noZeLpThlCjlh9ELMI3bSUNVMlmJyebRJftp4/i7QUd9B9xEhzV+VjHrm2o8U\r\nwBSWBvAm9eg1dk/6LKm8bqkoBo+bv/Lg/0k=\r\n=aXZM\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jackcom","email":"1mrjackdaw@gmail.com"},"directories":{},"maintainers":[{"name":"jackcom","email":"1mrjackdaw@gmail.com"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"},{"name":"danburton","email":"danburton.email@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_3.0.0-beta.9_1669031795772_0.561584694633066"},"_hasShrinkwrap":false},"3.0.0-beta.10":{"name":"@reach-sh/humble-sdk","version":"3.0.0-beta.10","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","compress":"make compress","build":"rm -rf lib/ && tsc && make compress","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2","uglify-js":"^3.17.1"},"dependencies":{"@reach-sh/stdlib":"0.1.12-rc.8","axios":"^0.27.2","reach-edge":"npm:@reach-sh/stdlib@latest"},"readme":"# HumbleSDK v2.0.0\n\n<header>\n  <img src=\"./logo-white.svg\" width=\"80\" height=\"auto\">\n</header>\n\nA Javascript library for interacting with the [HumbleSwap DEx](https://app.humble.sh).\n\n- [HumbleSDK v2.0.0](#humblesdk-v200)\n  - [Documentation](#documentation)\n  - [v2 Changes](#v2-changes)\n  - [Installing the SDK](#installing-the-sdk)\n    - [Option 1. NPM (recommended)](#option-1-npm-recommended)\n    - [Option 2. Cloning the repo directly](#option-2-cloning-the-repo-directly)\n  - [Example Usage](#example-usage)\n    - [Subscribing to a stream of **Liquidity Pool** data](#subscribing-to-a-stream-of-liquidity-pool-data)\n    - [**Swapping** between a pair of tokens](#swapping-between-a-pair-of-tokens)\n  - [Local Testing](#local-testing)\n\n---\n## Documentation\nDocumentation has moved [here](https://reach-sh.github.io/humble-sdk/).\n\n--- \n\n## v2 Changes \n`v2` introduces a few changes and adds new functionality, including staking pools. Some functions may have been renamed: review changes in our [changelog](./CHANGELOG.md), and view our [documentation](https://reach-sh.github.io/humble-sdk/) for additional info.\n\n--- \n\n## Installing the SDK\n### Option 1. NPM (recommended)\nThe fastest way is to use `npm`:\n```bash\n$. npm i -s @reach-sh/humble-sdk\n```\n\n### Option 2. Cloning the repo directly\nTo get started without NPM, you can clone and build the SDK from the repository. \n```bash\n# Clone the repository \n$. git clone https://github.com/reach-sh/humble-sdk.git\n\n# Enter the directory with the repo (replace with path to your repository clone)\n$. cd path/to/humble-sdk \n\n# and install dependencies (there aren't a lot)\n$. npm install\n\n# Build the SDK. Will output to a ./lib directory in the same folder as the \n# package.json file. This takes seconds and doesn't output anything to your terminal.\n$. npm run build\n``` \nYou will know it is complete when your (terminal's) typing prompt reappears.\\\nThen, as a **FINAL STEP**, copy or move the new `lib/` directory into your project. This will allow you to access it like any other JS module:\n\n```typescript\nimport { initHumbleSDK } from \"path/to/lib\";\n```\n\n---\n\n## Example Usage\n\n### Subscribing to a stream of **Liquidity Pool** data\n```typescript\nimport { subscribeToPoolStream, createReachAPI } from \"@reach-sh/humble-sdk\";\n\nconst stdlib = createReachAPI();\nconst acc = await stdlib.createAccount();\n\n// Fetch existing streams and get notified when a new one is created\nsubscribeToPoolStream(acc, {\n    // Pool ID (and id of pool tokens) received from contract.\n    // Pool data has NOT been fetched yet.\n    onPoolReceived: (info) => { \n        const [poolAddr, tokenAId, tokenBId] = info;\n        // ... do something with data\n     },\n\n    // Pool and Token data has been received from network. \n    onPoolFetched: (result: FetchPoolTxnResult) => { \n        const { succeeded, poolAddress, data, message } = result;\n        if (succeeded) // ... do something with data\n     }\n})\n```\n\n\n### **Swapping** between a pair of tokens\n> **Note:** Swapping does not use routing. Read the [docs](https://reach-sh.github.io/humble-sdk/) to learn how to fetch pools for DEx operations.\n```typescript\nimport { calculateTokenSwap, performSwap } from \"@reach-sh/humble-sdk\";\n\nconst pool = /* pool source */\n\n// Calculate expected swap output\nconst { tokenAId, tokenBId } = pool;\nconst amountA = 100;\nconst swap = calculateTokenSwap({ \n    pool, \n    swap: { amountA, tokenAId, tokenBId } \n});\n\n// Perform swap\nconst swapOpts = { poolAddress: pool.poolAddress, swap, pool };\nconst { data, message, succeeded } = await performSwap(acc, swapOpts);\n// if (succeeded) data == { amountIn: string; amountOut: string }\n```\n\n--- \n\n## Local Testing\nThe `humble-sdk` contains some helper scripts for running the SDK on a command line. See more [**here**](./cli/README.md)\n","readmeFilename":"README.md","gitHead":"8468422f56192c4ab9b10a7ed3987e461a28cdbd","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@3.0.0-beta.10","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-zVGO6LB0SNdeNU6SSZPZ6a5fWqwfPqDAg+nOIMkI6l86s9c+JmPxSeolK4guwimYAsr5Ezx0O69dSQqCBcRGew==","shasum":"48585f48f6ea7e2a6ac1fdf049e9c39988bfe376","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-3.0.0-beta.10.tgz","fileCount":92,"unpackedSize":1723496,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC+yXEwUUgDJ6H6mlQPWJsaXw+8V6pCZC+vB5VHhy8xhwIhAOz0jJ3nO0TcNsab5R82Xd1w/8+/d7NJwjM3hJe/Yv1o"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJje3IjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqQvhAApPQ2V84/9N1hRm3VJA4EgJdv7CPHJgShxvxKKZeWAnFss6Oe\r\nx3PATW1pby/m+QVdh+nW0RXb40KMLsXD5e3U/58fEg3FcWGPIYoeUtCitYMJ\r\n0Q6DrhfR0TcXm9nz26J9s9KyRAUKaztUuN06vzAZjP1H+PgI6Ou3eiwJESH4\r\nhdcxdRGwMnZ70Pv3Vk+YXmsbPq5NwBmCTQAMwzwrNU0pKvSLlsw7cTTMXt1H\r\nlIGMUKQcRZoqeqicq6K8IRIaCzDoFKYfb7zC75kFmm4GmDbUqwJqskoRdOZ+\r\nVSky4tsfL0VlPzRVsgO57RoZ4OTd3HCpFwCLG9mF4fMpszNobBIMT2VLchbH\r\nKAM90YGGQ8wuVwes7RAdX3HaxzuTkfS27XXsFamm85tHLaU3EJyoFvXBI8v1\r\nC8C7j5beFUs5Lj4gEyNtMwPwjGC303wEKSIZ4JW6ZJMNICt2aeQzpYsX5icV\r\nbyZIctaDjdzzgUox269CI69/mZ57TNrCMb4AV5urFzYQGvZknNJ0RyPSyvX0\r\nWuMWNb6Di3sZjGJd+IG1wW5yghO8RSlrmbP5q1T8RppJVwMl3qwtuLZffBoI\r\nZqiRZTVxzqA9Wd8nvnN6pEIuU6RSUGxzskUszVW6m8Fuj7FOMpOG7W74Cvwe\r\n9K5Ur91/VGxOS/V8Ev6p4O/rjioT77IO1Hw=\r\n=E9lB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jackcom","email":"1mrjackdaw@gmail.com"},"directories":{},"maintainers":[{"name":"jackcom","email":"1mrjackdaw@gmail.com"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"},{"name":"danburton","email":"danburton.email@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_3.0.0-beta.10_1669034530974_0.3562782280548311"},"_hasShrinkwrap":false},"3.0.0-beta.11":{"name":"@reach-sh/humble-sdk","version":"3.0.0-beta.11","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","compress":"make compress","build":"rm -rf lib/ && tsc && make compress","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2","uglify-js":"^3.17.1"},"dependencies":{"@reach-sh/stdlib":"0.1.12-rc.9","axios":"^0.27.2","reach-edge":"npm:@reach-sh/stdlib@latest"},"readme":"# HumbleSDK v2.0.0\n\n<header>\n  <img src=\"./logo-white.svg\" width=\"80\" height=\"auto\">\n</header>\n\nA Javascript library for interacting with the [HumbleSwap DEx](https://app.humble.sh).\n\n- [HumbleSDK v2.0.0](#humblesdk-v200)\n  - [Documentation](#documentation)\n  - [v2 Changes](#v2-changes)\n  - [Installing the SDK](#installing-the-sdk)\n    - [Option 1. NPM (recommended)](#option-1-npm-recommended)\n    - [Option 2. Cloning the repo directly](#option-2-cloning-the-repo-directly)\n  - [Example Usage](#example-usage)\n    - [Subscribing to a stream of **Liquidity Pool** data](#subscribing-to-a-stream-of-liquidity-pool-data)\n    - [**Swapping** between a pair of tokens](#swapping-between-a-pair-of-tokens)\n  - [Local Testing](#local-testing)\n\n---\n## Documentation\nDocumentation has moved [here](https://reach-sh.github.io/humble-sdk/).\n\n--- \n\n## v2 Changes \n`v2` introduces a few changes and adds new functionality, including staking pools. Some functions may have been renamed: review changes in our [changelog](./CHANGELOG.md), and view our [documentation](https://reach-sh.github.io/humble-sdk/) for additional info.\n\n--- \n\n## Installing the SDK\n### Option 1. NPM (recommended)\nThe fastest way is to use `npm`:\n```bash\n$. npm i -s @reach-sh/humble-sdk\n```\n\n### Option 2. Cloning the repo directly\nTo get started without NPM, you can clone and build the SDK from the repository. \n```bash\n# Clone the repository \n$. git clone https://github.com/reach-sh/humble-sdk.git\n\n# Enter the directory with the repo (replace with path to your repository clone)\n$. cd path/to/humble-sdk \n\n# and install dependencies (there aren't a lot)\n$. npm install\n\n# Build the SDK. Will output to a ./lib directory in the same folder as the \n# package.json file. This takes seconds and doesn't output anything to your terminal.\n$. npm run build\n``` \nYou will know it is complete when your (terminal's) typing prompt reappears.\\\nThen, as a **FINAL STEP**, copy or move the new `lib/` directory into your project. This will allow you to access it like any other JS module:\n\n```typescript\nimport { initHumbleSDK } from \"path/to/lib\";\n```\n\n---\n\n## Example Usage\n\n### Subscribing to a stream of **Liquidity Pool** data\n```typescript\nimport { subscribeToPoolStream, createReachAPI } from \"@reach-sh/humble-sdk\";\n\nconst stdlib = createReachAPI();\nconst acc = await stdlib.createAccount();\n\n// Fetch existing streams and get notified when a new one is created\nsubscribeToPoolStream(acc, {\n    // Pool ID (and id of pool tokens) received from contract.\n    // Pool data has NOT been fetched yet.\n    onPoolReceived: (info) => { \n        const [poolAddr, tokenAId, tokenBId] = info;\n        // ... do something with data\n     },\n\n    // Pool and Token data has been received from network. \n    onPoolFetched: (result: FetchPoolTxnResult) => { \n        const { succeeded, poolAddress, data, message } = result;\n        if (succeeded) // ... do something with data\n     }\n})\n```\n\n\n### **Swapping** between a pair of tokens\n> **Note:** Swapping does not use routing. Read the [docs](https://reach-sh.github.io/humble-sdk/) to learn how to fetch pools for DEx operations.\n```typescript\nimport { calculateTokenSwap, performSwap } from \"@reach-sh/humble-sdk\";\n\nconst pool = /* pool source */\n\n// Calculate expected swap output\nconst { tokenAId, tokenBId } = pool;\nconst amountA = 100;\nconst swap = calculateTokenSwap({ \n    pool, \n    swap: { amountA, tokenAId, tokenBId } \n});\n\n// Perform swap\nconst swapOpts = { poolAddress: pool.poolAddress, swap, pool };\nconst { data, message, succeeded } = await performSwap(acc, swapOpts);\n// if (succeeded) data == { amountIn: string; amountOut: string }\n```\n\n--- \n\n## Local Testing\nThe `humble-sdk` contains some helper scripts for running the SDK on a command line. See more [**here**](./cli/README.md)\n","readmeFilename":"README.md","gitHead":"764c9c1b24e1e36d63196fbbaa293256546f34bf","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@3.0.0-beta.11","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-3u+kABwEHp7irFS3obIEUsUKi3VH28s7mz+GDIXzAGuIGCLfhxhVS9G8+VZlfoDSSJv3C86dyIYCkLhL3QRaeg==","shasum":"113da623144a4a38f7708c70ea017c9b543a5b66","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-3.0.0-beta.11.tgz","fileCount":92,"unpackedSize":1557724,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE7R5f6vWaf9PHduCKQsjh4UTy24+uBn09Ksv9RTYO6lAiEAtBYAV/0Hh80Ksz2/R8LB4CvczJWyA3N73eECwbNcbh8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjf3ypACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqhqw//dX8wREGBOjtsmm6VhEr5ejt3qhhZa2hOFlbsXKIwKWwTe1mi\r\novwmbAUsAz2KtrDzfgp1xb2iRgrWD3xFZ85+syN025hetpUONdwLo3bg3fT8\r\nVi4IeP0sR2UCPMlGQX+eMaOBa5Fba1ue3YexNr+FTUr0mlCbGsJmLWo4Vg8u\r\nFffkRdcRh8ciJBKqB8JAEPAEIsaUNX3ysTIu2VUi73DdAgZYix01UevD6j89\r\nNK28d2C2kk4UxU9Bx5FbA2PJmPvuLYWQ7WAcbEGhnZQXcZPIpoYQOVgUxcV0\r\nmZhTBhokiOgAnQIzvTv2HvLa/HkPpQYVV3PHbheA4ZS/5PWsSgbUXI8R7SHC\r\n25uBXB1uI6KFGc8c9ar4wu7CoDP96d+VvcSzvKiRTWwSkiyOHcefe9STrnS7\r\nS3orT4lj03gf5jsMPbg6LOWQHXGFr9fsr2F97YtuygXI6qYPYMfF0kA8pKYN\r\nkF0u0JtI8KvCD+6Fl/dDTWNnHMOaEu5bvrdE21WuKpLae5Z6fDFuTGPOdrVh\r\nePerhF2U9nEr3l0i2atV/0F1l3tvDzd6j8DuQ57ZHvSVLbgmI7K81lLhbpYG\r\nDvEYv4QlRKnGGWtulunBdD7C9EjDSDJcV0fP+nf68FL4WSCpLlFX7gDZWsj9\r\nChtuXGh3xABHlJALq2DEB+0MCjuLVGu9pgc=\r\n=1rbo\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jackcom","email":"1mrjackdaw@gmail.com"},"directories":{},"maintainers":[{"name":"jackcom","email":"1mrjackdaw@gmail.com"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"},{"name":"danburton","email":"danburton.email@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_3.0.0-beta.11_1669299369272_0.7554397634936707"},"_hasShrinkwrap":false},"3.0.0-beta.12":{"name":"@reach-sh/humble-sdk","version":"3.0.0-beta.12","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","compress":"make compress","build":"rm -rf lib/ && tsc && make compress","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2","uglify-js":"^3.17.1"},"dependencies":{"@reach-sh/stdlib":"0.1.12-rc.9","axios":"^0.27.2","reach-edge":"npm:@reach-sh/stdlib@latest"},"readme":"# HumbleSDK v2.0.0\n\n<header>\n  <img src=\"./logo-white.svg\" width=\"80\" height=\"auto\">\n</header>\n\nA Javascript library for interacting with the [HumbleSwap DEx](https://app.humble.sh).\n\n- [HumbleSDK v2.0.0](#humblesdk-v200)\n  - [Documentation](#documentation)\n  - [v2 Changes](#v2-changes)\n  - [Installing the SDK](#installing-the-sdk)\n    - [Option 1. NPM (recommended)](#option-1-npm-recommended)\n    - [Option 2. Cloning the repo directly](#option-2-cloning-the-repo-directly)\n  - [Example Usage](#example-usage)\n    - [Subscribing to a stream of **Liquidity Pool** data](#subscribing-to-a-stream-of-liquidity-pool-data)\n    - [**Swapping** between a pair of tokens](#swapping-between-a-pair-of-tokens)\n  - [Local Testing](#local-testing)\n\n---\n## Documentation\nDocumentation has moved [here](https://reach-sh.github.io/humble-sdk/).\n\n--- \n\n## v2 Changes \n`v2` introduces a few changes and adds new functionality, including staking pools. Some functions may have been renamed: review changes in our [changelog](./CHANGELOG.md), and view our [documentation](https://reach-sh.github.io/humble-sdk/) for additional info.\n\n--- \n\n## Installing the SDK\n### Option 1. NPM (recommended)\nThe fastest way is to use `npm`:\n```bash\n$. npm i -s @reach-sh/humble-sdk\n```\n\n### Option 2. Cloning the repo directly\nTo get started without NPM, you can clone and build the SDK from the repository. \n```bash\n# Clone the repository \n$. git clone https://github.com/reach-sh/humble-sdk.git\n\n# Enter the directory with the repo (replace with path to your repository clone)\n$. cd path/to/humble-sdk \n\n# and install dependencies (there aren't a lot)\n$. npm install\n\n# Build the SDK. Will output to a ./lib directory in the same folder as the \n# package.json file. This takes seconds and doesn't output anything to your terminal.\n$. npm run build\n``` \nYou will know it is complete when your (terminal's) typing prompt reappears.\\\nThen, as a **FINAL STEP**, copy or move the new `lib/` directory into your project. This will allow you to access it like any other JS module:\n\n```typescript\nimport { initHumbleSDK } from \"path/to/lib\";\n```\n\n---\n\n## Example Usage\n\n### Subscribing to a stream of **Liquidity Pool** data\n```typescript\nimport { subscribeToPoolStream, createReachAPI } from \"@reach-sh/humble-sdk\";\n\nconst stdlib = createReachAPI();\nconst acc = await stdlib.createAccount();\n\n// Fetch existing streams and get notified when a new one is created\nsubscribeToPoolStream(acc, {\n    // Pool ID (and id of pool tokens) received from contract.\n    // Pool data has NOT been fetched yet.\n    onPoolReceived: (info) => { \n        const [poolAddr, tokenAId, tokenBId] = info;\n        // ... do something with data\n     },\n\n    // Pool and Token data has been received from network. \n    onPoolFetched: (result: FetchPoolTxnResult) => { \n        const { succeeded, poolAddress, data, message } = result;\n        if (succeeded) // ... do something with data\n     }\n})\n```\n\n\n### **Swapping** between a pair of tokens\n> **Note:** Swapping does not use routing. Read the [docs](https://reach-sh.github.io/humble-sdk/) to learn how to fetch pools for DEx operations.\n```typescript\nimport { calculateTokenSwap, performSwap } from \"@reach-sh/humble-sdk\";\n\nconst pool = /* pool source */\n\n// Calculate expected swap output\nconst { tokenAId, tokenBId } = pool;\nconst amountA = 100;\nconst swap = calculateTokenSwap({ \n    pool, \n    swap: { amountA, tokenAId, tokenBId } \n});\n\n// Perform swap\nconst swapOpts = { poolAddress: pool.poolAddress, swap, pool };\nconst { data, message, succeeded } = await performSwap(acc, swapOpts);\n// if (succeeded) data == { amountIn: string; amountOut: string }\n```\n\n--- \n\n## Local Testing\nThe `humble-sdk` contains some helper scripts for running the SDK on a command line. See more [**here**](./cli/README.md)\n","readmeFilename":"README.md","gitHead":"e10b496a35ae52f7c482e6f75c8c7092282cb628","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@3.0.0-beta.12","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-dAn7GFenx4TxDmJGSn4C3nuvG7q8FM9INe5W/CBNXNUnIC2BDSprKq58N+m6ujOFxO+FirfIZPFWuTjjIGBQEw==","shasum":"fe9bd32fb3048b2354a01d9997362ee5ef0443be","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-3.0.0-beta.12.tgz","fileCount":92,"unpackedSize":1557726,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2LA20DTJ598aYRNNO4wrT01fxTB2YidWl8ZQATR00eQIgVV8szaEot5nQxtfc71PJKqjMCQ64s+pp0KrjYEgyVe8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjf4QZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr5LQ/+JiL64XdqlrSHQHJV++gx5aPR9u1l5xfKQuqIQuIr4aYDMV6c\r\nr0CPAWWEMknUh3wQ8Il+dEMwtMFhDddivp2zBfXRsR9GYLb+A48c3zP8wEkl\r\n66MKPEhDH9Vth6iK8BIvcvFT038M4nYPR934C5T+QyM7Y9Nt3P3yG2vSkTMo\r\nj2yP4Z7a0n2Ieu67K9VSEicQhWm9qj6eRGkqNh79gjI6wDSO4W/8MCgFGAWq\r\nFMoC+Y7QNSqfeBReGlpIQDg2dusm1+GMTjjBgDf1oB1xtCEcBZS/ttwSs/y8\r\n4VdlNGFhJHluHaWOcrqt1A4b5CLScygrpZ0l1W0lMtmphRUrW0KADN8AYwdc\r\n7d/vysVyQaMlY11+quahC1wRLlfhk8MBVQ05UZb5MA6kvKgYjQUe2t11NVgE\r\nt0pm+NuAURebQWfZmrRDvs2boInJKl2XWieLUSevOWpgDCdy8edM62rzIjyO\r\nlHY7r30w7c1gy3tQvaj9obXgOijlkU+U0Now+sWAcW9wkV8x7ezbnC4bijdP\r\nnjF6HUPWPje+tgr+x9ybqM+9NA66+BND6CtyGA2AMzoIRMvsEYrwWh82V7fZ\r\nKO2USm3azBTJhm7yBFHRguKd+oQXJ/vpX3ApzyShuUgfASIMIDinx2IslXUD\r\nCKsdhHtAAVj9/cqgPH1DMMD2FUPiqfI1QTU=\r\n=YiEp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jackcom","email":"1mrjackdaw@gmail.com"},"directories":{},"maintainers":[{"name":"jackcom","email":"1mrjackdaw@gmail.com"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"},{"name":"danburton","email":"danburton.email@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_3.0.0-beta.12_1669301273370_0.3180040100183734"},"_hasShrinkwrap":false},"3.0.0-beta.13":{"name":"@reach-sh/humble-sdk","version":"3.0.0-beta.13","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","compress":"make compress","build":"rm -rf lib/ && tsc && make compress","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2","uglify-js":"^3.17.1"},"dependencies":{"@reach-sh/stdlib":"0.1.12-rc.9","axios":"^0.27.2","reach-edge":"npm:@reach-sh/stdlib@latest"},"readme":"# HumbleSDK v2.0.0\n\n<header>\n  <img src=\"./logo-white.svg\" width=\"80\" height=\"auto\">\n</header>\n\nA Javascript library for interacting with the [HumbleSwap DEx](https://app.humble.sh).\n\n- [HumbleSDK v2.0.0](#humblesdk-v200)\n  - [Documentation](#documentation)\n  - [v2 Changes](#v2-changes)\n  - [Installing the SDK](#installing-the-sdk)\n    - [Option 1. NPM (recommended)](#option-1-npm-recommended)\n    - [Option 2. Cloning the repo directly](#option-2-cloning-the-repo-directly)\n  - [Example Usage](#example-usage)\n    - [Subscribing to a stream of **Liquidity Pool** data](#subscribing-to-a-stream-of-liquidity-pool-data)\n    - [**Swapping** between a pair of tokens](#swapping-between-a-pair-of-tokens)\n  - [Local Testing](#local-testing)\n\n---\n## Documentation\nDocumentation has moved [here](https://reach-sh.github.io/humble-sdk/).\n\n--- \n\n## v2 Changes \n`v2` introduces a few changes and adds new functionality, including staking pools. Some functions may have been renamed: review changes in our [changelog](./CHANGELOG.md), and view our [documentation](https://reach-sh.github.io/humble-sdk/) for additional info.\n\n--- \n\n## Installing the SDK\n### Option 1. NPM (recommended)\nThe fastest way is to use `npm`:\n```bash\n$. npm i -s @reach-sh/humble-sdk\n```\n\n### Option 2. Cloning the repo directly\nTo get started without NPM, you can clone and build the SDK from the repository. \n```bash\n# Clone the repository \n$. git clone https://github.com/reach-sh/humble-sdk.git\n\n# Enter the directory with the repo (replace with path to your repository clone)\n$. cd path/to/humble-sdk \n\n# and install dependencies (there aren't a lot)\n$. npm install\n\n# Build the SDK. Will output to a ./lib directory in the same folder as the \n# package.json file. This takes seconds and doesn't output anything to your terminal.\n$. npm run build\n``` \nYou will know it is complete when your (terminal's) typing prompt reappears.\\\nThen, as a **FINAL STEP**, copy or move the new `lib/` directory into your project. This will allow you to access it like any other JS module:\n\n```typescript\nimport { initHumbleSDK } from \"path/to/lib\";\n```\n\n---\n\n## Example Usage\n\n### Subscribing to a stream of **Liquidity Pool** data\n```typescript\nimport { subscribeToPoolStream, createReachAPI } from \"@reach-sh/humble-sdk\";\n\nconst stdlib = createReachAPI();\nconst acc = await stdlib.createAccount();\n\n// Fetch existing streams and get notified when a new one is created\nsubscribeToPoolStream(acc, {\n    // Pool ID (and id of pool tokens) received from contract.\n    // Pool data has NOT been fetched yet.\n    onPoolReceived: (info) => { \n        const [poolAddr, tokenAId, tokenBId] = info;\n        // ... do something with data\n     },\n\n    // Pool and Token data has been received from network. \n    onPoolFetched: (result: FetchPoolTxnResult) => { \n        const { succeeded, poolAddress, data, message } = result;\n        if (succeeded) // ... do something with data\n     }\n})\n```\n\n\n### **Swapping** between a pair of tokens\n> **Note:** Swapping does not use routing. Read the [docs](https://reach-sh.github.io/humble-sdk/) to learn how to fetch pools for DEx operations.\n```typescript\nimport { calculateTokenSwap, performSwap } from \"@reach-sh/humble-sdk\";\n\nconst pool = /* pool source */\n\n// Calculate expected swap output\nconst { tokenAId, tokenBId } = pool;\nconst amountA = 100;\nconst swap = calculateTokenSwap({ \n    pool, \n    swap: { amountA, tokenAId, tokenBId } \n});\n\n// Perform swap\nconst swapOpts = { poolAddress: pool.poolAddress, swap, pool };\nconst { data, message, succeeded } = await performSwap(acc, swapOpts);\n// if (succeeded) data == { amountIn: string; amountOut: string }\n```\n\n--- \n\n## Local Testing\nThe `humble-sdk` contains some helper scripts for running the SDK on a command line. See more [**here**](./cli/README.md)\n","readmeFilename":"README.md","gitHead":"c0efb9d34ea3b71d1413f6d2f605a238dbc1c2f2","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@3.0.0-beta.13","_nodeVersion":"19.1.0","_npmVersion":"9.1.2","dist":{"integrity":"sha512-X9OXNkOVDxOYoBPU13JuPmSN/u50RnfrsB9Q9+o2JP1bvtcxXgmaQfgXpvoqJnGhXMwzOFtz0L1xQsg2MP/Y1A==","shasum":"b8bd7ce5e38247bdcca54b15cc268178d5ce0d64","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-3.0.0-beta.13.tgz","fileCount":104,"unpackedSize":1668795,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA+iuf7IPb9kYe81nDPCPS/1Dkffg0Lud7VWA6b8HnqFAiEAkNY5H8SwOf9klBpnbv1/MxPXyeU6pd4CSs48wobWCZM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjl0xbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrgIQ/9EREH8+U02ys51nFLrHnpNnJKYdf5pLrjL5OXTMda/esjHUV7\r\n2znLVJKozspFbaNRD4yXlgIlGPNN2WMXxHYPSyL4YsbZtK6/++CixC8KUGmu\r\n5Fv6aV196ONbb7dC/Qa0/fPpq/sOtkHY93/aOU4higlIIyRYlH2BbAPOwcd/\r\n1XYNnLjox8bJoIb0BaH3AjZd4YWTm21loswa23FUV0ryPxIwZOS2BCdPTnU+\r\nsCmFJWWU/2IfCXgDcgR8fkdJr6Hma6SEelJruJcvrtfLD4PohxCSm0JdZBIh\r\nn0zfUB1ndEpjyheb+BUTlLcXi6s/2cB3B+xPgoyjpvYH3XDi9uwas8PtRSHA\r\nFZsLurMkLNmZDgL2c53xWG3QFNZfv7xilB0B1F9/qdIXLtZpZ9LS7/EaNkM9\r\nt7YkR+mstqBWMrykZltSexq5tCHHUfjKfgx2cAg323fIqRBLubfwU9R7ChlP\r\nKBLOETtmgHnVgGv00eoavdvfXG84eZoRO3nTVf/QR5ZtOZzBWXSFYlD+TpC0\r\nhlYY1Nz+ZVO3jpfzlv9Tsr7FgsSDp4JvyJxegQ2xmuLVbeL1VObzp8oA5XqV\r\nqzNOJLv7USNpA/v8jdHhdBMIBz/RekUbn+tys6w5GehIDVCTocV3FlA5A6y2\r\nh7buo+kNK784XDZV1RiYeYcja66P1mesyHI=\r\n=Mg2B\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jackcom","email":"1mrjackdaw@gmail.com"},"directories":{},"maintainers":[{"name":"jackcom","email":"1mrjackdaw@gmail.com"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"},{"name":"danburton","email":"danburton.email@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_3.0.0-beta.13_1670859866979_0.89299298902315"},"_hasShrinkwrap":false},"3.0.0-beta.14":{"name":"@reach-sh/humble-sdk","version":"3.0.0-beta.14","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","compress":"make compress","build":"rm -rf lib/ && tsc && make compress","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2","uglify-js":"^3.17.1"},"dependencies":{"@reach-sh/stdlib":"0.1.12-rc.9","axios":"^0.27.2","reach-edge":"npm:@reach-sh/stdlib@latest"},"readme":"# HumbleSDK v2.0.0\n\n<header>\n  <img src=\"./logo-white.svg\" width=\"80\" height=\"auto\">\n</header>\n\nA Javascript library for interacting with the [HumbleSwap DEx](https://app.humble.sh).\n\n- [HumbleSDK v2.0.0](#humblesdk-v200)\n  - [Documentation](#documentation)\n  - [v2 Changes](#v2-changes)\n  - [Installing the SDK](#installing-the-sdk)\n    - [Option 1. NPM (recommended)](#option-1-npm-recommended)\n    - [Option 2. Cloning the repo directly](#option-2-cloning-the-repo-directly)\n  - [Example Usage](#example-usage)\n    - [Subscribing to a stream of **Liquidity Pool** data](#subscribing-to-a-stream-of-liquidity-pool-data)\n    - [**Swapping** between a pair of tokens](#swapping-between-a-pair-of-tokens)\n  - [Local Testing](#local-testing)\n\n---\n## Documentation\nDocumentation has moved [here](https://reach-sh.github.io/humble-sdk/).\n\n--- \n\n## v2 Changes \n`v2` introduces a few changes and adds new functionality, including staking pools. Some functions may have been renamed: review changes in our [changelog](./CHANGELOG.md), and view our [documentation](https://reach-sh.github.io/humble-sdk/) for additional info.\n\n--- \n\n## Installing the SDK\n### Option 1. NPM (recommended)\nThe fastest way is to use `npm`:\n```bash\n$. npm i -s @reach-sh/humble-sdk\n```\n\n### Option 2. Cloning the repo directly\nTo get started without NPM, you can clone and build the SDK from the repository. \n```bash\n# Clone the repository \n$. git clone https://github.com/reach-sh/humble-sdk.git\n\n# Enter the directory with the repo (replace with path to your repository clone)\n$. cd path/to/humble-sdk \n\n# and install dependencies (there aren't a lot)\n$. npm install\n\n# Build the SDK. Will output to a ./lib directory in the same folder as the \n# package.json file. This takes seconds and doesn't output anything to your terminal.\n$. npm run build\n``` \nYou will know it is complete when your (terminal's) typing prompt reappears.\\\nThen, as a **FINAL STEP**, copy or move the new `lib/` directory into your project. This will allow you to access it like any other JS module:\n\n```typescript\nimport { initHumbleSDK } from \"path/to/lib\";\n```\n\n---\n\n## Example Usage\n\n### Subscribing to a stream of **Liquidity Pool** data\n```typescript\nimport { subscribeToPoolStream, createReachAPI } from \"@reach-sh/humble-sdk\";\n\nconst stdlib = createReachAPI();\nconst acc = await stdlib.createAccount();\n\n// Fetch existing streams and get notified when a new one is created\nsubscribeToPoolStream(acc, {\n    // Pool ID (and id of pool tokens) received from contract.\n    // Pool data has NOT been fetched yet.\n    onPoolReceived: (info) => { \n        const [poolAddr, tokenAId, tokenBId] = info;\n        // ... do something with data\n     },\n\n    // Pool and Token data has been received from network. \n    onPoolFetched: (result: FetchPoolTxnResult) => { \n        const { succeeded, poolAddress, data, message } = result;\n        if (succeeded) // ... do something with data\n     }\n})\n```\n\n\n### **Swapping** between a pair of tokens\n> **Note:** Swapping does not use routing. Read the [docs](https://reach-sh.github.io/humble-sdk/) to learn how to fetch pools for DEx operations.\n```typescript\nimport { calculateTokenSwap, performSwap } from \"@reach-sh/humble-sdk\";\n\nconst pool = /* pool source */\n\n// Calculate expected swap output\nconst { tokenAId, tokenBId } = pool;\nconst amountA = 100;\nconst swap = calculateTokenSwap({ \n    pool, \n    swap: { amountA, tokenAId, tokenBId } \n});\n\n// Perform swap\nconst swapOpts = { poolAddress: pool.poolAddress, swap, pool };\nconst { data, message, succeeded } = await performSwap(acc, swapOpts);\n// if (succeeded) data == { amountIn: string; amountOut: string }\n```\n\n--- \n\n## Local Testing\nThe `humble-sdk` contains some helper scripts for running the SDK on a command line. See more [**here**](./cli/README.md)\n","readmeFilename":"README.md","gitHead":"67fd5391ab1b8d973c92e9011a0b4670c3273a5f","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@3.0.0-beta.14","_nodeVersion":"19.1.0","_npmVersion":"9.1.2","dist":{"integrity":"sha512-fI4HP1fSOd0NG1BPC5C5SbVwUNSh7ykf4/VvBaEUAP7JL/2T6vC/VLO6pU49IgM/l+AAzRggo61gbYK7r7oDZg==","shasum":"bb8431b2665eafd808ac82fef3a5a426dca63e32","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-3.0.0-beta.14.tgz","fileCount":104,"unpackedSize":1669162,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCfLxwZ5jhI5x/JdBEzK9Ppl3h+coxoSXUcKHolZCLsYgIhAJpgiEEpb/tkwhe5HC/av/Div18RZcrD+/WlkXnivZ4d"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjqv1NACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpK2xAAmczb0WduVGG52WJu9cVVnHrBH7J54DRa1obOwAyouLDC1wfO\r\nDw5h3x2n0QCdp+XCUYB0RDD1PCjiULmKZ2ToSbAtalqxlX7dFd0RHfNltKjW\r\nTqIYJ1657UYUBxjF3uz1wGEiWlpyYZGUrMYhlAp75CYzEQa/D6ZYiCcya5wT\r\nM9az+wkZAOyx0TG20cODrCRd4cTsjuTEMU5h//kdfBDj1VAQvIz4bxg1iOIT\r\nvemLj/WHYIIts38LeGPlEzRxIPyiFJVKfJs9vUEy4gCpXSVFErDLyvJ8/Obo\r\nXtEvGaNzOe8DDGTe6LVbqxAQ+ARqzPz4IMUehC7JnCDYMjdqP3KyHIsZvjga\r\n6cicyyCMbwSZ3ltxy8lEQG0YPj82MbQnLkxSY5pbA+skq/o9LW4189WEpopK\r\n2hWMilETShvvCk0D5Ju0z2LqWvFH4Eo34nT1kSRH5/rKLXwlwfjsyRN/OChg\r\nqiq9AmwpJYfHmtTB8NHfJSrBObXRoJavEg4a2b3QKwp3Rm5ttPejuuC9X4/B\r\nM22VbfErdJG5lTOH9h3X31LFWGUODX0WYMyym+DvONiIIJYwGsGNOhVXsphm\r\nrnG3Nr6K/XDMYMPTF+JLioz9xtFRDDlYeTpcSvcMjB6aRFA4vHwm66XibRRS\r\n1HeSgq8wwmwxqQ+gw2w1ky21w+RgZOar9NY=\r\n=JccA\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jackcom","email":"1mrjackdaw@gmail.com"},"directories":{},"maintainers":[{"name":"jackcom","email":"1mrjackdaw@gmail.com"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"},{"name":"danburton","email":"danburton.email@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_3.0.0-beta.14_1672150349340_0.6368162146675682"},"_hasShrinkwrap":false},"3.0.0-beta.17":{"name":"@reach-sh/humble-sdk","version":"3.0.0-beta.17","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","compress":"make compress","build":"rm -rf lib/ && tsc && make compress","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.20.2","@babel/preset-typescript":"^7.18.6","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^29.2.6","@types/node":"^18.11.18","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2","uglify-js":"^3.17.1"},"dependencies":{"@reach-sh/stdlib":"0.1.13-rc.0","axios":"^0.27.2","tslib":"^2.4.1"},"readme":"# HumbleSDK v2.0.0\n\n<header>\n  <img src=\"./logo-white.svg\" width=\"80\" height=\"auto\">\n</header>\n\nA Javascript library for interacting with the [HumbleSwap DEx](https://app.humble.sh).\n\n- [HumbleSDK v2.0.0](#humblesdk-v200)\n  - [Documentation](#documentation)\n  - [v2 Changes](#v2-changes)\n  - [Installing the SDK](#installing-the-sdk)\n    - [Option 1. NPM (recommended)](#option-1-npm-recommended)\n    - [Option 2. Cloning the repo directly](#option-2-cloning-the-repo-directly)\n  - [Example Usage](#example-usage)\n    - [Subscribing to a stream of **Liquidity Pool** data](#subscribing-to-a-stream-of-liquidity-pool-data)\n    - [**Swapping** between a pair of tokens](#swapping-between-a-pair-of-tokens)\n  - [Local Testing](#local-testing)\n\n---\n## Documentation\nDocumentation has moved [here](https://reach-sh.github.io/humble-sdk/).\n\n--- \n\n## v2 Changes \n`v2` introduces a few changes and adds new functionality, including staking pools. Some functions may have been renamed: review changes in our [changelog](./CHANGELOG.md), and view our [documentation](https://reach-sh.github.io/humble-sdk/) for additional info.\n\n--- \n\n## Installing the SDK\n### Option 1. NPM (recommended)\nThe fastest way is to use `npm`:\n```bash\n$. npm i -s @reach-sh/humble-sdk\n```\n\n### Option 2. Cloning the repo directly\nTo get started without NPM, you can clone and build the SDK from the repository. \n```bash\n# Clone the repository \n$. git clone https://github.com/reach-sh/humble-sdk.git\n\n# Enter the directory with the repo (replace with path to your repository clone)\n$. cd path/to/humble-sdk \n\n# and install dependencies (there aren't a lot)\n$. npm install\n\n# Build the SDK. Will output to a ./lib directory in the same folder as the \n# package.json file. This takes seconds and doesn't output anything to your terminal.\n$. npm run build\n``` \nYou will know it is complete when your (terminal's) typing prompt reappears.\\\nThen, as a **FINAL STEP**, copy or move the new `lib/` directory into your project. This will allow you to access it like any other JS module:\n\n```typescript\nimport { initHumbleSDK } from \"path/to/lib\";\n```\n\n---\n\n## Example Usage\n\n### Subscribing to a stream of **Liquidity Pool** data\n```typescript\nimport { subscribeToPoolStream, createReachAPI } from \"@reach-sh/humble-sdk\";\n\nconst stdlib = createReachAPI();\nconst acc = await stdlib.createAccount();\n\n// Fetch existing streams and get notified when a new one is created\nsubscribeToPoolStream(acc, {\n    // Pool ID (and id of pool tokens) received from contract.\n    // Pool data has NOT been fetched yet.\n    onPoolReceived: (info) => { \n        const [poolAddr, tokenAId, tokenBId] = info;\n        // ... do something with data\n     },\n\n    // Pool and Token data has been received from network. \n    onPoolFetched: (result: FetchPoolTxnResult) => { \n        const { succeeded, poolAddress, data, message } = result;\n        if (succeeded) // ... do something with data\n     }\n})\n```\n\n\n### **Swapping** between a pair of tokens\n> **Note:** Swapping does not use routing. Read the [docs](https://reach-sh.github.io/humble-sdk/) to learn how to fetch pools for DEx operations.\n```typescript\nimport { calculateTokenSwap, performSwap } from \"@reach-sh/humble-sdk\";\n\nconst pool = /* pool source */\n\n// Calculate expected swap output\nconst { tokenAId, tokenBId } = pool;\nconst amountA = 100;\nconst swap = calculateTokenSwap({ \n    pool, \n    swap: { amountA, tokenAId, tokenBId } \n});\n\n// Perform swap\nconst swapOpts = { poolAddress: pool.poolAddress, swap, pool };\nconst { data, message, succeeded } = await performSwap(acc, swapOpts);\n// if (succeeded) data == { amountIn: string; amountOut: string }\n```\n\n--- \n\n## Local Testing\nThe `humble-sdk` contains some helper scripts for running the SDK on a command line. See more [**here**](./cli/README.md)\n","readmeFilename":"README.md","gitHead":"8fe8219698a165423e607a4f231b971a09909860","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@3.0.0-beta.17","_nodeVersion":"19.4.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-Y4hXlgAWq4y7/5sKQPP/oxSnPOzCKcMc7BuVkJapzxzg5wMPM59knggX+19Q/O+lLV4IHUXNJ3TXu95yw8c3Zg==","shasum":"3a65235aa253139e08afa2d294995ee82a313344","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-3.0.0-beta.17.tgz","fileCount":104,"unpackedSize":2341893,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7z8oIv0KiOrWIKXPDrwjdJ4uL8mSPqFrIg9FS5g6aGgIhAKfTulebs5cwH/6YavpgcYwRoX7IDf2QoYWqM25Rm21X"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj0rAbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqRFQ//cUtAKQYwBBNuYGy27jrdSShmg3BoQ+oSnEGd6/wJq1geBzdT\r\nAyKzMV6Uy0PSinRDg+9OvpFv/YoiGlQOruc51+GOmAMpS14PluWQbs8IHgq1\r\ng+xo93Ex/e7FDSKoghjMzeXqxc1+3t6px6BP9x+Buqy/fFh03RioVULJKN/s\r\nZtdMKZ47YEA9MzzonvGAjRo/rxQ90Tw/MEFlTyev9yhRmi6QRIBUl1FgrwhR\r\ngbYCkNIu0GxXm5IP3mZL8149/lO1ytZ/LslEURG7+Jgv+SfftqNMHvqG+cv0\r\neXUKBgQGM9NpcCThjuvkyJ6zWKFNcz2IiHeWx/nO+YiusB4cD19/vhjuHWuq\r\nXMXG9CPC8xfku2OCayC5r0BWHZ5yxO82GxLPckzHf/dkXhzQfvDw1HCT3VVR\r\nHEph7KqnjLgUmFGIknh4Af+v/ufyUPLXGx+PJZLc1V/9RTPjqBSmQ04ltcrC\r\nRexn3jGPZILGHRIb9WTU75UrTH65PKPZ/I6v914EbzM2II5s+BZu3gOtn9DQ\r\nRwfJh5x4r+CAQPBLR8u/t4nq09nwp5YbGV2mlu4IkaCnN7BAZ8S6Fd5QbLVV\r\nhfAIg9EA/9XsbDjPimDzGatPmdO/1e+1E6MAIB0S/39wkexQaaVVq7IFTijC\r\np2/oRh9aHPIrFxJ7zJMas4boXavOookV+6s=\r\n=ARFd\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jackcom","email":"1mrjackdaw@gmail.com"},"directories":{},"maintainers":[{"name":"jackcom","email":"1mrjackdaw@gmail.com"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_3.0.0-beta.17_1674752027000_0.8863087883119196"},"_hasShrinkwrap":false},"3.0.0-beta.18":{"name":"@reach-sh/humble-sdk","version":"3.0.0-beta.18","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","compress":"make compress","build":"rm -rf lib/ && tsc && make compress","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.20.2","@babel/preset-typescript":"^7.18.6","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^29.2.6","@types/node":"^18.11.18","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2","uglify-js":"^3.17.1"},"dependencies":{"@reach-sh/stdlib":"0.1.13-rc.0","axios":"^0.27.2","tslib":"^2.4.1"},"readme":"# HumbleSDK v2.0.0\n\n<header>\n  <img src=\"./logo-white.svg\" width=\"80\" height=\"auto\">\n</header>\n\nA Javascript library for interacting with the [HumbleSwap DEx](https://app.humble.sh).\n\n- [HumbleSDK v2.0.0](#humblesdk-v200)\n  - [Documentation](#documentation)\n  - [v2 Changes](#v2-changes)\n  - [Installing the SDK](#installing-the-sdk)\n    - [Option 1. NPM (recommended)](#option-1-npm-recommended)\n    - [Option 2. Cloning the repo directly](#option-2-cloning-the-repo-directly)\n  - [Example Usage](#example-usage)\n    - [Subscribing to a stream of **Liquidity Pool** data](#subscribing-to-a-stream-of-liquidity-pool-data)\n    - [**Swapping** between a pair of tokens](#swapping-between-a-pair-of-tokens)\n  - [Local Testing](#local-testing)\n\n---\n## Documentation\nDocumentation has moved [here](https://reach-sh.github.io/humble-sdk/).\n\n--- \n\n## v2 Changes \n`v2` introduces a few changes and adds new functionality, including staking pools. Some functions may have been renamed: review changes in our [changelog](./CHANGELOG.md), and view our [documentation](https://reach-sh.github.io/humble-sdk/) for additional info.\n\n--- \n\n## Installing the SDK\n### Option 1. NPM (recommended)\nThe fastest way is to use `npm`:\n```bash\n$. npm i -s @reach-sh/humble-sdk\n```\n\n### Option 2. Cloning the repo directly\nTo get started without NPM, you can clone and build the SDK from the repository. \n```bash\n# Clone the repository \n$. git clone https://github.com/reach-sh/humble-sdk.git\n\n# Enter the directory with the repo (replace with path to your repository clone)\n$. cd path/to/humble-sdk \n\n# and install dependencies (there aren't a lot)\n$. npm install\n\n# Build the SDK. Will output to a ./lib directory in the same folder as the \n# package.json file. This takes seconds and doesn't output anything to your terminal.\n$. npm run build\n``` \nYou will know it is complete when your (terminal's) typing prompt reappears.\\\nThen, as a **FINAL STEP**, copy or move the new `lib/` directory into your project. This will allow you to access it like any other JS module:\n\n```typescript\nimport { initHumbleSDK } from \"path/to/lib\";\n```\n\n---\n\n## Example Usage\n\n### Subscribing to a stream of **Liquidity Pool** data\n```typescript\nimport { subscribeToPoolStream, createReachAPI } from \"@reach-sh/humble-sdk\";\n\nconst stdlib = createReachAPI();\nconst acc = await stdlib.createAccount();\n\n// Fetch existing streams and get notified when a new one is created\nsubscribeToPoolStream(acc, {\n    // Pool ID (and id of pool tokens) received from contract.\n    // Pool data has NOT been fetched yet.\n    onPoolReceived: (info) => { \n        const [poolAddr, tokenAId, tokenBId] = info;\n        // ... do something with data\n     },\n\n    // Pool and Token data has been received from network. \n    onPoolFetched: (result: FetchPoolTxnResult) => { \n        const { succeeded, poolAddress, data, message } = result;\n        if (succeeded) // ... do something with data\n     }\n})\n```\n\n\n### **Swapping** between a pair of tokens\n> **Note:** Swapping does not use routing. Read the [docs](https://reach-sh.github.io/humble-sdk/) to learn how to fetch pools for DEx operations.\n```typescript\nimport { calculateTokenSwap, performSwap } from \"@reach-sh/humble-sdk\";\n\nconst pool = /* pool source */\n\n// Calculate expected swap output\nconst { tokenAId, tokenBId } = pool;\nconst amountA = 100;\nconst swap = calculateTokenSwap({ \n    pool, \n    swap: { amountA, tokenAId, tokenBId } \n});\n\n// Perform swap\nconst swapOpts = { poolAddress: pool.poolAddress, swap, pool };\nconst { data, message, succeeded } = await performSwap(acc, swapOpts);\n// if (succeeded) data == { amountIn: string; amountOut: string }\n```\n\n--- \n\n## Local Testing\nThe `humble-sdk` contains some helper scripts for running the SDK on a command line. See more [**here**](./cli/README.md)\n","readmeFilename":"README.md","gitHead":"41d8cec2a82cd03f544cdd777a5ae2d952f1daa1","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@3.0.0-beta.18","_nodeVersion":"19.5.0","_npmVersion":"9.3.1","dist":{"integrity":"sha512-ia7foH+VLRzu7Z7NSo6HQRQAFGdpTpEJnBx4pilLwYnwSYuygB3McIagNQySKcgBE8JBxbNdqA0wVBEbSQTVKQ==","shasum":"c2eaa9146ae62f4f512f1fd14e3d4ea861734cc4","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-3.0.0-beta.18.tgz","fileCount":106,"unpackedSize":2345263,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxWTbbJurzZUOQjbl4tA1SxncHhd/L/mC3e50zLs1xpwIhAIiGNMBQmi2r1EMEa4samNz54wDD4iIAaa8essx0ggq2"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj27E5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqXiQ/8CN+gol1j621Ujp1CG0xq89U6HAbPWe5C+/nl7WG8Ow+4LTdy\r\nEyGxHR9HZA3n1k8WP8bFV91nGA52FvCABg/m2PyzuNF8tYlgDhDf7PFXl6ES\r\n1vk2Jnim1aJDYKxkJq2SeeRGyZn2G3b6RhEWGKnZSWOj1q26UAlmFDVR/9qZ\r\nCI6OhEr5UPJH/+QaJM3kyMfhUPItMsYGuJXZobqSCYDb+R0x+aVPYXLvthcx\r\ndLVvMD/TvUm+Qge5alOaCSd3q9PLmIaYY6fgFc2HUEI1aGB9NeDBrk9S7bj8\r\n2fEm+MISq0nivgK0JM2gSUzfuqME2spzgkiher2ry7EvuFloHHWvi6jQVBx2\r\nxOamgCmW8TjSYdHSBOxAHTYZioH6F8L818QKn/+cwEynK27zp56rEHodpVm6\r\n1QDRmEYHM/OtMhMx9hSRsT/HA/xxgW2bMBcESQS6XLdVvp11wvuVcROxM7p3\r\npYb9Ren3WQYfSOaDqImh4pPFY62etk34RL2/gkRVi3cj4e/YmtNHrZAjTBt/\r\nWKzLx4YXLyS63xZMjzm2JlZpJKK+zTM1emvonpTl7OVOSwfr2+uwfeQL4IXh\r\nQhTF8hmPhK74GN83pdUR2rMmelgWODYFeZad6JOooZORUzCjebxOGLsKkLPR\r\nPMz6vw8AORaoUuSPpXVgFRLfVX6QcIf65VM=\r\n=UJQ5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jackcom","email":"1mrjackdaw@gmail.com"},"directories":{},"maintainers":[{"name":"jackcom","email":"1mrjackdaw@gmail.com"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_3.0.0-beta.18_1675342136908_0.4187838305127116"},"_hasShrinkwrap":false},"2.1.3":{"name":"@reach-sh/humble-sdk","version":"2.1.3","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","compress":"make compress","build":"rm -rf lib/ && tsc && make compress","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2","uglify-js":"^3.17.1"},"dependencies":{"@reach-sh/stdlib":"0.1.10-rc.6","axios":"^0.27.2","reach-edge":"npm:@reach-sh/stdlib@^0.1.12-rc.0"},"gitHead":"b1a5b312a75fe3cff7d062f0ba1913a0f9340549","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@2.1.3","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"integrity":"sha512-4TaMiW5gJMbA7jg7d+4dLAZL2SpxXeN5MOaMUdbQnWw9IviJu0wkEtM+IlMcAFtMDE/UevC4npecsajqaXfoTQ==","shasum":"b35288d70dc6cfaa7e74740f7cfc707c2f88091c","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-2.1.3.tgz","fileCount":74,"unpackedSize":967454,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGAI9/cYe2LnSWRin7p4oEGa7i7HYe3u1L8xMFUBt1u+AiBCB1u1PjfP8sQo0wFVFCSqw29DMMUnqUBw53wDXjZZLg=="}]},"_npmUser":{"name":"nshellabarger","email":"nshellabarger@reach.sh"},"directories":{},"maintainers":[{"name":"nshellabarger","email":"nshellabarger@reach.sh"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_2.1.3_1693200363025_0.207099213205449"},"_hasShrinkwrap":false},"3.0.0-beta.19":{"name":"@reach-sh/humble-sdk","version":"3.0.0-beta.19","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","compress":"make compress","build":"rm -rf lib/ && tsc && make compress","preview":"npm run build && npm pack && rm -rf *.tgz","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.20.2","@babel/preset-typescript":"^7.18.6","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^29.2.6","@types/node":"^18.11.18","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2","uglify-js":"^3.17.1"},"dependencies":{"@reach-sh/stdlib":"0.1.13-rc.0","axios":"^0.27.2","tslib":"^2.4.1"},"readme":"# HumbleSDK v2.0.0\n\n<header>\n  <img src=\"./logo-white.svg\" width=\"80\" height=\"auto\">\n</header>\n\nA Javascript library for interacting with the [HumbleSwap DEx](https://app.humble.sh).\n\n- [HumbleSDK v2.0.0](#humblesdk-v200)\n  - [Documentation](#documentation)\n  - [v2 Changes](#v2-changes)\n  - [Installing the SDK](#installing-the-sdk)\n    - [Option 1. NPM (recommended)](#option-1-npm-recommended)\n    - [Option 2. Cloning the repo directly](#option-2-cloning-the-repo-directly)\n  - [Example Usage](#example-usage)\n    - [Subscribing to a stream of **Liquidity Pool** data](#subscribing-to-a-stream-of-liquidity-pool-data)\n    - [**Swapping** between a pair of tokens](#swapping-between-a-pair-of-tokens)\n  - [Local Testing](#local-testing)\n\n---\n## Documentation\nDocumentation has moved [here](https://reach-sh.github.io/humble-sdk/).\n\n--- \n\n## v2 Changes \n`v2` introduces a few changes and adds new functionality, including staking pools. Some functions may have been renamed: review changes in our [changelog](./CHANGELOG.md), and view our [documentation](https://reach-sh.github.io/humble-sdk/) for additional info.\n\n--- \n\n## Installing the SDK\n### Option 1. NPM (recommended)\nThe fastest way is to use `npm`:\n```bash\n$. npm i -s @reach-sh/humble-sdk\n```\n\n### Option 2. Cloning the repo directly\nTo get started without NPM, you can clone and build the SDK from the repository. \n```bash\n# Clone the repository \n$. git clone https://github.com/reach-sh/humble-sdk.git\n\n# Enter the directory with the repo (replace with path to your repository clone)\n$. cd path/to/humble-sdk \n\n# and install dependencies (there aren't a lot)\n$. npm install\n\n# Build the SDK. Will output to a ./lib directory in the same folder as the \n# package.json file. This takes seconds and doesn't output anything to your terminal.\n$. npm run build\n``` \nYou will know it is complete when your (terminal's) typing prompt reappears.\\\nThen, as a **FINAL STEP**, copy or move the new `lib/` directory into your project. This will allow you to access it like any other JS module:\n\n```typescript\nimport { initHumbleSDK } from \"path/to/lib\";\n```\n\n---\n\n## Example Usage\n\n### Subscribing to a stream of **Liquidity Pool** data\n```typescript\nimport { subscribeToPoolStream, createReachAPI } from \"@reach-sh/humble-sdk\";\n\nconst stdlib = createReachAPI();\nconst acc = await stdlib.createAccount();\n\n// Fetch existing streams and get notified when a new one is created\nsubscribeToPoolStream(acc, {\n    // Pool ID (and id of pool tokens) received from contract.\n    // Pool data has NOT been fetched yet.\n    onPoolReceived: (info) => { \n        const [poolAddr, tokenAId, tokenBId] = info;\n        // ... do something with data\n     },\n\n    // Pool and Token data has been received from network. \n    onPoolFetched: (result: FetchPoolTxnResult) => { \n        const { succeeded, poolAddress, data, message } = result;\n        if (succeeded) // ... do something with data\n     }\n})\n```\n\n\n### **Swapping** between a pair of tokens\n> **Note:** Swapping does not use routing. Read the [docs](https://reach-sh.github.io/humble-sdk/) to learn how to fetch pools for DEx operations.\n```typescript\nimport { calculateTokenSwap, performSwap } from \"@reach-sh/humble-sdk\";\n\nconst pool = /* pool source */\n\n// Calculate expected swap output\nconst { tokenAId, tokenBId } = pool;\nconst amountA = 100;\nconst swap = calculateTokenSwap({ \n    pool, \n    swap: { amountA, tokenAId, tokenBId } \n});\n\n// Perform swap\nconst swapOpts = { poolAddress: pool.poolAddress, swap, pool };\nconst { data, message, succeeded } = await performSwap(acc, swapOpts);\n// if (succeeded) data == { amountIn: string; amountOut: string }\n```\n\n--- \n\n## Local Testing\nThe `humble-sdk` contains some helper scripts for running the SDK on a command line. See more [**here**](./cli/README.md)\n","readmeFilename":"README.md","gitHead":"7297f614061b9ae1c6afbf84e0b2bbd1bb453226","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@3.0.0-beta.19","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"integrity":"sha512-chaXKo6RjZyzEVoSg0cbbM7Ht74N7gCiza+FYOtBtluedUtL+b9XEpJm7aXyLhAGDDTSZtBCGKPdWG82FbhlQA==","shasum":"c37174179454a5e45615fc798c8d2c882eb0b05f","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-3.0.0-beta.19.tgz","fileCount":103,"unpackedSize":2346069,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAPDwGUuy4e5/vQFkrwwZ+dAxCDEzTMUoix3KqprGq/fAiEA6Y6UrArsDm+O2FOkCSbNeAGCfssYKNK0PHMzpJ5CXY8="}]},"_npmUser":{"name":"nshellabarger","email":"nshellabarger@reach.sh"},"directories":{},"maintainers":[{"name":"nshellabarger","email":"nshellabarger@reach.sh"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_3.0.0-beta.19_1693597385822_0.23453659234772206"},"_hasShrinkwrap":false},"2.1.3-b":{"name":"@reach-sh/humble-sdk","version":"2.1.3-b","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","compress":"make compress","build":"rm -rf lib/ && tsc && make compress","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2","uglify-js":"^3.17.1"},"dependencies":{"@reach-sh/stdlib":"0.1.10-rc.6c","axios":"^0.27.2","reach-edge":"npm:@reach-sh/stdlib@^0.1.12-rc.0"},"readme":"# HumbleSDK v2.0.0\n\n<header>\n  <img src=\"./logo-white.svg\" width=\"80\" height=\"auto\">\n</header>\n\nA Javascript library for interacting with the [HumbleSwap DEx](https://app.humble.sh).\n\n- [HumbleSDK v2.0.0](#humblesdk-v200)\n  - [Documentation](#documentation)\n  - [v2 Changes](#v2-changes)\n  - [Installing the SDK](#installing-the-sdk)\n    - [Option 1. NPM (recommended)](#option-1-npm-recommended)\n    - [Option 2. Cloning the repo directly](#option-2-cloning-the-repo-directly)\n  - [Example Usage](#example-usage)\n    - [Subscribing to a stream of **Liquidity Pool** data](#subscribing-to-a-stream-of-liquidity-pool-data)\n    - [**Swapping** between a pair of tokens](#swapping-between-a-pair-of-tokens)\n  - [Local Testing](#local-testing)\n\n---\n## Documentation\nDocumentation has moved [here](https://reach-sh.github.io/humble-sdk/).\n\n--- \n\n## v2 Changes \n`v2` introduces a few changes and adds new functionality, including staking pools. Some functions may have been renamed: review changes in our [changelog](./CHANGELOG.md), and view our [documentation](https://reach-sh.github.io/humble-sdk/) for additional info.\n\n--- \n\n## Installing the SDK\n### Option 1. NPM (recommended)\nThe fastest way is to use `npm`:\n```bash\n$. npm i -s @reach-sh/humble-sdk\n```\n\n### Option 2. Cloning the repo directly\nTo get started without NPM, you can clone and build the SDK from the repository. \n```bash\n# Clone the repository \n$. git clone https://github.com/reach-sh/humble-sdk.git\n\n# Enter the directory with the repo (replace with path to your repository clone)\n$. cd path/to/humble-sdk \n\n# and install dependencies (there aren't a lot)\n$. npm install\n\n# Build the SDK. Will output to a ./lib directory in the same folder as the \n# package.json file. This takes seconds and doesn't output anything to your terminal.\n$. npm run build\n``` \nYou will know it is complete when your (terminal's) typing prompt reappears.\\\nThen, as a **FINAL STEP**, copy or move the new `lib/` directory into your project. This will allow you to access it like any other JS module:\n\n```typescript\nimport { initHumbleSDK } from \"path/to/lib\";\n```\n\n---\n\n## Example Usage\n\n### Subscribing to a stream of **Liquidity Pool** data\n```typescript\nimport { subscribeToPoolStream, createReachAPI } from \"@reach-sh/humble-sdk\";\n\nconst stdlib = createReachAPI();\nconst acc = await stdlib.createAccount();\n\n// Fetch existing streams and get notified when a new one is created\nsubscribeToPoolStream(acc, {\n    // Pool ID (and id of pool tokens) received from contract.\n    // Pool data has NOT been fetched yet.\n    onPoolReceived: (info) => { \n        const [poolAddr, tokenAId, tokenBId] = info;\n        // ... do something with data\n     },\n\n    // Pool and Token data has been received from network. \n    onPoolFetched: (result: FetchPoolTxnResult) => { \n        const { succeeded, poolAddress, data, message } = result;\n        if (succeeded) // ... do something with data\n     }\n})\n```\n\n\n### **Swapping** between a pair of tokens\n> **Note:** Swapping does not use routing. Read the [docs](https://reach-sh.github.io/humble-sdk/) to learn how to fetch pools for DEx operations.\n```typescript\nimport { calculateTokenSwap, performSwap } from \"@reach-sh/humble-sdk\";\n\nconst pool = /* pool source */\n\n// Calculate expected swap output\nconst { tokenAId, tokenBId } = pool;\nconst amountA = 100;\nconst swap = calculateTokenSwap({ \n    pool, \n    swap: { amountA, tokenAId, tokenBId } \n});\n\n// Perform swap\nconst swapOpts = { poolAddress: pool.poolAddress, swap, pool };\nconst { data, message, succeeded } = await performSwap(acc, swapOpts);\n// if (succeeded) data == { amountIn: string; amountOut: string }\n```\n\n--- \n\n## Local Testing\nThe `humble-sdk` contains some helper scripts for running the SDK on a command line. See more [**here**](./cli/README.md)\n","readmeFilename":"README.md","gitHead":"7b8ea7d4acf1daa12722122521e26830b7339aaa","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@2.1.3-b","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"integrity":"sha512-Qyejovy00JYPdZ6ysGwem5JN61ZYrlmV1MUG0P+fWll/i7JTDU+IdGk15h9xvzBYSHaoo3omimwUbNS35fjL1A==","shasum":"67ca23064af5c8fb820cb01bedf0936bbfc075f7","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-2.1.3-b.tgz","fileCount":74,"unpackedSize":968021,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEIACXkIY+XDlxKCZShHqRnB6b0WXjfspLW2462ZxEgqAiAnVkmIUilQ81lWARL9482nrU+YEAVewmeJu6v1wMaGsA=="}]},"_npmUser":{"name":"nshellabarger","email":"nshellabarger@reach.sh"},"directories":{},"maintainers":[{"name":"nshellabarger","email":"nshellabarger@reach.sh"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_2.1.3-b_1694104018240_0.6232926491913491"},"_hasShrinkwrap":false},"2.1.3-c":{"name":"@reach-sh/humble-sdk","version":"2.1.3-c","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","compress":"make compress","build":"rm -rf lib/ && tsc && make compress","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2","uglify-js":"^3.17.1"},"dependencies":{"@reach-sh/stdlib":"0.1.10-rc.6c","axios":"^0.27.2","reach-edge":"npm:@reach-sh/stdlib@^0.1.12-rc.0"},"gitHead":"db380c39a8eb7c39f79241591263eb49554dda32","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@2.1.3-c","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"integrity":"sha512-tiWabSYH44ilagAzTmeMzpO0mTJEVgx3Xq1Cqx78PSyzWBLXREn2Hjgs7Ea23uo3ICpWUI3+SGkxmNGOX1W+0A==","shasum":"26d91c50c8b7a1dd9d1bb69aa94aabe1d7091562","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-2.1.3-c.tgz","fileCount":74,"unpackedSize":967613,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCb1YCLSWDEeQlYWSQqexR5VYiSu/q0RGvKMKOxH9yOUwIhAPugW5ZUpvr151XmMJObA5QDVJdY+hAB1piJtOSrmSt6"}]},"_npmUser":{"name":"nshellabarger","email":"nshellabarger@reach.sh"},"directories":{},"maintainers":[{"name":"nshellabarger","email":"nshellabarger@reach.sh"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_2.1.3-c_1695420475063_0.11173825620596167"},"_hasShrinkwrap":false},"2.1.3-d":{"name":"@reach-sh/humble-sdk","version":"2.1.3-d","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","compress":"make compress","build":"rm -rf lib/ && tsc && make compress","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2","uglify-js":"^3.17.1"},"dependencies":{"@reach-sh/stdlib":"0.1.10-rc.6c","axios":"^0.27.2","reach-edge":"npm:@reach-sh/stdlib@^0.1.12-rc.0"},"gitHead":"4bb8c6eb5c82d26555aef48022c2acdefb329e0c","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@2.1.3-d","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"integrity":"sha512-L6zIE3R+Zskw3+sw9iiBdUBlVOMjMEKrb5LJ6+avSlJrXjPueIdxsRg0j+mzGCFL7maWxWjBniz3e4KrpG7YjA==","shasum":"fded9111b0165ed86fed5d03bf6acc514f06f515","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-2.1.3-d.tgz","fileCount":76,"unpackedSize":1219829,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCoCg2F5AiJohbXnPQR5dlY7WGEvESaiN6gcBGi+Zg//wIgG0w75ZnxN1UJ5r3JeVWfqg+SRrX7I/bDu1qnY1DVMdo="}]},"_npmUser":{"name":"nshellabarger","email":"nshellabarger@reach.sh"},"directories":{},"maintainers":[{"name":"nshellabarger","email":"nshellabarger@reach.sh"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_2.1.3-d_1696432180206_0.35838404984065186"},"_hasShrinkwrap":false},"2.1.3-e":{"name":"@reach-sh/humble-sdk","version":"2.1.3-e","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","compress":"make compress","build":"rm -rf lib/ && tsc && make compress","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2","uglify-js":"^3.17.1"},"dependencies":{"@reach-sh/stdlib":"0.1.10-rc.6c","axios":"^0.27.2","reach-edge":"npm:@reach-sh/stdlib@^0.1.12-rc.0"},"gitHead":"4bb8c6eb5c82d26555aef48022c2acdefb329e0c","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@2.1.3-e","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"integrity":"sha512-pVTyetOjBhbR2+tGgThIV8aZoat2lOPZBfpnddJfc++bLVCBcycrcOweJUmjRZkw1FHb0R/zTAyGEL8BysHz0A==","shasum":"c7d47d78035f0635a24e7e55204d77e26251831f","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-2.1.3-e.tgz","fileCount":76,"unpackedSize":1219899,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGE0TMak+bGkLIJ9rfdvEOcuGG3bLeRFZoixZAEnppTVAiAOUThXipM/UzhnOi3JcAoAaJP2ydQTrFEsrhBhoLT8NQ=="}]},"_npmUser":{"name":"nshellabarger","email":"nshellabarger@reach.sh"},"directories":{},"maintainers":[{"name":"nshellabarger","email":"nshellabarger@reach.sh"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_2.1.3-e_1696436468705_0.8067900916157873"},"_hasShrinkwrap":false},"2.1.3-f":{"name":"@reach-sh/humble-sdk","version":"2.1.3-f","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","compress":"make compress","build":"rm -rf lib/ && tsc && make compress","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2","uglify-js":"^3.17.1"},"dependencies":{"@reach-sh/stdlib":"0.1.10-rc.6c","axios":"^0.27.2","reach-edge":"npm:@reach-sh/stdlib@^0.1.12-rc.0"},"gitHead":"4bb8c6eb5c82d26555aef48022c2acdefb329e0c","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@2.1.3-f","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"integrity":"sha512-TuvDa23NfbVmH6QaIKd4Hh6shUGYDEA8kVFF/kym8dGK5t7dUoeNIkLiRH7oSGaDC0Ce46Xz33kSUKMiNIUKUQ==","shasum":"c71d4e1aced44e4e44818a0e9426b62eaac089f4","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-2.1.3-f.tgz","fileCount":76,"unpackedSize":1219977,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZCodzhFblKNMutTcQHGL0D+CDP9Rf8SAYJxClncPJTAIgV5+OIveaFP86vWbnZ9nZF6QUKqWwFjYsIeCiH1KogR4="}]},"_npmUser":{"name":"nshellabarger","email":"nshellabarger@reach.sh"},"directories":{},"maintainers":[{"name":"nshellabarger","email":"nshellabarger@reach.sh"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_2.1.3-f_1696438476990_0.06147500724466193"},"_hasShrinkwrap":false},"2.1.3-g":{"name":"@reach-sh/humble-sdk","version":"2.1.3-g","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","compress":"make compress","build":"rm -rf lib/ && tsc && make compress","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2","uglify-js":"^3.17.1"},"dependencies":{"@reach-sh/stdlib":"0.1.10-rc.6c","axios":"^0.27.2","reach-edge":"npm:@reach-sh/stdlib@^0.1.12-rc.0"},"gitHead":"4bb8c6eb5c82d26555aef48022c2acdefb329e0c","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_id":"@reach-sh/humble-sdk@2.1.3-g","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"integrity":"sha512-u9q9Z12qiNIYJ4itZU675Kv6dK6If5q85ACU4ssEFY14MniBUHvmJaLGVYv9Mh2bU1FDQcADSYlRVMuHKtFgDQ==","shasum":"110f37b76d4fcf2f57fdf99948d7531018d20128","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-2.1.3-g.tgz","fileCount":76,"unpackedSize":1220047,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDIoVZbADtbDAey1V5vr4GOTwNmZM2PbOXXdP6xa8S84QIhAJYeawOTUbqJFXuFI7P0yOEoiO4MYb/uLXNdUr/cplUR"}]},"_npmUser":{"name":"nshellabarger","email":"nshellabarger@reach.sh"},"directories":{},"maintainers":[{"name":"nshellabarger","email":"nshellabarger@reach.sh"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_2.1.3-g_1696622301502_0.772138859931454"},"_hasShrinkwrap":false},"2.1.3-h":{"name":"@reach-sh/humble-sdk","version":"2.1.3-h","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","compress":"make compress","build":"rm -rf lib/ && tsc && make compress","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2","uglify-js":"^3.17.1"},"dependencies":{"@reach-sh/stdlib":"0.1.10-rc.6c","axios":"^0.27.2","reach-edge":"npm:@reach-sh/stdlib@^0.1.12-rc.0"},"_id":"@reach-sh/humble-sdk@2.1.3-h","gitHead":"4bb8c6eb5c82d26555aef48022c2acdefb329e0c","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_nodeVersion":"21.0.0","_npmVersion":"10.2.0","dist":{"integrity":"sha512-0kTWfg88hMPk/udfB7wob12fTjpv+zjXPlJ2G6S92VTFGknbYDLalHQajeFjcAr1Eq3AcsOSG7qrjL84f9nKVw==","shasum":"3a94c26d4893bd25a68de3cd7ee38c0a7cf1a188","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-2.1.3-h.tgz","fileCount":76,"unpackedSize":1220269,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGpwnSBkp0ZpqKJ8E4m7oQ+DWrwHiOg+cAJXbx4FFz06AiAgjfpxODFLWaQaLNa0yyCIWqP+wblWd2iaPzRplrz5hA=="}]},"_npmUser":{"name":"nshellabarger","email":"nshellabarger@reach.sh"},"directories":{},"maintainers":[{"name":"nshellabarger","email":"nshellabarger@reach.sh"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_2.1.3-h_1698096782980_0.9113791506243019"},"_hasShrinkwrap":false},"2.1.3-i":{"name":"@reach-sh/humble-sdk","version":"2.1.3-i","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","compress":"make compress","build":"rm -rf lib/ && tsc && make compress","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2","uglify-js":"^3.17.1"},"dependencies":{"@reach-sh/stdlib":"0.1.10-rc.6c","axios":"^0.27.2","reach-edge":"npm:@reach-sh/stdlib@^0.1.12-rc.0"},"_id":"@reach-sh/humble-sdk@2.1.3-i","gitHead":"4bb8c6eb5c82d26555aef48022c2acdefb329e0c","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-D4WZLPaiod1lnwye4W2bJzCj2p6EJywUHzReKWpRUA/cl1jdJs4YfSUlEpH6A0D6nIWUiv27OKzmyaZSM7tg1Q==","shasum":"8ded750ce11638a208b87a2a00e78ffc779e54f9","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-2.1.3-i.tgz","fileCount":76,"unpackedSize":1218018,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3nmjPj6fpCeomsvf/uJE1acRR0rfMwcgcF4nA3iWbywIhAN3Z7vmHvPlXB7OzJskiVRkMnMtJWr4XJvrX67Sc6UIl"}]},"_npmUser":{"name":"nshellabarger","email":"nshellabarger@reach.sh"},"directories":{},"maintainers":[{"name":"nshellabarger","email":"nshellabarger@reach.sh"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_2.1.3-i_1698359088461_0.03263621096500158"},"_hasShrinkwrap":false},"2.1.3-j":{"name":"@reach-sh/humble-sdk","version":"2.1.3-j","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","compress":"make compress","build":"rm -rf lib/ && tsc && make compress","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2","uglify-js":"^3.17.1"},"dependencies":{"@reach-sh/stdlib":"0.1.10-rc.6c","axios":"^0.27.2","reach-edge":"npm:@reach-sh/stdlib@^0.1.12-rc.0"},"_id":"@reach-sh/humble-sdk@2.1.3-j","gitHead":"4bb8c6eb5c82d26555aef48022c2acdefb329e0c","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-zO+9qOkal9Ku19m6P/ic1oV3kcT0rSDUKNqtYSZzapfyNk6r4iE9XYZ/kNTcyWlbAh13FQehWBds4ALtXTXbPw==","shasum":"f0007ecff95969dd1497303dfed32214d65ac900","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-2.1.3-j.tgz","fileCount":76,"unpackedSize":1218171,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICch+26wSyBuEW8q0vdF+J/3Q8vHJMHEE4QGiz23sob0AiBoB/L1DMQ00P+EnbR7KtHPVWTzqEC6PU+LMamZjJ5AVQ=="}]},"_npmUser":{"name":"nshellabarger","email":"nshellabarger@reach.sh"},"directories":{},"maintainers":[{"name":"nshellabarger","email":"nshellabarger@reach.sh"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_2.1.3-j_1698424907614_0.42682292415601064"},"_hasShrinkwrap":false},"2.1.3-k":{"name":"@reach-sh/humble-sdk","version":"2.1.3-k","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","compress":"make compress","build":"rm -rf lib/ && tsc && make compress","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2","uglify-js":"^3.17.1"},"dependencies":{"@reach-sh/stdlib":"0.1.10-rc.6c","axios":"^0.27.2","reach-edge":"npm:@reach-sh/stdlib@^0.1.12-rc.0"},"_id":"@reach-sh/humble-sdk@2.1.3-k","gitHead":"4bb8c6eb5c82d26555aef48022c2acdefb329e0c","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-1meDozMzCY5Dt0ek+r1I5cvy7XDFBx9fcxJ2m+rj1p/Vb1mvGCjUrBjCqQWT5lOXMfOytRs3b/5V3ZBdx1caZg==","shasum":"785948d1f90292b7871a217dac748a7f57226cda","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-2.1.3-k.tgz","fileCount":76,"unpackedSize":1218171,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDwwFY6bR6uE5aZwlMcbDiIW9XIjJzYz66AetODCDxrhAiEA4cO7FhSlQi907QBWxcv7z+UyQO0qod8asxzHsCnEuj4="}]},"_npmUser":{"name":"nshellabarger","email":"nshellabarger@reach.sh"},"directories":{},"maintainers":[{"name":"nshellabarger","email":"nshellabarger@reach.sh"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_2.1.3-k_1698427901051_0.1808584801215405"},"_hasShrinkwrap":false},"2.1.3-l":{"name":"@reach-sh/humble-sdk","version":"2.1.3-l","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","compress":"make compress","build":"rm -rf lib/ && tsc && make compress","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2","uglify-js":"^3.17.1"},"dependencies":{"@reach-sh/stdlib":"0.1.10-rc.6c","axios":"^0.27.2","reach-edge":"npm:@reach-sh/stdlib@^0.1.12-rc.0"},"_id":"@reach-sh/humble-sdk@2.1.3-l","gitHead":"4bb8c6eb5c82d26555aef48022c2acdefb329e0c","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-cS/oc+likIQ6Mz4Gt6u1i6fagn9ifwJGs5PSB+yij5t/46m8Np+N/Mnw3v9kw93KLE4KGBeSkKx6jwUOHZ0GLg==","shasum":"427ee33465736423e5247110e74e9b96aab89351","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-2.1.3-l.tgz","fileCount":76,"unpackedSize":1217924,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFdD7SqNWFUxAiE/RHTdapA8NUnQqhsxS629TW5M+IjbAiEA8EpJKhW6tMGkmJU7YEdogMlq8lIWTvDNkJZB1kaGtBg="}]},"_npmUser":{"name":"nshellabarger","email":"nshellabarger@reach.sh"},"directories":{},"maintainers":[{"name":"nshellabarger","email":"nshellabarger@reach.sh"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_2.1.3-l_1698438006385_0.12993485170465546"},"_hasShrinkwrap":false},"2.1.3-m":{"name":"@reach-sh/humble-sdk","version":"2.1.3-m","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","compress":"make compress","build":"rm -rf lib/ && tsc && make compress","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2","uglify-js":"^3.17.1"},"dependencies":{"@reach-sh/stdlib":"0.1.10-rc.6c","axios":"^0.27.2","reach-edge":"npm:@reach-sh/stdlib@^0.1.12-rc.0"},"_id":"@reach-sh/humble-sdk@2.1.3-m","gitHead":"4bb8c6eb5c82d26555aef48022c2acdefb329e0c","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_nodeVersion":"21.1.0","_npmVersion":"10.2.0","dist":{"integrity":"sha512-jrgF+JIyZGYdpc0K10/pgfEC3R2+Bc/22oBNlZ/FS4rxffnZ+WD80m/INQraaclfC40XTkILchfRYEDrsg9Mzw==","shasum":"cd1b3e5962b2c4e69e134ffca3c525161239f0d5","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-2.1.3-m.tgz","fileCount":76,"unpackedSize":1218390,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGDC0VuJXvcSo9UunFOl6KweOEtuuVGFwX3+1AMZaSXsAiA80CPobXu/ALlyKTVv0NgLYiZX1DqOCNc2ZZcF+rxyNA=="}]},"_npmUser":{"name":"nshellabarger","email":"nshellabarger@reach.sh"},"directories":{},"maintainers":[{"name":"nshellabarger","email":"nshellabarger@reach.sh"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_2.1.3-m_1699482606335_0.8614430273329479"},"_hasShrinkwrap":false},"2.1.3-n":{"name":"@reach-sh/humble-sdk","version":"2.1.3-n","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","compress":"make compress","build":"rm -rf lib/ && tsc && make compress","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2","uglify-js":"^3.17.1"},"dependencies":{"@reach-sh/stdlib":"0.1.10-rc.6c","axios":"^0.27.2","reach-edge":"npm:@reach-sh/stdlib@^0.1.12-rc.0"},"_id":"@reach-sh/humble-sdk@2.1.3-n","gitHead":"4bb8c6eb5c82d26555aef48022c2acdefb329e0c","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_nodeVersion":"21.1.0","_npmVersion":"10.2.0","dist":{"integrity":"sha512-L3xrCmUIIGGVLTivwkrj72temO9DmcyRUzEVsNkh7NQB+h0GI2dAi9FCOQaYrDP/JQzTP5bwv8fYz6ZfexKy9Q==","shasum":"60d7056d14906be54c2b294ac7f4ebf1c51faaab","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-2.1.3-n.tgz","fileCount":76,"unpackedSize":1218390,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAPI7idjLLNgFZUaU72INyZn1oL/FurmA5bhXEr1mRfHAiAai5Y1rmXY+7m16zHlGXw+hPB9zQWyMhNHNa3wufABOw=="}]},"_npmUser":{"name":"nshellabarger","email":"nshellabarger@reach.sh"},"directories":{},"maintainers":[{"name":"nshellabarger","email":"nshellabarger@reach.sh"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_2.1.3-n_1699491781126_0.517324139618657"},"_hasShrinkwrap":false},"2.1.3-o":{"name":"@reach-sh/humble-sdk","version":"2.1.3-o","description":"A Javascript library for interacting with the HumbleSwap DEx","main":"lib/index.js","types":"lib/index.d.ts","homepage":"https://app.humble.sh","scripts":{"test":"jest --watchAll --testTimeout=300000 --detectOpenHandles","test:ci":"jest --testTimeout=300000","compress":"make compress","build":"rm -rf lib/ && tsc && make compress","beta":"npm run build && npm publish --tag beta"},"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"author":"","license":"ISC","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@types/await-timeout":"^0.3.1","@types/axios":"^0.14.0","@types/jest":"^27.4.1","@types/node":"^17.0.45","jest":"^27.5.1","jest-junit":"^14.0.0","ts-node":"^10.7.0","typescript":"^4.6.2","uglify-js":"^3.17.1"},"dependencies":{"@reach-sh/stdlib":"0.1.10-rc.6c","axios":"^0.27.2","reach-edge":"npm:@reach-sh/stdlib@^0.1.12-rc.0"},"_id":"@reach-sh/humble-sdk@2.1.3-o","gitHead":"4bb8c6eb5c82d26555aef48022c2acdefb329e0c","bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"_nodeVersion":"21.1.0","_npmVersion":"10.2.0","dist":{"integrity":"sha512-xT1KUvQ1f3b/2dROCWxCL9P7zlvLsGe1YCLohv656l+hmH4yCHv5eyedMXLZKl3GsdyA85ZXz7YDFgtnSVFl0A==","shasum":"1e04bcf98760556b79ba7ac6ace47a4b5adb1e54","tarball":"https://registry.npmjs.org/@reach-sh/humble-sdk/-/humble-sdk-2.1.3-o.tgz","fileCount":77,"unpackedSize":1218679,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCWLtMP4tjLL0aZG58GMazMalEeuBA+co0Oi3bGx773/QIgeYxA2mdjX8vFZpsUgUnyaZFPq+BcAaCkpJEmo9Mdwq8="}]},"_npmUser":{"name":"nshellabarger","email":"nshellabarger@reach.sh"},"directories":{},"maintainers":[{"name":"nshellabarger","email":"nshellabarger@reach.sh"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/humble-sdk_2.1.3-o_1699493742779_0.11231257106780745"},"_hasShrinkwrap":false}},"time":{"created":"2022-03-23T23:49:01.192Z","1.0.0":"2022-03-23T23:49:01.416Z","modified":"2023-11-09T01:35:43.306Z","1.0.1":"2022-03-28T15:08:25.783Z","1.0.2":"2022-03-28T15:53:25.384Z","2.0.0":"2022-06-22T16:22:27.591Z","2.1.0-beta.0":"2022-08-02T16:45:07.367Z","2.1.0-beta.1":"2022-08-03T15:13:28.667Z","2.1.0-beta.2":"2022-08-09T12:08:53.192Z","2.1.0-beta.3":"2022-08-09T13:29:19.472Z","2.1.0-beta.4":"2022-08-09T19:43:50.762Z","2.1.0-beta.5":"2022-08-09T20:14:29.890Z","2.1.0-beta.6":"2022-08-16T12:01:31.242Z","2.1.0-beta.7":"2022-08-16T14:42:39.759Z","2.1.0-beta.8":"2022-08-16T23:10:10.164Z","2.1.1-beta.0":"2022-08-31T16:12:30.779Z","2.1.1-beta.1":"2022-09-01T14:52:54.300Z","2.1.1-beta.2":"2022-09-06T21:22:38.273Z","2.1.1-beta.3":"2022-09-08T17:28:44.635Z","2.1.1-beta.4":"2022-09-21T14:49:36.236Z","2.1.1-beta.5":"2022-09-21T15:09:49.815Z","2.1.1-beta.6":"2022-09-22T18:37:09.974Z","2.1.1-beta.7":"2022-10-05T13:01:01.963Z","2.1.1-beta.8":"2022-10-08T11:13:24.426Z","2.1.1":"2022-10-18T13:58:31.847Z","2.1.2":"2022-10-18T14:02:04.297Z","3.0.0-beta.1":"2022-11-09T18:55:07.850Z","3.0.0-beta.3":"2022-11-09T22:32:17.458Z","3.0.0-beta.4":"2022-11-10T18:41:46.370Z","3.0.0-beta.5":"2022-11-14T20:31:58.857Z","3.0.0-beta.6":"2022-11-15T17:57:48.497Z","3.0.0-beta.7":"2022-11-15T18:17:33.403Z","3.0.0-beta.8":"2022-11-15T19:49:47.741Z","3.0.0-beta.9":"2022-11-21T11:56:35.959Z","3.0.0-beta.10":"2022-11-21T12:42:11.175Z","3.0.0-beta.11":"2022-11-24T14:16:09.585Z","3.0.0-beta.12":"2022-11-24T14:47:53.578Z","3.0.0-beta.13":"2022-12-12T15:44:27.205Z","3.0.0-beta.14":"2022-12-27T14:12:29.589Z","3.0.0-beta.17":"2023-01-26T16:53:47.269Z","3.0.0-beta.18":"2023-02-02T12:48:57.236Z","2.1.3":"2023-08-28T05:26:03.245Z","3.0.0-beta.19":"2023-09-01T19:43:06.128Z","2.1.3-b":"2023-09-07T16:26:58.526Z","2.1.3-c":"2023-09-22T22:07:55.447Z","2.1.3-d":"2023-10-04T15:09:40.498Z","2.1.3-e":"2023-10-04T16:21:09.249Z","2.1.3-f":"2023-10-04T16:54:37.150Z","2.1.3-g":"2023-10-06T19:58:21.817Z","2.1.3-h":"2023-10-23T21:33:03.248Z","2.1.3-i":"2023-10-26T22:24:48.880Z","2.1.3-j":"2023-10-27T16:41:47.915Z","2.1.3-k":"2023-10-27T17:31:41.299Z","2.1.3-l":"2023-10-27T20:20:06.647Z","2.1.3-m":"2023-11-08T22:30:06.718Z","2.1.3-n":"2023-11-09T01:03:01.557Z","2.1.3-o":"2023-11-09T01:35:43.076Z"},"maintainers":[{"name":"nshellabarger","email":"nshellabarger@reach.sh"},{"name":"jeapostrophe","email":"jay.mccarthy@gmail.com"},{"name":"cswenor","email":"cswenor@gmail.com"}],"description":"A Javascript library for interacting with the HumbleSwap DEx","homepage":"https://app.humble.sh","keywords":["humbleswap","humblesdk","DEx sdk","swap tokens"],"repository":{"type":"git","url":"git+https://github.com/reach-sh/humble-sdk.git"},"bugs":{"url":"https://github.com/reach-sh/humble-sdk/issues"},"license":"ISC","readme":"# HumbleSDK v2.0.0\n\n<header>\n  <img src=\"./logo-white.svg\" width=\"80\" height=\"auto\">\n</header>\n\nA Javascript library for interacting with the [HumbleSwap DEx](https://app.humble.sh).\n\n- [HumbleSDK v2.0.0](#humblesdk-v200)\n  - [Documentation](#documentation)\n  - [v2 Changes](#v2-changes)\n  - [Installing the SDK](#installing-the-sdk)\n    - [Option 1. NPM (recommended)](#option-1-npm-recommended)\n    - [Option 2. Cloning the repo directly](#option-2-cloning-the-repo-directly)\n  - [Example Usage](#example-usage)\n    - [Subscribing to a stream of **Liquidity Pool** data](#subscribing-to-a-stream-of-liquidity-pool-data)\n    - [**Swapping** between a pair of tokens](#swapping-between-a-pair-of-tokens)\n  - [Local Testing](#local-testing)\n\n---\n## Documentation\nDocumentation has moved [here](https://reach-sh.github.io/humble-sdk/).\n\n--- \n\n## v2 Changes \n`v2` introduces a few changes and adds new functionality, including staking pools. Some functions may have been renamed: review changes in our [changelog](./CHANGELOG.md), and view our [documentation](https://reach-sh.github.io/humble-sdk/) for additional info.\n\n--- \n\n## Installing the SDK\n### Option 1. NPM (recommended)\nThe fastest way is to use `npm`:\n```bash\n$. npm i -s @reach-sh/humble-sdk\n```\n\n### Option 2. Cloning the repo directly\nTo get started without NPM, you can clone and build the SDK from the repository. \n```bash\n# Clone the repository \n$. git clone https://github.com/reach-sh/humble-sdk.git\n\n# Enter the directory with the repo (replace with path to your repository clone)\n$. cd path/to/humble-sdk \n\n# and install dependencies (there aren't a lot)\n$. npm install\n\n# Build the SDK. Will output to a ./lib directory in the same folder as the \n# package.json file. This takes seconds and doesn't output anything to your terminal.\n$. npm run build\n``` \nYou will know it is complete when your (terminal's) typing prompt reappears.\\\nThen, as a **FINAL STEP**, copy or move the new `lib/` directory into your project. This will allow you to access it like any other JS module:\n\n```typescript\nimport { initHumbleSDK } from \"path/to/lib\";\n```\n\n---\n\n## Example Usage\n\n### Subscribing to a stream of **Liquidity Pool** data\n```typescript\nimport { subscribeToPoolStream, createReachAPI } from \"@reach-sh/humble-sdk\";\n\nconst stdlib = createReachAPI();\nconst acc = await stdlib.createAccount();\n\n// Fetch existing streams and get notified when a new one is created\nsubscribeToPoolStream(acc, {\n    // Pool ID (and id of pool tokens) received from contract.\n    // Pool data has NOT been fetched yet.\n    onPoolReceived: (info) => { \n        const [poolAddr, tokenAId, tokenBId] = info;\n        // ... do something with data\n     },\n\n    // Pool and Token data has been received from network. \n    onPoolFetched: (result: FetchPoolTxnResult) => { \n        const { succeeded, poolAddress, data, message } = result;\n        if (succeeded) // ... do something with data\n     }\n})\n```\n\n\n### **Swapping** between a pair of tokens\n> **Note:** Swapping does not use routing. Read the [docs](https://reach-sh.github.io/humble-sdk/) to learn how to fetch pools for DEx operations.\n```typescript\nimport { calculateTokenSwap, performSwap } from \"@reach-sh/humble-sdk\";\n\nconst pool = /* pool source */\n\n// Calculate expected swap output\nconst { tokenAId, tokenBId } = pool;\nconst amountA = 100;\nconst swap = calculateTokenSwap({ \n    pool, \n    swap: { amountA, tokenAId, tokenBId } \n});\n\n// Perform swap\nconst swapOpts = { poolAddress: pool.poolAddress, swap, pool };\nconst { data, message, succeeded } = await performSwap(acc, swapOpts);\n// if (succeeded) data == { amountIn: string; amountOut: string }\n```\n\n--- \n\n## Local Testing\nThe `humble-sdk` contains some helper scripts for running the SDK on a command line. See more [**here**](./cli/README.md)\n","readmeFilename":"README.md"}