Commit Graph

260 Commits

Author SHA1 Message Date
Pranav Gaddamadugu
4ee4ba7746 Remove lock 2024-06-04 16:44:13 -07:00
Pranav Gaddamadugu
2c5d5f5719 CLI working 2024-06-01 11:00:40 -07:00
Pranav Gaddamadugu
a23f31d0b7 Fix new 2024-05-31 18:13:50 -07:00
Pranav Gaddamadugu
10057b628a More cleanup 2024-05-18 16:45:40 -07:00
Pranav Gaddamadugu
f7e0352500 WIP 2024-05-18 16:43:53 -07:00
Pranav Gaddamadugu
6f39bc9ad8 WIP 2024-05-15 20:59:10 -07:00
Pranav Gaddamadugu
ee4bc2f856 Update default PK in examples .env 2024-05-15 08:22:10 -07:00
Pranav Gaddamadugu
962526dab5 Fix flattening 2024-05-14 15:20:28 -07:00
Pranav Gaddamadugu
e4e228c419 Merge branch 'mainnet' into update/from-testnet3 2024-05-14 14:47:33 -07:00
Pranav Gaddamadugu
b0ef7a8f46 Update testnet3 to mainnet 2024-05-14 13:31:33 -07:00
Pranav Gaddamadugu
d27ba5fa31 Merge branch 'testnet3' into update/from-testnet3 2024-04-30 13:50:06 -04:00
evan-schott
0db786c3e1 Remove .record 2024-04-16 11:53:19 -07:00
evan-schott
004484b58c refactor ntzseals 2024-04-11 14:19:08 -07:00
evan-schott
ee9cbd912d write examples using new async syntax 2024-04-09 13:53:26 -07:00
metavind
2cade3e00b
fix: correct typos for win check 2024-03-31 21:47:58 +02:00
evan-schott
71853d3f2f clarify external structs 2024-02-09 16:10:32 -08:00
d0cd
7ac50d83ed
Merge pull request #24797 from stanlagermin/fix_typos
fix typos
2024-01-22 14:35:56 -08:00
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
0d0c598748 Update examples 2024-01-15 15:45:09 -08:00
Zk
8a7f8394a9 Fix ci/circleci: test-examples 2024-01-15 15:45:08 -08:00
Pranav Gaddamadugu
49c3cccb05 Fix CI 2024-01-15 15:45:08 -08:00
Pranav Gaddamadugu
aff7e43010 Fix CI 2024-01-15 15:45:08 -08:00
Pranav Gaddamadugu
5fea268d04 Update examples and CI 2024-01-15 15:45:08 -08:00
Pranav Gaddamadugu
829a1e801e Clean up tests 2024-01-15 15:45:08 -08:00
Pranav Gaddamadugu
7e145728e0 Update CI and examples 2024-01-15 15:45:08 -08:00
Pranav Gaddamadugu
e8a46b7628 WIP removing input files from examples 2024-01-15 15:45:07 -08:00
Pranav Gaddamadugu
e4ddfcda25 Remove input files written in leo example 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
stanlagermin
31b4868ed0 fix typos 2023-12-21 14:55:52 +07:00
evan-schott
de8b2a2cad make example compatible w/ stubs 2023-12-11 13:19:42 -08:00
iwantanode
4ec415599b
fix typos README.md
Signed-off-by: iwantanode <87604944+tudorpintea999@users.noreply.github.com>
2023-11-11 12:13:21 +02: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
eb12c7e475 chore(leo): bump version for new release 2023-10-19 21:02:05 -07:00
Rajesh Muppalla
19e421b650
Fixing a bug in examples/TicTacToe (#1)
Signed-off-by: Rajesh Muppalla <1348422+codingnirvana@users.noreply.github.com>
2023-10-05 14:43:55 +05:30
Collin Chin
92386438fc
commit run scripts, bump rust ci img versions (#2526) 2023-08-15 08:48:18 -07:00
Collin Chin
12570e4602
Commit leo example tests (#2524)
* commit leo example tests

* improve leo example readme's and ci

* commit leo token example script
2023-08-14 15:26:55 -07: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
b236918df4
[Feature] Support ChaCha::rand_* (#2433)
* Add tests for ChaCha::rand*

* Add Chacha::rand* to AST, tyc, and codegen

* Add lottery example

* Regen expectations

* Add check asserting that command is only used in finalize block

* Update example and related CI
2023-06-28 21:02:50 -07:00
Collin Chin
e5ae160d1a
Implement new hash and commit functions (#2415)
* refactor hash -> hash_to_field

* refactor commit -> commit_to_field

* implement commit_to_address

* implement hash_to_address

* update hash and commit examples

* implement hash_to_scalar

* update tests

* implement bhp hash to integer variants

* implement bhp pedersen and poseidon integer variants

* Update compiler/passes/src/type_checking/checker.rs

Signed-off-by: Collin Chin <16715212+collinc97@users.noreply.github.com>

* Update compiler/passes/src/type_checking/checker.rs

Co-authored-by: Alessandro Coglio <coglio@kestrel.edu>
Signed-off-by: Collin Chin <16715212+collinc97@users.noreply.github.com>

* fix pedersen hash type checks

---------

Signed-off-by: Collin Chin <16715212+collinc97@users.noreply.github.com>
Co-authored-by: Alessandro Coglio <coglio@kestrel.edu>
2023-06-15 19:55:03 -07:00
Collin Chin
d83c4be330
Implement Mapping::get_or_use (#2413)
* get_or_init -> get_or_use

* use mapping get_or_use in examples

* fix codegen for Mapping::get_or_use

* fix tests for Mapping::get_or_use

* fix warnings, update snarvm rev

* bump circle rust img v1.70

* fix codegen

* update snarkvm rev and regen tests

* Update compiler/parser/src/parser/expression.rs

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

* Delete program.json

Signed-off-by: Collin Chin <16715212+collinc97@users.noreply.github.com>

* Delete program.json

Signed-off-by: Collin Chin <16715212+collinc97@users.noreply.github.com>

---------

Signed-off-by: Collin Chin <16715212+collinc97@users.noreply.github.com>
Co-authored-by: d0cd <pranavsaig@gmail.com>
2023-06-13 12:09:33 -07:00
Collin Chin
42d97d3d89
implement group::GEN Leo syntax (#2401)
* implement group::GEN Leo syntax

* revert unrelated test changes

* move new errors to bottom of file to keep previous error codes consistent
2023-05-31 16:05:56 -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
Pranav Gaddamadugu
f88ddfead5 Update examples 2023-04-18 17:14:01 -07:00
Pranav Gaddamadugu
571786c3c6 Fix example 2023-04-18 17:08:09 -07:00
Pranav Gaddamadugu
9cb5ac1d91 Update examples 2023-04-18 16:59:07 -07:00
Pranav Gaddamadugu
a0b00ac78c Update examples; fmt 2023-04-18 16:59:07 -07:00
Pranav Gaddamadugu
2881fce2ec Update examples 2023-04-18 16:37:45 -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