github starkware-libs/cairo-lang v0.8.0

latest releases: v0.13.2, v0.13.2a0, v0.13.1...
pre-release2 years ago

StarkNet

  • Support paying fees for transactions
  • System calls:
    • Add transaction hash and chain id to the TxInfo struct. See here
  • API:
    • estimate_fee
    • get_transaction_trace - shows the internal calls executed by the transactions in a tree structure. See here
    • get_transaction returns a new field max_fee and the calldata field was changed from decimal to hex
  • Add an option to cancel an L1->L2 message. See here
  • Testing framework:
    • Add replace_abi() function (useful for the proxy pattern)
  • Technical changes:
    • Add version and max_fee fields to the transaction hash
    • Account contracts should have an __execute__ function. To compile a contract with such an external function, you should pass the --account_contract flag to the compiler.

Cairo:

  • Syntax:
    • Add new operator. See here
    • Add named tuple types. See here
    • Add type aliases. See here
    • Support escape sequences in short strings (currently, only \x**)
    • Add codeoffset type for labels
    • Support negative values in dw statements
    • Forbid using nondet in references (since it may lead to unexpected behavior)
  • Standard library:
    • Add blake2s to the common library. See here
    • New functions: horner_eval and usort
    • Rename small_merkle_tree to small_merkle_tree_update
  • Other:
    • Support including local variables and arguments in error messages. See here

Don't miss a new cairo-lang release

NewReleases is sending notifications on new releases.