Compiling Starknet Contracts
Compile a Starknet Contract to a Sierra ContractClass:
cargo run --bin starknet-compile -- /path/to/input.cairo /path/to/output.json
Or specify the contract path if multiple contracts are defined in the same project:
cargo run --bin starknet-compile -- /path/to/crate/ /path/to/output.json --contract-path path::to::contract
Compile the ContractClass of a CompiledClass:
cargo run --bin starknet-sierra-compile -- /path/to/input.json /path/to/output.casm'