Introduction
Protostar is a toolchain for developing Starknet smart contracts that helps with tasks such as dependency management, project compilation, and testing contracts. It is inspired by Foundry.
Target audience
These guides assume that you have basic knowledge of Cairo, Starknet, and Git.
Learning objectives
After reading these guides, you will know how to:
- Install and upgrade Protostar
- Initialize a new Protostar project
- Configure
protostar.toml
- Adapt an existing Starknet project to the Protostar project
- Compile project
- Add, update, and remove dependencies
- Test contracts using cheatcodes
- Interact with Starknet (call, invoke, deploy contracts)
Reference
Protostar is designed to be easily discoverable from the terminal. To view information about available commands and flags, run:
protostar --help
For detailed information about a specific command and its flags, run:
protostar COMMAND --help
For example, protostar test-cairo0 --help
.