{"_id":"@bonzolabs/liquidity-pool","_rev":"2-2da3686ea3ef312b857a4dbb66817ff2","name":"@bonzolabs/liquidity-pool","dist-tags":{"latest":"5.7.2"},"versions":{"0.0.1":{"name":"@bonzolabs/liquidity-pool","version":"0.0.1","keywords":["Bonzo","Hashgraph","Hedera","ERC20"],"author":{"name":"Bonzo Labs"},"license":"MIT","_id":"@bonzolabs/liquidity-pool@0.0.1","maintainers":[{"name":"bugbytesinc","email":"npm@bugbytes.com"}],"homepage":"https://github.com/bonzo-labs/bonzo-utils/#readme","bugs":{"url":"https://github.com/bonzo-labs/bonzo-utils/issues"},"dist":{"shasum":"e2e00757b85aa602b452ba240e26902dd15d605b","tarball":"https://registry.npmjs.org/@bonzolabs/liquidity-pool/-/liquidity-pool-0.0.1.tgz","fileCount":22,"integrity":"sha512-9R73K7ex2cYnragr5lJ5glnTWxFdfNfbyFd3f2cF+g134Z937ZMv6m4+tIKf2PuoU9L0elNgTBHN0z2xGsb7Kw==","signatures":[{"sig":"MEYCIQCYlOt0MQmVhUcblEobly1/YEBYGRHbhvbBi3ntY2vPywIhAPCmf3d49JIbGVwQI5xdyXdgDy6tVrPsRoE4lW8Ob0GK","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20181},"main":"./index.js","types":"./index.d.ts","exports":"./index.js","gitHead":"1a15d31c0b5e277cf5d101e220b210419acd8555","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"bugbytesinc","email":"npm@bugbytes.com"},"repository":{"url":"git+https://github.com/bonzo-labs/bonzo-utils.git","type":"git","directory":"packages/liquidity-pool"},"_npmVersion":"9.6.7","description":"Client Access Library for the Bonzo Liquidity Pool","directories":{},"_nodeVersion":"20.3.0","_hasShrinkwrap":false,"peerDependencies":{"ethers":">=6.13.2"},"_npmOperationalInternal":{"tmp":"tmp/liquidity-pool_0.0.1_1724873004933_0.10117335776929437","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"@bonzolabs/liquidity-pool","version":"0.0.2","keywords":["Bonzo","Hashgraph","Hedera","ERC20"],"author":{"name":"Bonzo Labs"},"license":"MIT","_id":"@bonzolabs/liquidity-pool@0.0.2","maintainers":[{"name":"bugbytesinc","email":"npm@bugbytes.com"}],"homepage":"https://github.com/bonzo-labs/bonzo-utils/#readme","bugs":{"url":"https://github.com/bonzo-labs/bonzo-utils/issues"},"dist":{"shasum":"7cb786b75527e3b3a0a14ad77e0194f7c7b33a66","tarball":"https://registry.npmjs.org/@bonzolabs/liquidity-pool/-/liquidity-pool-0.0.2.tgz","fileCount":23,"integrity":"sha512-oLlBCbWX3lK9auAjr81DRFIy6g3gpG7NoOWyTBYD5D7vuNI2KD81ELlLCJD5LBULf05AKRWhiYjtgzemhDHizg==","signatures":[{"sig":"MEUCIBHa9n5Oir8gj5C67MoxKzvOiBABgDMO5IbnHWUJ1w8PAiEA3xmhU3olybQyBvK2eFymEVJRGYXsHQJg7PTDrOnwNaU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":23120},"main":"./index.js","types":"./index.d.ts","exports":"./index.js","gitHead":"59b3788804e63bcbc8f4a6d42b6942df02ae736e","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"bugbytesinc","email":"npm@bugbytes.com"},"repository":{"url":"git+https://github.com/bonzo-labs/bonzo-utils.git","type":"git","directory":"packages/liquidity-pool"},"_npmVersion":"9.6.7","description":"Client Access Library for the Bonzo Liquidity Pool","directories":{},"_nodeVersion":"20.3.0","_hasShrinkwrap":false,"peerDependencies":{"ethers":">=6.13.2"},"_npmOperationalInternal":{"tmp":"tmp/liquidity-pool_0.0.2_1724879335538_0.21103143194094875","host":"s3://npm-registry-packages"}},"5.7.2":{"name":"@bonzolabs/liquidity-pool","version":"5.7.2","description":"Client Access Library for the Bonzo Liquidity Pool","main":"./index.js","exports":"./index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"directory":"packages/liquidity-pool","type":"git","url":"git+https://github.com/bonzo-labs/bonzo-utils.git"},"keywords":["Bonzo","Hashgraph","Hedera","ERC20"],"author":{"name":"Bonzo Labs"},"license":"MIT","bugs":{"url":"https://github.com/bonzo-labs/bonzo-utils/issues"},"homepage":"https://github.com/bonzo-labs/bonzo-utils/#readme","peerDependencies":{"ethers":"^5.7.2"},"types":"./index.d.ts","gitHead":"f49969684003281d1a913ba1d699243ace417161","_id":"@bonzolabs/liquidity-pool@5.7.2","_nodeVersion":"20.3.0","_npmVersion":"9.6.7","dist":{"integrity":"sha512-5J3urAoIKMbdLlZvrZM8hdhjdaajTunarGPajCCbyNmFm35PQtBU2jphvJqCPS2DRTp8CT40LSpFj3obopo26A==","shasum":"689eab3aa66d56b20ae0d8f4c48dc2e3c94d6d54","tarball":"https://registry.npmjs.org/@bonzolabs/liquidity-pool/-/liquidity-pool-5.7.2.tgz","fileCount":19,"unpackedSize":20800,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEbyw81cct7DRHwqsmDRbp9zpJsPHtUvT2aQ2lPcVcCxAiA8WdhzLJZDBhsPZ1vVo11dadR6tntZSdMReX8E45yWYA=="}]},"_npmUser":{"name":"bugbytesinc","email":"npm@bugbytes.com"},"directories":{},"maintainers":[{"name":"bugbytesinc","email":"npm@bugbytes.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/liquidity-pool_5.7.2_1725031717429_0.2279170605346359"},"_hasShrinkwrap":false}},"time":{"created":"2024-08-28T19:23:24.849Z","modified":"2024-08-30T15:28:37.802Z","0.0.1":"2024-08-28T19:23:25.076Z","0.0.2":"2024-08-28T21:08:55.691Z","5.7.2":"2024-08-30T15:28:37.586Z"},"bugs":{"url":"https://github.com/bonzo-labs/bonzo-utils/issues"},"author":{"name":"Bonzo Labs"},"license":"MIT","homepage":"https://github.com/bonzo-labs/bonzo-utils/#readme","keywords":["Bonzo","Hashgraph","Hedera","ERC20"],"repository":{"directory":"packages/liquidity-pool","type":"git","url":"git+https://github.com/bonzo-labs/bonzo-utils.git"},"description":"Client Access Library for the Bonzo Liquidity Pool","maintainers":[{"name":"bugbytesinc","email":"npm@bugbytes.com"}],"readme":"# BONZO Liquidity Pool\r\n\r\nLightweight Access Library to Bonzo Liquidity Pool\r\n\r\nThis library provides utilities abstracting away some of the complexities involved with retrieving account information from the [Bonzo Finance](https://bonzo.finance/) Lending pool.  For example, a user can use this library to retrieve an lender or borrower’s balances for all tokens supported by the pool.\r\n\r\n## Installation\r\n\r\nThis library does not provide a user interface nor command line tool, the intention is to be utilized by other JavaScript projects.  It can be added to a project using `npm` package manger:\r\n\r\n```sh\r\nnpm install @bonzolabs/liquidity-pool\r\n```\r\n\r\n## Usage\r\n\r\nAfter installation, an instance of a pool client can be created with the `LiquidityPool.create()` method:\r\n\r\n```js\r\nconst pool = await LiquidityPool.create(getProvider(), getPoolAddress());\r\n```\r\n\r\nWhere `getProvider()` returns a [ethers](https://docs.ethers.org/v5/) [Provider](https://docs.ethers.org/v5/api/providers/#about-providers) object connecting the library to a [JSON-RPC](https://docs.hedera.com/hedera/core-concepts/smart-contracts/deploying-smart-contracts/json-rpc-relay) relay (such as [hashio](https://www.hashgraph.com/hashio/)) and `getPoolAddress()` returns the contract address of the Bonzo Liquidity Pool contract for the ledger the Provider is connected with.\r\n\r\n\r\nAfter Creation, the pool client can query for an account’s reserve, aToken and debt token balances with the `LendingPool.getBalances()` method:\r\n\r\n```js\r\nlet balances = await pool.getBalances(getAccountAddress());\r\n```\r\n\r\nWhere `getAccountAddress()`returns the address of the account in question.\r\n\r\n## Building\r\n\r\nFor build instructions, please visit our source github project: [https://github.com/bonzo-labs/bonzo-utils.git](https://github.com/bonzo-labs/bonzo-utils.git)\r\n\r\n## Authors\r\n\r\n[Jason Fabritz](mailto:jason@bonzo.finance)\r\n\r\n## License\r\n\r\n[MIT](/LICENSE)","readmeFilename":"README.md"}