Skip to content

Latest commit

 

History

History
56 lines (37 loc) · 1.63 KB

File metadata and controls

56 lines (37 loc) · 1.63 KB

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.

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.