starknet package provides APIs for writing Starknet contracts code. This includes:
- A Cairo compiler plugin which expands contract-specific attributes (
The version of this package is coupled to Cairo version included in Scarb.
This package is specially treated by Scarb. To use it, simply declare a dependency on it in your package. By using the
>= operator, you will not have to manually update this value on each stable Cairo upgrade.
[dependencies] starknet = ">=2.3.1"
As for now, the
starknet package's only purpose is to inform Scarb to enable the Starknet compiler plugin. In the future it is planned to move the
starknet module from
core to this package.