@gbarros/noextra
v0.1.4-beta
Published
Nonodo CLI tool and bindings for testing and development
Downloads
7
Readme
NoExtra for Cartesi App Development
This is a fork of Brunodo project. Sprinkled with Tikua.
It wraps the original binary of Nonodo, taking care of downloading the correct version of the binary for the current platform. As of now, it's not configurable and it downloads a fixed version of Nonodo.
The difference to Brunodo is exposing the wrapper as a usable library. It's intended to help with integration tests and scripting when developing a front-end project.
Currently, it's implemented in pure JavaScript, but a TS version is planned. Also, it will be easier to add extra functionalities based on hardhat and foundry.
The idea is to separate lingering dependencies from EVM development from Cartesi App development.
Installation
Global
npm install -g @gbarros/noextra
Local
npm install --save-dev @gbarros/noextra
yarn add --dev @gbarros/noextra
Usage
Global
npx nonodo
or
nonodo
Local
import { nonodo, addressBook, getTikua } from "@gbarros/noextra";
...
nonodo.start();
const tikua = getTikua(abi); // returns a tikua object configured to use the local nonodo
nododo.stop();
console.log(addressBook()); // displays the address book as JSON object
Feel free to check out the examples folder or check the 'integration test' on meme-backend project.