Skip to content

no-hive/simple_bridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License Commit Count Last Commit Tests coverage Testnet Mainnet

Simple cross-chain bridge between two EVM networks.

        |xx|              x|   ~
        |xx|      ~      |x|
        |xx|        ~    |x| 
        |xx|             |x|                     If you ever use this code,
    ============|===============|===--            please, star this repo!
   ~~~~~|xx|~~~~~~~~~~~~~|x|~~~ ~~  ~   ~ ~~~  ~~ ~~~~ ~  ~~~  ~    ~~~  ~~~   ~~ 

Introduction

This code is the improved version of capebridge's smart contracts. This project was built for the hackathon, and due to strict time constraints during the hackathon we built it for, the initial implementation lacks everything besides the basic functionality. That's why after the hackathon, I began rewriting the contracts as a learning exercise.

So what will you find in this repo?

Two smart contracts that can operate between any EVM-compatible L1 and L2 networks. They work with existing tokens and does not use any minting or burning mechanics, that produces smth often called "wrapped tokens".

What you won't find in this repo:

The communication between contracts on different networks is up to a network of off-chain nodes. You can find them in original hackathon repo. There, it is built on Golang language, however, you can build your own version on any language - just make it run in docker container and make sure you understand that for mainnet version you will need independent operators network.

Finally, what will the final system built with these smart contracts look like:

image

Extra comments

Note # 1: Most of NatSpec comments in the code were written by the ai agents.

Note # 2: only up to 5% of code were written by the ai agents, and even this small contribution was carefully verified.

Note # 3: do use this code for production before you conduct extra security checks.

About

Cross-chain bridge for EVM-compatible L1/L2 networks. Transfer any ERC-20 token that already exists on both chains without minting or burning.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors