The DXOS Naming Service (DXNS) is a custom blockchain built using Cosmos SDK.
- Install golang 1.14.0+ for the required platform.
- Ensure that the version installed is older than 1.16 as
crypto/hmacpanics while usingdxnscliin newer versions. - Test that the correct version of
golanghas been successfully installed on the machine.
$ go version
go version go1.14.9 darwin/amd64Set the following 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 ~/.profileClone the repo then build and install the binaries.
$ git clone git@github.com:vulcanize/dxns.git
$ cd dxns
$ make installTest that the following commands work:
$ dxnsd help
$ dxnscli help$ ./scripts/setup.shStart the node:
$ ./scripts/server.sh startTest if the node is up:
$ ./scripts/server.sh testView the logs:
$ ./scripts/server.sh logStop the node:
$ ./scripts/server.sh stopwire CLI provides commands for publishing and querying DXNS records.
See https://github.com/vulcanize/dxns-registry-client#tests
The GQL server is controlled using the following dxnsd flags:
--gql-server- Enable GQL server (Available at http://localhost:9473/graphql).--gql-playground- Enable GQL playground app (Available at http://localhost:9473/console).--gql-port- Port to run the GQL server on (default 9473).
See dxnsd/gql/schema.graphql for the GQL schema.