Welcome to the WidePiper project repository! This guide will help you get started with setting up and running tests for the smart contracts using the Foundry smart contract development framework.
Before you begin, ensure you have the following installed:
-
Clone the repository:
git clone https://github.com/kennisnutz/WidePiper
-
Navigate to the root directory of the cloned repository:
cd WidePiper
-
Create a
.env
file in the root directory:touch .env
-
Register for an RPC API key for the Ethereum mainnet on Alchemy (or any other provider of your choice) and save the API key as
MAINNET_RPC_URL
in the.env
file:MAINNET_RPC_URL=<your-alchemy-api-key>
To run the tests for the WidePiper smart contracts, follow these steps:
-
Ensure you are in the root directory of the repository.
-
Run the tests using the Foundry framework with the following command:
forge test --fork-url <mainnet-rpc-url>
Replace
<mainnet-rpc-url>
with the Ethereum mainnet RPC URL you obtained from Alchemy or your chosen provider.
That's it! You've successfully set up and run tests for the WidePiper smart contracts using the Foundry smart contract development framework.
If you encounter any issues or have questions, feel free to reach out to the WidePiper development team or community for assistance.
Happy coding! 🚀