wirelineio / wns

Wireline Naming Service
GNU General Public License v3.0
0 stars 1 forks source link

Wireline Naming Service

Note: Replaced by https://github.com/wirelineio/dxns

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

$ 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