leo/examples
2023-12-11 13:19:42 -08:00
..
auction make example compatible w/ stubs 2023-12-11 13:19:42 -08:00
basic_bank make example compatible w/ stubs 2023-12-11 13:19:42 -08:00
battleship make example compatible w/ stubs 2023-12-11 13:19:42 -08:00
bubblesort make example compatible w/ stubs 2023-12-11 13:19:42 -08:00
core make example compatible w/ stubs 2023-12-11 13:19:42 -08:00
fibonacci [Feature] Implement leo execute (#2491) 2023-07-19 18:04:09 -07:00
groups make example compatible w/ stubs 2023-12-11 13:19:42 -08:00
hackers-delight make example compatible w/ stubs 2023-12-11 13:19:42 -08:00
helloworld make example compatible w/ stubs 2023-12-11 13:19:42 -08:00
interest make example compatible w/ stubs 2023-12-11 13:19:42 -08:00
lottery make example compatible w/ stubs 2023-12-11 13:19:42 -08:00
message make example compatible w/ stubs 2023-12-11 13:19:42 -08:00
simple_token make example compatible w/ stubs 2023-12-11 13:19:42 -08:00
tictactoe make example compatible w/ stubs 2023-12-11 13:19:42 -08:00
token make example compatible w/ stubs 2023-12-11 13:19:42 -08:00
twoadicity make example compatible w/ stubs 2023-12-11 13:19:42 -08:00
vote make example compatible w/ stubs 2023-12-11 13:19:42 -08:00
README.md [Feature] Implement leo execute (#2491) 2023-07-19 18:04:09 -07:00

Leo Examples

This directory includes the following Leo code examples:

  1. Hello World -> Basic Sum of two u32
  2. Groups -> Basic operations over groups
  3. Core -> Core functions over a field type
  4. Bubblesort -> Sorting algorithms over a tuple
  5. Import point -> Import code from another file
  6. Message -> Initialization of a struct
  7. Token -> Record example

Run Guide

To run each program, run:

leo run main

This command will look in the input file inputs/*.in where should find a section [main] and use the variables as inputs to the program.

Execute Guide

To execute each program call, run:

leo execute main <inputs> --endpoint <endpoint>