This is a foundry Project with Soldeer dependency manager
- git
- You'll know you did it right if you can run
git --version
and you see a response likegit version x.x.x
- You'll know you did it right if you can run
- foundry
- You'll know you did it right if you can run
forge --version
and you see a response likeforge 0.2.0
- You'll know you did it right if you can run
git clone https://github.com/surajgjadhav/web3-fullstack-starter-kit
cd web3-fullstack-starter-kit/contracts
forge build
make anvil
This will default to your local node. You need to have it running in another terminal in order for it to deploy.
make deploy
To deploy contract on another chain
forge script script/Counter.s.sol:CounterScript --rpc-url <your_rpc_url> --private-key <your_private_key>
forge test