Skip to content

ignite/gnovm

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 alpha phase. Expect bugs and breaking changes. 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.

Usage

Add Realm / Package

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

Call Realm / Package

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

Run Realm / Package

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

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

Watchers

Forks

Contributors 2

  •  
  •