Skip to content
ignitePublic

About

GnoVM for Cosmos SDK Chains

Topics

Resources

Contributing

Stars

2 stars

Watchers

3 watching

Forks

Repository files navigation

GnoVM Cosmos SDK Module

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.

Installation

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 serve

The Ignite GnoVM App simplifies the wiring of GnoVM into your Cosmos SDK application.

Gno standard library

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.

Usage

Add Realm / Package

gnovmd tx gnovm add-package ./tests/contracts/counter --from alice --yes

Call Realm / Package

gnovmd tx gnovm call gno.land/r/demo/counter Increment --from alice --yes

Run Realm / Package

gnovmd tx gnovm run ./tests/contracts/counter --from alice --yes

Render Realm / Package

You 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

Scaffolded with Ignite

This repo has been scaffolded with Ignite.

About

GnoVM for Cosmos SDK Chains

Topics

Resources

Contributing

Stars

2 stars

Watchers

3 watching

Forks

Releases

Used by

Contributors

Languages