Skip to content

A simple bridge contract to the Base Sepolia Chain and the Holesky Chain. Users can then send custom ERC20 tokens from one chain to the other by interacting with the bridge contract.

License

Notifications You must be signed in to change notification settings

dodger213/Bridge

Repository files navigation

Bridge Contracts for Cross-Chain Asset Transfers

A decentralized bridge implementation that enables secure cross-chain transfers between Base Sepolia and Holesky networks.

Overview

This project implements a bridge contract system allowing asset transfers between:

  • Base Sepolia Chain
  • Holesky Chain (Ethereum testnet)

Technical Stack

  • Hardhat Development Environment
  • TypeScript
  • Hardhat Ignition for deployment management
  • Environment configuration via dotenv
  • Testing framework with Chai assertions

Key Features

  • Secure cross-chain asset transfers
  • Owner-controlled bridge deployment
  • Automated testing suite
  • Configurable deployment parameters

Setup

  1. Install dependencies:
npm install
  1. Configure environment variables: Create a .env file with:
INFURA_API_KEY=your_infura_key
PRIVATE_KEY=your_private_key
ETHERSCAN_KEY=your_etherscan_key
BASESCAN_KEY=your_basescan_key

Testing

Run tests:

npx hardhat test

Deployment

  1. Deploy the bridge contract:
npx hardhat run scripts/deploy.ts --network <network>
  1. Verify the contract on Etherscan:
npx hardhat verify --network <network> <contract_address>

Security

  • Owner-controlled deployment
  • Comprehensive test coverage
  • Network-specific configurations

Networks

  • Base Sepolia: For Base testnet operations
  • Holesky: For Ethereum testnet operations

License

MIT

About

A simple bridge contract to the Base Sepolia Chain and the Holesky Chain. Users can then send custom ERC20 tokens from one chain to the other by interacting with the bridge contract.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published