Skip to main content

README

Interacting with Starknet

Protostar provides a couple of commands allowing users to interact with Starknet without the need to install cairo-lang Python package locally.

Protostar offers similar CLI to Starknet's CLI. However, with Protostar you can move deployment configuration to protostar.toml and display help for each command.

Using configuration profiles

Configuration profiles allow you to easily reuse configuration for devnet, testnet, and mainnet networks. You can define a network configuration in the protostar.toml as demonstrated in the snippet below.

protostar.toml
# ...

# https://github.com/Shard-Labs/starknet-devnet
["profile.devnet.protostar.deploy"]
gateway-url="http://127.0.0.1:5050/"

["profile.testnet.protostar.deploy"]
network="testnet"

["profile.mainnet.protostar.deploy"]
network="mainnet"

Then, run deploy command with the --profile argument.

protostar -p devnet deploy ./build/main.json