Contributing to Web3 Agent Kit

July 23, 2026 ยท View on GitHub

Thank you for your interest in contributing! ๐ŸŽ‰

Getting Started

Prerequisites

  • Python 3.10+
  • Git
  • pip or uv

Setup

# Clone the repo
git clone https://github.com/ulsreall/web3-agent-kit.git
cd web3-agent-kit

# Create virtual environment
python -m venv venv
source venv/bin/activate  # Linux/macOS
# venv\Scripts\activate   # Windows

# Install dependencies
pip install -e ".[dev]"

# Run tests
pytest tests/ -v

How to Contribute

Reporting Bugs

  1. Check existing issues
  2. Create a new issue using the bug report template
  3. Include as much detail as possible

Suggesting Features

  1. Check existing issues
  2. Create a new issue using the feature request template

Submitting Changes

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Make your changes
  4. Add tests for new functionality
  5. Ensure all tests pass: pytest tests/ -v
  6. Commit your changes: git commit -m 'feat: add amazing feature'
  7. Push to the branch: git push origin feature/amazing-feature
  8. Open a Pull Request

Code Style

  • Follow PEP 8
  • Use type hints where possible
  • Write docstrings for all public methods
  • Keep functions focused and small

Commit Messages

We follow Conventional Commits:

feat: add new feature
fix: resolve bug
docs: update documentation
test: add tests
refactor: improve code structure
chore: update dependencies

Testing

# Run all tests
pytest tests/ -v

# Run specific test file
pytest tests/test_llm.py -v

# Run with coverage
pytest tests/ --cov=web3_agent_kit --cov-report=html

Project Structure

web3-agent-kit/
โ”œโ”€โ”€ web3_agent_kit/          # Source code
โ”‚   โ”œโ”€โ”€ agent/              # AI agent framework (core, LLM integration)
โ”‚   โ”œโ”€โ”€ wallet/             # Wallet management (single, multi-wallet, approvals, watcher)
โ”‚   โ”œโ”€โ”€ chains/             # Multi-chain support
โ”‚   โ”œโ”€โ”€ defi/               # DeFi protocols (Uniswap V3, Aave, yield optimizer)
โ”‚   โ”œโ”€โ”€ airdrop/            # Airdrop automation (discovery, farming, multi-wallet)
โ”‚   โ”œโ”€โ”€ trading/            # Trading (DCA bot, token sniper)
โ”‚   โ”œโ”€โ”€ security/           # Security analysis (honeypot, rug check, contract audit)
โ”‚   โ”œโ”€โ”€ solana/             # Solana module (client, wallet, DEX, LP, NFT)
โ”‚   โ”œโ”€โ”€ bridge/             # Cross-chain bridges
โ”‚   โ”œโ”€โ”€ portfolio/          # Portfolio tracking
โ”‚   โ”œโ”€โ”€ notifications/      # Alert system (Telegram, Email, Discord)
โ”‚   โ”œโ”€โ”€ oracle/             # Multi-source price oracle aggregator
โ”‚   โ”œโ”€โ”€ api/                # REST API server
โ”‚   โ”œโ”€โ”€ cli/                # Command-line interface
โ”‚   โ”œโ”€โ”€ simulator/          # Transaction simulation
โ”‚   โ”œโ”€โ”€ mev/                # MEV strategies
โ”‚   โ”œโ”€โ”€ governance/         # Governance interactions
โ”‚   โ”œโ”€โ”€ nft/                # NFT operations
โ”‚   โ”œโ”€โ”€ gas/                # Gas optimization
โ”‚   โ”œโ”€โ”€ messaging/          # Cross-chain messaging
โ”‚   โ”œโ”€โ”€ events/             # On-chain event monitoring
โ”‚   โ”œโ”€โ”€ account_abstraction/ # ERC-4337 account abstraction
โ”‚   โ”œโ”€โ”€ plugins/            # Plugin system (restaking, custom integrations)
โ”‚   โ”œโ”€โ”€ oracle/             # Price feed aggregation
โ”‚   โ””โ”€โ”€ utils/              # Shared utilities & safety (SpendGovernor, Notifier)
โ”œโ”€โ”€ tests/                  # Test suite (1,248+ tests)
โ”œโ”€โ”€ examples/               # Usage examples (20+ runnable examples)
โ”œโ”€โ”€ .github/                # GitHub templates, workflows
โ””โ”€โ”€ docs/                   # Documentation (GitHub Pages)

Questions?

Feel free to open an issue or reach out on Twitter.

License

By contributing, you agree that your contributions will be licensed under the MIT License.