This project demonstrates a basic Hardhat project, but with Starknet plugin.
git clone [email protected]:Shard-Labs/starknet-hardhat-example.git
cd starknet-hardhat-example
npm ci
npx hardhat starknet-compile contracts/contract.cairo
npx hardhat starknet-deploy starknet-artifacts/contracts/contract.cairo
npx hardhat test test/quick-test.ts
package.json
is fixed to use the latest starknet-hardhat-plugin
version this example repository is synced with.
If you're having issues trying to use this example repo with the Starknet plugin, try running npm install
or npm update
, as it may be due to version mismatch in the dependencies.
master
- latest stable examplesplugin
- used for testing by Starknet Hardhat Plugin
- New PRs and features should be targeted to the
plugin
branch. - After releasing a new plugin version,
master
should ideally be reset (fast forwarded) toplugin
(less ideally merged).