Skip to content

crypto-org-chain/chain-main

Folders and files

NameName
Last commit message
Last commit date

Latest commit

641d3b9 · Dec 6, 2023
Jun 23, 2023
Dec 5, 2023
Feb 24, 2021
Jul 25, 2023
Aug 15, 2022
Mar 10, 2022
Feb 24, 2021
Dec 5, 2023
Nov 5, 2020
Sep 15, 2023
Sep 23, 2022
Jul 25, 2023
Jun 12, 2023
Aug 15, 2022
Feb 17, 2023
Aug 14, 2023
May 7, 2021
Feb 9, 2023
Sep 9, 2020
Sep 29, 2022
Apr 6, 2022
Sep 23, 2022
Sep 29, 2022
Oct 15, 2020
Dec 6, 2023
Jan 6, 2023
Apr 12, 2021
Mar 5, 2021
Jul 26, 2022
Mar 2, 2023
Sep 5, 2022
Jul 26, 2022
Feb 24, 2021
Jan 11, 2021
Sep 23, 2022
Dec 6, 2023
Sep 28, 2020
Sep 29, 2022
Apr 27, 2023
Jun 9, 2023
Oct 26, 2023
Oct 26, 2023
Oct 26, 2023
Jun 22, 2021
Apr 20, 2021
Oct 31, 2022
Oct 9, 2020
Jan 6, 2023

Repository files navigation


Crypto.org Chain


Table of Contents

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.

Please abide by the Code of Conduct in all interactions, and the contributing guidelines when submitting code.

Apache 2.0

Technical documentation can be found in this Github repository (you can read it in this hosted version).

# COSMOS_BUILD_OPTIONS=rocksdb make build
make build

By default, the command will build a binary with Mainnet configurations.

To build with different network, provided NETWORK variable to make command

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

If you're using a recent Mac with a T2 chip, you might need to check nix macos installation when the command above is not working in your environment.

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 your local blockchain by following this documentation.

There are different tests that can be executed in the following ways:

  • unit tests: make test
  • simulations: make test-sim-* (e.g. make test-sim-nondeterminism)
  • integrations tests: make nix-integration-test (see more details in their documentation)

you can install pystarport to manage nodes for development.

install latest python (for linux)

python version should be 3.8 or above. you can install python like this.

git clone git@github.com:python/cpython.git
cd cpython
git checkout tags/v3.9.5
./configure
make
sudo make install

set path (for linux or for mac)

in some cases, if there are multiple python versions, pystarport cannot be found.
then adjust python path.
also $HOME/.local/bin should be included to the PATH.

export PATH=/usr/local/bin:$HOME/.local/bin:$PATH

install pystarport

python3 -m pip install pystarport

quick start

run two nodes devnet

pystarport serve --data=./data --config=./integration_tests/configs/default.yaml

get status

pystarport supervisorctl status

stop all

pystarport supervisorctl stop all