GithubHelp home page GithubHelp logo

damian123 / chainx Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chainx-org/chainx

0.0 1.0 0.0 7.21 MB

Cross-chain hub for Crypto Asset on Polkadot

Home Page: https://chainx.org

License: GNU General Public License v3.0

Makefile 0.21% Rust 99.64% Shell 0.15%

chainx's Introduction

ChainX

โ—๏ธ To avoid distractions and move quickly, we make the hard choice of developing ChainX in a private codebase. Once it's been fully tested and audited with great care, we'll put it public again. Stay tuned!


Introduction

For the time being the goal of ChainX is to build a cross-chain digital asset management platform on the strength of substrate which is next-generation framework for blockchain created by paritytech. The long-term vision of ChainX is to evolve as a general blockchain infrastrcutre platform.

transparent

ChainX is still at a very early stage and in an active development. The instruction as followed is not stable and may change in the future.

Features

  • Built-in light client of existing blockchains.

  • Built-in Coin DEX.

  • Progressive staking and election machanism.

  • And more.

Roadmap

1.0: Independent Chain

ChainX 1.0 will operate as an independent chain at the very beginning, supporting the Coin DEX between the system currency PCX and BTC powed by BTC cross-chain transaction from the relay. At this stage, ChainX will continue to relay BCH, LTC, ZEC, ETH, DAI, ERC20, ERC721, ADA, EOS and other chains for Coin DEX.

2.0: Polkadot Parachain

ChainX 2.0 will begin at Q3 2019 when Polkadot releases v1. It will connect into Polkadot and transform into a para-chain, adding new applications such as decentralized stable currency collateralized by BTC and derivatives exchanges.

3.0: Polkadot level 2 multi-chain system

ChainX 3.0 will begin at 2020 when Polkadot releases v2, splited into a multi-chain architecture operating as Polkadot's level 2 relay network.

Installation

Building from source

Requirement

Refer to Hacking on Substrate as well.

Ensure you have Rust and the support software installed:

$ curl https://sh.rustup.rs -sSf | sh
$ rustup update nightly
$ rustup target add wasm32-unknown-unknown --toolchain nightly
$ rustup update stable
$ cargo install --git https://github.com/alexcrichton/wasm-gc

Ubuntu:

$ sudo apt install cmake pkg-config libssl-dev git

Mac:

$ brew install cmake pkg-config openssl git

Build the code

# Get the source code
$ git clone https://github.com/chainx-org/ChainX ~/ChainX
$ cd ~/ChainX

# Note: build ChainX with nightly
$ cargo +nightly build --release

When you succeed to build the project with cargo build --release, the chainx binary should be present in target/release/chainx.

Testnet

Connect to the public testnet of ChainX:

# display status of your node on https://telemetry.polkadot.io/ via `--telemetry`
# customize your name on the telemetry page via `--name` 
$ RUST_LOG=info ./chainx --chainspec=dev --telemetry --name=YOUR_NAME --bootnodes=/ip4/47.93.16.189/tcp/20222/p2p/QmRdBJk8eVPjkHcxZvRAUZdWtTq96mWivJFc7tpJ8fUEGU --db-path=/tmp/chainx

Validating on PoC 3

If you have succeeded to connect to our testnet, being a validator is not hard:

  1. follow the instruction above to start a node util it is synced.

  2. Create an account using our web-based wallet. Save your seed and take note of your account's address.

  3. File an application to be a validator in our telegram chainx_org, which should include your name, url and ChainX address of validator account.

  4. Rerestart your node with --key=<seed> validator:

    RUST_LOG=info ./chainx --chainspec=dev --telemetry --name=YOUR_NAME --bootnodes=/ip4/47.93.16.189/tcp/20222/p2p/QmRdBJk8eVPjkHcxZvRAUZdWtTq96mWivJFc7tpJ8fUEGU --db-path=/tmp/chainx --key=<seed> validator

Development

We assume chainx is in your $PATH in the following sections. Run this command so that chainx could be found in $PATH:

$ export PATH=$(pwd)/target/release:$PATH

Run a local testnet

Start a local chainx testnet by running:

$ chainx --chainspec=dev --key=Alice validator

License

GPL v3

chainx's People

Contributors

gguoss avatar liuchengxu avatar toxotguo avatar eee-byte avatar icodezjb avatar koushiro avatar shawntabrizi avatar

Watchers

Damian avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.