Skip to content

Official implementation of the YeeCo Branch Chain (Layer 2)

License

Notifications You must be signed in to change notification settings

yecall/yeebranch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yeebranch

standard-readme compliant

Official implementation of the YeeCo Branch Chain (Layer 2)

YeeCo is a permissionless, secure, high performance and scalable public blockchain platform powered by full sharding technology on PoW consensus.

Table of Contents

Description

Yeebranch is designed as layer 2 of YeeCo.

Layer Name Consensus Transaction types
1 Yeeroot chain
  • POW for block generation
  • CRFG for block finalization
  • Native coin tx
  • Token tx
  • Meta tx of branch chains
2 Yeebranch chain Optional
  • DPOS
  • POA
  • Basic tx
  • Smart contract tx

Install

Requirements

  1. Rust
    curl https://sh.rustup.rs -sSf | sh
  2. Openssl
  3. Rust nightly
    rustup toolchain add nightly
  4. rust nightly wasm
    rustup target add wasm32-unknown-unknown
    rustup target add wasm32-unknown-unknown --toolchain nightly
  5. wasm-gc
    cargo install wasm-gc
  6. Rust components: clippy rls docs src rustfmt
    rustup component list # list all the components installed
    rustup component add <name> # install component

Prepare yeeroot chain resources

Yeebranch runs a light node of yeeroot chain internally, so it needs the following resources of the yeeroot chain:

  • Runtime WASM

    After you build yeeroot project, You will get the Runtime WASM on <yeeroot_project_base_dir>/runtime/wasm/target/wasm32-unknown-unknown/release/yee_runtime_wasm.compact.wasm

  • Chain spec

    Run build-spec to export chain spec file:

    $ yee build-spec --dev > root_chain_sepc.json

Building

$ cd <project_base_dir>/runtime/wasm
$ sh build.sh
$ cd <project_base_dir>
$ WASM_CODE_PATH=<yeeroot_project_base_dir>/runtime/wasm/target/wasm32-unknown-unknown/release/yee_runtime_wasm.compact.wasm cargo build

Usage

Start

  1. Deploy yeeroot chain sepc

    $ mkdir -p <yeebranch_run_base_path>/conf
    $ cp root_chain_sepc.json <yeebranch_run_base_path>/conf

    <yeebranch_run_base_path> is: ~/Library/Application\ Support/YeeBranch/ or the one you specify by ./yee-branch --base-path=<yeebranch_run_base_path>,

  2. Start the node

    $ ./yee-branch --base-path=<yeebranch_run_base_path> --dev --alice

Contributing

Feel free to dive in! Open an issue.

Contributors

License

GPL

About

Official implementation of the YeeCo Branch Chain (Layer 2)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published