Commit Graph

28 Commits

Author SHA1 Message Date
d0cd
7559ae05ba
Merge pull request #5329 from tudorpintea999/tudorpintea999-fix-typos
fix: typos in the docs
2024-01-16 11:58:06 +08:00
Pranav Gaddamadugu
e8a46b7628 WIP removing input files from examples 2024-01-15 15:45:07 -08:00
Pranav Gaddamadugu
a38c407ea0 Remove parser components related input files 2024-01-15 15:45:07 -08:00
evan-schott
de8b2a2cad make example compatible w/ stubs 2023-12-11 13:19:42 -08:00
iwantanode
a2565f4d66
fix typo README.md
Signed-off-by: iwantanode <87604944+tudorpintea999@users.noreply.github.com>
2023-11-11 12:12:27 +02:00
Collin Chin
d31b707c4b
Update leo examples (#2501)
* improve leo example run scripts

* add leo build warning message, reduce number of calls to snarkvm package open

* cargo clippy

* Update examples/token/run.sh

Co-authored-by: Eric McCarthy <7607035+bendyarm@users.noreply.github.com>
Signed-off-by: Collin Chin <16715212+collinc97@users.noreply.github.com>

* Update examples/token/run.sh

Co-authored-by: Eric McCarthy <7607035+bendyarm@users.noreply.github.com>
Signed-off-by: Collin Chin <16715212+collinc97@users.noreply.github.com>

* Update examples/token/run.sh

Co-authored-by: Eric McCarthy <7607035+bendyarm@users.noreply.github.com>
Signed-off-by: Collin Chin <16715212+collinc97@users.noreply.github.com>

* Update examples/token/run.sh

Co-authored-by: Eric McCarthy <7607035+bendyarm@users.noreply.github.com>
Signed-off-by: Collin Chin <16715212+collinc97@users.noreply.github.com>

* Update examples/token/run.sh

Co-authored-by: Eric McCarthy <7607035+bendyarm@users.noreply.github.com>
Signed-off-by: Collin Chin <16715212+collinc97@users.noreply.github.com>

* fix comments

* make auctioneer the starting private key in auction example

---------

Signed-off-by: Collin Chin <16715212+collinc97@users.noreply.github.com>
Co-authored-by: Eric McCarthy <7607035+bendyarm@users.noreply.github.com>
2023-07-24 10:33:41 -07:00
Alessandro Coglio
ac38dfa028
[examples] Update some example files. (#2493)
* [examples] Update some READMEs.

These contained some copied-and-pasted text that had not been updated.

Also added a note about the need to switch private key for the second command
in `simple_token`.

* [examples] Update input file for lottery.

* [examples] Remove `leo build` from `vote` script.
2023-07-21 17:13:06 -07:00
Collin Chin
d44457fc32
[Feature] Implement leo execute (#2491)
* bump snarkvm rev

* update default gitignore

* impl leo execute

* bump snarkvm 0.14.5

* modify examples wip

* update run.sh examples

* impl env file

* clippy warning

* fix auction example

* fix auction example env

* generate new private key for new env - tests failing due to env not found err

* commit error changes

* Fix tests; clippy

* Get examples working

* leo build checks that build dir is well formed; clippy

* Clean up

* Update examples/README.md

Co-authored-by: d0cd <pranavsaig@gmail.com>
Signed-off-by: Collin Chin <16715212+collinc97@users.noreply.github.com>

* do not commit .avm files

* use snarkvm commands

---------

Signed-off-by: Collin Chin <16715212+collinc97@users.noreply.github.com>
Co-authored-by: Pranav Gaddamadugu <pranav@aleo.org>
Co-authored-by: d0cd <pranavsaig@gmail.com>
2023-07-19 18:04:09 -07:00
d0cd
d0c29ce8e0
[Update] snarkvm 0.11.0 (#2377)
* Remove gates from tests

* Remove Finalize test namespace

* Remove gates from examples

* Remove gates from compiler

* Regen expectations

* Add test that gates is allowed as a standard field of a record

* Update Rust version in CI

* Add check for MAX_MAPPINGS
2023-05-10 21:32:37 -07:00
d0cd
751e79a66e More fixes to example scripts
WIP scripts

WIP alias leo

WIP alias leo

WIP alias leo
2023-02-16 12:51:19 -08:00
d0cd
9ad7a0477c Update example scripts 2023-02-16 09:13:51 -08:00
d0cd
48a1f0590b
Rename console.assert* to assert*. (#2205)
* Add assert statements to AST

* Add support in passes

* Add parser support

* Add tyc support

* Add support for assert statements in the remaining passes

* Fix examples, tests, and regen expectations

* Fmt

* Regen expectations
2022-12-06 21:56:48 -08:00
Pranav Gaddamadugu
8283c922f6 Some bug fixes; update some examples 2022-10-05 15:27:54 -07:00
Pranav Gaddamadugu
a886357585 Update examples to use transition keyword 2022-10-03 11:22:37 -07:00
collin
eafd265f75 unify leo examples with workshop, run all examples in circleci 2022-09-21 15:59:33 -07:00
Pranav Gaddamadugu
67aeaa3412 Update docs 2022-09-20 23:32:12 -07:00
Pranav Gaddamadugu
975677f832 WIP docs 2022-09-20 19:20:22 -07:00
Pranav Gaddamadugu
91a2137136 Update docs for auction example 2022-09-20 13:00:14 -07:00
Pranav Gaddamadugu
66c90e622e Update auction example 2022-09-19 18:56:06 -07:00
collin
b9d32ee695 remove checkmark, clarify leo output for all commands 2022-09-17 16:08:19 +02:00
Alessandro Coglio
60180e78e5 [examples] Add explanations to auction example. 2022-08-08 16:34:28 -07:00
Alessandro Coglio
099d63555b [examples] Address review. 2022-08-08 16:18:11 -07:00
Alessandro Coglio
1ea21716cf [examples] Ensure correct record address.
Also vary the other addresses.
2022-08-05 22:56:46 -07:00
Alessandro Coglio
855853d262 [examples] Add a record nonce. 2022-08-05 22:36:53 -07:00
Alessandro Coglio
5d3c7a6516 [examples] Try a different address. 2022-08-05 22:31:14 -07:00
Alessandro Coglio
ea6bee21f0 [examples] Add @program annotation. 2022-08-05 22:03:43 -07:00
Alessandro Coglio
54f2410e96 [examples] Get this to compile at least. 2022-08-03 23:21:54 -07:00
Alessandro Coglio
07154af8ec [examples] A very simple auction-related example. 2022-08-03 23:05:27 -07:00