2023-08-15 01:26:55 +03:00
|
|
|
(
|
|
|
|
# Create a new Leo lottery example program.
|
|
|
|
$LEO example lottery || exit
|
|
|
|
ls -la
|
|
|
|
cd lottery && ls -la
|
|
|
|
|
|
|
|
# Run the play function.
|
|
|
|
$LEO run play || exit
|
2023-08-15 23:59:50 +03:00
|
|
|
|
|
|
|
# Execute the play function.
|
|
|
|
$LEO execute play || exit
|
2023-08-15 01:26:55 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
(
|
|
|
|
# Create a new Leo tictactoe example program.
|
|
|
|
$LEO example tictactoe || exit
|
|
|
|
ls -la
|
|
|
|
cd tictactoe && ls -la
|
|
|
|
|
|
|
|
# Create a new game.
|
|
|
|
$LEO run new || exit
|
|
|
|
|
2023-08-15 23:59:50 +03:00
|
|
|
# Run the make_move function.
|
2023-08-15 01:26:55 +03:00
|
|
|
$LEO run make_move || exit
|
2023-08-15 23:59:50 +03:00
|
|
|
|
|
|
|
# Execute the make_move function.
|
|
|
|
$LEO execute make_move || exit
|
2023-08-15 01:26:55 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
(
|
|
|
|
#Create a new Leo token example program.
|
|
|
|
$LEO example token || exit
|
|
|
|
ls -la
|
|
|
|
cd token && ls -la
|
|
|
|
|
|
|
|
# Run the mint_public function.
|
|
|
|
$LEO run mint_public || exit
|
2023-08-15 23:59:50 +03:00
|
|
|
|
|
|
|
# Execute the mint_public function.
|
|
|
|
$LEO execute mint_public || exit
|
2023-08-15 01:26:55 +03:00
|
|
|
)
|