Example project utilizing Ape for Solidity contract management and a Next.js application to display and interact with the contract on the front-end.
- Set up a fresh python virtual environment, then clone this repo
pip install eth-ape ipython pdbppape plugins install .ape compileape test
- Install Foundry
- Start Anvil in one terminal pane (
$ anvil) - Run the deploy script in another:
ape run deploy_local
cd webappnpm installnpm run dev- visit localhost:3000, connect a wallet, view and update the Billboard message
Note: when you start Anvil, ten test accounts and their private keys will be printed in the console. You can import any of those private keys into a wallet, e.g., MetaMask, and then interact with the contract using that test ether.