develap

command module
v0.0.0-...-49f567b Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2019 License: MIT Imports: 1 Imported by: 0

README

Pre-requisites

Available nodes to be setup

  1. Mainchain node
    • mainnet: [20334 - RESTAPI Port, 20336 - RPC Port]
    • testnet: [21334 - RESTAPI Port, 21336 - RPC Port]
  2. DID node
    • mainnet: [20604 - RESTAPI Port, 20606 - RPC Port]
    • testnet: [21604 - RESTAPI Port, 21606 - RPC Port]
  3. Token node
    • mainnet: [20614 - RESTAPI Port, 20616 - RPC Port]
    • testnet: [21614 - RESTAPI Port, 21616 - RPC Port]
  4. Eth node(only on testnet)
    • testnet: [21636 - RPC Port]

How to Run

  • Run a testnet environment with mainchain, did, token and eth nodes ./develap blockchain run -e testnet -n mainchain,did,token,eth
  • Run a testnet environment with mainchain node ./develap blockchain run -e testnet -n mainchain
  • Run a mainnet environment with did node ./develap blockchain run -e mainnet -n did
  • Kill token node on mainnet environment ./develap blockchain kill -e mainnet -n token
  • Kill all the nodes on testnet environment ./develap blockchain kill -e testnet
  • Show all the nodes currently running in mainnet environment ./develap blockchain list -e mainnet

How to build the binary yourself

  • If you're running go version lower than 1.13, you'll need to do the following: export GO111MODULE=on
  • go mod vendor
  • make to build it for your local environment
  • make build-all to build for 3 platforms: linux, darwin and windows

Tools

  • build_dockerimages.sh: This shell script automatically builds all the binaries for main chain, all the sidechains, services, etc and then packages them to be run inside docker images and if the flags "-p" and "-l" are set to "yes", the built docker images are automatically pushed to Cyber Republic Docker Hub. Note that you need permission to push to the CR dockerhub but you can still build the images locally if you so choose

Documentation

Overview

Copyright © 2019 Kiran Pachhai

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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