dogschain

module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: Apache-2.0

README

DogsChain

This repository hosts dogschain, the implementation of the dogschain based on the Cosmos SDK.

Note: Requires Go 1.15+

INSTALL DOGSCHAIN

This guide will explain how to install the dogschaind and dogschaincli entrypoints onto your system.

Step 1 : Install Go

Install go by following the official docs. Remember to set your $PATH environment variable, for example:

mkdir -p $HOME/go/bin  
echo "export PATH=$PATH:$(go env GOPATH)/bin" >> ~/.bash_profile  
echo "export GOPATH=$HOME/go" >> ~/.bash_profile  
echo "export GOBIN=$GOPATH/bin" >> ~/.bash_profile  
echo "export PATH=$PATH:$GOBIN" >> ~/.bash_profile  
source ~/.bash_profile  

Under Windows, you may set environment variables(HOME or GO111MODULE) through the “Environment Variables” button on the “Advanced” tab of the “System” control panel. Some versions of Windows provide this control panel through the “Advanced System Settings” option inside the “System” control panel.

$env:GO111MODULE="on"
Step 2 : Build install dogschaind and dogschaincli

Next, let’s install the latest version of DogsChain. Make sure you git checkout the latest released version.

git clone -b <latest-release-tag> https://github.com/dogschain/dogschain
export GO111MODULE=on
cd dogschain && make install

If this command fails due to the following error message, you might have already set LDFLAGS prior to running this step.

flag provided but not defined: -L
usage: link [options] main.o
...
make: *** [install] Error 2

Unset this environment variable and try again.

LDFLAGS="" make install

NOTE: If you still have issues at this step, please check that you have the latest stable version of GO installed.

Step 3 : Verify dogschaind and dogschaincli

That will install the dogschaind and dogschaincli binaries. Verify that everything is OK:

$ dogschaind version --long
$ dogschaincli version --long

dogschaincli for instance should output something similar to:

name: dogschain
server_name: dogschaind
client_name: dogschaincli
version: 1.0.0
commit: 3a419991283c48c6d9facfff8771f8a21e30a9a7
build_tags: netgo,ledger
go: go version go1.15.8 darwin/amd64
build_deps:
- github.com/cosmos/cosmos-sdk@v0.39.2
- github.com/tendermint/tendermint@v0.33.9
- ...

REFERENCES

Cosmos

Cosmos Hub

Cosmos SDK

Tendermint Core

Cosmos Rest Api

Directories

Path Synopsis
app
ante
Package ante defines the SDK auth module's AnteHandler as well as an internal AnteHandler for an Ethereum transaction (i.e MsgEthereumTx).
Package ante defines the SDK auth module's AnteHandler as well as an internal AnteHandler for an Ethereum transaction (i.e MsgEthereumTx).
rpc
Package rpc contains RPC handler methods, namespaces and utilities to start DogsChain's Web3-compatible JSON-RPC server.
Package rpc contains RPC handler methods, namespaces and utilities to start DogsChain's Web3-compatible JSON-RPC server.
cmd
x
evm

Jump to

Keyboard shortcuts

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