Crypto.org Chain is a blockchain application built using Cosmos SDK and Tendermint, intended as a backbone for some of the existing and future Crypto.org ecosystem.
By default, the command will build a binary with Mainnet configurations.
To build with different network, provided
NETWORK variable to
NETWORK=testnet make build
Nix is a (cross-language) package manager for reproducible builds. On Linux and macOS, you can install it as follows (on Windows 10, you can possibly use the Windows Subsystem for Linux):
$ curl -L https://nixos.org/nix/install | sh
You can then run:
$ make chaindImage
Which will build a docker image that contains the full node binary.
Optionally, you can also use a binary cache to speed up the build process:
$ nix-env -iA cachix -f https://cachix.org/api/v1/install $ cachix use crypto-org-chain
Please follow this documentation to run a local devnet.
After setting the local devnet, you may interact with the your local blockchain by following this documentation.
There are different tests that can be executed in the following ways:
make nix-integration-test(see more details in their documentation)
you can install pystarport to manage nodes for development.
python version should be 3.8 or above. you can install python like this.
git clone [email protected]:python/cpython.git cd cpython git checkout tags/v3.9.5 ./configure make sudo make install
in some cases, if there are multiple python versions, pystarport cannot be found.
then adjust python path.
$HOME/.local/bin should be included to the PATH.
python3 -m pip install pystarport
run two nodes devnet
pystarport serve --data=./data --config=./integration_tests/configs/default.yaml
pystarport supervisorctl status
pystarport supervisorctl stop all