All changes are relative to v0.8.0-alpha.2.
Usage related changes
-
New command
hardhat starknet-build [--scarb-command <STRING>] [--skip-validate] [...paths]
:- For building Scarb projects
- Produces easily loadable artifacts compatible with your hardhat scripts
- Compatible with Scarb 0.4.0
- The command
hardhat starknet-compile
is preserved and serves the compilation of simple single Cairo 1 files - Read more in the docs:
- Check out the example repo:
-
Support for Starknet/cairo-lang 0.11.2
-
Bugfixes:
- Allowing constructorless Cairo 1 contracts
- Fixed race condition that appeared when awaiting multiple promises (with Promise.all)
- Allowing Cairo 1 compilation artifacts of version > 1 (was restricted to 1..)
- Cairo methods returning arrays are now correctly handled when doing
contract.call(...)
)- Was reporting missing type in the ABI
Development related changes
- Improved testing of:
- Cairo 1 events (not Cairo 2)
- Constructor checking
Merged PRs
- Fix bug: allow constructorless contracts by @Nathan-SL in #366
- Fix payload type by @Nathan-SL in #371
- Refactor constructor checking by @remiroyc in #370
- Update adaptInputUtil function return type by @Nathan-SL in #368
- Adapt to cairo-lang/starknet 0.11.1 by @FabijanC in #375
- Fix race condition on proxy server by @Nathan-SL in #374
- Add tests for constructor checker by @Nathan-SL in #377
- Spelling fix by @Nathan-SL in #383
- Cairo1 events by @notV4l in #380
- Fix cairo1 compiler by @FabijanC in #393
- Adapt to cairo-lang/Starknet 0.11.2; support scarb by @FabijanC in #376
New Contributors
Full Changelog: v0.8.0-alpha.2...v0.8.0-alpha.3