Skip to content

dodaa08/EVM-Bridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

EVM Bridge Logo

Build Status License OpenZeppelin

EVM Bridge

A simple, creative cross-chain token bridge for EVM-compatible blockchains!


Features

  • ERC20 token with mint & burn
  • Owner-only minting & unlocking
  • Event logging for all bridge actions
  • Cross-chain asset transfer support

Contracts

Contract Description
Token.sol ERC20 token with mint/burn, owned by deployer
BridgeEth.sol Base bridge for locking/unlocking tokens, owner-only unlock
BridgeBase.sol Polygon bridge, owner can mint/burn tokens on Polygon

Directory Structure

contracts/
  ├── Token.sol
  ├── BridgeEth.sol
  └── BridgeBase.sol

Quick Start

  1. Install dependencies:
    npm install
  2. Compile contracts:
    npx hardhat compile
  3. Run tests:
    npx hardhat test

Usage

  • Deploy Token.sol to your network.
  • Deploy BridgeEth.sol or BridgeBase.sol, passing the token address.
  • Use bridge contracts to lock, mint, burn, or unlock tokens as needed.

How It Works

flowchart LR
    User1[User on Chain A] -- Lock --> BridgeA[BridgeEth]
    BridgeA -- Event --> OffChainRelayer
    OffChainRelayer -- Mint Request --> BridgeB[BridgeBase]
    BridgeB -- Mint --> User2[User on Chain B]
Loading

Requirements

  • Node.js
  • Hardhat
  • OpenZeppelin Contracts (v4.9.6+)

⚖️ License

MIT


Made with ❤️ for the EVM ecosystem

About

Bridge Crypto Cross chain seamlessly

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published