app

package module
v0.0.0-...-80a2a92 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

README

Cosmos SDK Application

This Cosmos SDK application contains the Cosmic Bonding module under ./x/pricing/.

The application is based on the nameservice app provided in the Cosmos sdk-application-tutorial repository. As a result, it has both the functionality of the nameservice app and the Cosmic Bonding module and uses the nameservice's nsd and nscli commands. It will be made independent of the nameservice app in the future.

Note: Requires Go 1.12+

Building and Running

To build and run the application:

make run

To run a demo:

make demo

The demo consists of:

  • Cosmic Bond creation
  • Cosmic Bond querying
  • A mix of buys and sells

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// default home directories for the application CLI
	DefaultCLIHome = os.ExpandEnv("$HOME/.nscli2")

	// DefaultNodeHome sets the folder where the applcation data and configuration will be stored
	DefaultNodeHome = os.ExpandEnv("$HOME/.nsd2")

	// ModuleBasicManager is in charge of setting up basic module elemnets
	ModuleBasics sdk.ModuleBasicManager
)

Functions

func MakeCodec

func MakeCodec() *codec.Codec

MakeCodec generates the necessary codecs for Amino

func NewNameServiceApp

func NewNameServiceApp(logger tlog.Logger, db dbm.DB) *nameServiceApp

NewNameServiceApp is a constructor function for nameServiceApp

Types

type GenesisState

type GenesisState map[string]json.RawMessage

GenesisState represents chain state at the start of the chain. Any initial state (account balances) are stored here.

func NewDefaultGenesisState

func NewDefaultGenesisState() GenesisState

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL