🍨Testing with Brownie
A step-by-step guide for creating a Brownie project and deploying it to your private StealthTest environment.
Before you begin, please make sure to create your StealthTest environment and have access to the RPC URL and chain ID.
This document is intended to act as a quick start integration guide for new Brownie projects. If you already have an established Brownie project, skip to step 3.
For more information on Hardhat please access the documentation here: Brownie documentation
We will never ask you for your private key, nor will it ever be required to create a StealthTest environment.
Install Brownie.
python3 -m pip install --user pipx
python3 -m pipx ensurepath
pipx install eth-brownie
Run the command
brownie
to ensure the installation was successful.
Create a new Brownie project.
Create a new directory for your project:
mkdir my-brownie-project
Initialize your new project, we'll start from an ERC-20 template by running
brownie bake-token
You'll now have a folder called
token
, navigate there to compile your contracts.
Compile your contracts
Contracts are located at
./contracts
brownie compile
Configure your project for StealthTest
Add StealthTest RPC URL and ChainID as a new network
Deploy your contract to StealthTest
Run the following command:
And that's it! You're now testing in private using StealthTest! 💪
Last updated