Skip to content

Commit

Permalink
Merge pull request #2 from amphitheatre-app/feat/issue-1
Browse files Browse the repository at this point in the history
issue(#1): Add Aleo example for amp
  • Loading branch information
wangeguo authored Jan 18, 2024
2 parents 7a6722b + c209b4b commit 3fc5260
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .amp.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name = "amp-example-aleo"
version = "0.1.0"
edition = "v1"
description = "A simple Aleo example app"
readme = "README.md"
homepage = "https://github.com/amphitheatre-app/amp-example-aleo"
repository = "https://github.com/amphitheatre-app/amp-example-aleo"
license = "Apache-2.0"
license-file = "LICENSE"
keywords = ["example", "aleo", "getting-started"]
categories = ["example"]

[build]
builder = "ghcr.io/amp-buildpacks/leo-builder:0.1.0"

[partners]
snarkos = { version = "latest", registry = "catalog" }
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.env
*.avm
*.prover
*.verifier
outputs/
build/
4 changes: 4 additions & 0 deletions inputs/snarkvm.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// The program input for snarkvm/src/main.leo
[main]
public a: u32 = 1u32;
b: u32 = 2u32;
6 changes: 6 additions & 0 deletions program.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"program": "snarkvm.aleo",
"version": "0.0.0",
"description": "",
"license": "MIT"
}
7 changes: 7 additions & 0 deletions src/main.leo
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// The 'snarkvm' program.
program snarkvm.aleo {
transition main(public a: u32, b: u32) -> u32 {
let c: u32 = a + b;
return c;
}
}

0 comments on commit 3fc5260

Please sign in to comment.