Skip to content

Commit

Permalink
More cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
d0cd committed Jan 15, 2024
1 parent 69dd7d6 commit 79c12a0
Show file tree
Hide file tree
Showing 42 changed files with 295 additions and 119 deletions.
13 changes: 0 additions & 13 deletions utils/tests/build_nested_test/nested/README.md

This file was deleted.

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;
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;
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;
12 changes: 12 additions & 0 deletions utils/tests/build_nested_test/nested/build/main.aleo
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import nested_example_layer_2.aleo;
import nested_example_layer_1.aleo;
import nested_example_layer_0.aleo;
program nested.aleo;



function example:
input r0 as u32.public;
input r1 as u32.private;
call nested_example_layer_0.aleo/main r0 r1 into r2;
output r2 as u32.private;
13 changes: 13 additions & 0 deletions utils/tests/build_nested_test/nested/build/program.json
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"
}
]
}
4 changes: 0 additions & 4 deletions utils/tests/build_nested_test/nested/inputs/nested.in

This file was deleted.

13 changes: 0 additions & 13 deletions utils/tests/double_nested_program_run_test/grandparent/README.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
program child.aleo;

record A:
owner as address.private;
val as u32.private;


function mint:
input r0 as address.private;
input r1 as u32.private;
cast r0 r1 into r2 as A.record;
output r2 as A.record;
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import child.aleo;
program parent.aleo;



function wrapper_mint:
input r0 as address.private;
input r1 as u32.private;
call child.aleo/mint aleo1q30lfyggefvzzxqaaclzrn3wd94q4u8zzy8jhhfrcqrf306ayvqsdvj7s4 1u32 into r2;
output r2 as child.aleo/A.record;
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import child.aleo;
import parent.aleo;
program grandparent.aleo;



function double_wrapper_mint:
input r0 as address.private;
input r1 as u32.private;
call parent.aleo/wrapper_mint r0 r1 into r2;
output r2 as child.aleo/A.record;
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"program": "grandparent.aleo",
"version": "0.0.0",
"description": "",
"license": "MIT",
"dependencies": [
{
"name": "child.aleo",
"location": "local",
"path": "parent/child"
},
{
"name": "parent.aleo",
"location": "local",
"path": "parent"
}
]
}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
program child.aleo;

record A:
owner as address.private;
val as u32.private;


function mint:
input r0 as address.private;
input r1 as u32.private;
cast r0 r1 into r2 as A.record;
output r2 as A.record;
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import child.aleo;
program parent.aleo;



function wrapper_mint:
input r0 as address.private;
input r1 as u32.private;
call child.aleo/mint aleo1q30lfyggefvzzxqaaclzrn3wd94q4u8zzy8jhhfrcqrf306ayvqsdvj7s4 1u32 into r2;
output r2 as child.aleo/A.record;

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
program child.aleo;

record A:
owner as address.private;
val as u32.private;


function mint:
input r0 as address.private;
input r1 as u32.private;
cast r0 r1 into r2 as A.record;
output r2 as A.record;

This file was deleted.

This file was deleted.

13 changes: 0 additions & 13 deletions utils/tests/mixed_local_network_build_test/local_test/README.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
program local_dep_1.aleo;



function main:
input r0 as u32.public;
input r1 as u32.private;
add r0 r1 into r2;
output r2 as u32.private;
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import nested_example_layer_2.aleo;
import nested_example_layer_1.aleo;
import nested_example_layer_0.aleo;
program nested.aleo;



function example:
input r0 as u32.public;
input r1 as u32.private;
call nested_example_layer_0.aleo/main r0 r1 into r2;
output r2 as u32.private;
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;
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;
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;
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
program local_test.aleo;



function main:
input r0 as u32.public;
input r1 as u32.private;
add r0 r1 into r2;
output r2 as u32.private;
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"program": "local_test.aleo",
"version": "0.0.0",
"description": "",
"license": "MIT",
"dependencies" : [
{
"name": "local_dep_1.aleo",
"location": "local",
"path": "local_dep_1"
},
{
"name": "nested.aleo",
"location": "local",
"path": "../nested"
}
]
}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import nested_example_layer_2.aleo;
import nested_example_layer_1.aleo;
import nested_example_layer_0.aleo;
program nested.aleo;



function example:
input r0 as u32.public;
input r1 as u32.private;
call nested_example_layer_0.aleo/main r0 r1 into r2;
output r2 as u32.private;
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;
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;
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;
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
program local_dep_1.aleo;



function main:
input r0 as u32.public;
input r1 as u32.private;
add r0 r1 into r2;
output r2 as u32.private;

This file was deleted.

Loading

0 comments on commit 79c12a0

Please sign in to comment.