This is an experimental JavaScript project exploring potential useful libraries abstracting the low level details of interacting with a Bonzo Finance Liquidity Pool and supporting smart contracts. Creators make no assertion of future maintenance or support.
- LIQUIDITY-POOL @bonzolabs/liquidity-pool
This project contains a helper client providing convenient programmatic access to the Bonzo Finance Liquidity Pool. Calling code can leverage this library to retrieve an lender or borrower’s balances for all tokens supported by the pool.
The authors of this project attempted to take a minimalist approach with regards to package dependencies. The most significant package dependency is the ethers, which is required for accessing the smart contract interfaces on the ledger thru a JSON-RPC Relay.
Retriving and building the project is simple, in an environment with nodejs and git installed, enter the following:
git clone https://github.com/bonzo-labs/bonzo-utils.gitcd bonzo-utilsnpm installnpm build
For running integration tests, copy the sample.env to a file named .env and edit appropriately to setup the test environment, then enter the following:
npm test
The above will invoke the mocha based test suite and validate the inteded behavior of the codebase.
Please see the package.json file for additional utility scripts.