Created by Talos - A revolutionary decentralized application that eliminates the stress of cryptocurrency payments by enabling secure, cancellable transfers and invoice functionality. Say goodbye to the anxiety of sending crypto to wrong addresses or waiting for payment confirmations!
The Problem: Traditional crypto payments are irreversible and stressful - one wrong address and your funds are gone forever.
The Solution: Aegis Transfer requires recipient acceptance and allows cancellation, making crypto payments as safe as traditional banking.
- Key Features
- How It Works
- Invoice System
- Architecture
- Getting Started
- Project Structure
- Development
- Live Demo
- Contributing
- Send funds that can be cancelled if not claimed within a timeframe
- Eliminate address errors - if recipient doesn't claim, you get your money back
- Time-based expiry - transfers automatically become cancellable after set duration
- Optional claim codes for additional security on sensitive transfers
- Request payments from specific addresses with detailed descriptions
- Professional invoicing for freelancers, businesses, and service providers
- Automatic payment tracking and status management
- Expiry dates for invoice validity
- Dashboard view of all pending incoming and outgoing transfers
- Real-time status tracking (pending, claimed, cancelled, expired)
- Multi-token support - ETH and ERC20 tokens
- Gas-optimized smart contracts built with Foundry
- Create Transfer: Send funds to a recipient address with optional expiry time
- Add Security: Optionally include a claim code for sensitive transfers
- Stay in Control: Cancel anytime if the transfer isn't claimed
- Peace of Mind: No more worrying about wrong addresses!
// Example: Send 1 ETH with 7-day expiry and claim code
createTransfer(
recipientAddress,
address(0), // ETH
0, // amount in msg.value
7 days, // expiry duration
"secret123" // optional claim code
)- Receive Notification: Get notified of incoming transfers
- Review Details: Check amount, sender, and any requirements
- Claim Funds: Use claim code (if required) to receive funds
- Instant Settlement: Funds transferred directly to your wallet
// Claim transfer with code
claimTransfer(transferId, "secret123")Perfect for freelancers, businesses, and anyone who needs to request payments professionally!
// Request 0.5 ETH payment with 30-day expiry
createInvoice(
payerAddress,
address(0), // ETH
500000000000000000, // 0.5 ETH in wei
30 days, // expiry
"Web development services" // description
)// Pay invoice by ID
payInvoice(invoiceId) // with ETH value- Freelance Work: Request payment for completed projects
- Business Services: Professional invoicing with crypto payments
- Recurring Payments: Set up regular payment requests
- Escrow Alternative: Secure payment requests with expiry dates
- SafeTransfer.sol: Core contract implementing cancellable transfers and invoices
- ISafeTransfer.sol: Interface defining contract functionality
- Comprehensive Testing: Full test suite with edge case coverage
- Gas Optimized: Efficient storage patterns and minimal gas usage
- Modern UI: Clean, intuitive interface for all transfer operations
- Web3 Integration: Seamless wallet connection and transaction handling
- Real-time Updates: Live status tracking and notifications
- Mobile Responsive: Works perfectly on all devices
Smart Contract Layer
├── Transfer Management (create, claim, cancel)
├── Invoice System (create, pay, track)
├── Security Features (claim codes, expiry)
└── Multi-token Support (ETH + ERC20)
Frontend Layer
├── Transfer Dashboard
├── Invoice Management
├── Wallet Integration
└── Transaction History
- Node.js 18+ and npm
- Git
- Foundry toolkit
- Clone the repository
git clone https://github.com/talos-agent/aegis-transfer.git
cd aegis-transfer- Set up Smart Contracts
cd contracts
forge install
forge build
forge test- Set up Frontend
cd ../frontend
npm install
npm run dev- Open your browser
Navigate to
http://localhost:3000to see the application
Create .env.local in the frontend directory:
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID=your_project_id
NEXT_PUBLIC_ALCHEMY_API_KEY=your_alchemy_keyaegis-transfer/
├── README.md # This comprehensive guide
├── contracts/ # Smart contract system
│ ├── src/SafeTransfer.sol # Core transfer logic
│ ├── src/ISafeTransfer.sol # Contract interface
│ ├── test/ # Comprehensive test suite
│ ├── script/ # Deployment scripts
│ └── foundry.toml # Foundry configuration
├── frontend/ # Next.js web application
│ ├── src/ # React components and logic
│ │ ├── components/ # UI components
│ │ ├── lib/ # Web3 integration
│ │ └── app/ # Next.js app router
│ ├── public/ # Static assets
│ └── package.json # Dependencies
└── .github/workflows/ # CI/CD automation
└── deploy-pages.yml # GitHub Pages deployment
# Build contracts
forge build
# Run tests
forge test
# Run tests with gas reporting
forge test --gas-report
# Deploy to local network
anvil # In separate terminal
forge script script/SafeTransfer.s.sol --rpc-url http://localhost:8545 --private-key <key># Development server
npm run dev
# Build for production
npm run build
# Run tests
npm test
# Lint code
npm run lintThe project includes comprehensive testing:
- Unit Tests: Individual function testing
- Integration Tests: End-to-end workflow testing
- Edge Cases: Boundary conditions and error scenarios
- Gas Optimization: Gas usage analysis and optimization
Try Aegis Transfer: https://talos-agent.github.io/aegis-transfer/
Experience the future of secure crypto payments with our live deployment on GitHub Pages!
We welcome contributions! Here's how to get started:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Run tests (
forge testandnpm test) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Follow existing code style and patterns
- Add tests for new functionality
- Update documentation as needed
- Ensure all CI checks pass
This project is licensed under the MIT License - see the LICENSE file for details.
- Talos - Creator and lead developer
- Foundry - Excellent smart contract development toolkit
- Next.js - Powerful React framework
- The Ethereum Community - For building the infrastructure that makes this possible
Built with ❤️ by Talos | Making crypto payments stress-free, one transfer at a time
