Cairo-lang

Latest version: v0.13.1

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

Scan your dependencies

Page 1 of 10

0.13.1

**Starknet**
* Use [EIP 4844](https://eips.ethereum.org/EIPS/eip-4844) for cheaper data availability
* Time-related syscalls when called from account contract's `__validate__`:
* `timestamp` will return the hour, rounded down
* `block_number` will return the block number rounded down to the nearest multiple of 100
* Optimization: Load only the used functions in a contract into memory when generating the proof
* Add `starknet-compiled-class-hash` command
* API changes:
* Starknet block:
* New field `l1_da_mode`, which indicates whether EIP 4844 was used in the block
* `eth_l1_gas_price` and `strk_l1_gas_price` were replaced, and the information now contains the data gas price (EIP 4844) in addition to the regular gas price
* `execution_resources` in transaction receipt now contains:
* data availability resources
* syscall resources (which contribute to the transaction fee but were not included in the receipt until this version)
* `transaction_commitment` and `event_commitment` are added to the block (zero is returned for old blocks)

* Infrastructure updates:
* Support multiple L1 providers

* CairoZero:
* Remove 128-bit limitation from `search_sorted_lower`

0.13.1a0

**Starknet**
* Use [EIP 4844](https://eips.ethereum.org/EIPS/eip-4844) for cheaper data availability
* Time-related syscalls when called from account contract's `__validate__`:
* `timestamp` will return the hour, rounded down
* `block_number` will return the block number rounded down to the nearest multiple of 100
* Optimization: Load only the used functions in a contract into memory when generating the proof
* Add `starknet-compiled-class-hash` command
* API changes:
* Starknet block:
* New field `l1_da_mode`, which indicates whether EIP 4844 was used in the block
* `eth_l1_gas_price` and `strk_l1_gas_price` were replaced, and the information now contains the data gas price (EIP 4844) in addition to the regular gas price
* `execution_resources` in transaction receipt now contains:
* data availability resources
* syscall resources (which contribute to the transaction fee but were not included in the receipt until this version)
* `transaction_commitment` and `event_commitment` are added to the block (zero is returned for old blocks)

* Infrastructure updates:
* Support multiple L1 providers

0.13.0

**Starknet**
* Add transaction v3:
* Fee payment in STRK
* Reserved fields for future features, such as volition and payment master
* `get_block` API: Rename the `gas_price` field to `eth_l1_gas_price` and add a new field `strk_l1_gas_price` (this applies to old blocks as well)
* Update Sierra version used in Starknet to `1.4.0` (introduced in crate version `v2.4.0` of the [cairo](https://github.com/starkware-libs/cairo) package)
* Improved performance of `secp256k1_mul` and `secp256r1_mul` syscalls

0.13.0a3

**Starknet**
* Add transaction v3:
* Fee payment in STRK
* Reserved fields for future features, such as volition and payment master
* `get_block` API: Rename the `gas_price` field to `eth_l1_gas_price` and add a new field `strk_l1_gas_price` (this applies to old blocks as well)
* Update Sierra version used in Starknet to `1.4.0` (introduced in crate version `v2.4.0` of the [cairo](https://github.com/starkware-libs/cairo) package)
* Improved performance of `secp256k1_mul` and `secp256r1_mul` syscalls

0.13.0a2

**Starknet**
* Add transaction v3:
* Fee payment in STRK
* Reserved fields for future features, such as volition and payment master
* `get_block` API: Rename the `gas_price` field to `eth_l1_gas_price` and add a new field `strk_l1_gas_price` (this applies to old blocks as well)
* Update Sierra version used in Starknet to `1.4.0` (introduced in crate version `v2.4.0` of the [cairo](https://github.com/starkware-libs/cairo) package)
* Improved performance of `secp256k1_mul` and `secp256r1_mul` syscalls

0.13.0a1

**Starknet**
* Add transaction v3:
* Fee payment in STRK
* Reserved fields for future features, such as volition and payment master
* `get_block` API: Rename the `gas_price` field to `eth_l1_gas_price` and add a new field `strk_l1_gas_price` (this applies to old blocks as well)
* Update Sierra version used in Starknet to `1.4.0` (introduced in crate version `v2.4.0` of the [cairo](https://github.com/starkware-libs/cairo) package)

Page 1 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.