Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 844 Bytes

README.md

File metadata and controls

31 lines (23 loc) · 844 Bytes

Cairo1-run

A cairo-vm crate to run Cairo 1 Programs

Once you are inside the ./cairo1-run folder, use the CLI with the following commands

To install the required dependencies(cairo corelib) run

make deps 

Now that you have the dependencies necessary to run the tests, you can run:

make test

To execute a cairo 1 program

cargo run ../cairo_programs/cairo-1-programs/fibonacci.cairo 

Arguments to generate the trace and memory files

cargo run ../cairo_programs/cairo-1-programs/fibonacci.cairo --trace_file ../cairo_programs/cairo-1-programs/fibonacci.trace --memory_file ../cairo_programs/cairo-1-programs/fibonacci.memory

To execute all the cairo 1 programs inside ../cairo_programs/cairo-1-programs/ and generate the corresponding trace and the memory files

make run