All changes are relative to v0.8.0-alpha.0.
Usage related changes
- Breaking changes in compilation:
- Renamed
starknet-compile
tostarknet-compile-deprecated
(Cairo 0) - Renamed
starknet-compile-cairo1
tostarknet-compile
(Cairo 1)- offering the same set of CLI options as the official Cairo 1 compiler interface:
--allowed-libfuncs-list-name
--allowed-libfuncs-list-file
--replace-ids
--add-pythonic-hints
- offering the same set of CLI options as the official Cairo 1 compiler interface:
- Specify custom Cairo 1 compiler by providing path to directory holding binaries:
- ✔️
cairo1BinDir
property ofstarknet
object in hardhat config file - ✔️
starknet-compile --cairo1-bin-dir <PATH>
- ❌
manifestPath
option is no longer valid
- ✔️
- Renamed
- Better support for Cairo 1 core types (added 1D arrays and boolean; not full type support)
- Bugfixes in Cairo 1 contract interaction
- Defaulting to Starknet/cairo-lang 0.11.0.2 (instead of 0.11.0.1)
- Optionally suppress contract arg validation by setting
rawInput
when invoking/calling:contract.call("foo", ["10", "20"], { rawInput: true })
- Moved docs and code repo from Shard-Labs to 0xSpaceShard
- npm and Docker Hub unchanged
Development related changes
- Better per-test testing with
npm test-dev
script - Updated dependencies (starknet.js)
Merged PRs
- Replaced Shard-Labs with SpaceShard by @ivpavici in #339
- Create LICENSE by @ivpavici in #342
- Add test-dev npm script for easier per-test testing by @shramee in #343
- Polish test-dev script by @FabijanC in #348
- Adapt to starknet 0.11.0.2 by @Nathan-SL in #340
- utils.ts: fix finding constructors when a comment exists by @cfal in #349
- utils.ts: dont match parameters in constructor name check by @cfal in #351
- types/index.ts: dont pass abi path for cairo 1.0 contract calls by @cfal in #352
- Allow user to use custom compiler binaries by @taco-paco in #345
- Constructor detection via casm file by @taco-paco in #354
- Bump starknet.js dependency by @penovicp in #335
- cairo 1.0 input and output handling improvements by @cfal in #355
- Raw input by @FabijanC in #357
New Contributors
Full Changelog: v0.8.0-alpha.0...v0.8.0-alpha.1