Skip to content

tlulu/rainbow-bridge

 
 

Repository files navigation

Bridge

Build Status Coverage Status

Description

Near <> Ethereum decentralized bridge

Start with wiki: https://github.com/nearprotocol/bridge/wiki

The Ethereum<>NEAR bridge is going to be implemented as mutual smart contract based light client, thus would provide full security of respective networks for the bridge. Currentlty, building NEAR smart contract and relayer for Etheruem blockchain light verification.

Projects list

  • Contract Setup: NodeJS short-running tool that performs necessary setup and initialization of the contracts;
  • EthBridge: Rust (WASM) smart contract for Near blockchain, Ethereum light client storing hashes of blocks
  • EthRelay: NodeJS service, streaming Ethereum block headers to EthBridge smart contract in Near blockchain.
  • EthProver: Rust (WASM) smart contract for Near blockchain, helps verify log entry was included in tx receipt, which was included in block
  • NearBridge: Solidity smart contractfor for Ethereum blockchain, Near light client stoging hashes of blocks
  • NearRelay: NodeJS application, streaming Near block headers to NearBridge smart contract in Ethereum blockchain.
  • NearProver: Solidity smart contractfor Ethereum blockchain, helps verify tx outcome was included in in block

How to run

  1. EthBridge:
    • Test with ./test.sh
    • Compile into WASM with ./build.sh
  2. NearBridge:
    • Prepare with yarn
    • Test with yarn run test
    • Flatten yarn run dist
    • Compile yarn run truffle compile
  3. EthRelay:
    • Prepare with yarn and ethashproof/build.sh
    • Run localnet to localnets with yarn run test
    • Run mainnet to localnet with yarn run start
    • Check scripts subdir for other modes
  4. NearRelay:
    • Run localnet to localnets with yarn run test
    • Run mainnet to localnet with yarn run start
    • Check scripts subdir for other modes
  5. EthProver:
    • Compile with ./build.sh
    • Run localnet to localnets with yarn run test

About

🌈🌈🌈 Near <> Ethereum Decentralized Bridge

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Rust 37.7%
  • JavaScript 24.7%
  • Solidity 24.3%
  • Python 10.9%
  • Shell 2.2%
  • Dockerfile 0.2%