Skip to content

Releases: software-mansion/protostar

v0.14.0

05 Jul 12:45
489604e
Compare
Choose a tag to compare

Changes:

  • start_spoof and stop_spoof ✨ new cheatcode ✨ for mocking signatures and other txn info
  • Bump starknet.py version

v0.13.0

05 Jun 11:57
5323c58
Compare
Choose a tag to compare

0.13.0

Cairo 1.1.0 compiler support

v0.12.0

30 May 14:31
Compare
Choose a tag to compare

0.12.0

Scarb integration

Protostar is now able to read dependencies from you Scarb.toml files. It requires scarb to work. cairo_project.toml is not supported anymore. Read more HERE

Starknet 0.11.1

Starknet 0.11.1 is fully supported now

v0.11.0

16 May 16:17
c24f34f
Compare
Choose a tag to compare

Changelog

New compiler version

Cairo Compiler 1.0.0rc0 is now supported - now you can write your contracts and tests using bleeding edge cairo 1 features!
Warning We do not support starknet 0.11.1 yet, this may result in some incompatibilities on the side of CLI.

New cheatcodes

start_warp and start_roll cheatcodes - DOCS and DOCS

Deprecated legacy test runner

Deprecated legacy cairo0 runner (you can still deploy your cairo0 contracts from cairo1 tests)

  • test-cario1 -> test
  • build-cario1 -> build
  • test -> test-cario0
  • build -> build-cario0

Documentation makeover

Protostar documentation is now cairo 1 focused. It has more examples and is much more accessible than before! Check it out!

Other

Fixed bugs related to gas

0.10.0

27 Apr 14:51
Compare
Choose a tag to compare
  • Added #available_gas attribute DOCS
  • Compiler version included in —version info
  • Added RevertedTransaction result for invoke, call, deploy, improved handling reverted transaction panic reasons DOCS
  • Added start_prank cheatcodes for modifying caller address DOCS
  • Added deploy_contract and deploy_contract_cairo0 cheatcodes DOCS
  • Added print utilities for debugging DOCS
  • Extended cairo 1 support documentation

0.9.5 - pre-release

26 Apr 15:28
8a65ba7
Compare
Choose a tag to compare
0.9.5 - pre-release Pre-release
Pre-release

Some scarb support

0.9.4 Fix a bug with declaring two contracts in one test

20 Apr 15:26
Compare
Choose a tag to compare

We encountered a problem with declaring two contracts next to each other:

#[test]
fn test_two_declares() {
    let class_hash = declare('simple').unwrap();
    let class_hash2 = declare('basic').unwrap();
}

This release fixes it and it will no longer fail!

0.9.3 - Cairo 1 - contract testing support

17 Apr 12:57
Compare
Choose a tag to compare
  • Starknet 0.11 integration for cairo 0 and cairo 1 tests
  • Cheatcodes in cairo 1 tests prepare, declare, deploy,invoke, call, declare_cairo0, deploy_contract, deploy_contract_cairo0,
  • Support for gas in unit tests
  • V2 declare command

v0.9.2

15 Mar 11:06
Compare
Choose a tag to compare

This version contains initial support for Cairo 1.0:

  • Running tests in pure Cairo 1.0 (no starknet contracts support yet)
  • Initializing a Cairo 1.0 project
    See the documentation for more info on the functionality

This release also includes multiple bugfixes and docs improvements

Full Changelog: v0.9.1...v0.9.2

v0.9.1

22 Dec 09:55
Compare
Choose a tag to compare
  • Fixed --inputs argument for protostar invoke and protostar call (#1220).
  • Added support for private keys as integers. Previous versions supported only the hex representation (#1052).
  • Improved error message related to data transformation and felt* type (#1279)