Skip to content

Migrate project from Brownie to Ape tooling - #30

Merged
YoshihitoAso merged 1 commit into
mainfrom
brownie-to-ape
May 13, 2026
Merged

Migrate project from Brownie to Ape tooling#30
YoshihitoAso merged 1 commit into
mainfrom
brownie-to-ape

Conversation

@YoshihitoAso

@YoshihitoAso YoshihitoAso commented May 13, 2026

Copy link
Copy Markdown
Member

📌 Description

This pull request migrates the project from the Brownie framework to the Ape framework for smart contract development, testing, and dependency management. The migration includes changes to the build system, configuration files, dependencies, and test infrastructure to fully adopt Ape and Foundry.

✅ Related Issues

None

🔄 Changes

Build and Dependency Management Migration:

  • Replaced Brownie with Ape and Foundry for contract compilation, dependency installation, and testing in the Makefile, .github/workflows/pr.yml, and pyproject.toml. Added corresponding Ape plugins and removed Brownie-specific commands and dependencies.
  • Added ape-config.yaml for Ape project configuration, including plugins, dependencies (OpenZeppelin), compiler settings, and network configuration. Removed brownie-config.yaml and data/networks.yml.
  • Updated contract imports to use the Ape/Foundry-compatible OpenZeppelin path.

Testing and CI Improvements:

  • Updated test execution to use Ape and Foundry, including a new test runner script (tests/run_anvil_test.sh) and revised test fixtures in tests/conftest.py. Removed Brownie-specific test utilities (tests/brownie_utils.py).

Python Utilities and Compatibility:

  • Updated contract utility functions to use the new output directory and file structure from Ape, and improved file handling in app/utils/contract_utils.py.
  • Updated web3_utils.py to use the correct POA middleware import for compatibility with the latest web3 versions.

📌 Checklist

  • I have added tests where necessary.
  • I have updated the documentation where necessary.

Replace Brownie-based workflow with Ape + Foundry.
@YoshihitoAso
YoshihitoAso marked this pull request as draft May 13, 2026 00:00
@YoshihitoAso
YoshihitoAso marked this pull request as ready for review May 13, 2026 00:05
@YoshihitoAso
YoshihitoAso merged commit 582b428 into main May 13, 2026
4 checks passed
@YoshihitoAso
YoshihitoAso deleted the brownie-to-ape branch May 13, 2026 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant