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.
📄️ Invoking contracts
Overview
📄️ Declaring new contracts
Starknet provides a distinction between contract class and instance. This is similar to difference between writing the
📄️ Deploying new contracts
Overview
📄️ Calling contracts
Overview
📄️ Creating an account
Overview
📄️ Multicall
Overview
📄️ Signing
Protostar offers two ways of providing the signature:
📄️ Scripting
In order to automate a process that includes Protostar operations, you may want to build a script in the language of your
📄️ Compilation
To build your contracts, first define them in protostar.toml
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.
# ...
# https://github.com/0xSpaceShard/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