bnsd

command
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

README

Blockchain name service - bns

Remote acceptance tests

To execute the test scenarios against a testnet pass the address and a delay to not hit rate limits

go test -v  ./cmd/bnsd/scenarios/...  -address=https://<testnet-domain>:443 -delay=500ms

Running a local instance

This app relies on a separate tendermint process to drive it. It is helpful to first read a primer on tendermint as well as the documentation on the tendermint CLI.

Dependencies

Versions of both are pinned down in the weave respository.

Running manually

In order to run a node, its state must be first initialized. This is done by running init commands.

Make sure to set TM_VERSION to the right tendermint version (ie. 0.27.4). You can change BNS_HOME to any directory. This is where the application state is saved.

$ export TM_VERSION='x.xx.x'
$ export BNS_HOME="$HOME/bns_home"
$ mkdir -p $BNS_HOME
$ docker run \
    -v $BNS_HOME:/tmhome \
    -it \
    --rm \
    iov1/tendermint:$TM_VERSION init \
        --home /tmhome
$ docker run \
    --rm \
    -it \
    -v $BNS_HOME:/bnshome \
    iov1/bnsd:latest \
        -home=/bnshome init

Once the state is initialized, bnsd instance can be started.

$ docker run \
    --rm \
    -it \
    -v $BNS_HOME:/bnshome \
    iov1/bnsd:latest \
        -home=/bnshome start \
        -bind=unix:///bnshome/app.sock
$ docker run -v $BNS_HOME:/tmhome \
    -p 26656:26656 \
    -p 26657:26657 \
    -it \
    --rm \
    iov1/tendermint:$TM_VERSION node \
        --home /tmhome \
        --proxy_app="unix:///tmhome/app.sock" \
        --moniker="local"

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package app links together all the various components to construct the bnsd app.
Package app links together all the various components to construct the bnsd app.
Package commands has integration tests of the bnsd application.
Package commands has integration tests of the bnsd application.
x
account
Package account implements Account functionality.
Package account implements Account functionality.
preregistration
Package preregistration implements a storage for account preregistration.
Package preregistration implements a storage for account preregistration.
termdeposit
Package termdeposit implements an intrest-bearing contracts.
Package termdeposit implements an intrest-bearing contracts.
username
Package username implements a register of names that point to any blockchain address.
Package username implements a register of names that point to any blockchain address.

Jump to

Keyboard shortcuts

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