leo/examples
2024-04-11 14:19:08 -07:00
..
auction Merge pull request #5329 from tudorpintea999/tudorpintea999-fix-typos 2024-01-16 11:58:06 +08:00
basic_bank write examples using new async syntax 2024-04-09 13:53:26 -07:00
battleship clarify external structs 2024-02-09 16:10:32 -08:00
bubblesort Update examples and CI 2024-01-15 15:45:08 -08:00
core Update examples and CI 2024-01-15 15:45:08 -08:00
fibonacci Update examples and CI 2024-01-15 15:45:08 -08:00
groups Update examples and CI 2024-01-15 15:45:08 -08:00
hackers-delight refactor ntzseals 2024-04-11 14:19:08 -07:00
helloworld Update examples and CI 2024-01-15 15:45:08 -08:00
interest Update examples and CI 2024-01-15 15:45:08 -08:00
lottery write examples using new async syntax 2024-04-09 13:53:26 -07:00
message Update examples 2024-01-15 15:45:09 -08:00
simple_token Update examples 2024-01-15 15:45:09 -08:00
tictactoe fix: correct typos for win check 2024-03-31 21:47:58 +02:00
token write examples using new async syntax 2024-04-09 13:53:26 -07:00
twoadicity Update examples and CI 2024-01-15 15:45:08 -08:00
vote write examples using new async syntax 2024-04-09 13:53:26 -07:00
README.md WIP removing input files from examples 2024-01-15 15:45:07 -08:00

Leo Examples

This directory includes the following Leo code including:

  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. Message -> Initialization of a struct
  6. Token -> Record example

along with many more.

Run Guide

To run each program, run:

leo run main <inputs> 

Execute Guide

To execute each program call, run:

leo execute main <inputs>