-
Notifications
You must be signed in to change notification settings - Fork 660
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1111971
commit 4a7e429
Showing
57 changed files
with
81 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 10 additions & 0 deletions
10
.../tests/mixed_local_network_build_test/.aleo/registry/testnet3/nested_example_layer_0.aleo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import nested_example_layer_2.aleo; | ||
import nested_example_layer_1.aleo; | ||
|
||
program nested_example_layer_0.aleo; | ||
|
||
function main: | ||
input r0 as u32.public; | ||
input r1 as u32.private; | ||
call nested_example_layer_1.aleo/external_function r0 r1 into r2; | ||
output r2 as u32.private; |
9 changes: 9 additions & 0 deletions
9
.../tests/mixed_local_network_build_test/.aleo/registry/testnet3/nested_example_layer_1.aleo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import nested_example_layer_2.aleo; | ||
|
||
program nested_example_layer_1.aleo; | ||
|
||
function external_function: | ||
input r0 as u32.public; | ||
input r1 as u32.private; | ||
call nested_example_layer_2.aleo/external_nested_function r0 r1 into r2; | ||
output r2 as u32.private; |
7 changes: 7 additions & 0 deletions
7
.../tests/mixed_local_network_build_test/.aleo/registry/testnet3/nested_example_layer_2.aleo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
program nested_example_layer_2.aleo; | ||
|
||
function external_nested_function: | ||
input r0 as u32.public; | ||
input r1 as u32.private; | ||
add r0 r1 into r2; | ||
output r2 as u32.private; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
utils/tmp/simple/README.md → ...local_network_build_test/nested/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# simple.aleo | ||
# nested.aleo | ||
|
||
## Build Guide | ||
|
||
|
4 changes: 4 additions & 0 deletions
4
utils/tests/mixed_local_network_build_test/nested/inputs/nested.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// The program input for nested/src/main.leo | ||
[main] | ||
public a: u32 = 1u32; | ||
b: u32 = 2u32; |
20 changes: 20 additions & 0 deletions
20
utils/tests/mixed_local_network_build_test/nested/leo.lock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[[package]] | ||
name = "nested_example_layer_2" | ||
network = "testnet3" | ||
location = "network" | ||
checksum = "b987b8490b214ad9120a47b218a1c1387c7c2763aaf2aa9c81002a4c7020b3e4" | ||
dependencies = [] | ||
|
||
[[package]] | ||
name = "nested_example_layer_1" | ||
network = "testnet3" | ||
location = "network" | ||
checksum = "17701f7369fe6bad74cdfb956bd9d85c6753ffedbf43be9fe5a4bfdc1751617b" | ||
dependencies = ["nested_example_layer_2.aleo"] | ||
|
||
[[package]] | ||
name = "nested_example_layer_0" | ||
network = "testnet3" | ||
location = "network" | ||
checksum = "23414151de5687d5daa447533109ee810b7e763c4d0659e2f53562123e639b2c" | ||
dependencies = ["nested_example_layer_2.aleo", "nested_example_layer_1.aleo"] |
13 changes: 13 additions & 0 deletions
13
utils/tests/mixed_local_network_build_test/nested/program.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"program": "nested.aleo", | ||
"version": "0.0.0", | ||
"description": "", | ||
"license": "MIT", | ||
"dependencies": [ | ||
{ | ||
"name": "nested_example_layer_0.aleo", | ||
"location": "network", | ||
"network": "testnet3" | ||
} | ||
] | ||
} |
8 changes: 8 additions & 0 deletions
8
utils/tests/mixed_local_network_build_test/nested/src/main.leo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// The 'nested' program. | ||
import nested_example_layer_0.aleo; | ||
program nested.aleo { | ||
transition example(public a: u32, b: u32) -> u32 { | ||
let c: u32 = nested_example_layer_0.aleo/main(a, b); | ||
return c; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.