Skip to content
Programmable multi-asset chain
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.travis Fix travis scripts to comply with shellcheck Mar 4, 2019
codechain Create the network extension on the extension thread Mar 18, 2019
config Remove the option about shard validator Oct 25, 2018
core Compress the proposal message Mar 19, 2019
crypto Fix a macro to implement Blake for hashes Mar 5, 2019
discovery Remove an initialize callback from the network extension Mar 18, 2019
docker Build a Docker image using multi-stage builds Sep 6, 2018
docs Use the terminology Regulated instead of Centralized Mar 8, 2019
json Rename invoice to result Feb 25, 2019
key Fix Debug format for Private Mar 9, 2019
keystore Remove itertools Mar 8, 2019
network Remove an initialize callback from the network extension Mar 18, 2019
rpc Add range parameter to rpcs related to pending transactions Mar 13, 2019
scripts Add logstash config May 9, 2018
spec Update order spec Mar 14, 2019
state Make the transaction with an invalid approval return a syntax error Mar 15, 2019
stratum Upgrade primitives Jan 23, 2019
sync Compress the payload of the transaction sync Mar 19, 2019
test Compress the payload of the transaction sync Mar 19, 2019
types Make the transaction with an invalid approval return a syntax error Mar 15, 2019
util Remove the default implementaion of TimeoutHandler Mar 7, 2019
vm Update unit test cases Jan 24, 2019
.dockerignore Build a Docker image using multi-stage builds Sep 6, 2018
.editorconfig Reformat toml file Jul 6, 2018
.gitignore Add .vscode to gitignore file Sep 18, 2018
.mergify.yml Remove commented-reviews-by option in the mergify.yml Jan 7, 2019
.travis.yml Run the static analysis on another worker Mar 2, 2019
CODE_OF_CONDUCT.md Add Code of Conduct Jun 18, 2018
CONTRIBUTING.md Create CONTRIBUTING.md Jun 18, 2018
Cargo.lock Compress the proposal message Mar 19, 2019
Cargo.toml Change filter from IpAddr to IpCidr Feb 27, 2019
LICENSE Add LICENSE file Feb 4, 2018
README.md Fix clippy to check tests Feb 1, 2019
build.rs Add commitHash RPC Aug 21, 2018
clippy.toml Install rust-clippy Dec 2, 2018
docker_push.sh Change name of the "docker_push" script to "docker_push.sh" Jul 24, 2018
logstash.conf Add logstash config May 9, 2018
rust-toolchain Add rust-toolchain to set the default rust version Mar 13, 2019
rustfmt.toml Upgrade rustfmt Oct 27, 2018

README.md

CodeChain Build Status Gitter: CodeChain License: AGPL v3 Read the Docs

CodeChain is a programmable open source blockchain technology optimal for developing and customizing multi-asset management systems.

Build

Download CodeChain code

git clone git@github.com:CodeChain-io/codechain.git
cd codechain

Build in release mode

cargo build --release

This will produce an executable in the ./target/release directory.

Run

To run CodeChain, just run

./target/release/codechain -c solo

You can create a block by sending a parcel through JSON-RPC or JavaScript SDK.

Formatting

Make sure you run rustfmt before creating a PR to the repo. You need to install the nightly-2018-12-06 version of rustfmt.

rustup toolchain install nightly-2018-12-06
rustup component add rustfmt-preview --toolchain nightly-2018-12-06

To run rustfmt,

cargo +nightly-2018-12-06 fmt

Linting

You should run clippy also. This is a lint tool for rust. It suggests more efficient/readable code. You can see the clippy document for more information. You need to install the nightly-2018-12-06 version of clippy.

Install

rustup toolchain install nightly-2018-12-06
rustup component add clippy-preview --toolchain nightly-2018-12-06

Run

cargo +nightly-2018-12-06 clippy --all --all-targets

Testing

Developers are strongly encouraged to write unit tests for new code, and to submit new unit tests for old code. Unit tests can be compiled and run with: cargo test --all. For more details, please reference Unit Tests.

User Manual

Under docs folder, run following command.

make html

User manual will be generated at docs/_build/html.

License

CodeChain is licensed under the AGPL License - see the LICENSE file for details

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.