COMIT is an open protocol facilitating trustless cross-blockchain applications. This is a reference implementation for the COMIT protocol.
This repository is a cargo workspace:
Cargo.toml for a description of what they do.libp2p-comit: implementation of the comit messaging protocol on top of libp2pAll you need is love rust: curl https://sh.rustup.rs -sSf | sh
cargo build~/.config/comit/btsieve.toml or pass --config <config_file>.target/debug/btsievetarget/debug/cndIf the [web_gui] section is specified in the configuration file the current release of the user interface comit-i will be served once cnd is started up (served at localhost:8080 by default).
Keep in mind that in order to do a swap locally you will need to start two instances of cnd and at least one instance of btsieve.
docker & docker-composenode (check the version required in api_tests/package.json) & yarnnightly-2019-07-31: rustup install nightly-2019-07-31 (this one is only used for rustfmt)rustfmt for nightly-2019-07-31: rustup component add rustfmt --toolchain nightly-2019-07-31cargo-make: cargo install cargo-makecargo make in the root folder of the repository, this will install various crates & tools such as clippycargo make runs the whole test suite including integration tests but not end-to-end.cargo make all also runs the whole test suite, including end-to-end tests.cargo make format to format Rust codecargo make ts-fix to format Typescript codecargo make btsieve to run btsieve testscargo make dry to run cnd dry testscargo make api to run all API testscargo make e2e to run cnd end-to-end testscargo make e2e *btc* to run cnd end-to-end tests with btc in the folder name (supports shell glob on the name)Alternatively, you can run the end-to-end tests and TypeScript related actions using yarn (careful! It does not recompile Rust for you):
yarn run test: run all testsyarn run test <directory>: run all tests in the directoryyarn run test <path to test file>: run all tests in this test file, supports shell glob on the pathyarn run fix: run prettier and linter to fix formatyarn run check: run tsc (to check validity of TypeScript code) and verify formatContributions are welcome, please visit CONTRIBUTING for more details.
This project is licensed under the terms of the GNU GENERAL PUBLIC LICENSE v3.
Content type
Image
Digest
Size
70.6 MB
Last updated
about 7 years ago
docker pull coblox/cnd:0.2.1-RC