Skip to content

v0.8.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@liorgold2 liorgold2 released this 14 Mar 10:16
· 43 commits to master since this release

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