Up to date with rnode 0.9.22
It includes utils for easily deploying rholang code (smart contract), sending REV transactions, retreiving blocks, listen for data at unforgeable names, public names etc... All of the methods, parameters, and returned values are typed using typescript so the developer can comfortably code.
rchain-toolkit provides some GRPC utils since rnode's main API is GRPC, but it does not strictly assume the transport. This library builds proto objects based on rnode's proto definition files and some user parameters. GRPC is not included in the library, making it potentially elligible for the browser, GRPC and GRPC's proto-loader libraries must be installed separatly in your own project.
typescript must be installed on your machine
npm install -g typescript
.ts files in
src directory to the main
npm run compile
The jest tests are all the tests that do not require proto-loader or GRPC, because it does not work under jest's runtime.
Run the jest tests
npm run test:jest
The full tests are the tests that interact with the
.proto files, and rnode. A local rnode instance must be running on
Run the full tests
npm run compile:tests npm run test:full -- --private-key AAA --public-key BBB