starkware-libs / starknet-specs

91 stars 74 forks source link

Add GetCompiledCasm endpoint #221

Closed ArielElp closed 4 days ago

ArielElp commented 1 month ago

Today, all nodes store the compiled CASM artifacts but do not externalize them. Third parties can use them and save the overhead of compilation, concrete usecases are:

In this PR we add a starknet_executables.json section to the API, with a new endpoint to return the compiled CASM. The specification attempts to reflect the json serialization of CasmContractClass, and should agree with the feeder gateway's get_compiled_class_by_class_hash endpoint.


This change is Reviewable