risc0 / risc0-foundry-template

Template for integrating RISC Zero and Ethereum using Foundry
https://risczero.com
108 stars 60 forks source link

Support end-to-end flow with Bonsai in forge test and local deployment #29

Closed nategraf closed 1 year ago

nategraf commented 1 year ago

This PR ports the modifications and improvements I worked on for the Governance showcase back to the template. Included changes are:

Additionally:

Resolves https://github.com/risc0/bonsai-foundry-template/issues/26 Resolves https://github.com/risc0/bonsai-foundry-template/issues/27 Resolves https://github.com/risc0/bonsai-foundry-template/issues/28

nategraf commented 1 year ago

Remaining work is to update and test the local deployment script. If it is ready, I will also integrate the updated relay with the ability to plumb through SNARK proofs from the Bonsai proving service.

nategraf commented 1 year ago

Depends on additions to the Bonsai libraries in https://github.com/risc0/risc0/pull/712

nategraf commented 1 year ago

@capossele, I've now added a more complete deploy script and run the local deployment. The local environment example doesn't work yet because the Relay does not support the BonsaiRelay and BonsaiTestRelay contracts.

capossele commented 1 year ago

Replaced by #45