Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reuse deployed contracts in Sepolia #154

Open
DonatoJPS opened this issue Jun 13, 2024 · 3 comments
Open

Reuse deployed contracts in Sepolia #154

DonatoJPS opened this issue Jun 13, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@DonatoJPS
Copy link

Background & motivation

I set up my infrastructure using the local CDK and deployed the contracts on Sepolia. After a while, I decided to shut down my local node with kurtosis clean --all. Is there any way to reuse the existing contracts on L1 when I want to restore the system again, to avoid redeploying them?

I tried setting the deploy_zkevm_contracts_on_l1 flag to false, but this results in an error.

image

Desired behaviour

I would like to manually configure the contract addresses to avoid redeploying them in Sepolia or any other network

How important is this to you?

Nice to have; This feature would make using Kurtosis CDK more enjoyable.

@leovct
Copy link
Member

leovct commented Jun 14, 2024

That's something we would like to support. However, we don't have great docs for this yet and we only tested pre-deployed contracts against a local L1 at the moment. You can take a look at this workflow file to get a feel for how to do it: https://github.com/0xPolygon/kurtosis-cdk/blob/main/.github/workflows/deploy.yml#L196-L241

@leovct leovct added the enhancement New feature or request label Jun 14, 2024
@DonatoJPS
Copy link
Author

That would be great! Maybe, as we have deploy_zkevm_contracts_on_l1, another argument like reuse_l1_zkevm_contracts boolean could work. We should also configure manually each contract address

@Pana
Copy link

Pana commented Jul 18, 2024

This is a cool idea, looking forward you can support it very soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants