Skip to content

Commit

Permalink
Simplify foundry-template (#79)
Browse files Browse the repository at this point in the history
* simplify the interaction between app contract and zkVM/Bonsai, by dropping the previously required GuestInterface
* improves testing by leveraging on the ffi cli from risc0-ethereum
* drops the ethereum-sdk as in its current form we think it requires better designing and moves most of its content as a lib of the application's example (i.e., publisher)
* integrates with reproducible builds
* update documentation
  • Loading branch information
capossele authored Feb 15, 2024
1 parent 0564628 commit aef8335
Show file tree
Hide file tree
Showing 38 changed files with 514 additions and 710 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ out/
/broadcast/*/11155111/
/broadcast/**/dry-run/

# Autogenerated contracts
contracts/ImageID.sol
tests/elf.sol

# Docs
docs/

Expand All @@ -18,4 +22,5 @@ docs/
target/

# Misc
.DS_Store
.idea
7 changes: 3 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
[submodule "lib/solidity-bytes-utils"]
path = lib/solidity-bytes-utils
url = https://github.com/GNSPS/solidity-bytes-utils
[submodule "lib/risc0"]
path = lib/risc0
url = https://github.com/risc0/risc0
branch = "release-0.20"
[submodule "lib/risc0-ethereum"]
path = lib/risc0-ethereum
url = https://github.com/risc0/risc0-ethereum
5 changes: 3 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"rust-analyzer.linkedProjects": [
"./cli/Cargo.toml",
"./sdk/Cargo.toml"
"./apps/Cargo.toml",
"./methods/Cargo.toml",
"./methods/guest/Cargo.toml",
]
}
153 changes: 100 additions & 53 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 7 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[workspace]
resolver = "2"
members = ["cli", "methods", "sdk"]
members = ["apps", "methods"]

[workspace.package]
version = "0.1.0"
Expand All @@ -11,11 +11,14 @@ alloy-primitives = { version = "0.6", default-features = false, features = ["rlp
alloy-sol-types = { version = "0.6" }
anyhow = { version = "1.0.75" }
bincode = { version = "1.3" }
bonsai-sdk = { version = "0.6.0" }
bonsai-sdk = { version = "0.6.1" }
bytemuck = { version = "1.14" }
ethers = { version = "2.0" }
hex = { version = "0.4" }
log = { version = "0.4" }
methods = { path = "./methods", package = "bonsai-starter-methods" }
risc0-build = { version = "0.20", features = ["guest-list"] }
risc0-ethereum-sdk = { version = "0.1.0", path = "sdk" }
risc0-build = { git = "http://github.com/risc0/risc0", branch = "capossele/foundry-template-0.20", features = ["guest-list", "docker"] }
risc0-ethereum-contracts = { git = "http://github.com/risc0/risc0-ethereum", rev = "3be9ef901d723e8f3efd4536bcd742f33d6fb16d" }
risc0-zkvm = { version = "0.20", default-features = false }
serde = { version = "1.0", features = ["derive", "std"] }

Expand Down
Loading

0 comments on commit aef8335

Please sign in to comment.