Cairo-lang

Latest version: v0.13.3

Safety actively analyzes 688775 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 9 of 11

0.6.0

Not secure
**StarkNet**:

* Replace block id with block hash (not verified by the OS yet)
* Add constructor arguments to the computation of the contract's address
* Add `get_transaction_receipt` command to the `starknet` CLI
* New system calls:
* `get_contract_address` - returns the address of the current contract
* `get_sequencer_address` - this may be used in the future for paying fees
* `delegate_call` - partial support

**Cairo**:

* Add `dw` keyword for defining constant arrays

0.5.2

Not secure
**Cairo**

* In simple cases that do not involve if blocks and jumps, the compiler can automatically decide to create local variables for references that would have otherwise been revoked.

0.5.1

Not secure
Small bug fixes.

0.5.0

Not secure
**StarkNet**

* Contract constructors
* Identify transactions by their hash (replacing transaction id)
* `storage_ptr` was merged into `syscall_ptr` (you should now use `syscall_ptr` to access storage)
* Separate signature information from the transaction calldata
* Change the way contract addresses are computed
* Support arrays in return values of external functions
* Local testing infrastructure:
* Support passing structs
* Allow specifying caller address
* Support L1<->L2 messages
* Expose the transaction's required resources
* Technical modifications:
* Data availability format includes constructor arguments
* The format of the contract definition hash has changed
* Add L1 events when L1<->L2 messages are consumed

**Cairo**

* Improve compilation time
* Add a syntax for short strings (strings that fits into a single `felt`)
* Remove the python literal syntax (``%[ ... %]``) to allow safer compilation

0.4.2

Not secure
* Support returning structs in `external` functions.
* Bug fixes.

0.4.1

Not secure
**StarkNet**

* External functions
* Support tuples and structs in arguments
* Unit test infrastructure
* Better interface
* Support for python3.8
* Support specifying the Cairo path

Page 9 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.