Skip to content

SwiftBridge/swiftbridge-docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

swiftbridge-docs

SwiftBridge

Seamless crypto offramp/onramp, swaps, and P2P transfers on Base network

License: MIT Base Network Testnet


๐ŸŒ‰ What is SwiftBridge?

SwiftBridge is a comprehensive crypto bridge solution that enables:

  • Offramp/Onramp: Buy and sell crypto with Nigerian Naira
  • Token Swaps: Exchange tokens via Uniswap V3
  • P2P Transfers: Send crypto using Telegram usernames
  • Easy Access: Via Telegram bot and web mini app

๐Ÿ—๏ธ Project Structure

SwiftBridge/
โ”‚
โ”œโ”€โ”€ swiftbridge-contracts/    # Smart contracts on Base
โ”‚   โ”œโ”€โ”€ UserRegistry          # Username โ†’ wallet mapping
โ”‚   โ”œโ”€โ”€ EscrowManager         # Buy/sell escrow system
โ”‚   โ”œโ”€โ”€ P2PTransfer          # Send to @username
โ”‚   โ””โ”€โ”€ SwapRouter           # Token swaps
โ”‚
โ”œโ”€โ”€ swiftbridge-bot/          # Telegram bot
โ”‚   โ”œโ”€โ”€ Commands              # /buy, /sell, /send, /swap
โ”‚   โ”œโ”€โ”€ Blockchain service    # Contract interactions
โ”‚   โ””โ”€โ”€ Rate service         # Exchange rates
โ”‚
โ””โ”€โ”€ swiftbridge-miniapp/      # Web mini app
    โ”œโ”€โ”€ Wallet connection     # Reown AppKit
    โ”œโ”€โ”€ Dashboard            # Balance view
    โ”œโ”€โ”€ Swap interface       # Token swaps
    โ””โ”€โ”€ Send interface       # P2P transfers

๐Ÿš€ Quick Start

For Users

Via Telegram Bot:

  1. Open @swiftbridgebot
  2. Send /start
  3. Register with /register
  4. Start using SwiftBridge!

Via Mini App:

  1. Visit app.swiftbridge.com
  2. Connect your wallet
  3. Swap, send, and manage crypto

For Developers

# Clone all repositories
git clone https://github.com/SwiftBridge/swiftbridge-contracts
git clone https://github.com/SwiftBridge/swiftbridge-bot
git clone https://github.com/SwiftBridge/swiftbridge-miniapp

# Or use the org
git clone https://github.com/SwiftBridge/* --recursive

See individual README files in each repo for setup instructions.


๐Ÿ“ฆ Deployed Addresses (Base Sepolia)

Contract Address
UserRegistry 0xFaaE...3667
EscrowManager 0xBd52...2568
P2PTransfer 0x2B11...3774
SwapRouter 0xb71A...0DCdf

โœจ Features

๐Ÿ”— Smart Contracts

  • Username registration for easy P2P transfers
  • Secure escrow system for fiat on/offramp
  • P2P transfers using Telegram usernames
  • Token swaps via Uniswap V3
  • Fee collection mechanism

๐Ÿค– Telegram Bot

  • /buy <amount> <token> - Buy crypto with Naira
  • /sell <amount> <token> - Sell crypto for Naira
  • /send <amount> <token> to @username - P2P transfers
  • /swap <amount> <from> to <to> - Token swaps
  • /balance - Check balances
  • /rates - Live exchange rates

๐ŸŽจ Mini App

  • Connect any Web3 wallet (MetaMask, WalletConnect, etc.)
  • Beautiful dashboard with portfolio overview
  • Easy-to-use swap interface
  • Send crypto to Telegram usernames
  • Real-time balance updates

๐Ÿ› ๏ธ Tech Stack

  • Smart Contracts: Solidity, Hardhat, OpenZeppelin
  • Bot: Node.js, Grammy, Ethers.js
  • Mini App: Next.js, Reown AppKit, Wagmi, Tailwind
  • Blockchain: Base (Sepolia testnet)

๐Ÿ“Š Supported Tokens

  • USDC - USD Coin
  • WETH - Wrapped Ether
  • More tokens coming soon

๐ŸŽฏ Roadmap

โœ… Phase 1 - Testnet Launch (COMPLETED)

  • Smart contract development
  • Telegram bot
  • Web mini app
  • Base Sepolia deployment

๐Ÿšง Phase 2 - Mainnet Preparation

  • Professional security audit
  • Real payment processor integration
  • Enhanced UI/UX
  • Comprehensive testing

๐Ÿ”ฎ Phase 3 - Mainnet & Growth

  • Deploy to Base mainnet
  • Marketing campaign
  • Partnerships
  • User acquisition

๐Ÿ’ซ Phase 4 - Expansion

  • Multi-chain support
  • More tokens
  • Advanced features
  • Mobile apps

๐Ÿ” Security

Current (Testnet)

  • OpenZeppelin battle-tested contracts
  • ReentrancyGuard on state-changing functions
  • Access control and pausability
  • โš ๏ธ Not audited - testnet only

Future (Mainnet)

  • Professional security audit
  • Bug bounty program
  • Comprehensive testing
  • Insurance coverage

๐Ÿ“– Documentation


๐Ÿค Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

Development Setup

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Open a Pull Request

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


๐Ÿ™ Acknowledgments


๐Ÿ’ฌ Community & Support


โš ๏ธ Disclaimer

TESTNET VERSION: This is a testnet deployment on Base Sepolia for testing purposes only. Do not use with real funds. The smart contracts have not been professionally audited. Use at your own risk.

For production deployment on mainnet, comprehensive security audits and testing are required.


๐Ÿ“ˆ Stats

  • Contracts Deployed: 4
  • Lines of Code: ~2,500
  • Bot Commands: 10+
  • Supported Tokens: 2 (growing)
  • Network: Base Sepolia (testnet)

๐ŸŒŸ Star History

If you find this project useful, please consider giving it a star โญ


Built with โค๏ธ for the Base ecosystem

Website โ€ข Docs โ€ข Blog

About

about us

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •