Skip to main content

ShipChain

License Chat

Hydra manages many heads of networks

Quick-start Guide

Just trying to use hydra? Follow our Validator Setup Guide

Developer Instructions

Install

make virtualenv
source env/bin/activate

Configure client and run node

Note: Replace network-name with your chosen network (e.g. shipchain-testnet-alpha)

  1. Join a network hydra client join-network -n network-name
  2. Configure client hydra client configure -n network-name
  3. Start node and begin syncing with network - this will take a while 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

General Installation and Development Guidelines

Installation

$ pip install -r requirements.txt

$ pip install setup.py

Development

This project includes a number of helpers in the Makefile to streamline common development tasks.

Environment Setup

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

Releasing to PyPi

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

Deployments

Docker

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

Release files for shipchain-hydra 1.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shipchain-hydra 1.1.4
File Size Uploaded
shipchain-hydra-1.1.4.tar.gz 37.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for shipchain-hydra 1.1.4
File Interpreter ABI Platform
shipchain_hydra-1.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 82.2 kB

Release files / shipchain-hydra-1.1.4.tar.gz

Download URL shipchain-hydra-1.1.4.tar.gz
Size 37.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ccb4fbdf602aa5e683842c27d56eece3431f1945220c878f8869f8fb3daccc0c
BLAKE2b-256 checksum
How to use checksums
45faf1142bd5161fe9a2fc6bf83845ab503d1713ef1bc2620f21a4fee9cb40e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.9

Release files / shipchain_hydra-1.1.4-py3-none-any.whl

Download URL shipchain_hydra-1.1.4-py3-none-any.whl
Size 44.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
62ad061516945ff582190bc8e291f6c866146a7e011879d8746d57830abc2eaf
BLAKE2b-256 checksum
How to use checksums
316cd5980640bf2708d475d2b96a2249a90839d09884eb7ca18f2a39f543deae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.9

Release history Release notifications | RSS feed

This release

1.1.4 This release

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page