This is the beginning of a Node.js provenance client, which will in the future be able to support a much larger feature set within the Provenance Blockchain.
This is very much a work in progress. Future development is planned, but due to current obligations this codebase currently only supports the calculations and queries needed to prove the value of the FIGR_HELOC token, which can also be viewed at figuretoken.com.
Long term, we will try to add the rest of the Provenance protos, and use grpc-js to support the full suite of Provenance actions.
- Install
yarnornpm install - Verify the RPC and fetch endpoints, and update them as necessary where marked in the code (index.ts and provenance-client.ts)
- Run the sum script with
yarn sumornpm run sum
If using publically available RPC or fetch endpoints, this will most certainly run up against rate limits, and require more changes to support that type of setup. We highly recommend running against a private node or running provenance locally. For more information on that, refer to this HackMD
The main function can support fetch or RPC Node queries. To change this, supply the main() execution in index.ts with true (uses fetch) or false (uses RPC node)
- Support all Provenance and Cosmos protos
- Support GRPC-js
- Add tests
- Publish as an npm package