Skip to content

Releases: starkware-libs/blockifier

v0.5.0-rc.1

13 Feb 12:06
Compare
Choose a tag to compare
v0.5.0-rc.1 Pre-release
Pre-release

[0.5.0-rc.1] - 2024-02-12

Bug Fixes

  • Change failure_flag type to bool (#1334)
  • Convert all local errors to stack trace (#1378)
  • Modified estimate_minimal_gas_vector, extracted compute_discounted_gas_from_gas_vector (#1401)
  • Remove unused dep ctor (#1455)
  • Fix build for mac + unused import (#1406)
  • Os resources (#1465)
  • Limit the syscall emit_event resources, keys, data and number of events (#1463)
  • Set l1 hanlder payload size to None for non-l1 hanlder txs (bouncer count) (#1470)
  • Fix cargo.lock - remove cargo update (#1481)
  • Fix actual fee for l1 handler: it equals the L2 cost. (#1210)

Features

  • Collect the set of visited PCs in the block. (#1233)
  • Create the function calculate_tx_blob_gas_usage. (#1346)
  • Data gas prices in block context (#1336)
  • Preparation-add the calldata length to the resource calculation (#1361)
  • Modified calculate_tx_l1_gas_usage(s), added calculate_tx_gas_and_blob_gas_usage (#1370)
  • Check gas amount including discounted data gas (#1374)
  • Calculates messages size field (#1290)
  • Add linear combination for gas and blob_gas (#1360)
  • Add VersionedConstants (#1348, #1369, #1392)
  • Adding a slope parameters to the os resources (#1362)
  • Add signature length to ActualCostBuilder (#1431)
  • Moved global max step limit to input validation (#1415)
  • Calculate the syscall resources for every entry point (#1437)
  • Add ClassInfo struct (#1434)
  • Add GasVector to TransactionExecutionInfo (#1399)
  • Bouncer DA count: define StateWriteKeys (#1461)
  • Bouncer DA count: use StateWriteKeys to count state diff size (#1462)
  • Add gas cost for calldata bytes (#1426)
  • Charge for signatures per byte (#1474)
  • Round block_number and timestamp for the execution info syscall in validate_mode (#1467)
  • Add gas cost for code bytes (#1475)
  • Add events gas cost (#1458)
  • set_storage_at could fail, make it return a Result (#1264)

Miscellaneous Tasks

  • Add commitlint in CI (#1313)
  • Gas computation refactor (#1408)
  • Use GasVector as a return type for gas computations (#1409)
  • Integer VM gas usage (#1410)
  • Enforce nonzero gas prices (#1391)
  • Saturate step bound on overflow (#1429)
  • Bump CI versions (#1473)
  • Increase invoke_tx_max_n_steps (#1477)
  • Update vm resource and l2 resource costs (#1479)
  • Upgrade cairo and sn-api versions (#1454)
  • Rust 1.74: move lints to Cargo.toml (#1162)

Performance

  • Transaction execution info add serialize (#1315)

Refactor

  • Replace GlobalContractCache default with GlobalContractCache new (#1368)
  • Change CustomHint error usage into VirtualMachineError::Other(anyhow::Error) (#1397)
  • [breaking] Make the BlockContext constructor private as preparation for pre_process_block changes (#1385)
  • Restructure old_block_number_and_hash as a struct (#1403)
  • Rename context modules (#1350)
  • [breaking] Extract from BlockInfo into ChainInfo (#1344)
  • [breaking] Make BlockContext a newtype around BlockInfo (#1323)
  • [breaking] Make AccountTransactionContext hold BlockContext (#1365)
  • Remove gas price bounds from general config (#1329)
  • [breaking] pre_process_block refactor for full_nodes simulate transaction (#1387)
  • Refactor calculate_tx_gas_usage (#1320)
  • Make DeclareTransaction fields public (#1441)
  • Remove enum VirtualMachineExecutionError (#1453)
  • [breaking] Remove syscall_counter from ExecutionResources (#1424)
  • Move Bouncer to blockifier crate (#1445)
  • [breaking] Use ClassInfo in Declare transaction (#1456)
  • [breaking] Delete entry point ExecutionResources (#1447)
  • Moving calculate_tx_gas_usage_vector to ActualCostBuilder (#1478)
  • Don't iterate over HashMap/HashSet (#1164)
  • Use from and first when available (#1163)
  • non_optional_call_infos return an iterator (#1108)
  • State traits take all their args by value (#1264)
  • Pass error info in #[source] variants (#1217)

Styling

  • Fix error handle unpack (#1390)