Cosmos SDK module for GnoVM, a virtual machine for the Gno programming language.
Cosmos SDK module scaffolded with Ignite, a developer-friendly framework for building Cosmos SDK applications.
Warning
This module is still in its beta phase. Please report any issues you encounter. Additionally, we currently rely on a small fork of the GnoVM containing only this PR: gnolang/gno#4852: https://github.com/allinbits/gno/tree/denom-fix.
To install the GnoVM module in your Cosmos SDK application, please follow the instructions below:
ignite s chain github.com/ignite/gnovm --minimal --no-module
ignite app install github.com/ignite/apps/gnovm@main
ignite gnovm add
ignite chain serveThe Ignite GnoVM App simplifies the wiring of GnoVM into your Cosmos SDK application.
A node loads the Gno standard library at genesis from $GNOROOT/gnovm/stdlibs
and type-checks the library's test files against $GNOROOT/gnovm/tests/stdlibs.
When GNOROOT is unset, the root is the gno module's directory, which needs the
Go toolchain and module cache on the node. A node image without them sets
GNOROOT and ships both directories from the gno version in go.mod.
gnovmd tx gnovm add-package ./tests/contracts/counter --from alice --yesgnovmd tx gnovm call gno.land/r/demo/counter Increment --from alice --yesgnovmd tx gnovm run ./tests/contracts/counter --from alice --yesYou can either query the Render function on the realm via cli:
gnovmd q gnovm eval gno.land/r/demo/counter 'Render("")'Or directly access its RPC endpoint on your node: http://localhost:1317/ignite/gnovm/gnovm/v1/render/gno.land/r/demo/counter
This repo has been scaffolded with Ignite.