Just trying to use hydra? Follow our Validator Setup Guide
make virtualenv
source env/bin/activate
Note: Replace network-name with your chosen network (e.g. shipchain-testnet-alpha)
hydra client join-network -n network-name
hydra client configure -n network-name
cd network-name && ./start_blockchain.sh
Your node is sync'd to the network when curl localhost:46657/status
returns sync_info.catching_up: false
Shipchain validator node commands can be accessed from ~/hydra/network-name/shipchain
$ pip install -r requirements.txt
$ pip install setup.py
This project includes a number of helpers in the Makefile
to streamline common development tasks.
The following demonstrates setting up and working with a development environment:
### create a virtualenv for development
$ make virtualenv
$ source env/bin/activate
### run hydra cli application
$ hydra --help
### run pytest / coverage
$ make test
Before releasing to PyPi, you must configure your login credentials:
~/.pypirc:
[pypi]
username = YOUR_USERNAME
password = YOUR_PASSWORD
Then use the included helper function via the Makefile
:
$ make dist
$ make dist-upload
Included is a basic Dockerfile
for building and distributing ShipChain Network Hydra Manager
,
and can be built with the included make
helper:
$ make docker
$ docker run -it hydra --help