risc0 / risc0-ethereum

Integration of the RISC Zero verifiable compute platform with Ethereum and EVM chains.
https://risczero.com
Apache License 2.0
84 stars 17 forks source link

[Feature] Support deployment `config.toml` files with our own library #177

Open nategraf opened 3 months ago

nategraf commented 3 months ago

We currently some code sitting in the Foundry template for handling deployment configs. In particular, it helps the user specify which verifier they want to use on the chain they are deploying to. It is also generally useful for many smart contract deployment scenarios.

https://github.com/risc0/risc0-foundry-template/blob/main/script/Deploy.s.sol#L49-L70

This code should live in and be maintained in this repo, instead of simply existing in the template.

nategraf commented 1 month ago

With the recent work creating the deployment.toml file, this work should build off of that. https://github.com/risc0/risc0-ethereum/pull/211

nategraf commented 1 month ago

Additionally, there are ideas and examples of how developers in the Forge community are building out their own deployment processes. Almost certainly learning there: https://github.com/foundry-rs/foundry/issues/3911, https://github.com/foundry-rs/foundry/issues/4732