Skip to content
forked from Calindra/brunodo

This is a playground for extra functionalities for nonodo and cartesi-cli

Notifications You must be signed in to change notification settings

gbarros/noextra

 
 

Repository files navigation

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.

About

This is a playground for extra functionalities for nonodo and cartesi-cli

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%