Skip to content

Commit 38beda4

Browse files
authored
Merge pull request #430 from Elexy101/master
Update 02_hello.md
2 parents 0645c73 + a1b825b commit 38beda4

File tree

2 files changed

+23
-6
lines changed

2 files changed

+23
-6
lines changed

documentation/aleo/02_hello.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ This will create **foo** directory and the files with the basic structure of the
1515

1616
- **README.md** having the skeleton of a README with instructions on how to compile.
1717
- **main.aleo** the main file of the source code.
18-
- **program.json** containing the identification of the project in JSON format. Particularly, a dev address and its private key for the program.
18+
- **.env** stores the environment variable for the program, including the <b>NETWORK</b> and <b>PRIVATE_KEY</b> which is auto-generated when creating a new leo program
19+
- **program.json** containing the identification of the project in JSON format and includes additional dependencies if added
1920

2021
The main.aleo file should have contents like this:
2122

@@ -39,7 +40,6 @@ snarkvm run hello 2u32 3u32
3940
You will see output like this:
4041

4142
```bash
42-
• Loaded universal setup (in 1478 ms)
4343

4444
⛓ Constraints
4545

@@ -65,7 +65,6 @@ snarkvm execute hello 2u32 3u32
6565
When the execution is finished, you should see the following output:
6666

6767
```bash
68-
• Loaded universal setup (in 1478 ms)
6968

7069
⛓ Constraints
7170

documentation/leo/09_auction.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Follow the [Leo Installation Instructions](https://developer.aleo.org/leo/instal
3939
This auction program can be run using the following bash script. Locally, it will execute Leo program functions to conduct, bid, and close a three party auction.
4040

4141
```bash
42-
cd auction
42+
cd leo/examples/auction
4343
./run.sh
4444
```
4545

@@ -92,7 +92,16 @@ Call the `place_bid` program function with bidder 1 and `10u64` arguments.
9292
```bash
9393
leo run place_bid aleo1yzlta2q5h8t0fqe0v6dyh9mtv4aggd53fgzr068jvplqhvqsnvzq7pj2ke 10u64
9494
```
95-
95+
Output:
96+
```bash
97+
• {
98+
owner: aleo1yzlta2q5h8t0fqe0v6dyh9mtv4aggd53fgzr068jvplqhvqsnvzq7pj2ke.private,
99+
bidder: aleo1yzlta2q5h8t0fqe0v6dyh9mtv4aggd53fgzr068jvplqhvqsnvzq7pj2ke.private,
100+
amount: 10u64.private,
101+
is_winner: false.private,
102+
_nonce: 4668394794828730542675887906815309351994017139223602571716627453741502624516group.public
103+
}
104+
```
96105
## <a id="step2"></a> Step 2: The Second Bid
97106

98107
Have the second bidder place a bid of 90.
@@ -112,7 +121,16 @@ Call the `place_bid` program function with bidder 2 and `90u64` arguments.
112121
```bash
113122
leo run place_bid aleo1esqchvevwn7n5p84e735w4dtwt2hdtu4dpguwgwy94tsxm2p7qpqmlrta4 90u64
114123
```
115-
124+
Output:
125+
```bash
126+
• {
127+
owner: aleo1esqchvevwn7n5p84e735w4dtwt2hdtu4dpguwgwy94tsxm2p7qpqmlrta4.private,
128+
bidder: aleo1esqchvevwn7n5p84e735w4dtwt2hdtu4dpguwgwy94tsxm2p7qpqmlrta4.private,
129+
amount: 90u64.private,
130+
is_winner: false.private,
131+
_nonce: 5952811863753971450641238938606857357746712138665944763541786901326522216736group.public
132+
}
133+
```
116134
## <a id="step3"></a> Step 3: Select the Winner
117135

118136
Have the auctioneer select the winning bid.

0 commit comments

Comments
 (0)