Skip to content

v0.9.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@liorgold2 liorgold2 released this 06 Jun 13:36
· 39 commits to master since this release

StarkNet:

  • Enforce fees - max_fee must not be set to zero, and selector must be __execute__
  • Split the concepts of contract class and contract instance. See here
    • Add declare transaction type
    • New API and CLI commands:
      • declare - Declares a contract class
      • get_class_by_hash - Returns the contract class given its hash
      • get_class_hash_at - Returns the class hash for a given contract instance address
    • Rename delegate_call to library_call, and change the contract address argument to class hash. See here
  • Add a deploy system call. See here
  • Rename ContractDefinition to ContractClass
  • Reduce the compiled contract file's size by removing unnecessary identifiers (this optimization can be disabled using --dont_filter_identifiers)

Cairo:

  • Initial support for the "EC-op" builtin (scalar multiplication over the STARK curve). Not supported in StarkNet yet.
  • Add additional helper methods to blake2s.cairo, including big-endian support
  • Technical changes:
    • Change function's return type from a struct to a named tuple. In particular, foo.Return.SIZE is no longer supported.