- Build Protostar
git clone <url>
mkdir bin
- Setup Binary
nix-shell
starknet-devnet
Optional: Update the cairo.cairoFormatPath
property in the .vscode/settings.json
file. Run which cairo-format
within a Poetry shell to get the project-specific cairo-format
path.
Optional: Update the python.formatting.blackPath
property in the .vscode/settings.json
file. Run which black
within a Poetry shell to get the project-specific black
path.
# Nix
nix-shell
# StarkNet DevNet
starknet-devnet
# Protostar
./protostar init [--existing]
./protostar test ./tests [--safe-collecting]
./protostar build
./protostar install
./protostar install <url>
./protostar update
./protostar update <submodule-name>
./protostar remove <submodule-name>
./protostar deploy ./build/<name>.json --network <name> [--inputs ...]
# With `protostar.toml` Updates
./protostar -p testnet deploy ./build/<name>.json
# Symlinks
ln -sf ./bin/dist/protostar/protostar protostar
- https://starknet.io
- https://starknet.io/what-is-starknet
- https://starknet.io/building-on-starknet
- https://starknet.io/building-on-starknet/developer-tools
- https://starknet.io/playground
- https://docs.starknet.io/docs/Intro
- https://starknet-ecosystem.com
- https://github.com/gakonst/awesome-starknet
- https://docs.starknet.io
- https://cairo-lang.org
- https://cairo-lang.org/docs
- https://cairo-lang.org/playground
- https://cairo-by-example.org
- https://docs.swmansion.com/protostar
- https://github.com/onlydustxyz/protostar-vs-nile
- https://github.com/software-mansion/protostar/tree/master/website/docs
git clone git@github.com:software-mansion/protostar.git
cd protostar
touch shell.nix
- Update
shell.nix
file (see below) nix-shell
python -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install poetry
poetry install
poe test
poe build
Binaries can be found in the dist
directory.
# shell.nix file
{ pkgs ? import <nixpkgs> { } }:
with pkgs;
mkShell {
buildInputs = [
python37Full
darwin.apple_sdk.frameworks.Accelerate
gmp
];
}
Note: Requires the binary to be built (see above).
cd <path-to-protostar-project-root-directory>
cp -r dist/ ~/Desktop/
cd ~/Desktop
mv ./dist <path-to-project-root-directory>/bin
ln -sf ./bin/dist/protostar/protostar protostar
./protostar test