Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kushagrasarathe/citrea-sep-bridge
https://github.com/kushagrasarathe/citrea-sep-bridge
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kushagrasarathe/citrea-sep-bridge
- Owner: kushagrasarathe
- Created: 2024-07-11T08:39:49.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-07-13T10:49:19.000Z (4 months ago)
- Last Synced: 2024-07-14T11:59:56.853Z (4 months ago)
- Language: TypeScript
- Size: 1.2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Citrea to Sepolia Bridge
## Project Overview
This project is a one-way bridge that allows users to transfer cBTC (Citrea Bitcoin) to Sepolia ETH. It's a simple demonstration of cross-chain functionality between the Citrea devnet and the Sepolia testnet.
![flow](https://github.com/user-attachments/assets/b58ec8a8-c51f-4b5e-a1c6-c016263773b7)
## How It Works
1. Users lock their cBTC on the Citrea network.
2. A bridge operator monitors these lock events.
3. The operator then releases an equivalent amount of ETH on the Sepolia network.## Main Components
1. **LockCBTC Contract (on Citrea)**
- Allows users to lock their cBTC.
- Emits an event when cBTC is locked.2. **ReleaseSepETH Contract (on Sepolia)**
- Releases ETH to users after their cBTC is locked on Citrea.
3. **Bridge Operator**
- Monitors events on Citrea.
- Triggers ETH release on Sepolia.4. **User Interface**
- A simple web app for users to lock their cBTC.## How to Use
1. Connect your wallet to the Citrea network.
2. Enter the amount of cBTC you want to bridge.
3. Click "Bridge" button and confirm the transaction.
4. Wait for the bridge operator to process your transaction.
5. Receive your ETH on the Sepolia network.## Technical Details
- Built with Next.js and TypeScript
- Uses wagmi for blockchain interactions
- Smart contracts written in Solidity deployed on Citrea and Seploia testnets## Future Improvements
- Add reverse bridging (Sepolia to Citrea)
- Implement better security measures