A cross-chain token bridge implementation using Account Abstraction and Teleporter for secure and efficient token transfers between different blockchain networks.
This project implements a cross-chain token bridge that allows users to:
- Transfer tokens between different blockchain networks
- Execute swaps through TraderJoe DEX
- Handle cross-chain messaging using Teleporter
- Manage fees and collateral for cross-chain operations
- Cross-Chain Token Transfers: Seamlessly transfer tokens between different blockchain networks
- DEX Integration: Built-in integration with TraderJoe for token swaps
- Account Abstraction: Enhanced security and user experience through ERC-4337
- Fee Management: Configurable fee system with basis points
- Collateral Management: Secure handling of cross-chain collateral
- Foundry
- Access to blockchain RPC endpoints
- Clone the repository:
git clone https://github.com/BIG-Labs/dumb-contract
cd dumb-contract- Install dependencies:
forge install- Set up your environment variables:
cp .env.example .env- Configure the following in your
.envfile:
PRIVATE_KEY: Your deployer private key
forge buildforge testforge script script/DeployRouter.s.sol:DeployRouter --rpc-url <your_rpc_url> --private-key <your_private_key> --broadcastStart a cross-chain transfer:
router.start(
token,
amount,
instructions,
receiver
);The project consists of several key components:
- Router: Main contract handling cross-chain transfers and swaps
- TokenHome: Manages token transfers on the source chain
- TokenRemote: Handles token reception on the destination chain
- Teleporter: Handles cross-chain messaging
This project is licensed under the MIT License - see the LICENSE file for details.
For support, please open an issue in the GitHub repository or contact the maintainers.