Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fernandezOli/daemonBridge

Repository files navigation

Daemon Bridge

An on-chain asset bridge for converting ERC-20 tokens between EVM-compatible blockchains without smart contracts or interfaces.

Features

  • Direct wallet-to-wallet transfers without intermediary contracts
  • No user interface requirement - interact directly through wallet transactions
  • Chain-agnostic - works with any EVM-compatible blockchain
  • Transaction traceability via hash references
  • Minimum code footprint (<1000 lines)
  • High security through proxy architecture

Security Features

  • No smart contracts to exploit
  • No oracles required
  • No direct daemon access except via proxy
  • All operations conducted through blockchain transactions
  • Proxy-based security model

Prerequisites

  • Node.js 16+
  • npm or yarn
  • Access to EVM blockchain RPC endpoints

Installation

npm install

Configuration

  1. Create .env file with required keys. See doc_run.md for detailed instructions.
  2. Configure networks and tokens in config/config.json. See doc_dev.md for detailed instructions.
  3. lorem

Usage

Single Server Mode

npm start

Launches server on port 3000

Demo Mode (4 daemons on one server)

npm run daemon1  # Port 3000
npm run daemon2  # Port 3001
npm run daemon3  # Port 3002
npm run daemon4  # Port 3003

Supported Networks & Tokens

Currently supporting Sepolia testnet as the source network:

Token Listener Address Destination Network Destination Token
LINK 0x962aC815B1249027Cfd80D6b0476C9090B5aeF39 Optimism Sepolia LINK
LINK 0x71f7aaB7f69a4Cc5509903C2585FC84ecaba5485 Arbitrum Sepolia LINK
LINK 0xF3842962562138C466649B19dEfc3C305af6BA64 Base Sepolia LINK

Architecture

Working Principle

Working Principle

Network Configurations

Production Mode: Production Configuration

Development

Project Structure

├── config/          # Configuration files
├── images/          # Architecture diagrams
├── hardhat-test/    # Test environment
└── docs/            # Developer documentations

Testing

cd hardhat-test
npx hardhat test

Error Handling

  • Automatic transaction validation
  • Failed transaction refunds
  • Network disruption recovery
  • Balance verification

Troubleshooting

  1. Server won't start:

    • Verify environment variables
    • Verify configuration
    • Check network RPC endpoints
    • Ensure sufficient gas balance
  2. Failed transactions:

    • Monitor gas prices
    • Verify token approvals
    • Check network status

Contributing

  1. Fork the repository
  2. Create feature branch: git checkout -b feature-name
  3. Commit changes: git commit -am 'Add feature'
  4. Push branch: git push origin feature-name
  5. Submit Pull Request

License

MIT License

Support

About

Deamon for bridge

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •