This folder contains a Scarb package to compile and deploy Cairo 1 contracts on Devnet for development purposes.
Start by installing Scarb (with asdf
highly recommended) from the tutorial.
Ensure you've at least version 2.3.1
installed.
To build contracts, use:
scarb build
The contracts artifacts are generated into target/dev
folder.
Two files can be found there:
- The Sierra class file:
package_contract.contract_class.json
- The compiled CASM file:
package_contract.compiled_contract_class.json
To interact with Devnet, Starkli is the easiest CLI tool to use. To work with Starkli, you need two files:
- The keystore file with the private key being encrypted there. This file can also be replaced by the private key in plain text, which is totally fine for testing.
- The account file with the account definition and address.