app

package module
v0.37.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2019 License: Apache-2.0 Imports: 23 Imported by: 0

README

SDK Application Tutorial

This repository contains the source code of the nameservice tutorial.

Tutorial

Click here to access the tutorial. You can also view it on the website.

Building and running the example

Click here for instructions on how to build and run the code.

Translations:

Slides

Documentation

Index

Constants

This section is empty.

Variables

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

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

	// NewBasicManager is in charge of setting up basic module elemnets
	ModuleBasics = module.NewBasicManager(
		genaccounts.AppModuleBasic{},
		genutil.AppModuleBasic{},
		auth.AppModuleBasic{},
		superbank.AppModuleBasic{},
		params.AppModuleBasic{},
		nameservice.AppModule{},
		minisupply.AppModuleBasic{},
		staking.AppModuleBasic{},
		distr.AppModuleBasic{},
		slashing.AppModuleBasic{},
		supply.AppModuleBasic{},
	)
)

Functions

func MakeCodec

func MakeCodec() *codec.Codec

MakeCodec generates the necessary codecs for Amino

func NewNameServiceApp

func NewNameServiceApp(
	logger log.Logger, db dbm.DB, baseAppOptions ...func(*bam.BaseApp),
) *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

Directories

Path Synopsis
cmd
nsd
x
minisupply
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/tuckermint/sdk-application-tutorial/x/minisupply/internal/keeper ALIASGEN: github.com/tuckermint/sdk-application-tutorial/x/minisupply/internal/types
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/tuckermint/sdk-application-tutorial/x/minisupply/internal/keeper ALIASGEN: github.com/tuckermint/sdk-application-tutorial/x/minisupply/internal/types
minisupply/legacy/v0_36
DONTCOVER nolint
DONTCOVER nolint
superbank
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/tuckermint/sdk-application-tutorial/x/superbank/types
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/tuckermint/sdk-application-tutorial/x/superbank/types

Jump to

Keyboard shortcuts

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