app

package module
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2020 License: GPL-3.0 Imports: 28 Imported by: 0

README

Wireline Naming Service

The Wireline Naming Service (WNS) is a custom blockchain built using Cosmos SDK.

Module Status Public URL
DXOS DOCS WNS Netlify Status https://dxos-docs-wns.netlify.app/wns/

Getting Started

Installation
  • Install latest wire CLI before setting up wnsd.
  • Install golang 1.13.0+ for the required platform.
  • Test that golang has been successfully installed on the machine.
$ go version
go version go1.13 linux/amd64

Set the followin ENV variables (if go mod has never been used on the machine).

mkdir -p $HOME/go/bin
echo "export GOPATH=$HOME/go" >> ~/.profile
echo "export GOBIN=\$GOPATH/bin" >> ~/.profile
echo "export PATH=\$PATH:\$GOBIN" >> ~/.profile
echo "export GO111MODULE=on" >> ~/.profile
source ~/.profile

Clone the repo then build and install the binaries.

$ cd ~/wireline
$ git clone git@github.com:wirelineio/wns.git
$ cd wns
$ make install

Test that the following commands work:

$ wnsd help
$ wnscli help
Initializing the Local Node
$ ./scripts/setup.sh
Working with the Local Node

Start the node:

$ ./scripts/server.sh start

Test if the node is up:

$ ./scripts/server.sh test

View the logs:

$ ./scripts/server.sh log

Stop the node:

$ ./scripts/server.sh stop

WNS CLI

wire CLI provides commands for publishing and querying WNS records.

Tests

See https://github.com/wirelineio/registry-client#tests

GQL Server API

The GQL server is controlled using the following wnsd flags:

See wnsd/gql/schema.graphql for the GQL schema.

References

Documentation

Index

Constants

This section is empty.

Variables

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

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

	// NewBasicManager is in charge of setting up basic module elemnets
	ModuleBasics = module.NewBasicManager(
		genaccounts.AppModuleBasic{},
		genutil.AppModuleBasic{},
		auth.AppModuleBasic{},
		bank.AppModuleBasic{},
		staking.AppModuleBasic{},
		distr.AppModuleBasic{},
		gov.NewAppModuleBasic(paramsclient.ProposalHandler, distr.ProposalHandler),
		params.AppModuleBasic{},
		crisis.AppModuleBasic{},
		slashing.AppModuleBasic{},
		mint.AppModuleBasic{},
		supply.AppModuleBasic{},

		ns.AppModule{},
		bond.AppModule{},
	)
)

Functions

func MakeCodec

func MakeCodec() *codec.Codec

MakeCodec generates the necessary codecs for Amino

func NewNameServiceApp

func NewNameServiceApp(
	logger log.Logger, db dbm.DB, invCheckPeriod uint, loadLatest bool, 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

Jump to

Keyboard shortcuts

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